2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libmm-common 0.0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
722 PACKAGE_NAME='libmm-common'
723 PACKAGE_TARNAME='libmm-common'
724 PACKAGE_VERSION='0.0.1'
725 PACKAGE_STRING='libmm-common 0.0.1'
728 ac_unique_file="mm_object.c"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
816 INSTALL_STRIP_PROGRAM
875 ac_precious_vars='build_alias
891 # Initialize some variables set by options.
893 ac_init_version=false
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
903 program_transform_name=s,x,x,
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_$ac_feature=no ;;
1000 -docdir | --docdir | --docdi | --doc | --do)
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1010 -enable-* | --enable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017 eval enable_$ac_feature=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1208 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 { echo "$as_me: error: invalid package name: $ac_package" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1214 eval with_$ac_package=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid package name: $ac_package" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223 eval with_$ac_package=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) { echo "$as_me: error: unrecognized option: $ac_option
1244 Try \`$0 --help' for more information." >&2
1245 { (exit 1); exit 1; }; }
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1253 { (exit 1); exit 1; }; }
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 { echo "$as_me: error: missing argument to $ac_option" >&2
1271 { (exit 1); exit 1; }; }
1274 # Be sure to have absolute directory names.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val=\$$ac_var
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 { echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$0" ||
1328 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$0" : 'X\(//\)[^/]' \| \
1330 X"$0" : 'X\(//\)$' \| \
1331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures libmm-common 0.0.1 to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libmm-common]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of libmm-common 0.0.1:";;
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --disable-dependency-tracking speeds up one-time build
1469 --enable-dependency-tracking do not reject slow dependency extractors
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1492 PKG_CONFIG path to pkg-config utility
1493 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1494 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1496 C compiler flags for MMLOG, overriding pkg-config
1497 MMLOG_LIBS linker flags for MMLOG, overriding pkg-config
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" || continue
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 libmm-common configure 0.0.1
1563 generated by GNU Autoconf 2.61
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1572 cat >config.log <<_ACEOF
1573 This file contains any messages produced by compilers while
1574 running configure, to aid debugging if configure makes a mistake.
1576 It was created by libmm-common $as_me 0.0.1, which was
1577 generated by GNU Autoconf 2.61. Invocation command line was
1589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1598 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1599 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1601 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1602 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1603 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1604 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 echo "PATH: $as_dir"
1629 # Keep a trace of the command line.
1630 # Strip out --no-create and --no-recursion so they do not pile up.
1631 # Strip out --silent because we don't want to record it for future runs.
1632 # Also quote any args containing shell meta-characters.
1633 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_must_keep_next=false
1643 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645 | -silent | --silent | --silen | --sile | --sil)
1648 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1653 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654 if test $ac_must_keep_next = true; then
1655 ac_must_keep_next=false # Got value, back to normal.
1658 *=* | --config-cache | -C | -disable-* | --disable-* \
1659 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661 | -with-* | --with-* | -without-* | --without-* | --x)
1662 case "$ac_configure_args0 " in
1663 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666 -* ) ac_must_keep_next=true ;;
1669 ac_configure_args="$ac_configure_args '$ac_arg'"
1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1677 # When interrupted or exit'd, cleanup temporary files, and complete
1678 # config.log. We remove comments because anyway the quotes in there
1679 # would cause problems or look ugly.
1680 # WARNING: Use '\'' to represent an apostrophe within the trap.
1681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1682 trap 'exit_status=$?
1683 # Save into config.log some information that might help in debugging.
1688 ## ---------------- ##
1689 ## Cache variables. ##
1690 ## ---------------- ##
1693 # The following way of writing the cache mishandles newlines in values,
1695 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696 eval ac_val=\$$ac_var
1700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704 _ | IFS | as_nl) ;; #(
1705 *) $as_unset $ac_var ;;
1710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711 *${as_nl}ac_space=\ *)
1713 "s/'\''/'\''\\\\'\'''\''/g;
1714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ## ----------------- ##
1726 ## Output variables. ##
1727 ## ----------------- ##
1730 for ac_var in $ac_subst_vars
1732 eval ac_val=\$$ac_var
1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 echo "$ac_var='\''$ac_val'\''"
1740 if test -n "$ac_subst_files"; then
1742 ## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##
1747 for ac_var in $ac_subst_files
1749 eval ac_val=\$$ac_var
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 echo "$ac_var='\''$ac_val'\''"
1758 if test -s confdefs.h; then
1768 test "$ac_signal" != 0 &&
1769 echo "$as_me: caught signal $ac_signal"
1770 echo "$as_me: exit $exit_status"
1772 rm -f core *.core core.conftest.* &&
1773 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776 for ac_signal in 1 2 13 15; do
1777 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1784 # Predefined preprocessor variables.
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 # Let the site file select an alternate cache file if it wants to.
1812 # Prefer explicitly selected file to automatically selected ones.
1813 if test -n "$CONFIG_SITE"; then
1814 set x "$CONFIG_SITE"
1815 elif test "x$prefix" != xNONE; then
1816 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1818 set x "$ac_default_prefix/share/config.site" \
1819 "$ac_default_prefix/etc/config.site"
1824 if test -r "$ac_site_file"; then
1825 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826 echo "$as_me: loading site script $ac_site_file" >&6;}
1827 sed 's/^/| /' "$ac_site_file" >&5
1832 if test -r "$cache_file"; then
1833 # Some versions of bash will fail to source /dev/null (special
1834 # files actually), so we avoid doing that.
1835 if test -f "$cache_file"; then
1836 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837 echo "$as_me: loading cache $cache_file" >&6;}
1839 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840 *) . "./$cache_file";;
1844 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845 echo "$as_me: creating cache $cache_file" >&6;}
1849 # Check that the precious variables saved in the cache have kept the same
1851 ac_cache_corrupted=false
1852 for ac_var in $ac_precious_vars; do
1853 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854 eval ac_new_set=\$ac_env_${ac_var}_set
1855 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856 eval ac_new_val=\$ac_env_${ac_var}_value
1857 case $ac_old_set,$ac_new_set in
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1868 if test "x$ac_old_val" != "x$ac_new_val"; then
1869 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1870 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1871 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1872 echo "$as_me: former value: $ac_old_val" >&2;}
1873 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1874 echo "$as_me: current value: $ac_new_val" >&2;}
1875 ac_cache_corrupted=:
1878 # Pass precious variables to config.status.
1879 if test "$ac_new_set" = set; then
1881 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 *) ac_arg=$ac_var=$ac_new_val ;;
1884 case " $ac_configure_args " in
1885 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1886 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890 if $ac_cache_corrupted; then
1891 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 ac_config_headers="$ac_config_headers config.h"
1932 am__api_version='1.10'
1935 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1936 if test -f "$ac_dir/install-sh"; then
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 elif test -f "$ac_dir/install.sh"; then
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 elif test -f "$ac_dir/shtool"; then
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965 # Find a good install program. We prefer a C program (faster),
1966 # so one script is as good as another. But avoid the broken or
1967 # incompatible versions:
1968 # SysV /etc/install, /usr/sbin/install
1969 # SunOS /usr/etc/install
1970 # IRIX /sbin/install
1972 # AmigaOS /C/install, which installs bootblocks on floppy discs
1973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1976 # OS/2's system install, which has a completely different semantic
1977 # ./install, which can be erroneously created by make from ./install.sh.
1978 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1979 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1980 if test -z "$INSTALL"; then
1981 if test "${ac_cv_path_install+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 # Account for people who put trailing slashes in PATH elements.
1991 ./ | .// | /cC/* | \
1992 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1993 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1996 # OSF1 and SCO ODT 3.0 have their own names for install.
1997 # Don't use installbsd from OSF since it installs stuff as root
1999 for ac_prog in ginstall scoinst install; do
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2002 if test $ac_prog = install &&
2003 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004 # AIX install. It has an incompatible calling convention.
2006 elif test $ac_prog = install &&
2007 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008 # program-specific install script used by HP pwplus--don't use.
2011 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2024 if test "${ac_cv_path_install+set}" = set; then
2025 INSTALL=$ac_cv_path_install
2027 # As a last resort, use the slow shell script. Don't cache a
2028 # value for INSTALL within a source directory, because that will
2029 # break other packages using the cache if that directory is
2030 # removed, or if the value is a relative name.
2031 INSTALL=$ac_install_sh
2034 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2035 echo "${ECHO_T}$INSTALL" >&6; }
2037 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2038 # It thinks the first close brace ends the variable substitution.
2039 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2041 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2043 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2045 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2046 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2049 echo timestamp > conftest.file
2050 # Do `set' in a subshell so we don't clobber the current shell's
2051 # arguments. Must try -L first in case configure is actually a
2052 # symlink; some systems play weird games with the mod time of symlinks
2053 # (eg FreeBSD returns the mod time of the symlink's containing
2056 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2057 if test "$*" = "X"; then
2059 set X `ls -t $srcdir/configure conftest.file`
2062 if test "$*" != "X $srcdir/configure conftest.file" \
2063 && test "$*" != "X conftest.file $srcdir/configure"; then
2065 # If neither matched, then we have a broken ls. This can happen
2066 # if, for instance, CONFIG_SHELL is bash and it inherits a
2067 # broken ls alias from the environment. This has actually
2068 # happened. Such a system could not be considered "sane".
2069 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2070 alias in your environment" >&5
2071 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2072 alias in your environment" >&2;}
2073 { (exit 1); exit 1; }; }
2076 test "$2" = conftest.file
2082 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2083 Check your system clock" >&5
2084 echo "$as_me: error: newly created file is older than distributed files!
2085 Check your system clock" >&2;}
2086 { (exit 1); exit 1; }; }
2088 { echo "$as_me:$LINENO: result: yes" >&5
2089 echo "${ECHO_T}yes" >&6; }
2090 test "$program_prefix" != NONE &&
2091 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2092 # Use a double $ so make ignores it.
2093 test "$program_suffix" != NONE &&
2094 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2095 # Double any \ or $. echo might interpret backslashes.
2096 # By default was `s,x,x', remove it if useless.
2097 cat <<\_ACEOF >conftest.sed
2098 s/[\\$]/&&/g;s/;s,x,x,$//
2100 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2103 # expand $ac_aux_dir to an absolute path
2104 am_aux_dir=`cd $ac_aux_dir && pwd`
2106 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2107 # Use eval to expand $SHELL
2108 if eval "$MISSING --run true"; then
2109 am_missing_run="$MISSING --run "
2112 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2113 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2116 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2117 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2118 if test -z "$MKDIR_P"; then
2119 if test "${ac_cv_path_mkdir+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2126 test -z "$as_dir" && as_dir=.
2127 for ac_prog in mkdir gmkdir; do
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2130 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2131 'mkdir (GNU coreutils) '* | \
2132 'mkdir (coreutils) '* | \
2133 'mkdir (fileutils) '4.1*)
2134 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2144 if test "${ac_cv_path_mkdir+set}" = set; then
2145 MKDIR_P="$ac_cv_path_mkdir -p"
2147 # As a last resort, use the slow shell script. Don't cache a
2148 # value for MKDIR_P within a source directory, because that will
2149 # break other packages using the cache if that directory is
2150 # removed, or if the value is a relative name.
2151 test -d ./--version && rmdir ./--version
2152 MKDIR_P="$ac_install_sh -d"
2155 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2156 echo "${ECHO_T}$MKDIR_P" >&6; }
2160 [\\/$]* | ?:[\\/]*) ;;
2161 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2164 for ac_prog in gawk mawk nawk awk
2166 # Extract the first word of "$ac_prog", so it can be a program name with args.
2167 set dummy $ac_prog; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_AWK+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$AWK"; then
2174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183 ac_cv_prog_AWK="$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 if test -n "$AWK"; then
2195 { echo "$as_me:$LINENO: result: $AWK" >&5
2196 echo "${ECHO_T}$AWK" >&6; }
2198 { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2203 test -n "$AWK" && break
2206 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2207 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2208 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2209 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.make <<\_ACEOF
2215 @echo '@@@%%%=$(MAKE)=@@@%%%'
2217 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2218 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2220 eval ac_cv_prog_make_${ac_make}_set=yes;;
2222 eval ac_cv_prog_make_${ac_make}_set=no;;
2226 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2227 { echo "$as_me:$LINENO: result: yes" >&5
2228 echo "${ECHO_T}yes" >&6; }
2231 { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2233 SET_MAKE="MAKE=${MAKE-make}"
2236 rm -rf .tst 2>/dev/null
2237 mkdir .tst 2>/dev/null
2238 if test -d .tst; then
2243 rmdir .tst 2>/dev/null
2245 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2246 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2247 # is not polluted with repeated "-I."
2248 am__isrc=' -I$(srcdir)'
2249 # test to see if srcdir already configured
2250 if test -f $srcdir/config.status; then
2251 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2252 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2253 { (exit 1); exit 1; }; }
2257 # test whether we have cygpath
2258 if test -z "$CYGPATH_W"; then
2259 if (cygpath --version) >/dev/null 2>/dev/null; then
2260 CYGPATH_W='cygpath -w'
2267 # Define the identity of the package.
2268 PACKAGE='libmm-common'
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE "$PACKAGE"
2277 cat >>confdefs.h <<_ACEOF
2278 #define VERSION "$VERSION"
2281 # Some tools Automake needs.
2283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2297 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'. However `strip' might not be the right
2301 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2303 if test "$cross_compiling" != no; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_STRIP+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 STRIP=$ac_cv_prog_STRIP
2333 if test -n "$STRIP"; then
2334 { echo "$as_me:$LINENO: result: $STRIP" >&5
2335 echo "${ECHO_T}$STRIP" >&6; }
2337 { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2343 if test -z "$ac_cv_prog_STRIP"; then
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_STRIP="strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373 if test -n "$ac_ct_STRIP"; then
2374 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2381 if test "x$ac_ct_STRIP" = x; then
2384 case $cross_compiling:$ac_tool_warned in
2386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned=yes ;;
2397 STRIP="$ac_cv_prog_STRIP"
2401 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2403 # We need awk for the "check" target. The system "awk" is bad on
2405 # Always define AMTAR for backward compatibility.
2407 AMTAR=${AMTAR-"${am_missing_run}tar"}
2409 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2416 # Checks for programs.
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2461 if test -z "$ac_cv_prog_CC"; then
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_ac_ct_CC="gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2499 if test "x$ac_ct_CC" = x; then
2502 case $cross_compiling:$ac_tool_warned in
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet. If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2518 if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2559 if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605 if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2656 test -n "$CC" && break
2659 if test -z "$CC"; then
2661 for ac_prog in cl.exe
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 echo "${ECHO_T}$ac_ct_CC" >&6; }
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2700 test -n "$ac_ct_CC" && break
2703 if test "x$ac_ct_CC" = x; then
2706 case $cross_compiling:$ac_tool_warned in
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet. If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2723 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: no acceptable C compiler found in \$PATH
2726 See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2729 # Provide some information about the compiler.
2730 echo "$as_me:$LINENO: checking for C compiler version" >&5
2731 ac_compiler=`set X $ac_compile; echo $2`
2732 { (ac_try="$ac_compiler --version >&5"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742 { (ac_try="$ac_compiler -v >&5"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -v >&5") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752 { (ac_try="$ac_compiler -V >&5"
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -V >&5") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 ac_clean_files_save=$ac_clean_files
2779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780 # Try to create an executable without -o first, disregard a.out.
2781 # It will help us diagnose broken compilers, and finding out an intuition
2783 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2787 # List of possible output files, starting from the most likely.
2788 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789 # only as a last resort. b.out is created by i960 compilers.
2790 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2792 # The IRIX 6 linker writes into existing files which may not be
2793 # executable, retaining their permissions. Remove them first so a
2794 # subsequent execution test works.
2796 for ac_file in $ac_files
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805 if { (ac_try="$ac_link_default"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link_default") 2>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2818 # so that the user can short-circuit this test for compilers unknown to
2820 for ac_file in $ac_files ''
2822 test -f "$ac_file" || continue
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2827 # We found the default executable, but exeext='' is most
2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2845 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
2852 echo "${ECHO_T}$ac_file" >&6; }
2853 if test -z "$ac_file"; then
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2864 ac_exeext=$ac_cv_exeext
2866 # Check that the compiler produces executables we can run. If not, either
2867 # the compiler is broken, or we cross compile.
2868 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871 # If not cross compiling, check that we can run a simple program.
2872 if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2885 if test "$cross_compiling" = maybe; then
2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2898 { echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6; }
2901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902 ac_clean_files=$ac_clean_files_save
2903 # Check that the compiler produces executables we can run. If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908 echo "${ECHO_T}$cross_compiling" >&6; }
2910 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912 if { (ac_try="$ac_link"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924 # work properly (i.e., refer to `conftest.exe'), while it won't with
2926 for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." >&5
2938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2943 rm -f conftest$ac_cv_exeext
2944 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2950 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2952 if test "${ac_cv_objext+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2970 rm -f conftest.o conftest.obj
2971 if { (ac_try="$ac_compile"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3002 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003 echo "${ECHO_T}$ac_cv_objext" >&6; }
3004 OBJEXT=$ac_cv_objext
3006 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200 if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202 elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3209 if test "$GCC" = yes; then
3215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_cc_c89+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 ac_cv_prog_cc_c89=no
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3246 s = g (p, va_arg (v,int));
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_c89=$ac_arg
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3308 rm -f core conftest.err conftest.$ac_objext
3309 test "x$ac_cv_prog_cc_c89" != "xno" && break
3311 rm -f conftest.$ac_ext
3316 case "x$ac_cv_prog_cc_c89" in
3318 { echo "$as_me:$LINENO: result: none needed" >&5
3319 echo "${ECHO_T}none needed" >&6; } ;;
3321 { echo "$as_me:$LINENO: result: unsupported" >&5
3322 echo "${ECHO_T}unsupported" >&6; } ;;
3324 CC="$CC $ac_cv_prog_cc_c89"
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 DEPDIR="${am__leading_dot}deps"
3337 ac_config_commands="$ac_config_commands depfiles"
3340 am_make=${MAKE-make}
3341 cat > confinc << 'END'
3346 # If we don't find an include directive, just comment out the code.
3347 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3348 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3352 # First try GNU make style include.
3353 echo "include confinc" > confmf
3354 # We grep out `Entering directory' and `Leaving directory'
3355 # messages which can occur if `w' ends up in MAKEFLAGS.
3356 # In particular we don't look at `^make:' because GNU make might
3357 # be invoked under some other name (usually "gmake"), in which
3358 # case it prints its new name instead of `make'.
3359 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3364 # Now try BSD make style include.
3365 if test "$am__include" = "#"; then
3366 echo '.include "confinc"' > confmf
3367 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3368 am__include=.include
3375 { echo "$as_me:$LINENO: result: $_am_result" >&5
3376 echo "${ECHO_T}$_am_result" >&6; }
3377 rm -f confinc confmf
3379 # Check whether --enable-dependency-tracking was given.
3380 if test "${enable_dependency_tracking+set}" = set; then
3381 enableval=$enable_dependency_tracking;
3384 if test "x$enable_dependency_tracking" != xno; then
3385 am_depcomp="$ac_aux_dir/depcomp"
3388 if test "x$enable_dependency_tracking" != xno; then
3398 depcc="$CC" am_compiler_list=
3400 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3401 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3402 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3406 # We make a subdir and do the tests there. Otherwise we can end up
3407 # making bogus files that we don't know about and never remove. For
3408 # instance it was reported that on HP-UX the gcc test will end up
3409 # making a dummy file named `D' -- because `-MD' means `put the output
3412 # Copy depcomp to subdir because otherwise we won't find it if we're
3413 # using a relative directory.
3414 cp "$am_depcomp" conftest.dir
3416 # We will build objects and dependencies in a subdirectory because
3417 # it helps to detect inapplicable dependency modes. For instance
3418 # both Tru64's cc and ICC support -MD to output dependencies as a
3419 # side effect of compilation, but ICC will put the dependencies in
3420 # the current directory while Tru64 will put them in the object
3424 am_cv_CC_dependencies_compiler_type=none
3425 if test "$am_compiler_list" = ""; then
3426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3428 for depmode in $am_compiler_list; do
3429 # Setup a source with many dependencies, because some compilers
3430 # like to wrap large dependency lists on column 80 (with \), and
3431 # we should not choose a depcomp mode which is confused by this.
3433 # We need to recreate these files for each test, as the compiler may
3434 # overwrite some of them when testing with obscure command lines.
3435 # This happens at least with the AIX C compiler.
3437 for i in 1 2 3 4 5 6; do
3438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3440 # Solaris 8's {/usr,}/bin/sh.
3441 touch sub/conftst$i.h
3443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3447 # after this tag, mechanisms are not by side-effect, so they'll
3448 # only be used when explicitly requested
3449 if test "x$enable_dependency_tracking" = xyes; then
3457 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3458 # mode. It turns out that the SunPro C++ compiler does not properly
3459 # handle `-M -o', and we need to detect this.
3460 if depmode=$depmode \
3461 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3463 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3464 >/dev/null 2>conftest.err &&
3465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3467 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3469 # icc doesn't choke on unknown options, it will just issue warnings
3470 # or remarks (even with -Werror). So we grep stderr for any message
3471 # that says an option was ignored or not supported.
3472 # When given -MP, icc 7.0 and 7.1 complain thusly:
3473 # icc: Command line warning: ignoring option '-M'; no argument required
3474 # The diagnosis changed in icc 8.0:
3475 # icc: Command line remark: option '-MP' not supported
3476 if (grep 'ignoring option' conftest.err ||
3477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3478 am_cv_CC_dependencies_compiler_type=$depmode
3487 am_cv_CC_dependencies_compiler_type=none
3491 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3492 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3493 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3496 test "x$enable_dependency_tracking" != xno \
3497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3499 am__fastdepCC_FALSE='#'
3501 am__fastdepCC_TRUE='#'
3502 am__fastdepCC_FALSE=
3508 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3509 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3514 macro_version='2.2.4'
3515 macro_revision='1.2976'
3529 ltmain="$ac_aux_dir/ltmain.sh"
3531 # Make sure we can run config.sub.
3532 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3533 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3534 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3535 { (exit 1); exit 1; }; }
3537 { echo "$as_me:$LINENO: checking build system type" >&5
3538 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3539 if test "${ac_cv_build+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 ac_build_alias=$build_alias
3543 test "x$ac_build_alias" = x &&
3544 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3545 test "x$ac_build_alias" = x &&
3546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3548 { (exit 1); exit 1; }; }
3549 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3555 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3556 echo "${ECHO_T}$ac_cv_build" >&6; }
3557 case $ac_cv_build in
3559 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3560 echo "$as_me: error: invalid value of canonical build" >&2;}
3561 { (exit 1); exit 1; }; };;
3564 ac_save_IFS=$IFS; IFS='-'
3570 # Remember, the first character of IFS is used to create $*,
3571 # except with old shells:
3574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577 { echo "$as_me:$LINENO: checking host system type" >&5
3578 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3579 if test "${ac_cv_host+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 if test "x$host_alias" = x; then
3583 ac_cv_host=$ac_cv_build
3585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3586 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3587 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3588 { (exit 1); exit 1; }; }
3592 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3593 echo "${ECHO_T}$ac_cv_host" >&6; }
3596 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3597 echo "$as_me: error: invalid value of canonical host" >&2;}
3598 { (exit 1); exit 1; }; };;
3601 ac_save_IFS=$IFS; IFS='-'
3607 # Remember, the first character of IFS is used to create $*,
3608 # except with old shells:
3611 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3615 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3616 if test "${ac_cv_path_SED+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3620 for ac_i in 1 2 3 4 5 6 7; do
3621 ac_script="$ac_script$as_nl$ac_script"
3623 echo "$ac_script" | sed 99q >conftest.sed
3624 $as_unset ac_script || ac_script=
3625 # Extract the first word of "sed gsed" to use in msg output
3626 if test -z "$SED"; then
3627 set dummy sed gsed; ac_prog_name=$2
3628 if test "${ac_cv_path_SED+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 ac_path_SED_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir=.
3638 for ac_prog in sed gsed; do
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3641 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3642 # Check for GNU ac_path_SED and select it if it is found.
3643 # Check for GNU $ac_path_SED
3644 case `"$ac_path_SED" --version 2>&1` in
3646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3649 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
3655 echo '' >> "conftest.nl"
3656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 ac_count=`expr $ac_count + 1`
3659 if test $ac_count -gt ${ac_path_SED_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_SED="$ac_path_SED"
3662 ac_path_SED_max=$ac_count
3664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671 $ac_path_SED_found && break 3
3681 SED="$ac_cv_path_SED"
3682 if test -z "$SED"; then
3683 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3684 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3685 { (exit 1); exit 1; }; }
3693 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3694 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3695 SED="$ac_cv_path_SED"
3698 test -z "$SED" && SED=sed
3699 Xsed="$SED -e 1s/^X//"
3711 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3712 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3713 if test "${ac_cv_path_GREP+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 # Extract the first word of "grep ggrep" to use in msg output
3717 if test -z "$GREP"; then
3718 set dummy grep ggrep; ac_prog_name=$2
3719 if test "${ac_cv_path_GREP+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_path_GREP_found=false
3723 # Loop through the user's path and test for each of PROGNAME-LIST
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3728 test -z "$as_dir" && as_dir=.
3729 for ac_prog in grep ggrep; do
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3732 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3733 # Check for GNU ac_path_GREP and select it if it is found.
3734 # Check for GNU $ac_path_GREP
3735 case `"$ac_path_GREP" --version 2>&1` in
3737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3740 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3743 cat "conftest.in" "conftest.in" >"conftest.tmp"
3744 mv "conftest.tmp" "conftest.in"
3745 cp "conftest.in" "conftest.nl"
3746 echo 'GREP' >> "conftest.nl"
3747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749 ac_count=`expr $ac_count + 1`
3750 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3751 # Best one so far, save it but keep looking for a better one
3752 ac_cv_path_GREP="$ac_path_GREP"
3753 ac_path_GREP_max=$ac_count
3755 # 10*(2^10) chars as input seems more than enough
3756 test $ac_count -gt 10 && break
3758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3762 $ac_path_GREP_found && break 3
3772 GREP="$ac_cv_path_GREP"
3773 if test -z "$GREP"; then
3774 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3776 { (exit 1); exit 1; }; }
3780 ac_cv_path_GREP=$GREP
3785 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3786 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3787 GREP="$ac_cv_path_GREP"
3790 { echo "$as_me:$LINENO: checking for egrep" >&5
3791 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_EGREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3796 then ac_cv_path_EGREP="$GREP -E"
3798 # Extract the first word of "egrep" to use in msg output
3799 if test -z "$EGREP"; then
3800 set dummy egrep; ac_prog_name=$2
3801 if test "${ac_cv_path_EGREP+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 ac_path_EGREP_found=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810 test -z "$as_dir" && as_dir=.
3811 for ac_prog in egrep; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3814 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3815 # Check for GNU ac_path_EGREP and select it if it is found.
3816 # Check for GNU $ac_path_EGREP
3817 case `"$ac_path_EGREP" --version 2>&1` in
3819 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3822 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3825 cat "conftest.in" "conftest.in" >"conftest.tmp"
3826 mv "conftest.tmp" "conftest.in"
3827 cp "conftest.in" "conftest.nl"
3828 echo 'EGREP' >> "conftest.nl"
3829 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831 ac_count=`expr $ac_count + 1`
3832 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3833 # Best one so far, save it but keep looking for a better one
3834 ac_cv_path_EGREP="$ac_path_EGREP"
3835 ac_path_EGREP_max=$ac_count
3837 # 10*(2^10) chars as input seems more than enough
3838 test $ac_count -gt 10 && break
3840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3844 $ac_path_EGREP_found && break 3
3854 EGREP="$ac_cv_path_EGREP"
3855 if test -z "$EGREP"; then
3856 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3857 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3858 { (exit 1); exit 1; }; }
3862 ac_cv_path_EGREP=$EGREP
3868 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3869 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3870 EGREP="$ac_cv_path_EGREP"
3873 { echo "$as_me:$LINENO: checking for fgrep" >&5
3874 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3875 if test "${ac_cv_path_FGREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3879 then ac_cv_path_FGREP="$GREP -F"
3881 # Extract the first word of "fgrep" to use in msg output
3882 if test -z "$FGREP"; then
3883 set dummy fgrep; ac_prog_name=$2
3884 if test "${ac_cv_path_FGREP+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 ac_path_FGREP_found=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3893 test -z "$as_dir" && as_dir=.
3894 for ac_prog in fgrep; do
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3897 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3898 # Check for GNU ac_path_FGREP and select it if it is found.
3899 # Check for GNU $ac_path_FGREP
3900 case `"$ac_path_FGREP" --version 2>&1` in
3902 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3905 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 echo 'FGREP' >> "conftest.nl"
3912 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3914 ac_count=`expr $ac_count + 1`
3915 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_FGREP="$ac_path_FGREP"
3918 ac_path_FGREP_max=$ac_count
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 $ac_path_FGREP_found && break 3
3937 FGREP="$ac_cv_path_FGREP"
3938 if test -z "$FGREP"; then
3939 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3940 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3941 { (exit 1); exit 1; }; }
3945 ac_cv_path_FGREP=$FGREP
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3953 FGREP="$ac_cv_path_FGREP"
3956 test -z "$GREP" && GREP=grep
3976 # Check whether --with-gnu-ld was given.
3977 if test "${with_gnu_ld+set}" = set; then
3978 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3984 if test "$GCC" = yes; then
3985 # Check if gcc -print-prog-name=ld gives a path.
3986 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3987 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3990 # gcc leaves a trailing carriage return which upsets mingw
3991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3996 # Accept absolute paths.
3998 re_direlt='/[^/][^/]*/\.\./'
3999 # Canonicalize the pathname of ld
4000 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4001 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4002 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4004 test -z "$LD" && LD="$ac_prog"
4007 # If it fails, then pretend we aren't using GCC.
4011 # If it is relative, then search for the first ld in PATH.
4015 elif test "$with_gnu_ld" = yes; then
4016 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4017 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4019 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4020 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4022 if test "${lt_cv_path_LD+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test -z "$LD"; then
4026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4027 for ac_dir in $PATH; do
4029 test -z "$ac_dir" && ac_dir=.
4030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4031 lt_cv_path_LD="$ac_dir/$ac_prog"
4032 # Check to see if the program is GNU ld. I'd rather use --version,
4033 # but apparently some variants of GNU ld only accept -v.
4034 # Break only if it was the GNU/non-GNU ld that we prefer.
4035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4036 *GNU* | *'with BFD'*)
4037 test "$with_gnu_ld" != no && break
4040 test "$with_gnu_ld" != yes && break
4047 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4052 if test -n "$LD"; then
4053 { echo "$as_me:$LINENO: result: $LD" >&5
4054 echo "${ECHO_T}$LD" >&6; }
4056 { echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6; }
4059 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4060 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4061 { (exit 1); exit 1; }; }
4062 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4063 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4064 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4068 case `$LD -v 2>&1 </dev/null` in
4069 *GNU* | *'with BFD'*)
4070 lt_cv_prog_gnu_ld=yes
4073 lt_cv_prog_gnu_ld=no
4077 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4078 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4079 with_gnu_ld=$lt_cv_prog_gnu_ld
4089 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4090 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4091 if test "${lt_cv_path_NM+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 if test -n "$NM"; then
4095 # Let the user override the test.
4098 lt_nm_to_check="${ac_tool_prefix}nm"
4099 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4100 lt_nm_to_check="$lt_nm_to_check nm"
4102 for lt_tmp_nm in $lt_nm_to_check; do
4103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4104 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4106 test -z "$ac_dir" && ac_dir=.
4107 tmp_nm="$ac_dir/$lt_tmp_nm"
4108 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4109 # Check to see if the nm accepts a BSD-compat flag.
4110 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4111 # nm: unknown option "B" ignored
4112 # Tru64's nm complains that /dev/null is an invalid object file
4113 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4114 */dev/null* | *'Invalid file or object type'*)
4115 lt_cv_path_NM="$tmp_nm -B"
4119 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4121 lt_cv_path_NM="$tmp_nm -p"
4125 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4126 continue # so that we can try to find one that supports BSD flags
4135 : ${lt_cv_path_NM=no}
4138 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4139 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4140 if test "$lt_cv_path_NM" != "no"; then
4143 # Didn't find any BSD compatible name lister, look for dumpbin.
4144 if test -n "$ac_tool_prefix"; then
4145 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4151 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 if test -n "$DUMPBIN"; then
4155 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 DUMPBIN=$ac_cv_prog_DUMPBIN
4175 if test -n "$DUMPBIN"; then
4176 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4177 echo "${ECHO_T}$DUMPBIN" >&6; }
4179 { echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6; }
4184 test -n "$DUMPBIN" && break
4187 if test -z "$DUMPBIN"; then
4188 ac_ct_DUMPBIN=$DUMPBIN
4189 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4191 # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; ac_word=$2
4193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4195 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 if test -n "$ac_ct_DUMPBIN"; then
4199 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4219 if test -n "$ac_ct_DUMPBIN"; then
4220 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4221 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4223 { echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6; }
4228 test -n "$ac_ct_DUMPBIN" && break
4231 if test "x$ac_ct_DUMPBIN" = x; then
4234 case $cross_compiling:$ac_tool_warned in
4236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4237 whose name does not start with the host triplet. If you think this
4238 configuration is useful to you, please write to autoconf@gnu.org." >&5
4239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4240 whose name does not start with the host triplet. If you think this
4241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4242 ac_tool_warned=yes ;;
4244 DUMPBIN=$ac_ct_DUMPBIN
4249 if test "$DUMPBIN" != ":"; then
4253 test -z "$NM" && NM=nm
4260 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4261 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4262 if test "${lt_cv_nm_interface+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 lt_cv_nm_interface="BSD nm"
4266 echo "int some_variable = 0;" > conftest.$ac_ext
4267 (eval echo "\"\$as_me:4267: $ac_compile\"" >&5)
4268 (eval "$ac_compile" 2>conftest.err)
4269 cat conftest.err >&5
4270 (eval echo "\"\$as_me:4270: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4271 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4272 cat conftest.err >&5
4273 (eval echo "\"\$as_me:4273: output\"" >&5)
4274 cat conftest.out >&5
4275 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4276 lt_cv_nm_interface="MS dumpbin"
4280 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4281 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4283 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4284 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4286 if test "$LN_S" = "ln -s"; then
4287 { echo "$as_me:$LINENO: result: yes" >&5
4288 echo "${ECHO_T}yes" >&6; }
4290 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4291 echo "${ECHO_T}no, using $LN_S" >&6; }
4294 # find the maximum length of command line arguments
4295 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4296 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4297 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 # On DJGPP, this test can blow up pretty badly due to problems in libc
4306 # (any single argument exceeding 2000 bytes causes a buffer overrun
4307 # during glob expansion). Even if it were fixed, the result of this
4308 # check would be larger than it should be.
4309 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4313 # Under GNU Hurd, this test is not required because there is
4314 # no limit to the length of command line arguments.
4315 # Libtool will interpret -1 as no limit whatsoever
4316 lt_cv_sys_max_cmd_len=-1;
4320 # On Win9x/ME, this test blows up -- it succeeds, but takes
4321 # about 5 minutes as the teststring grows exponentially.
4322 # Worse, since 9x/ME are not pre-emptively multitasking,
4323 # you end up with a "frozen" computer, even though with patience
4324 # the test eventually succeeds (with a max line length of 256k).
4325 # Instead, let's just punt: use the minimum linelength reported by
4326 # all of the supported platforms: 8192 (on NT/2K/XP).
4327 lt_cv_sys_max_cmd_len=8192;
4331 # On AmigaOS with pdksh, this test takes hours, literally.
4332 # So we just punt and use a minimum line length of 8192.
4333 lt_cv_sys_max_cmd_len=8192;
4336 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4337 # This has been around since 386BSD, at least. Likely further.
4338 if test -x /sbin/sysctl; then
4339 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4340 elif test -x /usr/sbin/sysctl; then
4341 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4343 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4345 # And add a safety zone
4346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4351 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4352 lt_cv_sys_max_cmd_len=196608
4356 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4357 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4358 # nice to cause kernel panics so lets avoid the loop below.
4359 # First set a reasonable default.
4360 lt_cv_sys_max_cmd_len=16384
4362 if test -x /sbin/sysconfig; then
4363 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4364 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4369 lt_cv_sys_max_cmd_len=102400
4371 sysv5* | sco5v6* | sysv4.2uw2*)
4372 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4373 if test -n "$kargmax"; then
4374 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4376 lt_cv_sys_max_cmd_len=32768
4380 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4381 if test -n "$lt_cv_sys_max_cmd_len"; then
4382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4385 # Make teststring a little bigger before we do anything with it.
4386 # a 1K string should be a reasonable start.
4387 for i in 1 2 3 4 5 6 7 8 ; do
4388 teststring=$teststring$teststring
4390 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4391 # If test is not a shell built-in, we'll probably end up computing a
4392 # maximum length that is only half of the actual maximum length, but
4394 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4395 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4396 test $i != 17 # 1/2 MB should be enough
4399 teststring=$teststring$teststring
4401 # Only check the string length outside the loop.
4402 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4404 # Add a significant safety factor because C++ compilers can tack on
4405 # massive amounts of additional arguments before passing them to the
4406 # linker. It appears as though 1/2 is a usable value.
4407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4414 if test -n $lt_cv_sys_max_cmd_len ; then
4415 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4416 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4418 { echo "$as_me:$LINENO: result: none" >&5
4419 echo "${ECHO_T}none" >&6; }
4421 max_cmd_len=$lt_cv_sys_max_cmd_len
4432 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4433 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4434 # Try some XSI features
4437 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4439 && eval 'test $(( 1 + 1 )) -eq 2 \
4440 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4442 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4443 echo "${ECHO_T}$xsi_shell" >&6; }
4446 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4447 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4449 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4451 && lt_shell_append=yes
4452 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4453 echo "${ECHO_T}$lt_shell_append" >&6; }
4456 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4466 # test EBCDIC or ASCII
4467 case `echo X|tr X '\101'` in
4468 A) # ASCII based system
4469 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4470 lt_SP2NL='tr \040 \012'
4471 lt_NL2SP='tr \015\012 \040\040'
4473 *) # EBCDIC based system
4474 lt_SP2NL='tr \100 \n'
4475 lt_NL2SP='tr \r\n \100\100'
4487 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4488 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4489 if test "${lt_cv_ld_reload_flag+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 lt_cv_ld_reload_flag='-r'
4494 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4495 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4496 reload_flag=$lt_cv_ld_reload_flag
4497 case $reload_flag in
4499 *) reload_flag=" $reload_flag" ;;
4501 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4504 if test "$GCC" = yes; then
4505 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4521 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4522 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4523 if test "${lt_cv_deplibs_check_method+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 lt_cv_file_magic_cmd='$MAGIC_CMD'
4527 lt_cv_file_magic_test_file=
4528 lt_cv_deplibs_check_method='unknown'
4529 # Need to set the preceding variable on all platforms that support
4530 # interlibrary dependencies.
4531 # 'none' -- dependencies not supported.
4532 # `unknown' -- same as none, but documents that we really don't know.
4533 # 'pass_all' -- all dependencies passed with no checks.
4534 # 'test_compile' -- check by making test program.
4535 # 'file_magic [[regex]]' -- check by looking for files in library path
4536 # which responds to the $file_magic_cmd with a given extended regex.
4537 # If you have `file' or equivalent on your system and you're not sure
4538 # whether `pass_all' will *always* work, you probably want this one.
4542 lt_cv_deplibs_check_method=pass_all
4546 lt_cv_deplibs_check_method=pass_all
4550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4551 lt_cv_file_magic_cmd='/usr/bin/file -L'
4552 lt_cv_file_magic_test_file=/shlib/libc.so
4556 # func_win32_libid is a shell function defined in ltmain.sh
4557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4558 lt_cv_file_magic_cmd='func_win32_libid'
4562 # Base MSYS/MinGW do not provide the 'file' command needed by
4563 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4564 # unless we find 'file', for example because we are cross-compiling.
4565 if ( file / ) >/dev/null 2>&1; then
4566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4567 lt_cv_file_magic_cmd='func_win32_libid'
4569 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4570 lt_cv_file_magic_cmd='$OBJDUMP -f'
4574 darwin* | rhapsody*)
4575 lt_cv_deplibs_check_method=pass_all
4578 freebsd* | dragonfly*)
4579 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4582 # Not sure whether the presence of OpenBSD here was a mistake.
4583 # Let's accept both of them until this is cleared up.
4584 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4585 lt_cv_file_magic_cmd=/usr/bin/file
4586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4590 lt_cv_deplibs_check_method=pass_all
4595 lt_cv_deplibs_check_method=pass_all
4598 hpux10.20* | hpux11*)
4599 lt_cv_file_magic_cmd=/usr/bin/file
4602 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4603 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4606 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]'
4607 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4610 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4611 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4617 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4621 irix5* | irix6* | nonstopux*)
4623 *-32|*"-32 ") libmagic=32-bit;;
4624 *-n32|*"-n32 ") libmagic=N32;;
4625 *-64|*"-64 ") libmagic=64-bit;;
4626 *) libmagic=never-match;;
4628 lt_cv_deplibs_check_method=pass_all
4631 # This must be Linux ELF.
4632 linux* | k*bsd*-gnu)
4633 lt_cv_deplibs_check_method=pass_all
4637 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4646 lt_cv_file_magic_cmd=/usr/bin/file
4647 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4651 lt_cv_deplibs_check_method=pass_all
4655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4662 osf3* | osf4* | osf5*)
4663 lt_cv_deplibs_check_method=pass_all
4667 lt_cv_deplibs_check_method=pass_all
4671 lt_cv_deplibs_check_method=pass_all
4674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4675 lt_cv_deplibs_check_method=pass_all
4679 case $host_vendor in
4681 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]'
4682 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4685 lt_cv_deplibs_check_method=pass_all
4688 lt_cv_file_magic_cmd='/bin/file'
4689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4692 lt_cv_file_magic_cmd='/bin/file'
4693 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4694 lt_cv_file_magic_test_file=/lib/libc.so
4697 lt_cv_deplibs_check_method=pass_all
4700 lt_cv_deplibs_check_method=pass_all
4706 lt_cv_deplibs_check_method=pass_all
4711 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4712 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4713 file_magic_cmd=$lt_cv_file_magic_cmd
4714 deplibs_check_method=$lt_cv_deplibs_check_method
4715 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}ar; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_AR+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if test -n "$AR"; then
4737 ac_cv_prog_AR="$AR" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_AR="${ac_tool_prefix}ar"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 if test -n "$AR"; then
4758 { echo "$as_me:$LINENO: result: $AR" >&5
4759 echo "${ECHO_T}$AR" >&6; }
4761 { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4767 if test -z "$ac_cv_prog_AR"; then
4769 # Extract the first word of "ar", so it can be a program name with args.
4770 set dummy ar; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 if test -n "$ac_ct_AR"; then
4777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ac_ct_AR="ar"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4797 if test -n "$ac_ct_AR"; then
4798 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4799 echo "${ECHO_T}$ac_ct_AR" >&6; }
4801 { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4805 if test "x$ac_ct_AR" = x; then
4808 case $cross_compiling:$ac_tool_warned in
4810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4811 whose name does not start with the host triplet. If you think this
4812 configuration is useful to you, please write to autoconf@gnu.org." >&5
4813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4814 whose name does not start with the host triplet. If you think this
4815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4816 ac_tool_warned=yes ;;
4824 test -z "$AR" && AR=ar
4825 test -z "$AR_FLAGS" && AR_FLAGS=cru
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}strip; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_prog_STRIP+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 if test -n "$STRIP"; then
4846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 STRIP=$ac_cv_prog_STRIP
4866 if test -n "$STRIP"; then
4867 { echo "$as_me:$LINENO: result: $STRIP" >&5
4868 echo "${ECHO_T}$STRIP" >&6; }
4870 { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4876 if test -z "$ac_cv_prog_STRIP"; then
4878 # Extract the first word of "strip", so it can be a program name with args.
4879 set dummy strip; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test -n "$ac_ct_STRIP"; then
4886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_ac_ct_STRIP="strip"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4906 if test -n "$ac_ct_STRIP"; then
4907 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4908 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4910 { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4914 if test "x$ac_ct_STRIP" = x; then
4917 case $cross_compiling:$ac_tool_warned in
4919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4920 whose name does not start with the host triplet. If you think this
4921 configuration is useful to you, please write to autoconf@gnu.org." >&5
4922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4923 whose name does not start with the host triplet. If you think this
4924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4925 ac_tool_warned=yes ;;
4930 STRIP="$ac_cv_prog_STRIP"
4933 test -z "$STRIP" && STRIP=:
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945 if test "${ac_cv_prog_RANLIB+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 if test -n "$RANLIB"; then
4949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 RANLIB=$ac_cv_prog_RANLIB
4969 if test -n "$RANLIB"; then
4970 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4971 echo "${ECHO_T}$RANLIB" >&6; }
4973 { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4979 if test -z "$ac_cv_prog_RANLIB"; then
4980 ac_ct_RANLIB=$RANLIB
4981 # Extract the first word of "ranlib", so it can be a program name with args.
4982 set dummy ranlib; ac_word=$2
4983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 if test -n "$ac_ct_RANLIB"; then
4989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998 ac_cv_prog_ac_ct_RANLIB="ranlib"
4999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5009 if test -n "$ac_ct_RANLIB"; then
5010 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5011 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5013 { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5017 if test "x$ac_ct_RANLIB" = x; then
5020 case $cross_compiling:$ac_tool_warned in
5022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet. If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&5
5025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5026 whose name does not start with the host triplet. If you think this
5027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5028 ac_tool_warned=yes ;;
5030 RANLIB=$ac_ct_RANLIB
5033 RANLIB="$ac_cv_prog_RANLIB"
5036 test -z "$RANLIB" && RANLIB=:
5043 # Determine commands to create old-style static archives.
5044 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5045 old_postinstall_cmds='chmod 644 $oldlib'
5046 old_postuninstall_cmds=
5048 if test -n "$RANLIB"; then
5051 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5054 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5057 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5093 # If no C compiler was specified, use CC.
5096 # If no C compiler flags were specified, use CFLAGS.
5097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5099 # Allow CC to be a program name with arguments.
5103 # Check for command to grab the raw symbol name followed by C symbol from nm.
5104 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5105 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5106 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 # These are sane defaults that work on at least a few old systems.
5111 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5113 # Character class describing NM global symbol codes.
5114 symcode='[BCDEGRST]'
5116 # Regexp to match symbols that can be accessed directly from C.
5117 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5119 # Define system-specific variables.
5124 cygwin* | mingw* | pw32*)
5125 symcode='[ABCDGISTW]'
5128 if test "$host_cpu" = ia64; then
5129 symcode='[ABCDEGRST]'
5133 symcode='[BCDEGRST]'
5136 symcode='[BCDEGQRST]'
5147 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5155 # If we're using GNU nm, then use its standard symbol codes.
5156 case `$NM -V 2>&1` in
5157 *GNU* | *'with BFD'*)
5158 symcode='[ABCDGIRSTW]' ;;
5161 # Transform an extracted symbol line into a proper C declaration.
5162 # Some systems (esp. on ia64) link data and code symbols differently,
5163 # so use this general approach.
5164 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5166 # Transform an extracted symbol line into symbol name and symbol address
5167 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5168 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'"
5170 # Handle CRLF in mingw tool chain
5174 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5178 # Try without a prefix underscore, then with it.
5179 for ac_symprfx in "" "_"; do
5181 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5182 symxfrm="\\1 $ac_symprfx\\2 \\2"
5184 # Write the raw and C identifiers.
5185 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5186 # Fake it for dumpbin and say T for any non-static function
5187 # and D for any global variable.
5188 # Also find C++ and __fastcall symbols from MSVC++,
5189 # which start with @ or ?.
5190 lt_cv_sys_global_symbol_pipe="$AWK '"\
5191 " {last_section=section; section=\$ 3};"\
5192 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5193 " \$ 0!~/External *\|/{next};"\
5194 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5195 " {if(hide[section]) next};"\
5196 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5197 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5198 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5199 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5200 " ' prfx=^$ac_symprfx"
5202 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5205 # Check to see that the pipe works correctly.
5209 cat > conftest.$ac_ext <<_LT_EOF
5214 void nm_test_func(void);
5215 void nm_test_func(void){}
5219 int main(){nm_test_var='a';nm_test_func();return(0);}
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; then
5227 # Now try to grab the symbols.
5229 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } && test -s "$nlist"; then
5234 # Try sorting and uniquifying the output.
5235 if sort "$nlist" | uniq > "$nlist"T; then
5236 mv -f "$nlist"T "$nlist"
5241 # Make sure that we snagged all the symbols we need.
5242 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5243 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5244 cat <<_LT_EOF > conftest.$ac_ext
5250 # Now generate the symbol file.
5251 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5253 cat <<_LT_EOF >> conftest.$ac_ext
5255 /* The mapping between symbol names and symbols. */
5260 lt__PROGRAM__LTX_preloaded_symbols[] =
5262 { "@PROGRAM@", (void *) 0 },
5264 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5265 cat <<\_LT_EOF >> conftest.$ac_ext
5269 /* This works around a problem in FreeBSD linker */
5270 #ifdef FREEBSD_WORKAROUND
5271 static const void *lt_preloaded_setup() {
5272 return lt__PROGRAM__LTX_preloaded_symbols;
5280 # Now try linking the two files.
5281 mv conftest.$ac_objext conftstm.$ac_objext
5282 lt_save_LIBS="$LIBS"
5283 lt_save_CFLAGS="$CFLAGS"
5284 LIBS="conftstm.$ac_objext"
5285 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5287 (eval $ac_link) 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5293 LIBS="$lt_save_LIBS"
5294 CFLAGS="$lt_save_CFLAGS"
5296 echo "cannot find nm_test_func in $nlist" >&5
5299 echo "cannot find nm_test_var in $nlist" >&5
5302 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5305 echo "$progname: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5308 rm -rf conftest* conftst*
5310 # Do not use the global_symbol_pipe unless it works.
5311 if test "$pipe_works" = yes; then
5314 lt_cv_sys_global_symbol_pipe=
5320 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5321 lt_cv_sys_global_symbol_to_cdecl=
5323 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5324 { echo "$as_me:$LINENO: result: failed" >&5
5325 echo "${ECHO_T}failed" >&6; }
5327 { echo "$as_me:$LINENO: result: ok" >&5
5328 echo "${ECHO_T}ok" >&6; }
5353 # Check whether --enable-libtool-lock was given.
5354 if test "${enable_libtool_lock+set}" = set; then
5355 enableval=$enable_libtool_lock;
5358 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5360 # Some flags need to be propagated to the compiler or linker for good
5364 # Find out which ABI we are using.
5365 echo 'int i;' > conftest.$ac_ext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; then
5371 case `/usr/bin/file conftest.$ac_objext` in
5383 # Find out which ABI we are using.
5384 echo '#line 5384 "configure"' > conftest.$ac_ext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; then
5390 if test "$lt_cv_prog_gnu_ld" = yes; then
5391 case `/usr/bin/file conftest.$ac_objext` in
5393 LD="${LD-ld} -melf32bsmip"
5396 LD="${LD-ld} -melf32bmipn32"
5399 LD="${LD-ld} -melf64bmip"
5403 case `/usr/bin/file conftest.$ac_objext` in
5419 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5420 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5421 # Find out which ABI we are using.
5422 echo 'int i;' > conftest.$ac_ext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; then
5428 case `/usr/bin/file conftest.o` in
5431 x86_64-*kfreebsd*-gnu)
5432 LD="${LD-ld} -m elf_i386_fbsd"
5435 LD="${LD-ld} -m elf_i386"
5437 ppc64-*linux*|powerpc64-*linux*)
5438 LD="${LD-ld} -m elf32ppclinux"
5441 LD="${LD-ld} -m elf_s390"
5444 LD="${LD-ld} -m elf32_sparc"
5450 x86_64-*kfreebsd*-gnu)
5451 LD="${LD-ld} -m elf_x86_64_fbsd"
5454 LD="${LD-ld} -m elf_x86_64"
5456 ppc*-*linux*|powerpc*-*linux*)
5457 LD="${LD-ld} -m elf64ppc"
5459 s390*-*linux*|s390*-*tpf*)
5460 LD="${LD-ld} -m elf64_s390"
5463 LD="${LD-ld} -m elf64_sparc"
5473 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5474 SAVE_CFLAGS="$CFLAGS"
5475 CFLAGS="$CFLAGS -belf"
5476 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5477 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5478 if test "${lt_cv_cc_needs_belf+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487 cat >conftest.$ac_ext <<_ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (ac_try="$ac_link"
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_link") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest$ac_exeext &&
5519 $as_test_x conftest$ac_exeext; then
5520 lt_cv_cc_needs_belf=yes
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 lt_cv_cc_needs_belf=no
5528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5529 conftest$ac_exeext conftest.$ac_ext
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5538 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5539 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5540 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5541 CFLAGS="$SAVE_CFLAGS"
5545 # Find out which ABI we are using.
5546 echo 'int i;' > conftest.$ac_ext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548 (eval $ac_compile) 2>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; then
5552 case `/usr/bin/file conftest.o` in
5554 case $lt_cv_prog_gnu_ld in
5555 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5557 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5569 need_locks="$enable_libtool_lock"
5573 rhapsody* | darwin*)
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5579 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 if test -n "$DSYMUTIL"; then
5583 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5603 if test -n "$DSYMUTIL"; then
5604 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5605 echo "${ECHO_T}$DSYMUTIL" >&6; }
5607 { echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6; }
5613 if test -z "$ac_cv_prog_DSYMUTIL"; then
5614 ac_ct_DSYMUTIL=$DSYMUTIL
5615 # Extract the first word of "dsymutil", so it can be a program name with args.
5616 set dummy dsymutil; ac_word=$2
5617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5619 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 if test -n "$ac_ct_DSYMUTIL"; then
5623 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5643 if test -n "$ac_ct_DSYMUTIL"; then
5644 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5645 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5647 { echo "$as_me:$LINENO: result: no" >&5
5648 echo "${ECHO_T}no" >&6; }
5651 if test "x$ac_ct_DSYMUTIL" = x; then
5654 case $cross_compiling:$ac_tool_warned in
5656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5657 whose name does not start with the host triplet. If you think this
5658 configuration is useful to you, please write to autoconf@gnu.org." >&5
5659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet. If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5662 ac_tool_warned=yes ;;
5664 DSYMUTIL=$ac_ct_DSYMUTIL
5667 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5670 if test -n "$ac_tool_prefix"; then
5671 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5672 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5675 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 if test -n "$NMEDIT"; then
5679 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 NMEDIT=$ac_cv_prog_NMEDIT
5699 if test -n "$NMEDIT"; then
5700 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5701 echo "${ECHO_T}$NMEDIT" >&6; }
5703 { echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6; }
5709 if test -z "$ac_cv_prog_NMEDIT"; then
5710 ac_ct_NMEDIT=$NMEDIT
5711 # Extract the first word of "nmedit", so it can be a program name with args.
5712 set dummy nmedit; ac_word=$2
5713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5715 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 if test -n "$ac_ct_NMEDIT"; then
5719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5739 if test -n "$ac_ct_NMEDIT"; then
5740 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5741 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5743 { echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6; }
5747 if test "x$ac_ct_NMEDIT" = x; then
5750 case $cross_compiling:$ac_tool_warned in
5752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5753 whose name does not start with the host triplet. If you think this
5754 configuration is useful to you, please write to autoconf@gnu.org." >&5
5755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5756 whose name does not start with the host triplet. If you think this
5757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5758 ac_tool_warned=yes ;;
5760 NMEDIT=$ac_ct_NMEDIT
5763 NMEDIT="$ac_cv_prog_NMEDIT"
5766 if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5768 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5771 if test "${ac_cv_prog_LIPO+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 if test -n "$LIPO"; then
5775 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 LIPO=$ac_cv_prog_LIPO
5795 if test -n "$LIPO"; then
5796 { echo "$as_me:$LINENO: result: $LIPO" >&5
5797 echo "${ECHO_T}$LIPO" >&6; }
5799 { echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6; }
5805 if test -z "$ac_cv_prog_LIPO"; then
5807 # Extract the first word of "lipo", so it can be a program name with args.
5808 set dummy lipo; ac_word=$2
5809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5811 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 if test -n "$ac_ct_LIPO"; then
5815 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_ac_ct_LIPO="lipo"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5835 if test -n "$ac_ct_LIPO"; then
5836 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5837 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5839 { echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6; }
5843 if test "x$ac_ct_LIPO" = x; then
5846 case $cross_compiling:$ac_tool_warned in
5848 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5849 whose name does not start with the host triplet. If you think this
5850 configuration is useful to you, please write to autoconf@gnu.org." >&5
5851 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5852 whose name does not start with the host triplet. If you think this
5853 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5854 ac_tool_warned=yes ;;
5859 LIPO="$ac_cv_prog_LIPO"
5862 if test -n "$ac_tool_prefix"; then
5863 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}otool; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_OTOOL+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test -n "$OTOOL"; then
5871 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 OTOOL=$ac_cv_prog_OTOOL
5891 if test -n "$OTOOL"; then
5892 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5893 echo "${ECHO_T}$OTOOL" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5901 if test -z "$ac_cv_prog_OTOOL"; then
5903 # Extract the first word of "otool", so it can be a program name with args.
5904 set dummy otool; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 if test -n "$ac_ct_OTOOL"; then
5911 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_prog_ac_ct_OTOOL="otool"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5931 if test -n "$ac_ct_OTOOL"; then
5932 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5933 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5935 { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5939 if test "x$ac_ct_OTOOL" = x; then
5942 case $cross_compiling:$ac_tool_warned in
5944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5945 whose name does not start with the host triplet. If you think this
5946 configuration is useful to you, please write to autoconf@gnu.org." >&5
5947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5948 whose name does not start with the host triplet. If you think this
5949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5950 ac_tool_warned=yes ;;
5955 OTOOL="$ac_cv_prog_OTOOL"
5958 if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 if test -n "$OTOOL64"; then
5967 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 OTOOL64=$ac_cv_prog_OTOOL64
5987 if test -n "$OTOOL64"; then
5988 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5989 echo "${ECHO_T}$OTOOL64" >&6; }
5991 { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5997 if test -z "$ac_cv_prog_OTOOL64"; then
5998 ac_ct_OTOOL64=$OTOOL64
5999 # Extract the first word of "otool64", so it can be a program name with args.
6000 set dummy otool64; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 if test -n "$ac_ct_OTOOL64"; then
6007 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_ac_ct_OTOOL64="otool64"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6027 if test -n "$ac_ct_OTOOL64"; then
6028 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6029 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6035 if test "x$ac_ct_OTOOL64" = x; then
6038 case $cross_compiling:$ac_tool_warned in
6040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6041 whose name does not start with the host triplet. If you think this
6042 configuration is useful to you, please write to autoconf@gnu.org." >&5
6043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6044 whose name does not start with the host triplet. If you think this
6045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6046 ac_tool_warned=yes ;;
6048 OTOOL64=$ac_ct_OTOOL64
6051 OTOOL64="$ac_cv_prog_OTOOL64"
6080 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6081 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6082 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 lt_cv_apple_cc_single_mod=no
6086 if test -z "${LT_MULTI_MODULE}"; then
6087 # By default we will add the -single_module flag. You can override
6088 # by either setting the environment variable LT_MULTI_MODULE
6089 # non-empty at configure time, or by adding -multi_module to the
6091 rm -rf libconftest.dylib*
6092 echo "int foo(void){return 1;}" > conftest.c
6093 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6094 -dynamiclib -Wl,-single_module conftest.c" >&5
6095 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6096 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6098 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6099 lt_cv_apple_cc_single_mod=yes
6101 cat conftest.err >&5
6103 rm -rf libconftest.dylib*
6107 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6108 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6109 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6110 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6111 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 lt_cv_ld_exported_symbols_list=no
6115 save_LDFLAGS=$LDFLAGS
6116 echo "_main" > conftest.sym
6117 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6118 cat >conftest.$ac_ext <<_ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (ac_try="$ac_link"
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_link") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest$ac_exeext &&
6150 $as_test_x conftest$ac_exeext; then
6151 lt_cv_ld_exported_symbols_list=yes
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 lt_cv_ld_exported_symbols_list=no
6159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6160 conftest$ac_exeext conftest.$ac_ext
6161 LDFLAGS="$save_LDFLAGS"
6164 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6165 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6167 rhapsody* | darwin1.[012])
6168 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6171 darwin*) # darwin 5.x on
6172 # if running on 10.5 or later, the deployment target defaults
6173 # to the OS version, if on x86, and 10.4, the deployment
6174 # target defaults to 10.4. Don't you love it?
6175 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6176 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6181 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6185 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6186 _lt_dar_single_mod='$single_module'
6188 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6189 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6191 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6193 if test "$DSYMUTIL" != ":"; then
6194 _lt_dsymutil='~$DSYMUTIL $lib || :'
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6207 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6208 # On Suns, sometimes $CPP names a directory.
6209 if test -n "$CPP" && test -d "$CPP"; then
6212 if test -z "$CPP"; then
6213 if test "${ac_cv_prog_CPP+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 # Double quotes because CPP needs to be expanded
6217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6220 for ac_c_preproc_warn_flag in '' yes
6222 # Use a header file that comes with gcc, so configuring glibc
6223 # with a fresh cross-compiler works.
6224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225 # <limits.h> exists even on freestanding compilers.
6226 # On the NeXT, cc -E runs the code through the compiler's parser,
6227 # not just through cpp. "Syntax error" is here to catch this case.
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6235 # include <limits.h>
6237 # include <assert.h>
6241 if { (ac_try="$ac_cpp conftest.$ac_ext"
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } >/dev/null && {
6254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 # Broken: fails on valid input.
6266 rm -f conftest.err conftest.$ac_ext
6268 # OK, works on sane cases. Now check whether nonexistent headers
6269 # can be detected and how.
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <ac_nonexistent.h>
6278 if { (ac_try="$ac_cpp conftest.$ac_ext"
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } >/dev/null && {
6291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6294 # Broken: success on invalid input.
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 # Passes both tests.
6305 rm -f conftest.err conftest.$ac_ext
6308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6309 rm -f conftest.err conftest.$ac_ext
6310 if $ac_preproc_ok; then
6322 { echo "$as_me:$LINENO: result: $CPP" >&5
6323 echo "${ECHO_T}$CPP" >&6; }
6325 for ac_c_preproc_warn_flag in '' yes
6327 # Use a header file that comes with gcc, so configuring glibc
6328 # with a fresh cross-compiler works.
6329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6330 # <limits.h> exists even on freestanding compilers.
6331 # On the NeXT, cc -E runs the code through the compiler's parser,
6332 # not just through cpp. "Syntax error" is here to catch this case.
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6340 # include <limits.h>
6342 # include <assert.h>
6346 if { (ac_try="$ac_cpp conftest.$ac_ext"
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } >/dev/null && {
6359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 # Broken: fails on valid input.
6371 rm -f conftest.err conftest.$ac_ext
6373 # OK, works on sane cases. Now check whether nonexistent headers
6374 # can be detected and how.
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 #include <ac_nonexistent.h>
6383 if { (ac_try="$ac_cpp conftest.$ac_ext"
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } >/dev/null && {
6396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6397 test ! -s conftest.err
6399 # Broken: success on invalid input.
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 # Passes both tests.
6410 rm -f conftest.err conftest.$ac_ext
6413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6414 rm -f conftest.err conftest.$ac_ext
6415 if $ac_preproc_ok; then
6418 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6419 See \`config.log' for more details." >&5
6420 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6421 See \`config.log' for more details." >&2;}
6422 { (exit 1); exit 1; }; }
6426 ac_cpp='$CPP $CPPFLAGS'
6427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6432 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6433 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6434 if test "${ac_cv_header_stdc+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6456 rm -f conftest.$ac_objext
6457 if { (ac_try="$ac_compile"
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463 (eval "$ac_compile") 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } && {
6470 test -z "$ac_c_werror_flag" ||
6471 test ! -s conftest.err
6472 } && test -s conftest.$ac_objext; then
6473 ac_cv_header_stdc=yes
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_cv_header_stdc=no
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 if test $ac_cv_header_stdc = yes; then
6484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495 $EGREP "memchr" >/dev/null 2>&1; then
6498 ac_cv_header_stdc=no
6504 if test $ac_cv_header_stdc = yes; then
6505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6506 cat >conftest.$ac_ext <<_ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6516 $EGREP "free" >/dev/null 2>&1; then
6519 ac_cv_header_stdc=no
6525 if test $ac_cv_header_stdc = yes; then
6526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6527 if test "$cross_compiling" = yes; then
6530 cat >conftest.$ac_ext <<_ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6538 #if ((' ' & 0x0FF) == 0x020)
6539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6542 # define ISLOWER(c) \
6543 (('a' <= (c) && (c) <= 'i') \
6544 || ('j' <= (c) && (c) <= 'r') \
6545 || ('s' <= (c) && (c) <= 'z'))
6546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6554 for (i = 0; i < 256; i++)
6555 if (XOR (islower (i), ISLOWER (i))
6556 || toupper (i) != TOUPPER (i))
6561 rm -f conftest$ac_exeext
6562 if { (ac_try="$ac_link"
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_link") 2>&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6572 { (case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_try") 2>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6583 echo "$as_me: program exited with status $ac_status" >&5
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6588 ac_cv_header_stdc=no
6590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6596 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6597 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6598 if test $ac_cv_header_stdc = yes; then
6600 cat >>confdefs.h <<\_ACEOF
6601 #define STDC_HEADERS 1
6606 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6616 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6617 inttypes.h stdint.h unistd.h
6619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 $ac_includes_default
6633 #include <$ac_header>
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 eval "$as_ac_Header=yes"
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 eval "$as_ac_Header=no"
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 ac_res=`eval echo '${'$as_ac_Header'}'`
6663 { echo "$as_me:$LINENO: result: $ac_res" >&5
6664 echo "${ECHO_T}$ac_res" >&6; }
6665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6666 cat >>confdefs.h <<_ACEOF
6667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6676 for ac_header in dlfcn.h
6678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 $ac_includes_default
6692 #include <$ac_header>
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6703 grep -v '^ *+' conftest.er1 >conftest.err
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && {
6708 test -z "$ac_c_werror_flag" ||
6709 test ! -s conftest.err
6710 } && test -s conftest.$ac_objext; then
6711 eval "$as_ac_Header=yes"
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 eval "$as_ac_Header=no"
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 ac_res=`eval echo '${'$as_ac_Header'}'`
6722 { echo "$as_me:$LINENO: result: $ac_res" >&5
6723 echo "${ECHO_T}$ac_res" >&6; }
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6745 # Check whether --enable-shared was given.
6746 if test "${enable_shared+set}" = set; then
6747 enableval=$enable_shared; p=${PACKAGE-default}
6749 yes) enable_shared=yes ;;
6750 no) enable_shared=no ;;
6753 # Look at the argument we got. We use all the common list separators.
6754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6755 for pkg in $enableval; do
6757 if test "X$pkg" = "X$p"; then
6776 # Check whether --enable-static was given.
6777 if test "${enable_static+set}" = set; then
6778 enableval=$enable_static; p=${PACKAGE-default}
6780 yes) enable_static=yes ;;
6781 no) enable_static=no ;;
6784 # Look at the argument we got. We use all the common list separators.
6785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6786 for pkg in $enableval; do
6788 if test "X$pkg" = "X$p"; then
6808 # Check whether --with-pic was given.
6809 if test "${with_pic+set}" = set; then
6810 withval=$with_pic; pic_mode="$withval"
6816 test -z "$pic_mode" && pic_mode=default
6824 # Check whether --enable-fast-install was given.
6825 if test "${enable_fast_install+set}" = set; then
6826 enableval=$enable_fast_install; p=${PACKAGE-default}
6828 yes) enable_fast_install=yes ;;
6829 no) enable_fast_install=no ;;
6831 enable_fast_install=no
6832 # Look at the argument we got. We use all the common list separators.
6833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6834 for pkg in $enableval; do
6836 if test "X$pkg" = "X$p"; then
6837 enable_fast_install=yes
6844 enable_fast_install=yes
6857 # This can be used to rebuild libtool when needed
6858 LIBTOOL_DEPS="$ltmain"
6860 # Always use our own libtool.
6861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6887 test -z "$LN_S" && LN_S="ln -s"
6902 if test -n "${ZSH_VERSION+set}" ; then
6903 setopt NO_GLOB_SUBST
6906 { echo "$as_me:$LINENO: checking for objdir" >&5
6907 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6908 if test "${lt_cv_objdir+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 rm -f .libs 2>/dev/null
6912 mkdir .libs 2>/dev/null
6913 if test -d .libs; then
6916 # MS-DOS does not allow filenames that begin with a dot.
6919 rmdir .libs 2>/dev/null
6921 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6922 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6923 objdir=$lt_cv_objdir
6929 cat >>confdefs.h <<_ACEOF
6930 #define LT_OBJDIR "$lt_cv_objdir/"
6951 # AIX sometimes has problems with the GCC collect2 program. For some
6952 # reason, if we set the COLLECT_NAMES environment variable, the problems
6953 # vanish in a puff of smoke.
6954 if test "X${COLLECT_NAMES+set}" != Xset; then
6956 export COLLECT_NAMES
6961 # Sed substitution that helps us do robust quoting. It backslashifies
6962 # metacharacters that are still active within double-quoted strings.
6963 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6965 # Same as above, but do not quote variable references.
6966 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6968 # Sed substitution to delay expansion of an escaped shell variable in a
6969 # double_quote_subst'ed string.
6970 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6972 # Sed substitution to delay expansion of an escaped single quote.
6973 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6975 # Sed substitution to avoid accidental globbing in evaled expressions
6976 no_glob_subst='s/\*/\\\*/g'
6980 can_build_shared=yes
6982 # All known linkers require a `.a' archive for static linking (except MSVC,
6983 # which needs '.lib').
6986 with_gnu_ld="$lt_cv_prog_gnu_ld"
6989 old_CFLAGS="$CFLAGS"
6991 # Set sane defaults for various variables
6992 test -z "$CC" && CC=cc
6993 test -z "$LTCC" && LTCC=$CC
6994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6995 test -z "$LD" && LD=ld
6996 test -z "$ac_objext" && ac_objext=o
6998 for cc_temp in $compiler""; do
7000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7006 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7009 # Only perform the check for file, if the check method requires it
7010 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7011 case $deplibs_check_method in
7013 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7014 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7015 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7016 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7024 lt_save_MAGIC_CMD="$MAGIC_CMD"
7025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7027 for ac_dir in $ac_dummy; do
7029 test -z "$ac_dir" && ac_dir=.
7030 if test -f $ac_dir/${ac_tool_prefix}file; then
7031 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7032 if test -n "$file_magic_test_file"; then
7033 case $deplibs_check_method in
7035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7038 $EGREP "$file_magic_regex" > /dev/null; then
7043 *** Warning: the command libtool uses to detect shared libraries,
7044 *** $file_magic_cmd, produces output that libtool cannot recognize.
7045 *** The result is that libtool may fail to recognize shared libraries
7046 *** as such. This will affect the creation of libtool libraries that
7047 *** depend on shared libraries, but programs linked with such libtool
7048 *** libraries will work regardless of this problem. Nevertheless, you
7049 *** may want to report the problem to your system manager and/or to
7050 *** bug-libtool@gnu.org
7060 MAGIC_CMD="$lt_save_MAGIC_CMD"
7065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7066 if test -n "$MAGIC_CMD"; then
7067 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7068 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7078 if test -z "$lt_cv_path_MAGIC_CMD"; then
7079 if test -n "$ac_tool_prefix"; then
7080 { echo "$as_me:$LINENO: checking for file" >&5
7081 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7090 lt_save_MAGIC_CMD="$MAGIC_CMD"
7091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7093 for ac_dir in $ac_dummy; do
7095 test -z "$ac_dir" && ac_dir=.
7096 if test -f $ac_dir/file; then
7097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7098 if test -n "$file_magic_test_file"; then
7099 case $deplibs_check_method in
7101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7104 $EGREP "$file_magic_regex" > /dev/null; then
7109 *** Warning: the command libtool uses to detect shared libraries,
7110 *** $file_magic_cmd, produces output that libtool cannot recognize.
7111 *** The result is that libtool may fail to recognize shared libraries
7112 *** as such. This will affect the creation of libtool libraries that
7113 *** depend on shared libraries, but programs linked with such libtool
7114 *** libraries will work regardless of this problem. Nevertheless, you
7115 *** may want to report the problem to your system manager and/or to
7116 *** bug-libtool@gnu.org
7126 MAGIC_CMD="$lt_save_MAGIC_CMD"
7131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7132 if test -n "$MAGIC_CMD"; then
7133 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7134 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7136 { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7150 # Use C for the default configuration in the libtool script
7154 ac_cpp='$CPP $CPPFLAGS'
7155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160 # Source file extension for C test sources.
7163 # Object file extension for compiled C test sources.
7167 # Code to be used in simple compile tests
7168 lt_simple_compile_test_code="int some_variable = 0;"
7170 # Code to be used in simple link tests
7171 lt_simple_link_test_code='int main(){return(0);}'
7179 # If no C compiler was specified, use CC.
7182 # If no C compiler flags were specified, use CFLAGS.
7183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7185 # Allow CC to be a program name with arguments.
7188 # Save the default compiler, since it gets overwritten when the other
7189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7190 compiler_DEFAULT=$CC
7192 # save warnings/boilerplate of simple test code
7193 ac_outfile=conftest.$ac_objext
7194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7196 _lt_compiler_boilerplate=`cat conftest.err`
7199 ac_outfile=conftest.$ac_objext
7200 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7202 _lt_linker_boilerplate=`cat conftest.err`
7206 if test -n "$compiler"; then
7208 lt_prog_compiler_no_builtin_flag=
7210 if test "$GCC" = yes; then
7211 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7213 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7214 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7215 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 lt_cv_prog_compiler_rtti_exceptions=no
7219 ac_outfile=conftest.$ac_objext
7220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7221 lt_compiler_flag="-fno-rtti -fno-exceptions"
7222 # Insert the option either (1) after the last *FLAGS variable, or
7223 # (2) before a word containing "conftest.", or (3) at the end.
7224 # Note that $ac_compile itself does not contain backslashes and begins
7225 # with a dollar sign (not a hyphen), so the echo should work correctly.
7226 # The option is referenced via a variable to avoid confusing sed.
7227 lt_compile=`echo "$ac_compile" | $SED \
7228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7230 -e 's:$: $lt_compiler_flag:'`
7231 (eval echo "\"\$as_me:7231: $lt_compile\"" >&5)
7232 (eval "$lt_compile" 2>conftest.err)
7234 cat conftest.err >&5
7235 echo "$as_me:7235: \$? = $ac_status" >&5
7236 if (exit $ac_status) && test -s "$ac_outfile"; then
7237 # The compiler can only warn and ignore the option if not recognized
7238 # So say no if there are warnings other than the usual output.
7239 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7242 lt_cv_prog_compiler_rtti_exceptions=yes
7248 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7249 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7251 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7252 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7264 lt_prog_compiler_wl=
7265 lt_prog_compiler_pic=
7266 lt_prog_compiler_static=
7268 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7271 if test "$GCC" = yes; then
7272 lt_prog_compiler_wl='-Wl,'
7273 lt_prog_compiler_static='-static'
7277 # All AIX code is PIC.
7278 if test "$host_cpu" = ia64; then
7279 # AIX 5 now supports IA64 processor
7280 lt_prog_compiler_static='-Bstatic'
7287 # see comment about AmigaOS4 .so support
7288 lt_prog_compiler_pic='-fPIC'
7291 # FIXME: we need at least 68020 code to build shared libraries, but
7292 # adding the `-m68020' flag to GCC prevents building anything better,
7294 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7299 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7300 # PIC is the default for these OSes.
7303 mingw* | cygwin* | pw32* | os2*)
7304 # This hack is so that the source file can tell whether it is being
7305 # built for inclusion in a dll (and should export symbols for example).
7306 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7307 # (--disable-auto-import) libraries
7308 lt_prog_compiler_pic='-DDLL_EXPORT'
7311 darwin* | rhapsody*)
7312 # PIC is the default on this platform
7313 # Common symbols not allowed in MH_DYLIB files
7314 lt_prog_compiler_pic='-fno-common'
7318 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7325 lt_prog_compiler_pic='-fPIC'
7331 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7332 # Instead, we relocate shared libraries at runtime.
7336 # Just because we use GCC doesn't mean we suddenly get shared libraries
7337 # on systems that don't support them.
7338 lt_prog_compiler_can_build_shared=no
7343 # QNX uses GNU C++, but need to define -shared option too, otherwise
7345 lt_prog_compiler_pic='-fPIC -shared'
7349 if test -d /usr/nec; then
7350 lt_prog_compiler_pic=-Kconform_pic
7355 lt_prog_compiler_pic='-fPIC'
7359 # PORTME Check for flag to pass linker flags through the system compiler.
7362 lt_prog_compiler_wl='-Wl,'
7363 if test "$host_cpu" = ia64; then
7364 # AIX 5 now supports IA64 processor
7365 lt_prog_compiler_static='-Bstatic'
7367 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7371 mingw* | cygwin* | pw32* | os2*)
7372 # This hack is so that the source file can tell whether it is being
7373 # built for inclusion in a dll (and should export symbols for example).
7374 lt_prog_compiler_pic='-DDLL_EXPORT'
7377 hpux9* | hpux10* | hpux11*)
7378 lt_prog_compiler_wl='-Wl,'
7379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7386 lt_prog_compiler_pic='+Z'
7389 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7390 lt_prog_compiler_static='${wl}-a ${wl}archive'
7393 irix5* | irix6* | nonstopux*)
7394 lt_prog_compiler_wl='-Wl,'
7395 # PIC (with -KPIC) is the default.
7396 lt_prog_compiler_static='-non_shared'
7399 linux* | k*bsd*-gnu)
7400 case $cc_basename in
7401 icc* | ecc* | ifort*)
7402 lt_prog_compiler_wl='-Wl,'
7403 lt_prog_compiler_pic='-KPIC'
7404 lt_prog_compiler_static='-static'
7406 pgcc* | pgf77* | pgf90* | pgf95*)
7407 # Portland Group compilers (*not* the Pentium gcc compiler,
7408 # which looks to be a dead project)
7409 lt_prog_compiler_wl='-Wl,'
7410 lt_prog_compiler_pic='-fpic'
7411 lt_prog_compiler_static='-Bstatic'
7414 lt_prog_compiler_wl='-Wl,'
7415 # All Alpha code is PIC.
7416 lt_prog_compiler_static='-non_shared'
7419 # IBM XL C 8.0/Fortran 10.1 on PPC
7420 lt_prog_compiler_wl='-Wl,'
7421 lt_prog_compiler_pic='-qpic'
7422 lt_prog_compiler_static='-qstaticlink'
7425 case `$CC -V 2>&1 | sed 5q` in
7428 lt_prog_compiler_pic='-KPIC'
7429 lt_prog_compiler_static='-Bstatic'
7430 lt_prog_compiler_wl='-Wl,'
7433 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7434 lt_prog_compiler_pic='-KPIC'
7435 lt_prog_compiler_static='-Bstatic'
7436 lt_prog_compiler_wl=''
7444 lt_prog_compiler_pic='-KPIC'
7445 lt_prog_compiler_static='-Bstatic'
7449 # QNX uses GNU C++, but need to define -shared option too, otherwise
7451 lt_prog_compiler_pic='-fPIC -shared'
7454 osf3* | osf4* | osf5*)
7455 lt_prog_compiler_wl='-Wl,'
7456 # All OSF/1 code is PIC.
7457 lt_prog_compiler_static='-non_shared'
7461 lt_prog_compiler_static='-non_shared'
7465 lt_prog_compiler_pic='-KPIC'
7466 lt_prog_compiler_static='-Bstatic'
7467 case $cc_basename in
7469 lt_prog_compiler_wl='-Qoption ld ';;
7471 lt_prog_compiler_wl='-Wl,';;
7476 lt_prog_compiler_wl='-Qoption ld '
7477 lt_prog_compiler_pic='-PIC'
7478 lt_prog_compiler_static='-Bstatic'
7481 sysv4 | sysv4.2uw2* | sysv4.3*)
7482 lt_prog_compiler_wl='-Wl,'
7483 lt_prog_compiler_pic='-KPIC'
7484 lt_prog_compiler_static='-Bstatic'
7488 if test -d /usr/nec ;then
7489 lt_prog_compiler_pic='-Kconform_pic'
7490 lt_prog_compiler_static='-Bstatic'
7494 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7495 lt_prog_compiler_wl='-Wl,'
7496 lt_prog_compiler_pic='-KPIC'
7497 lt_prog_compiler_static='-Bstatic'
7501 lt_prog_compiler_wl='-Wl,'
7502 lt_prog_compiler_can_build_shared=no
7506 lt_prog_compiler_pic='-pic'
7507 lt_prog_compiler_static='-Bstatic'
7511 lt_prog_compiler_can_build_shared=no
7517 # For platforms which do not support PIC, -DPIC is meaningless:
7519 lt_prog_compiler_pic=
7522 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7525 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7526 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7534 # Check to make sure the PIC flag actually works.
7536 if test -n "$lt_prog_compiler_pic"; then
7537 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7538 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7539 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 lt_cv_prog_compiler_pic_works=no
7543 ac_outfile=conftest.$ac_objext
7544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7545 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7546 # Insert the option either (1) after the last *FLAGS variable, or
7547 # (2) before a word containing "conftest.", or (3) at the end.
7548 # Note that $ac_compile itself does not contain backslashes and begins
7549 # with a dollar sign (not a hyphen), so the echo should work correctly.
7550 # The option is referenced via a variable to avoid confusing sed.
7551 lt_compile=`echo "$ac_compile" | $SED \
7552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7554 -e 's:$: $lt_compiler_flag:'`
7555 (eval echo "\"\$as_me:7555: $lt_compile\"" >&5)
7556 (eval "$lt_compile" 2>conftest.err)
7558 cat conftest.err >&5
7559 echo "$as_me:7559: \$? = $ac_status" >&5
7560 if (exit $ac_status) && test -s "$ac_outfile"; then
7561 # The compiler can only warn and ignore the option if not recognized
7562 # So say no if there are warnings other than the usual output.
7563 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7566 lt_cv_prog_compiler_pic_works=yes
7572 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7573 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7575 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7576 case $lt_prog_compiler_pic in
7578 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7581 lt_prog_compiler_pic=
7582 lt_prog_compiler_can_build_shared=no
7593 # Check to make sure the static flag actually works.
7595 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7596 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7597 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7598 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 lt_cv_prog_compiler_static_works=no
7602 save_LDFLAGS="$LDFLAGS"
7603 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7604 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7605 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7606 # The linker can only warn and ignore the option if not recognized
7607 # So say no if there are warnings
7608 if test -s conftest.err; then
7609 # Append any errors to the config.log.
7610 cat conftest.err 1>&5
7611 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7613 if diff conftest.exp conftest.er2 >/dev/null; then
7614 lt_cv_prog_compiler_static_works=yes
7617 lt_cv_prog_compiler_static_works=yes
7621 LDFLAGS="$save_LDFLAGS"
7624 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7625 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7627 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7630 lt_prog_compiler_static=
7639 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7640 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7641 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 lt_cv_prog_compiler_c_o=no
7645 $RM -r conftest 2>/dev/null
7649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7651 lt_compiler_flag="-o out/conftest2.$ac_objext"
7652 # Insert the option either (1) after the last *FLAGS variable, or
7653 # (2) before a word containing "conftest.", or (3) at the end.
7654 # Note that $ac_compile itself does not contain backslashes and begins
7655 # with a dollar sign (not a hyphen), so the echo should work correctly.
7656 lt_compile=`echo "$ac_compile" | $SED \
7657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7659 -e 's:$: $lt_compiler_flag:'`
7660 (eval echo "\"\$as_me:7660: $lt_compile\"" >&5)
7661 (eval "$lt_compile" 2>out/conftest.err)
7663 cat out/conftest.err >&5
7664 echo "$as_me:7664: \$? = $ac_status" >&5
7665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7667 # The compiler can only warn and ignore the option if not recognized
7668 # So say no if there are warnings
7669 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7672 lt_cv_prog_compiler_c_o=yes
7677 # SGI C++ compiler will create directory out/ii_files/ for
7678 # template instantiation
7679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7680 $RM out/* && rmdir out
7686 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7694 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7695 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 lt_cv_prog_compiler_c_o=no
7700 $RM -r conftest 2>/dev/null
7704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7706 lt_compiler_flag="-o out/conftest2.$ac_objext"
7707 # Insert the option either (1) after the last *FLAGS variable, or
7708 # (2) before a word containing "conftest.", or (3) at the end.
7709 # Note that $ac_compile itself does not contain backslashes and begins
7710 # with a dollar sign (not a hyphen), so the echo should work correctly.
7711 lt_compile=`echo "$ac_compile" | $SED \
7712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7714 -e 's:$: $lt_compiler_flag:'`
7715 (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
7716 (eval "$lt_compile" 2>out/conftest.err)
7718 cat out/conftest.err >&5
7719 echo "$as_me:7719: \$? = $ac_status" >&5
7720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7722 # The compiler can only warn and ignore the option if not recognized
7723 # So say no if there are warnings
7724 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7727 lt_cv_prog_compiler_c_o=yes
7732 # SGI C++ compiler will create directory out/ii_files/ for
7733 # template instantiation
7734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7735 $RM out/* && rmdir out
7741 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7747 hard_links="nottested"
7748 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7749 # do not overwrite the value of need_locks provided by the user
7750 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7751 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7756 ln conftest.a conftest.b 2>&5 || hard_links=no
7757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7758 { echo "$as_me:$LINENO: result: $hard_links" >&5
7759 echo "${ECHO_T}$hard_links" >&6; }
7760 if test "$hard_links" = no; then
7761 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7762 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7774 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7775 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7778 allow_undefined_flag=
7779 always_export_symbols=no
7781 archive_expsym_cmds=
7782 compiler_needs_object=no
7783 enable_shared_with_static_runtimes=no
7784 export_dynamic_flag_spec=
7785 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7786 hardcode_automatic=no
7788 hardcode_direct_absolute=no
7789 hardcode_libdir_flag_spec=
7790 hardcode_libdir_flag_spec_ld=
7791 hardcode_libdir_separator=
7793 hardcode_shlibpath_var=unsupported
7795 link_all_deplibs=unknown
7798 old_archive_from_new_cmds=
7799 old_archive_from_expsyms_cmds=
7800 thread_safe_flag_spec=
7801 whole_archive_flag_spec=
7802 # include_expsyms should be a list of space-separated symbols to be *always*
7803 # included in the symbol list
7805 # exclude_expsyms can be an extended regexp of symbols to exclude
7806 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7807 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7808 # as well as any symbol that contains `d'.
7809 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7810 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7811 # platforms (ab)use it in PIC code, but their linkers get confused if
7812 # the symbol is explicitly referenced. Since portable code cannot
7813 # rely on this symbol name, it's probably fine to never include it in
7814 # preloaded symbol tables.
7815 # Exclude shared library initialization/finalization symbols.
7816 extract_expsyms_cmds=
7819 cygwin* | mingw* | pw32*)
7820 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7821 # When not using gcc, we currently assume that we are using
7822 # Microsoft Visual C++.
7823 if test "$GCC" != yes; then
7828 # we just hope/assume this is gcc and not c89 (= MSVC++)
7837 if test "$with_gnu_ld" = yes; then
7838 # If archive_cmds runs LD, not CC, wlarc should be empty
7841 # Set some defaults for GNU ld with shared library support. These
7842 # are reset later if shared libraries are not supported. Putting them
7843 # here allows them to be overridden if necessary.
7844 runpath_var=LD_RUN_PATH
7845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7846 export_dynamic_flag_spec='${wl}--export-dynamic'
7847 # ancient GNU ld didn't support --whole-archive et. al.
7848 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7849 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7851 whole_archive_flag_spec=
7853 supports_anon_versioning=no
7854 case `$LD -v 2>&1` in
7855 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7856 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7857 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7858 *\ 2.11.*) ;; # other 2.11 versions
7859 *) supports_anon_versioning=yes ;;
7862 # See if GNU ld supports shared libraries.
7865 # On AIX/PPC, the GNU linker is very broken
7866 if test "$host_cpu" != ia64; then
7870 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7871 *** to be unable to reliably create shared libraries on AIX.
7872 *** Therefore, libtool is disabling shared libraries support. If you
7873 *** really care for shared libraries, you may want to modify your PATH
7874 *** so that a non-GNU linker is found, and then restart.
7883 # see comment about AmigaOS4 .so support
7884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7885 archive_expsym_cmds=''
7888 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)'
7889 hardcode_libdir_flag_spec='-L$libdir'
7890 hardcode_minus_L=yes
7896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7897 allow_undefined_flag=unsupported
7898 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7899 # support --undefined. This deserves some investigation. FIXME
7900 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906 cygwin* | mingw* | pw32*)
7907 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7908 # as there is no search path for DLLs.
7909 hardcode_libdir_flag_spec='-L$libdir'
7910 allow_undefined_flag=unsupported
7911 always_export_symbols=no
7912 enable_shared_with_static_runtimes=yes
7913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7915 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7917 # If the export-symbols file already is a .def file (1st line
7918 # is EXPORTS), use it as is; otherwise, prepend...
7919 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7920 cp $export_symbols $output_objdir/$soname.def;
7922 echo EXPORTS > $output_objdir/$soname.def;
7923 cat $export_symbols >> $output_objdir/$soname.def;
7925 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7933 hardcode_shlibpath_var=no
7934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7935 export_dynamic_flag_spec='${wl}-E'
7936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7937 # Instead, shared libraries are loaded at an image base (0x10000000 by
7938 # default) and relocated if they conflict, which is a slow very memory
7939 # consuming and fragmenting process. To avoid this, we pick a random,
7940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7941 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7943 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'
7946 gnu* | linux* | tpf* | k*bsd*-gnu)
7948 if test "$host_os" = linux-dietlibc; then
7949 case $cc_basename in
7950 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7953 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7954 && test "$tmp_diet" = no
7957 tmp_sharedflag='-shared'
7958 case $cc_basename,$host_cpu in
7959 pgcc*) # Portland Group C compiler
7960 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'
7961 tmp_addflag=' $pic_flag'
7963 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7964 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'
7965 tmp_addflag=' $pic_flag -Mnomain' ;;
7966 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7967 tmp_addflag=' -i_dynamic' ;;
7968 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7969 tmp_addflag=' -i_dynamic -nofor_main' ;;
7970 ifc* | ifort*) # Intel Fortran compiler
7971 tmp_addflag=' -nofor_main' ;;
7972 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7973 tmp_sharedflag='-qmkshrobj'
7976 case `$CC -V 2>&1 | sed 5q` in
7977 *Sun\ C*) # Sun C 5.9
7978 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'
7979 compiler_needs_object=yes
7980 tmp_sharedflag='-G' ;;
7981 *Sun\ F*) # Sun Fortran 8.3
7982 tmp_sharedflag='-G' ;;
7984 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7986 if test "x$supports_anon_versioning" = xyes; then
7987 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7988 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7989 echo "local: *; };" >> $output_objdir/$libname.ver~
7990 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7993 case $cc_basename in
7995 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7996 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7997 hardcode_libdir_flag_spec=
7998 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7999 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8000 if test "x$supports_anon_versioning" = xyes; then
8001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8003 echo "local: *; };" >> $output_objdir/$libname.ver~
8004 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8015 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8024 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8029 *** create shared libraries on Solaris systems. Therefore, libtool
8030 *** is disabling shared libraries support. We urge you to upgrade GNU
8031 *** binutils to release 2.9.1 or newer. Another option is to modify
8032 *** your PATH or compiler configuration so that the native linker is
8033 *** used, and then restart.
8036 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8045 case `$LD -v 2>&1` in
8046 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8051 *** reliably create shared libraries on SCO systems. Therefore, libtool
8052 *** is disabling shared libraries support. We urge you to upgrade GNU
8053 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8054 *** your PATH or compiler configuration so that the native linker is
8055 *** used, and then restart.
8060 # For security reasons, it is highly recommended that you always
8061 # use absolute paths for naming shared libraries, and exclude the
8062 # DT_RUNPATH tag from executables and libraries. But doing so
8063 # requires that you compile everything twice, which is a pain.
8064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8076 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8079 hardcode_shlibpath_var=no
8083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8092 if test "$ld_shlibs" = no; then
8094 hardcode_libdir_flag_spec=
8095 export_dynamic_flag_spec=
8096 whole_archive_flag_spec=
8099 # PORTME fill in a description of your system's linker (not GNU ld)
8102 allow_undefined_flag=unsupported
8103 always_export_symbols=yes
8104 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'
8105 # Note: this linker hardcodes the directories in LIBPATH if there
8106 # are no directories specified by -L.
8107 hardcode_minus_L=yes
8108 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8109 # Neither direct hardcoding nor static linking is supported with a
8111 hardcode_direct=unsupported
8116 if test "$host_cpu" = ia64; then
8117 # On IA64, the linker does run time linking by default, so we don't
8118 # have to do anything special.
8119 aix_use_runtimelinking=no
8120 exp_sym_flag='-Bexport'
8123 # If we're using GNU nm, then we don't want the "-C" option.
8124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8125 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8126 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'
8128 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'
8130 aix_use_runtimelinking=no
8132 # Test if we are trying to use run time linking or normal
8133 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8134 # need to do runtime linking.
8135 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8136 for ld_flag in $LDFLAGS; do
8137 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8138 aix_use_runtimelinking=yes
8145 exp_sym_flag='-bexport'
8146 no_entry_flag='-bnoentry'
8149 # When large executables or shared objects are built, AIX ld can
8150 # have problems creating the table of contents. If linking a library
8151 # or program results in "error TOC overflow" add -mminimal-toc to
8152 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8153 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8157 hardcode_direct_absolute=yes
8158 hardcode_libdir_separator=':'
8159 link_all_deplibs=yes
8160 file_list_spec='${wl}-f,'
8162 if test "$GCC" = yes; then
8163 case $host_os in aix4.[012]|aix4.[012].*)
8164 # We only want to do this on AIX 4.2 and lower, the check
8165 # below for broken collect2 doesn't work under 4.3+
8166 collect2name=`${CC} -print-prog-name=collect2`
8167 if test -f "$collect2name" &&
8168 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8170 # We have reworked collect2
8173 # We have old collect2
8174 hardcode_direct=unsupported
8175 # It fails to find uninstalled libraries when the uninstalled
8176 # path is not listed in the libpath. Setting hardcode_minus_L
8177 # to unsupported forces relinking
8178 hardcode_minus_L=yes
8179 hardcode_libdir_flag_spec='-L$libdir'
8180 hardcode_libdir_separator=
8184 shared_flag='-shared'
8185 if test "$aix_use_runtimelinking" = yes; then
8186 shared_flag="$shared_flag "'${wl}-G'
8190 if test "$host_cpu" = ia64; then
8191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8192 # chokes on -Wl,-G. The following line is correct:
8195 if test "$aix_use_runtimelinking" = yes; then
8196 shared_flag='${wl}-G'
8198 shared_flag='${wl}-bM:SRE'
8203 # It seems that -bexpall does not export symbols beginning with
8204 # underscore (_), so it is better to generate a list of symbols to export.
8205 always_export_symbols=yes
8206 if test "$aix_use_runtimelinking" = yes; then
8207 # Warning - without using the other runtime loading flags (-brtl),
8208 # -berok will link without error, but may produce a broken library.
8209 allow_undefined_flag='-berok'
8210 # Determine the default libpath from the value encoded in an
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (ac_try="$ac_link"
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_link") 2>conftest.er1
8236 grep -v '^ *+' conftest.er1 >conftest.err
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } && {
8241 test -z "$ac_c_werror_flag" ||
8242 test ! -s conftest.err
8243 } && test -s conftest$ac_exeext &&
8244 $as_test_x conftest$ac_exeext; then
8246 lt_aix_libpath_sed='
8247 /Import File Strings/,/^$/ {
8253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8254 # Check for a 64-bit object if we didn't find anything.
8255 if test -z "$aix_libpath"; then
8256 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8266 conftest$ac_exeext conftest.$ac_ext
8267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8269 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8270 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"
8272 if test "$host_cpu" = ia64; then
8273 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8274 allow_undefined_flag="-z nodefs"
8275 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"
8277 # Determine the default libpath from the value encoded in an
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (ac_try="$ac_link"
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_link") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest$ac_exeext &&
8311 $as_test_x conftest$ac_exeext; then
8313 lt_aix_libpath_sed='
8314 /Import File Strings/,/^$/ {
8320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8321 # Check for a 64-bit object if we didn't find anything.
8322 if test -z "$aix_libpath"; then
8323 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333 conftest$ac_exeext conftest.$ac_ext
8334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8336 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8337 # Warning - without using the other run time loading flags,
8338 # -berok will link without error, but may produce a broken library.
8339 no_undefined_flag=' ${wl}-bernotok'
8340 allow_undefined_flag=' ${wl}-berok'
8341 # Exported symbols can be pulled into shared objects from archives
8342 whole_archive_flag_spec='$convenience'
8343 archive_cmds_need_lc=yes
8344 # This is similar to how AIX traditionally builds its shared libraries.
8345 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'
8353 # see comment about AmigaOS4 .so support
8354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355 archive_expsym_cmds=''
8358 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)'
8359 hardcode_libdir_flag_spec='-L$libdir'
8360 hardcode_minus_L=yes
8366 export_dynamic_flag_spec=-rdynamic
8369 cygwin* | mingw* | pw32*)
8370 # When not using gcc, we currently assume that we are using
8371 # Microsoft Visual C++.
8372 # hardcode_libdir_flag_spec is actually meaningless, as there is
8373 # no search path for DLLs.
8374 hardcode_libdir_flag_spec=' '
8375 allow_undefined_flag=unsupported
8376 # Tell ltmain to make .lib files, not .a files.
8378 # Tell ltmain to make .dll files, not .so files.
8380 # FIXME: Setting linknames here is a bad hack.
8381 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8382 # The linker will automatically build a .lib file if we build a DLL.
8383 old_archive_from_new_cmds='true'
8384 # FIXME: Should let the user specify the lib program.
8385 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8386 fix_srcfile_path='`cygpath -w "$srcfile"`'
8387 enable_shared_with_static_runtimes=yes
8390 darwin* | rhapsody*)
8393 archive_cmds_need_lc=no
8395 hardcode_automatic=yes
8396 hardcode_shlibpath_var=unsupported
8397 whole_archive_flag_spec=''
8398 link_all_deplibs=yes
8399 allow_undefined_flag="$_lt_dar_allow_undefined"
8400 if test "$GCC" = "yes"; then
8401 output_verbose_link_cmd=echo
8402 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8403 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8404 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}"
8405 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}"
8414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_shlibpath_var=no
8423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8424 # support. Future versions do this automatically, but an explicit c++rt0.o
8425 # does not break anything, and helps significantly (at the cost of a little
8428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8429 hardcode_libdir_flag_spec='-R$libdir'
8431 hardcode_shlibpath_var=no
8434 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8438 hardcode_minus_L=yes
8439 hardcode_shlibpath_var=no
8442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8443 freebsd* | dragonfly*)
8444 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8445 hardcode_libdir_flag_spec='-R$libdir'
8447 hardcode_shlibpath_var=no
8451 if test "$GCC" = yes; then
8452 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'
8454 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'
8456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457 hardcode_libdir_separator=:
8460 # hardcode_minus_L: Not really in the search PATH,
8461 # but as the default location of the library.
8462 hardcode_minus_L=yes
8463 export_dynamic_flag_spec='${wl}-E'
8467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8472 if test "$with_gnu_ld" = no; then
8473 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8474 hardcode_libdir_flag_spec_ld='+b $libdir'
8475 hardcode_libdir_separator=:
8477 hardcode_direct_absolute=yes
8478 export_dynamic_flag_spec='${wl}-E'
8479 # hardcode_minus_L: Not really in the search PATH,
8480 # but as the default location of the library.
8481 hardcode_minus_L=yes
8486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8489 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8492 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8501 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8507 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8511 if test "$with_gnu_ld" = no; then
8512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8513 hardcode_libdir_separator=:
8518 hardcode_shlibpath_var=no
8522 hardcode_direct_absolute=yes
8523 export_dynamic_flag_spec='${wl}-E'
8525 # hardcode_minus_L: Not really in the search PATH,
8526 # but as the default location of the library.
8527 hardcode_minus_L=yes
8533 irix5* | irix6* | nonstopux*)
8534 if test "$GCC" = yes; then
8535 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'
8536 # Try to use the -exported_symbol ld option, if it does not
8537 # work, assume that -exports_file does not work either and
8538 # implicitly export all symbols.
8539 save_LDFLAGS="$LDFLAGS"
8540 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8541 cat >conftest.$ac_ext <<_ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (ac_try="$ac_link"
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_link") 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest$ac_exeext &&
8561 $as_test_x conftest$ac_exeext; then
8562 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'
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572 conftest$ac_exeext conftest.$ac_ext
8573 LDFLAGS="$save_LDFLAGS"
8575 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'
8576 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'
8578 archive_cmds_need_lc='no'
8579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8580 hardcode_libdir_separator=:
8582 link_all_deplibs=yes
8586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8589 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8591 hardcode_libdir_flag_spec='-R$libdir'
8593 hardcode_shlibpath_var=no
8597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600 hardcode_libdir_separator=:
8601 hardcode_shlibpath_var=no
8608 if test -f /usr/libexec/ld.so; then
8610 hardcode_shlibpath_var=no
8611 hardcode_direct_absolute=yes
8612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8614 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616 export_dynamic_flag_spec='${wl}-E'
8619 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8621 hardcode_libdir_flag_spec='-R$libdir'
8624 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8635 hardcode_libdir_flag_spec='-L$libdir'
8636 hardcode_minus_L=yes
8637 allow_undefined_flag=unsupported
8638 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'
8639 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8643 if test "$GCC" = yes; then
8644 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8645 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'
8647 allow_undefined_flag=' -expect_unresolved \*'
8648 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'
8650 archive_cmds_need_lc='no'
8651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8652 hardcode_libdir_separator=:
8655 osf4* | osf5*) # as osf3* with the addition of -msym flag
8656 if test "$GCC" = yes; then
8657 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8658 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'
8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8661 allow_undefined_flag=' -expect_unresolved \*'
8662 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'
8663 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~
8664 $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'
8666 # Both c and cxx compiler support -rpath directly
8667 hardcode_libdir_flag_spec='-rpath $libdir'
8669 archive_cmds_need_lc='no'
8670 hardcode_libdir_separator=:
8674 no_undefined_flag=' -z defs'
8675 if test "$GCC" = yes; then
8677 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8679 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8681 case `$CC -V 2>&1` in
8684 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8686 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8690 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8692 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8696 hardcode_libdir_flag_spec='-R$libdir'
8697 hardcode_shlibpath_var=no
8699 solaris2.[0-5] | solaris2.[0-5].*) ;;
8701 # The compiler driver will combine and reorder linker options,
8702 # but understands `-z linker_flag'. GCC discards it without `$wl',
8703 # but is careful enough not to reorder.
8704 # Supported since Solaris 2.6 (maybe 2.5.1?)
8705 if test "$GCC" = yes; then
8706 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8708 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8712 link_all_deplibs=yes
8716 if test "x$host_vendor" = xsequent; then
8717 # Use $CC to link under sequent, because it throws in some extra .o
8718 # files that make .init and .fini sections work.
8719 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8721 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8723 hardcode_libdir_flag_spec='-L$libdir'
8725 hardcode_minus_L=yes
8726 hardcode_shlibpath_var=no
8730 case $host_vendor in
8732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733 hardcode_direct=yes # is this really true???
8736 ## LD is ld it makes a PLAMLIB
8737 ## CC just makes a GrossModule.
8738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8739 reload_cmds='$CC -r -o $output$reload_objs'
8743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8747 runpath_var='LD_RUN_PATH'
8748 hardcode_shlibpath_var=no
8752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 hardcode_shlibpath_var=no
8754 export_dynamic_flag_spec='-Bexport'
8758 if test -d /usr/nec; then
8759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760 hardcode_shlibpath_var=no
8761 runpath_var=LD_RUN_PATH
8762 hardcode_runpath_var=yes
8767 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8768 no_undefined_flag='${wl}-z,text'
8769 archive_cmds_need_lc=no
8770 hardcode_shlibpath_var=no
8771 runpath_var='LD_RUN_PATH'
8773 if test "$GCC" = yes; then
8774 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8775 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8778 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8782 sysv5* | sco3.2v5* | sco5v6*)
8783 # Note: We can NOT use -z defs as we might desire, because we do not
8784 # link with -lc, and that would cause any symbols used from libc to
8785 # always be unresolved, which means just about no library would
8786 # ever link correctly. If we're not using GNU ld we use -z text
8787 # though, which does catch some bad symbols but isn't as heavy-handed
8789 no_undefined_flag='${wl}-z,text'
8790 allow_undefined_flag='${wl}-z,nodefs'
8791 archive_cmds_need_lc=no
8792 hardcode_shlibpath_var=no
8793 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8794 hardcode_libdir_separator=':'
8795 link_all_deplibs=yes
8796 export_dynamic_flag_spec='${wl}-Bexport'
8797 runpath_var='LD_RUN_PATH'
8799 if test "$GCC" = yes; then
8800 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810 hardcode_libdir_flag_spec='-L$libdir'
8811 hardcode_shlibpath_var=no
8819 if test x$host_vendor = xsni; then
8821 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8822 export_dynamic_flag_spec='${wl}-Blargedynsym'
8828 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8829 echo "${ECHO_T}$ld_shlibs" >&6; }
8830 test "$ld_shlibs" = no && can_build_shared=no
8832 with_gnu_ld=$with_gnu_ld
8849 # Do we need to explicitly link libc?
8851 case "x$archive_cmds_need_lc" in
8853 # Assume -lc should be added
8854 archive_cmds_need_lc=yes
8856 if test "$enable_shared" = yes && test "$GCC" = yes; then
8857 case $archive_cmds in
8859 # FIXME: we may have to deal with multi-command sequences.
8862 # Test whether the compiler implicitly links with -lc since on some
8863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8864 # to ld, don't add -lc before -lgcc.
8865 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8866 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } 2>conftest.err; then
8877 libobjs=conftest.$ac_objext
8879 wl=$lt_prog_compiler_wl
8880 pic_flag=$lt_prog_compiler_pic
8886 lt_save_allow_undefined_flag=$allow_undefined_flag
8887 allow_undefined_flag=
8888 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8889 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }
8894 archive_cmds_need_lc=no
8896 archive_cmds_need_lc=yes
8898 allow_undefined_flag=$lt_save_allow_undefined_flag
8900 cat conftest.err 1>&5
8903 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8904 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9067 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9068 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9070 if test "$GCC" = yes; then
9072 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9073 *) lt_awk_arg="/^libraries:/" ;;
9075 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9076 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9077 # if the path contains ";" then we assume it to be the separator
9078 # otherwise default to the standard path separator (i.e. ":") - it is
9079 # assumed that no part of a normal pathname contains ";" but that should
9080 # okay in the real world where ";" in dirpaths is itself problematic.
9081 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9083 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9085 # Ok, now we have the path, separated by spaces, we can step through it
9086 # and add multilib dir if necessary.
9087 lt_tmp_lt_search_path_spec=
9088 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9089 for lt_sys_path in $lt_search_path_spec; do
9090 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9091 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9093 test -d "$lt_sys_path" && \
9094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9097 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9098 BEGIN {RS=" "; FS="/|\n";} {
9101 for (lt_i = NF; lt_i > 0; lt_i--) {
9102 if ($lt_i != "" && $lt_i != ".") {
9103 if ($lt_i == "..") {
9106 if (lt_count == 0) {
9107 lt_foo="/" $lt_i lt_foo;
9114 if (lt_foo != "") { lt_freq[lt_foo]++; }
9115 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9117 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9122 libname_spec='lib$name'
9130 shlibpath_overrides_runpath=unknown
9132 dynamic_linker="$host_os ld.so"
9133 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9134 need_lib_prefix=unknown
9135 hardcode_into_libs=no
9137 # when you set need_version to no, make sure it does not cause -set_version
9138 # flags to be left without arguments
9139 need_version=unknown
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9145 shlibpath_var=LIBPATH
9147 # AIX 3 has no versioning support, so we append a major version to the name.
9148 soname_spec='${libname}${release}${shared_ext}$major'
9155 hardcode_into_libs=yes
9156 if test "$host_cpu" = ia64; then
9157 # AIX 5 supports IA64
9158 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9159 shlibpath_var=LD_LIBRARY_PATH
9161 # With GCC up to 2.95.x, collect2 would create an import file
9162 # for dependence libraries. The import file would start with
9163 # the line `#! .'. This would cause the generated library to
9164 # depend on `.', always an invalid library. This was fixed in
9165 # development snapshots of GCC prior to 3.0.
9167 aix4 | aix4.[01] | aix4.[01].*)
9168 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9170 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9177 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9178 # soname into executable. Probably we can add versioning support to
9179 # collect2, so additional links can be useful in future.
9180 if test "$aix_use_runtimelinking" = yes; then
9181 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9182 # instead of lib<name>.a to let people know that these are not
9183 # typical AIX shared libraries.
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 # We preserve .a as extension for shared libraries through AIX4.2
9187 # and later when we are not doing run time linking.
9188 library_names_spec='${libname}${release}.a $libname.a'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LIBPATH
9198 # Since July 2007 AmigaOS4 officially supports .so libraries.
9199 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203 library_names_spec='$libname.ixlibrary $libname.a'
9204 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9205 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'
9211 library_names_spec='${libname}${shared_ext}'
9212 dynamic_linker="$host_os ld.so"
9213 shlibpath_var=LIBRARY_PATH
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9224 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9225 # the default ld.so.conf also contains /usr/contrib/lib and
9226 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9227 # libtool to hard-code these into programs
9230 cygwin* | mingw* | pw32*)
9231 version_type=windows
9236 case $GCC,$host_os in
9237 yes,cygwin* | yes,mingw* | yes,pw32*)
9238 library_names_spec='$libname.dll.a'
9239 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9240 postinstall_cmds='base_file=`basename \${file}`~
9241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9242 dldir=$destdir/`dirname \$dlpath`~
9243 test -d \$dldir || mkdir -p \$dldir~
9244 $install_prog $dir/$dlname \$dldir/$dlname~
9245 chmod a+x \$dldir/$dlname~
9246 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9247 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9250 dlpath=$dir/\$dldll~
9252 shlibpath_overrides_runpath=yes
9256 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9257 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9258 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9261 # MinGW DLLs use traditional 'lib' prefix
9262 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9263 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9264 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9265 # It is most probably a Windows format PATH printed by
9266 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9267 # path with ; separators, and with drive letters. We can handle the
9268 # drive letters (cygwin fileutils understands them), so leave them,
9269 # especially as we might pass files found there to a mingw objdump,
9270 # which wouldn't understand a cygwinified path. Ahh.
9271 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9273 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9277 # pw32 DLLs use 'pw' prefix rather than 'lib'
9278 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9284 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9287 dynamic_linker='Win32 ld.exe'
9288 # FIXME: first we should search . and the directory the executable is in
9292 darwin* | rhapsody*)
9293 dynamic_linker="$host_os dyld"
9297 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9298 soname_spec='${libname}${release}${major}$shared_ext'
9299 shlibpath_overrides_runpath=yes
9300 shlibpath_var=DYLD_LIBRARY_PATH
9301 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9303 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 shlibpath_var=LD_LIBRARY_PATH
9320 freebsd* | dragonfly*)
9321 # DragonFly does not have aout. When/if they implement a new
9322 # versioning mechanism, adjust this.
9323 if test -x /usr/bin/objformat; then
9324 objformat=`/usr/bin/objformat`
9327 freebsd[123]*) objformat=aout ;;
9331 version_type=freebsd-$objformat
9332 case $version_type in
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9343 shlibpath_var=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath=yes
9348 freebsd3.[01]* | freebsdelf3.[01]*)
9349 shlibpath_overrides_runpath=yes
9350 hardcode_into_libs=yes
9352 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9353 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9354 shlibpath_overrides_runpath=no
9355 hardcode_into_libs=yes
9357 *) # from 4.6 on, and DragonFly
9358 shlibpath_overrides_runpath=yes
9359 hardcode_into_libs=yes
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 hardcode_into_libs=yes
9374 hpux9* | hpux10* | hpux11*)
9375 # Give a soname corresponding to the major version so that dld.sl refuses to
9376 # link against other versions.
9383 hardcode_into_libs=yes
9384 dynamic_linker="$host_os dld.so"
9385 shlibpath_var=LD_LIBRARY_PATH
9386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 if test "X$HPUX_IA64_MODE" = X32; then
9390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9398 hardcode_into_libs=yes
9399 dynamic_linker="$host_os dld.sl"
9400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9409 dynamic_linker="$host_os dld.sl"
9410 shlibpath_var=SHLIB_PATH
9411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9413 soname_spec='${libname}${release}${shared_ext}$major'
9416 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9417 postinstall_cmds='chmod 555 $lib'
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=no
9429 hardcode_into_libs=yes
9432 irix5* | irix6* | nonstopux*)
9434 nonstopux*) version_type=nonstopux ;;
9436 if test "$lt_cv_prog_gnu_ld" = yes; then
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9447 irix5* | nonstopux*)
9451 case $LD in # libtool.m4 will add one of these switches to LD
9452 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9453 libsuff= shlibsuff= libmagic=32-bit;;
9454 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9455 libsuff=32 shlibsuff=N32 libmagic=N32;;
9456 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9457 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9458 *) libsuff= shlibsuff= libmagic=never-match;;
9462 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9463 shlibpath_overrides_runpath=no
9464 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9465 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9466 hardcode_into_libs=yes
9469 # No shared lib support for Linux oldld, aout, or coff.
9470 linux*oldld* | linux*aout* | linux*coff*)
9474 # This must be Linux ELF.
9475 linux* | k*bsd*-gnu)
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=no
9484 # Some binutils ld are patched to set DT_RUNPATH
9485 save_LDFLAGS=$LDFLAGS
9487 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9488 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9489 cat >conftest.$ac_ext <<_ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest$ac_exeext &&
9521 $as_test_x conftest$ac_exeext; then
9522 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9523 shlibpath_overrides_runpath=yes
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LDFLAGS=$save_LDFLAGS
9538 # This implies no fast_install, which is unacceptable.
9539 # Some rework will be needed to allow for fast_install
9540 # before this can be enabled.
9541 hardcode_into_libs=yes
9543 # Append ld.so.conf contents to the search path
9544 if test -f /etc/ld.so.conf; then
9545 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' ' '`
9546 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9549 # We used to test for /lib/ld.so.1 and disable shared libraries on
9550 # powerpc, because MkLinux only supported shared libraries with the
9551 # GNU dynamic linker. Since this was broken with cross compilers,
9552 # most powerpc-linux boxes support dynamic linking these days and
9553 # people can always --disable-shared, the test was removed, and we
9554 # assume the GNU/Linux dynamic linker is in use.
9555 dynamic_linker='GNU/Linux ld.so'
9562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9565 dynamic_linker='NetBSD (a.out) ld.so'
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 dynamic_linker='NetBSD ld.elf_so'
9571 shlibpath_var=LD_LIBRARY_PATH
9572 shlibpath_overrides_runpath=yes
9573 hardcode_into_libs=yes
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=yes
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 soname_spec='${libname}${release}${shared_ext}$major'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath=no
9591 hardcode_into_libs=yes
9592 dynamic_linker='ldqnx.so'
9597 sys_lib_dlsearch_path_spec="/usr/lib"
9599 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9601 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9602 *) need_version=no ;;
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9606 shlibpath_var=LD_LIBRARY_PATH
9607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9609 openbsd2.[89] | openbsd2.[89].*)
9610 shlibpath_overrides_runpath=no
9613 shlibpath_overrides_runpath=yes
9617 shlibpath_overrides_runpath=yes
9622 libname_spec='$name'
9625 library_names_spec='$libname${shared_ext} $libname.a'
9626 dynamic_linker='OS/2 ld.exe'
9627 shlibpath_var=LIBPATH
9630 osf3* | osf4* | osf5*)
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9638 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 shlibpath_var=LD_LIBRARY_PATH
9652 shlibpath_overrides_runpath=yes
9653 hardcode_into_libs=yes
9654 # ldd complains unless libraries are executable
9655 postinstall_cmds='chmod +x $lib'
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=yes
9664 if test "$with_gnu_ld" = yes; then
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673 soname_spec='${libname}${release}${shared_ext}$major'
9674 shlibpath_var=LD_LIBRARY_PATH
9675 case $host_vendor in
9677 shlibpath_overrides_runpath=no
9679 runpath_var=LD_RUN_PATH
9687 shlibpath_overrides_runpath=no
9688 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9694 if test -d /usr/nec ;then
9696 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9697 soname_spec='$libname${shared_ext}.$major'
9698 shlibpath_var=LD_LIBRARY_PATH
9702 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9703 version_type=freebsd-elf
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 shlibpath_overrides_runpath=yes
9710 hardcode_into_libs=yes
9711 if test "$with_gnu_ld" = yes; then
9712 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9714 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9721 sys_lib_dlsearch_path_spec='/usr/lib'
9725 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9729 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 shlibpath_overrides_runpath=no
9732 hardcode_into_libs=yes
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 shlibpath_var=LD_LIBRARY_PATH
9746 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9747 echo "${ECHO_T}$dynamic_linker" >&6; }
9748 test "$dynamic_linker" = no && can_build_shared=no
9750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751 if test "$GCC" = yes; then
9752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9755 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9756 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9758 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9759 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9848 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9851 if test -n "$hardcode_libdir_flag_spec" ||
9852 test -n "$runpath_var" ||
9853 test "X$hardcode_automatic" = "Xyes" ; then
9855 # We can hardcode non-existent directories.
9856 if test "$hardcode_direct" != no &&
9857 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9858 # have to relink, otherwise we might link with an installed library
9859 # when we should be linking with a yet-to-be-installed one
9860 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9861 test "$hardcode_minus_L" != no; then
9862 # Linking always hardcodes the temporary library directory.
9863 hardcode_action=relink
9865 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9866 hardcode_action=immediate
9869 # We cannot hardcode anything, or else we can only hardcode existing
9871 hardcode_action=unsupported
9873 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9874 echo "${ECHO_T}$hardcode_action" >&6; }
9876 if test "$hardcode_action" = relink ||
9877 test "$inherit_rpath" = yes; then
9878 # Fast installation is not supported
9879 enable_fast_install=no
9880 elif test "$shlibpath_overrides_runpath" = yes ||
9881 test "$enable_shared" = no; then
9882 # Fast installation is not necessary
9883 enable_fast_install=needless
9891 if test "x$enable_dlopen" != xyes; then
9892 enable_dlopen=unknown
9893 enable_dlopen_self=unknown
9894 enable_dlopen_self_static=unknown
9901 lt_cv_dlopen="load_add_on"
9903 lt_cv_dlopen_self=yes
9907 lt_cv_dlopen="LoadLibrary"
9912 lt_cv_dlopen="dlopen"
9917 # if libdl is installed we need to link against it
9918 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9919 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 ac_check_lib_save_LIBS=$LIBS
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest$ac_exeext &&
9964 $as_test_x conftest$ac_exeext; then
9965 ac_cv_lib_dl_dlopen=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_lib_dl_dlopen=no
9973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9974 conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9979 if test $ac_cv_lib_dl_dlopen = yes; then
9980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9985 lt_cv_dlopen_self=yes
9992 { echo "$as_me:$LINENO: checking for shl_load" >&5
9993 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9994 if test "${ac_cv_func_shl_load+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 cat >conftest.$ac_ext <<_ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10005 #define shl_load innocuous_shl_load
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char shl_load (); below.
10009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010 <limits.h> exists even on freestanding compilers. */
10013 # include <limits.h>
10015 # include <assert.h>
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10027 /* The GNU C library defines this for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined __stub_shl_load || defined __stub___shl_load
10037 return shl_load ();
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest$ac_exeext &&
10059 $as_test_x conftest$ac_exeext; then
10060 ac_cv_func_shl_load=yes
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ac_cv_func_shl_load=no
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069 conftest$ac_exeext conftest.$ac_ext
10071 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10072 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10073 if test $ac_cv_func_shl_load = yes; then
10074 lt_cv_dlopen="shl_load"
10076 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10077 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10078 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 ac_check_lib_save_LIBS=$LIBS
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10090 /* Override any GCC internal prototype to avoid an error.
10091 Use char because int might match the return type of a GCC
10092 builtin and then its argument prototype would still apply. */
10100 return shl_load ();
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1 >conftest.err
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest$ac_exeext &&
10122 $as_test_x conftest$ac_exeext; then
10123 ac_cv_lib_dld_shl_load=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_lib_dld_shl_load=no
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10136 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10137 if test $ac_cv_lib_dld_shl_load = yes; then
10138 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10140 { echo "$as_me:$LINENO: checking for dlopen" >&5
10141 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10142 if test "${ac_cv_func_dlopen+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10153 #define dlopen innocuous_dlopen
10155 /* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char dlopen (); below.
10157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158 <limits.h> exists even on freestanding compilers. */
10161 # include <limits.h>
10163 # include <assert.h>
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined __stub_dlopen || defined __stub___dlopen
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10199 grep -v '^ *+' conftest.er1 >conftest.err
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && {
10204 test -z "$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 } && test -s conftest$ac_exeext &&
10207 $as_test_x conftest$ac_exeext; then
10208 ac_cv_func_dlopen=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_func_dlopen=no
10216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217 conftest$ac_exeext conftest.$ac_ext
10219 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10221 if test $ac_cv_func_dlopen = yes; then
10222 lt_cv_dlopen="dlopen"
10224 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 ac_check_lib_save_LIBS=$LIBS
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1 >conftest.err
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext &&
10270 $as_test_x conftest$ac_exeext; then
10271 ac_cv_lib_dl_dlopen=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_cv_lib_dl_dlopen=no
10279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_lib_save_LIBS
10283 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10284 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10285 if test $ac_cv_lib_dl_dlopen = yes; then
10286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10288 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10289 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10290 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 ac_check_lib_save_LIBS=$LIBS
10294 LIBS="-lsvld $LIBS"
10295 cat >conftest.$ac_ext <<_ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_link") 2>conftest.er1
10326 grep -v '^ *+' conftest.er1 >conftest.err
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest$ac_exeext &&
10334 $as_test_x conftest$ac_exeext; then
10335 ac_cv_lib_svld_dlopen=yes
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_cv_lib_svld_dlopen=no
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_lib_save_LIBS
10347 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10348 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10349 if test $ac_cv_lib_svld_dlopen = yes; then
10350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10352 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10353 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10354 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 ac_check_lib_save_LIBS=$LIBS
10359 cat >conftest.$ac_ext <<_ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10376 return dld_link ();
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_link") 2>conftest.er1
10390 grep -v '^ *+' conftest.er1 >conftest.err
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && {
10395 test -z "$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 } && test -s conftest$ac_exeext &&
10398 $as_test_x conftest$ac_exeext; then
10399 ac_cv_lib_dld_dld_link=yes
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ac_cv_lib_dld_dld_link=no
10407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LIBS=$ac_check_lib_save_LIBS
10411 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10412 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10413 if test $ac_cv_lib_dld_dld_link = yes; then
10414 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10435 if test "x$lt_cv_dlopen" != xno; then
10441 case $lt_cv_dlopen in
10443 save_CPPFLAGS="$CPPFLAGS"
10444 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10446 save_LDFLAGS="$LDFLAGS"
10447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10450 LIBS="$lt_cv_dlopen_libs $LIBS"
10452 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10453 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10454 if test "${lt_cv_dlopen_self+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 if test "$cross_compiling" = yes; then :
10458 lt_cv_dlopen_self=cross
10460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10461 lt_status=$lt_dlunknown
10462 cat > conftest.$ac_ext <<_LT_EOF
10463 #line 10463 "configure"
10464 #include "confdefs.h"
10473 # define LT_DLGLOBAL RTLD_GLOBAL
10476 # define LT_DLGLOBAL DL_GLOBAL
10478 # define LT_DLGLOBAL 0
10482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10483 find out it does not work in some platform. */
10484 #ifndef LT_DLLAZY_OR_NOW
10486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10489 # define LT_DLLAZY_OR_NOW DL_LAZY
10492 # define LT_DLLAZY_OR_NOW RTLD_NOW
10495 # define LT_DLLAZY_OR_NOW DL_NOW
10497 # define LT_DLLAZY_OR_NOW 0
10505 extern "C" void exit (int);
10508 void fnord() { int i=42;}
10511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10512 int status = $lt_dlunknown;
10516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10518 /* dlclose (self); */
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10531 (./conftest; exit; ) >&5 2>/dev/null
10533 case x$lt_status in
10534 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10535 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10536 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10539 # compilation failed
10540 lt_cv_dlopen_self=no
10547 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10548 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10550 if test "x$lt_cv_dlopen_self" = xyes; then
10551 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10552 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10553 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10554 if test "${lt_cv_dlopen_self_static+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 if test "$cross_compiling" = yes; then :
10558 lt_cv_dlopen_self_static=cross
10560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10561 lt_status=$lt_dlunknown
10562 cat > conftest.$ac_ext <<_LT_EOF
10563 #line 10563 "configure"
10564 #include "confdefs.h"
10573 # define LT_DLGLOBAL RTLD_GLOBAL
10576 # define LT_DLGLOBAL DL_GLOBAL
10578 # define LT_DLGLOBAL 0
10582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10583 find out it does not work in some platform. */
10584 #ifndef LT_DLLAZY_OR_NOW
10586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10589 # define LT_DLLAZY_OR_NOW DL_LAZY
10592 # define LT_DLLAZY_OR_NOW RTLD_NOW
10595 # define LT_DLLAZY_OR_NOW DL_NOW
10597 # define LT_DLLAZY_OR_NOW 0
10605 extern "C" void exit (int);
10608 void fnord() { int i=42;}
10611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10612 int status = $lt_dlunknown;
10616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10618 /* dlclose (self); */
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10631 (./conftest; exit; ) >&5 2>/dev/null
10633 case x$lt_status in
10634 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10635 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10636 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10639 # compilation failed
10640 lt_cv_dlopen_self_static=no
10647 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10648 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10651 CPPFLAGS="$save_CPPFLAGS"
10652 LDFLAGS="$save_LDFLAGS"
10657 case $lt_cv_dlopen_self in
10658 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10659 *) enable_dlopen_self=unknown ;;
10662 case $lt_cv_dlopen_self_static in
10663 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10664 *) enable_dlopen_self_static=unknown ;;
10686 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10687 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10688 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10689 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10690 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10691 { echo "$as_me:$LINENO: result: yes" >&5
10692 echo "${ECHO_T}yes" >&6; }
10694 # FIXME - insert some real tests, host_os isn't really good enough
10697 if test -n "$STRIP" ; then
10698 striplib="$STRIP -x"
10699 old_striplib="$STRIP -S"
10700 { echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6; }
10703 { echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6; }
10708 { echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6; }
10725 # Report which library types will actually be built
10726 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10727 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10728 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10729 echo "${ECHO_T}$can_build_shared" >&6; }
10731 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10732 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10733 test "$can_build_shared" = "no" && enable_shared=no
10735 # On AIX, shared libraries and static libraries use the same namespace, and
10736 # are all built from PIC.
10739 test "$enable_shared" = yes && enable_static=no
10740 if test -n "$RANLIB"; then
10741 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10742 postinstall_cmds='$RANLIB $lib'
10747 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10748 test "$enable_shared" = yes && enable_static=no
10752 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10753 echo "${ECHO_T}$enable_shared" >&6; }
10755 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10756 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10757 # Make sure either enable_shared or enable_static is yes.
10758 test "$enable_shared" = yes || enable_static=yes
10759 { echo "$as_me:$LINENO: result: $enable_static" >&5
10760 echo "${ECHO_T}$enable_static" >&6; }
10767 ac_cpp='$CPP $CPPFLAGS'
10768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10786 ac_config_commands="$ac_config_commands libtool"
10791 # Only expand once:
10795 # Checks for libraries.
10796 # FIXME: Replace `main' with a function in `-lpthread':
10798 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
10799 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
10800 if test "${ac_cv_lib_pthread_main+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 ac_check_lib_save_LIBS=$LIBS
10804 LIBS="-lpthread $LIBS"
10805 cat >conftest.$ac_ext <<_ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (ac_try="$ac_link"
10823 case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828 (eval "$ac_link") 2>conftest.er1
10830 grep -v '^ *+' conftest.er1 >conftest.err
10832 cat conftest.err >&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } && {
10835 test -z "$ac_c_werror_flag" ||
10836 test ! -s conftest.err
10837 } && test -s conftest$ac_exeext &&
10838 $as_test_x conftest$ac_exeext; then
10839 ac_cv_lib_pthread_main=yes
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 ac_cv_lib_pthread_main=no
10847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10851 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
10852 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
10853 if test $ac_cv_lib_pthread_main = yes; then
10854 cat >>confdefs.h <<_ACEOF
10855 #define HAVE_LIBPTHREAD 1
10858 LIBS="-lpthread $LIBS"
10863 # Checks for header files.
10864 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10866 if test "${ac_cv_header_stdc+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 cat >conftest.$ac_ext <<_ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 #include <stdlib.h>
10876 #include <stdarg.h>
10877 #include <string.h>
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.$ac_objext; then
10905 ac_cv_header_stdc=yes
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_cv_header_stdc=no
10913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 if test $ac_cv_header_stdc = yes; then
10916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 #include <string.h>
10926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10927 $EGREP "memchr" >/dev/null 2>&1; then
10930 ac_cv_header_stdc=no
10936 if test $ac_cv_header_stdc = yes; then
10937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 #include <stdlib.h>
10947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10948 $EGREP "free" >/dev/null 2>&1; then
10951 ac_cv_header_stdc=no
10957 if test $ac_cv_header_stdc = yes; then
10958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10959 if test "$cross_compiling" = yes; then
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10969 #include <stdlib.h>
10970 #if ((' ' & 0x0FF) == 0x020)
10971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10974 # define ISLOWER(c) \
10975 (('a' <= (c) && (c) <= 'i') \
10976 || ('j' <= (c) && (c) <= 'r') \
10977 || ('s' <= (c) && (c) <= 'z'))
10978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10986 for (i = 0; i < 256; i++)
10987 if (XOR (islower (i), ISLOWER (i))
10988 || toupper (i) != TOUPPER (i))
10993 rm -f conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_link") 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11004 { (case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_try") 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11015 echo "$as_me: program exited with status $ac_status" >&5
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 ( exit $ac_status )
11020 ac_cv_header_stdc=no
11022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11030 if test $ac_cv_header_stdc = yes; then
11032 cat >>confdefs.h <<\_ACEOF
11033 #define STDC_HEADERS 1
11044 for ac_header in fcntl.h malloc.h stdlib.h string.h sys/time.h unistd.h
11046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 ac_res=`eval echo '${'$as_ac_Header'}'`
11054 { echo "$as_me:$LINENO: result: $ac_res" >&5
11055 echo "${ECHO_T}$ac_res" >&6; }
11057 # Is the header compilable?
11058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11060 cat >conftest.$ac_ext <<_ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 $ac_includes_default
11067 #include <$ac_header>
11069 rm -f conftest.$ac_objext
11070 if { (ac_try="$ac_compile"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_compile") 2>conftest.er1
11078 grep -v '^ *+' conftest.er1 >conftest.err
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest.$ac_objext; then
11086 ac_header_compiler=yes
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_header_compiler=no
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11096 echo "${ECHO_T}$ac_header_compiler" >&6; }
11098 # Is the header present?
11099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 #include <$ac_header>
11109 if { (ac_try="$ac_cpp conftest.$ac_ext"
11110 case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } >/dev/null && {
11122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11125 ac_header_preproc=yes
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 ac_header_preproc=no
11133 rm -f conftest.err conftest.$ac_ext
11134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11135 echo "${ECHO_T}$ac_header_preproc" >&6; }
11137 # So? What about this header?
11138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11144 ac_header_preproc=yes
11147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 eval "$as_ac_Header=\$ac_header_preproc"
11169 ac_res=`eval echo '${'$as_ac_Header'}'`
11170 { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11175 cat >>confdefs.h <<_ACEOF
11176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11184 # Checks for typedefs, structures, and compiler characteristics.
11185 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11186 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11187 if test "${ac_cv_header_stdbool_h+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 cat >conftest.$ac_ext <<_ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11197 #include <stdbool.h>
11199 "error: bool is not defined"
11202 "error: false is not defined"
11205 "error: false is not 0"
11208 "error: true is not defined"
11211 "error: true is not 1"
11213 #ifndef __bool_true_false_are_defined
11214 "error: __bool_true_false_are_defined is not defined"
11217 struct s { _Bool s: 1; _Bool t; } s;
11219 char a[true == 1 ? 1 : -1];
11220 char b[false == 0 ? 1 : -1];
11221 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11222 char d[(bool) 0.5 == true ? 1 : -1];
11224 char f[(_Bool) 0.0 == false ? 1 : -1];
11226 char h[sizeof (_Bool)];
11227 char i[sizeof s.t];
11228 enum { j = false, k = true, l = false * true, m = true * 256 };
11230 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11231 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11232 # if defined __xlc__ || defined __GNUC__
11233 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11234 reported by James Lemley on 2005-10-05; see
11235 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11236 This test is not quite right, since xlc is allowed to
11237 reject this program, as the initializer for xlcbug is
11238 not one of the forms that C requires support for.
11239 However, doing the test right would require a runtime
11240 test, and that would make cross-compilation harder.
11241 Let us hope that IBM fixes the xlc bug, and also adds
11242 support for this kind of constant expression. In the
11243 meantime, this test will reject xlc, which is OK, since
11244 our stdbool.h substitute should suffice. We also test
11245 this with GCC, where it should work, to detect more
11246 quickly whether someone messes up the test in the
11248 char digs[] = "0123456789";
11249 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11251 /* Catch a bug in an HP-UX C compiler. See
11252 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11253 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11264 /* Refer to every declared value, to avoid compiler optimizations. */
11265 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11266 + !m + !n + !o + !p + !q + !pq);
11272 rm -f conftest.$ac_objext
11273 if { (ac_try="$ac_compile"
11274 case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_compile") 2>conftest.er1
11281 grep -v '^ *+' conftest.er1 >conftest.err
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest.$ac_objext; then
11289 ac_cv_header_stdbool_h=yes
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_cv_header_stdbool_h=no
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11299 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11300 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11301 { echo "$as_me:$LINENO: checking for _Bool" >&5
11302 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11303 if test "${ac_cv_type__Bool+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 $ac_includes_default
11313 typedef _Bool ac__type_new_;
11317 if ((ac__type_new_ *) 0)
11319 if (sizeof (ac__type_new_))
11325 rm -f conftest.$ac_objext
11326 if { (ac_try="$ac_compile"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_compile") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest.$ac_objext; then
11342 ac_cv_type__Bool=yes
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_cv_type__Bool=no
11350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11353 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11354 if test $ac_cv_type__Bool = yes; then
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE__BOOL 1
11363 if test $ac_cv_header_stdbool_h = yes; then
11365 cat >>confdefs.h <<\_ACEOF
11366 #define HAVE_STDBOOL_H 1
11371 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11372 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11373 if test "${ac_cv_c_const+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11386 /* FIXME: Include the comments suggested by Paul. */
11387 #ifndef __cplusplus
11388 /* Ultrix mips cc rejects this. */
11389 typedef int charset[2];
11391 /* SunOS 4.1.1 cc rejects this. */
11392 char const *const *pcpcc;
11394 /* NEC SVR4.0.2 mips cc rejects this. */
11395 struct point {int x, y;};
11396 static struct point const zero = {0,0};
11397 /* AIX XL C 1.02.0.0 rejects this.
11398 It does not let you subtract one const X* pointer from another in
11399 an arm of an if-expression whose if-part is not a constant
11401 const char *g = "string";
11402 pcpcc = &g + (g ? g-g : 0);
11403 /* HPUX 7.0 cc rejects these. */
11405 ppc = (char**) pcpcc;
11406 pcpcc = (char const *const *) ppc;
11407 { /* SCO 3.2v4 cc rejects this. */
11409 char const *s = 0 ? (char *) 0 : (char const *) 0;
11414 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11415 int x[] = {25, 17};
11416 const int *foo = &x[0];
11419 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11420 typedef const int *iptr;
11424 { /* AIX XL C 1.02.0.0 rejects this saying
11425 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11426 struct s { int j; const int *ap[3]; };
11427 struct s *b; b->j = 5;
11429 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11430 const int foo = 10;
11431 if (!foo) return 0;
11433 return !cs[0] && !zero.x;
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_compile") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest.$ac_objext; then
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11468 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11469 if test $ac_cv_c_const = no; then
11471 cat >>confdefs.h <<\_ACEOF
11477 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11478 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11479 if test "${ac_cv_header_time+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 #include <sys/types.h>
11489 #include <sys/time.h>
11495 if ((struct tm *) 0)
11501 rm -f conftest.$ac_objext
11502 if { (ac_try="$ac_compile"
11503 case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_compile") 2>conftest.er1
11510 grep -v '^ *+' conftest.er1 >conftest.err
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } && {
11515 test -z "$ac_c_werror_flag" ||
11516 test ! -s conftest.err
11517 } && test -s conftest.$ac_objext; then
11518 ac_cv_header_time=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_cv_header_time=no
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11529 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11530 if test $ac_cv_header_time = yes; then
11532 cat >>confdefs.h <<\_ACEOF
11533 #define TIME_WITH_SYS_TIME 1
11539 # Checks for library functions.
11541 for ac_header in stdlib.h
11543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 ac_res=`eval echo '${'$as_ac_Header'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11554 # Is the header compilable?
11555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11557 cat >conftest.$ac_ext <<_ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563 $ac_includes_default
11564 #include <$ac_header>
11566 rm -f conftest.$ac_objext
11567 if { (ac_try="$ac_compile"
11568 case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_compile") 2>conftest.er1
11575 grep -v '^ *+' conftest.er1 >conftest.err
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && {
11580 test -z "$ac_c_werror_flag" ||
11581 test ! -s conftest.err
11582 } && test -s conftest.$ac_objext; then
11583 ac_header_compiler=yes
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_header_compiler=no
11591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11593 echo "${ECHO_T}$ac_header_compiler" >&6; }
11595 # Is the header present?
11596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 #include <$ac_header>
11606 if { (ac_try="$ac_cpp conftest.$ac_ext"
11607 case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11614 grep -v '^ *+' conftest.er1 >conftest.err
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } >/dev/null && {
11619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11620 test ! -s conftest.err
11622 ac_header_preproc=yes
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_header_preproc=no
11630 rm -f conftest.err conftest.$ac_ext
11631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 echo "${ECHO_T}$ac_header_preproc" >&6; }
11634 # So? What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc=yes
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 eval "$as_ac_Header=\$ac_header_preproc"
11666 ac_res=`eval echo '${'$as_ac_Header'}'`
11667 { echo "$as_me:$LINENO: result: $ac_res" >&5
11668 echo "${ECHO_T}$ac_res" >&6; }
11671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11672 cat >>confdefs.h <<_ACEOF
11673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11680 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11681 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
11682 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 if test "$cross_compiling" = yes; then
11686 ac_cv_func_malloc_0_nonnull=no
11688 cat >conftest.$ac_ext <<_ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11695 # include <stdlib.h>
11703 return ! malloc (0);
11708 rm -f conftest$ac_exeext
11709 if { (ac_try="$ac_link"
11710 case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_link") 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_func_malloc_0_nonnull=yes
11730 echo "$as_me: program exited with status $ac_status" >&5
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 ( exit $ac_status )
11735 ac_cv_func_malloc_0_nonnull=no
11737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11742 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11743 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
11744 if test $ac_cv_func_malloc_0_nonnull = yes; then
11746 cat >>confdefs.h <<\_ACEOF
11747 #define HAVE_MALLOC 1
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_MALLOC 0
11755 case " $LIBOBJS " in
11756 *" malloc.$ac_objext "* ) ;;
11757 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11762 cat >>confdefs.h <<\_ACEOF
11763 #define malloc rpl_malloc
11772 for ac_header in stdlib.h unistd.h
11774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 ac_res=`eval echo '${'$as_ac_Header'}'`
11782 { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11785 # Is the header compilable?
11786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11788 cat >conftest.$ac_ext <<_ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 $ac_includes_default
11795 #include <$ac_header>
11797 rm -f conftest.$ac_objext
11798 if { (ac_try="$ac_compile"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_compile") 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && {
11811 test -z "$ac_c_werror_flag" ||
11812 test ! -s conftest.err
11813 } && test -s conftest.$ac_objext; then
11814 ac_header_compiler=yes
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 ac_header_compiler=no
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824 echo "${ECHO_T}$ac_header_compiler" >&6; }
11826 # Is the header present?
11827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <$ac_header>
11837 if { (ac_try="$ac_cpp conftest.$ac_ext"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } >/dev/null && {
11850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11853 ac_header_preproc=yes
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_header_preproc=no
11861 rm -f conftest.err conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11863 echo "${ECHO_T}$ac_header_preproc" >&6; }
11865 # So? What about this header?
11866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11872 ac_header_preproc=yes
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 eval "$as_ac_Header=\$ac_header_preproc"
11897 ac_res=`eval echo '${'$as_ac_Header'}'`
11898 { echo "$as_me:$LINENO: result: $ac_res" >&5
11899 echo "${ECHO_T}$ac_res" >&6; }
11902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11903 cat >>confdefs.h <<_ACEOF
11904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11912 for ac_func in getpagesize
11914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 cat >conftest.$ac_ext <<_ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11928 #define $ac_func innocuous_$ac_func
11930 /* System header to define __stub macros and hopefully few prototypes,
11931 which can conflict with char $ac_func (); below.
11932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11933 <limits.h> exists even on freestanding compilers. */
11936 # include <limits.h>
11938 # include <assert.h>
11943 /* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11950 /* The GNU C library defines this for functions which it implements
11951 to always fail with ENOSYS. Some functions are actually named
11952 something starting with __ and the normal name is an alias. */
11953 #if defined __stub_$ac_func || defined __stub___$ac_func
11960 return $ac_func ();
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 eval "$as_ac_var=yes"
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 eval "$as_ac_var=no"
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11994 ac_res=`eval echo '${'$as_ac_var'}'`
11995 { echo "$as_me:$LINENO: result: $ac_res" >&5
11996 echo "${ECHO_T}$ac_res" >&6; }
11997 if test `eval echo '${'$as_ac_var'}'` = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005 { echo "$as_me:$LINENO: checking for working mmap" >&5
12006 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12007 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 if test "$cross_compiling" = yes; then
12011 ac_cv_func_mmap_fixed_mapped=no
12013 cat >conftest.$ac_ext <<_ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 $ac_includes_default
12020 /* malloc might have been renamed as rpl_malloc. */
12023 /* Thanks to Mike Haertel and Jim Avera for this test.
12024 Here is a matrix of mmap possibilities:
12025 mmap private not fixed
12026 mmap private fixed at somewhere currently unmapped
12027 mmap private fixed at somewhere already mapped
12028 mmap shared not fixed
12029 mmap shared fixed at somewhere currently unmapped
12030 mmap shared fixed at somewhere already mapped
12031 For private mappings, we should verify that changes cannot be read()
12032 back from the file, nor mmap's back from the file at a different
12033 address. (There have been systems where private was not correctly
12034 implemented like the infamous i386 svr4.0, and systems where the
12035 VM page cache was not coherent with the file system buffer cache
12036 like early versions of FreeBSD and possibly contemporary NetBSD.)
12037 For shared mappings, we should conversely verify that changes get
12038 propagated back to all the places they're supposed to be.
12040 Grep wants private fixed already mapped.
12041 The main things grep needs to know about mmap are:
12042 * does it exist and is it safe to write into the mmap'd area
12043 * how to use it (BSD variants) */
12046 #include <sys/mman.h>
12048 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12052 /* This mess was copied from the GNU getpagesize.h. */
12053 #ifndef HAVE_GETPAGESIZE
12054 /* Assume that all systems that can run configure have sys/param.h. */
12055 # ifndef HAVE_SYS_PARAM_H
12056 # define HAVE_SYS_PARAM_H 1
12059 # ifdef _SC_PAGESIZE
12060 # define getpagesize() sysconf(_SC_PAGESIZE)
12061 # else /* no _SC_PAGESIZE */
12062 # ifdef HAVE_SYS_PARAM_H
12063 # include <sys/param.h>
12064 # ifdef EXEC_PAGESIZE
12065 # define getpagesize() EXEC_PAGESIZE
12066 # else /* no EXEC_PAGESIZE */
12068 # define getpagesize() NBPG * CLSIZE
12071 # endif /* no CLSIZE */
12072 # else /* no NBPG */
12074 # define getpagesize() NBPC
12075 # else /* no NBPC */
12077 # define getpagesize() PAGESIZE
12078 # endif /* PAGESIZE */
12079 # endif /* no NBPC */
12080 # endif /* no NBPG */
12081 # endif /* no EXEC_PAGESIZE */
12082 # else /* no HAVE_SYS_PARAM_H */
12083 # define getpagesize() 8192 /* punt totally */
12084 # endif /* no HAVE_SYS_PARAM_H */
12085 # endif /* no _SC_PAGESIZE */
12087 #endif /* no HAVE_GETPAGESIZE */
12092 char *data, *data2, *data3;
12096 pagesize = getpagesize ();
12098 /* First, make a file with some known garbage in it. */
12099 data = (char *) malloc (pagesize);
12102 for (i = 0; i < pagesize; ++i)
12103 *(data + i) = rand ();
12105 fd = creat ("conftest.mmap", 0600);
12108 if (write (fd, data, pagesize) != pagesize)
12112 /* Next, try to mmap the file at a fixed address which already has
12113 something else allocated at it. If we can, also make sure that
12114 we see the same garbage. */
12115 fd = open ("conftest.mmap", O_RDWR);
12118 data2 = (char *) malloc (2 * pagesize);
12121 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12122 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12123 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12125 for (i = 0; i < pagesize; ++i)
12126 if (*(data + i) != *(data2 + i))
12129 /* Finally, make sure that changes to the mapped area do not
12130 percolate back to the file as seen by read(). (This is a bug on
12131 some variants of i386 svr4.0.) */
12132 for (i = 0; i < pagesize; ++i)
12133 *(data2 + i) = *(data2 + i) + 1;
12134 data3 = (char *) malloc (pagesize);
12137 if (read (fd, data3, pagesize) != pagesize)
12139 for (i = 0; i < pagesize; ++i)
12140 if (*(data + i) != *(data3 + i))
12146 rm -f conftest$ac_exeext
12147 if { (ac_try="$ac_link"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_link") 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_func_mmap_fixed_mapped=yes
12168 echo "$as_me: program exited with status $ac_status" >&5
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12172 ( exit $ac_status )
12173 ac_cv_func_mmap_fixed_mapped=no
12175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12180 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12181 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12182 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12184 cat >>confdefs.h <<\_ACEOF
12185 #define HAVE_MMAP 1
12189 rm -f conftest.mmap
12196 for ac_func in gettimeofday memset munmap strcasecmp strdup
12198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 cat >conftest.$ac_ext <<_ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12212 #define $ac_func innocuous_$ac_func
12214 /* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char $ac_func (); below.
12216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12217 <limits.h> exists even on freestanding compilers. */
12220 # include <limits.h>
12222 # include <assert.h>
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12234 /* The GNU C library defines this for functions which it implements
12235 to always fail with ENOSYS. Some functions are actually named
12236 something starting with __ and the normal name is an alias. */
12237 #if defined __stub_$ac_func || defined __stub___$ac_func
12244 return $ac_func ();
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (ac_try="$ac_link"
12251 case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_link") 2>conftest.er1
12258 grep -v '^ *+' conftest.er1 >conftest.err
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest$ac_exeext &&
12266 $as_test_x conftest$ac_exeext; then
12267 eval "$as_ac_var=yes"
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 eval "$as_ac_var=no"
12275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12276 conftest$ac_exeext conftest.$ac_ext
12278 ac_res=`eval echo '${'$as_ac_var'}'`
12279 { echo "$as_me:$LINENO: result: $ac_res" >&5
12280 echo "${ECHO_T}$ac_res" >&6; }
12281 if test `eval echo '${'$as_ac_var'}'` = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12292 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12293 if test -n "$ac_tool_prefix"; then
12294 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12295 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12298 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 case $PKG_CONFIG in
12303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $PATH
12310 test -z "$as_dir" && as_dir=.
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12325 if test -n "$PKG_CONFIG"; then
12326 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12327 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12329 { echo "$as_me:$LINENO: result: no" >&5
12330 echo "${ECHO_T}no" >&6; }
12335 if test -z "$ac_cv_path_PKG_CONFIG"; then
12336 ac_pt_PKG_CONFIG=$PKG_CONFIG
12337 # Extract the first word of "pkg-config", so it can be a program name with args.
12338 set dummy pkg-config; ac_word=$2
12339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12341 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 case $ac_pt_PKG_CONFIG in
12346 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12368 if test -n "$ac_pt_PKG_CONFIG"; then
12369 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12370 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
12372 { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12376 if test "x$ac_pt_PKG_CONFIG" = x; then
12379 case $cross_compiling:$ac_tool_warned in
12381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12382 whose name does not start with the host triplet. If you think this
12383 configuration is useful to you, please write to autoconf@gnu.org." >&5
12384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12385 whose name does not start with the host triplet. If you think this
12386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12387 ac_tool_warned=yes ;;
12389 PKG_CONFIG=$ac_pt_PKG_CONFIG
12392 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12396 if test -n "$PKG_CONFIG"; then
12397 _pkg_min_version=0.9.0
12398 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12399 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
12400 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12401 { echo "$as_me:$LINENO: result: yes" >&5
12402 echo "${ECHO_T}yes" >&6; }
12404 { echo "$as_me:$LINENO: result: no" >&5
12405 echo "${ECHO_T}no" >&6; }
12412 { echo "$as_me:$LINENO: checking for GLIB" >&5
12413 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
12415 if test -n "$PKG_CONFIG"; then
12416 if test -n "$GLIB_CFLAGS"; then
12417 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12419 if test -n "$PKG_CONFIG" && \
12420 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
12421 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; then
12425 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
12433 if test -n "$PKG_CONFIG"; then
12434 if test -n "$GLIB_LIBS"; then
12435 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12437 if test -n "$PKG_CONFIG" && \
12438 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
12439 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; then
12443 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
12454 if test $pkg_failed = yes; then
12456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12457 _pkg_short_errors_supported=yes
12459 _pkg_short_errors_supported=no
12461 if test $_pkg_short_errors_supported = yes; then
12462 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
12464 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
12466 # Put the nasty error message in config.log where it belongs
12467 echo "$GLIB_PKG_ERRORS" >&5
12469 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
12473 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12474 installed software in a non-standard prefix.
12476 Alternatively, you may set the environment variables GLIB_CFLAGS
12477 and GLIB_LIBS to avoid the need to call pkg-config.
12478 See the pkg-config man page for more details.
12480 echo "$as_me: error: Package requirements (glib-2.0) were not met:
12484 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12485 installed software in a non-standard prefix.
12487 Alternatively, you may set the environment variables GLIB_CFLAGS
12488 and GLIB_LIBS to avoid the need to call pkg-config.
12489 See the pkg-config man page for more details.
12491 { (exit 1); exit 1; }; }
12492 elif test $pkg_failed = untried; then
12493 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12494 is in your PATH or set the PKG_CONFIG environment variable to the full
12495 path to pkg-config.
12497 Alternatively, you may set the environment variables GLIB_CFLAGS
12498 and GLIB_LIBS to avoid the need to call pkg-config.
12499 See the pkg-config man page for more details.
12501 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12502 See \`config.log' for more details." >&5
12503 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12504 is in your PATH or set the PKG_CONFIG environment variable to the full
12505 path to pkg-config.
12507 Alternatively, you may set the environment variables GLIB_CFLAGS
12508 and GLIB_LIBS to avoid the need to call pkg-config.
12509 See the pkg-config man page for more details.
12511 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12512 See \`config.log' for more details." >&2;}
12513 { (exit 1); exit 1; }; }
12515 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12516 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12517 { echo "$as_me:$LINENO: result: yes" >&5
12518 echo "${ECHO_T}yes" >&6; }
12526 { echo "$as_me:$LINENO: checking for MMLOG" >&5
12527 echo $ECHO_N "checking for MMLOG... $ECHO_C" >&6; }
12529 if test -n "$PKG_CONFIG"; then
12530 if test -n "$MMLOG_CFLAGS"; then
12531 pkg_cv_MMLOG_CFLAGS="$MMLOG_CFLAGS"
12533 if test -n "$PKG_CONFIG" && \
12534 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
12535 ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; then
12539 pkg_cv_MMLOG_CFLAGS=`$PKG_CONFIG --cflags "mm-log" 2>/dev/null`
12547 if test -n "$PKG_CONFIG"; then
12548 if test -n "$MMLOG_LIBS"; then
12549 pkg_cv_MMLOG_LIBS="$MMLOG_LIBS"
12551 if test -n "$PKG_CONFIG" && \
12552 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
12553 ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; then
12557 pkg_cv_MMLOG_LIBS=`$PKG_CONFIG --libs "mm-log" 2>/dev/null`
12568 if test $pkg_failed = yes; then
12570 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12571 _pkg_short_errors_supported=yes
12573 _pkg_short_errors_supported=no
12575 if test $_pkg_short_errors_supported = yes; then
12576 MMLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mm-log"`
12578 MMLOG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-log"`
12580 # Put the nasty error message in config.log where it belongs
12581 echo "$MMLOG_PKG_ERRORS" >&5
12583 { { echo "$as_me:$LINENO: error: Package requirements (mm-log) were not met:
12587 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12588 installed software in a non-standard prefix.
12590 Alternatively, you may set the environment variables MMLOG_CFLAGS
12591 and MMLOG_LIBS to avoid the need to call pkg-config.
12592 See the pkg-config man page for more details.
12594 echo "$as_me: error: Package requirements (mm-log) were not met:
12598 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12599 installed software in a non-standard prefix.
12601 Alternatively, you may set the environment variables MMLOG_CFLAGS
12602 and MMLOG_LIBS to avoid the need to call pkg-config.
12603 See the pkg-config man page for more details.
12605 { (exit 1); exit 1; }; }
12606 elif test $pkg_failed = untried; then
12607 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12608 is in your PATH or set the PKG_CONFIG environment variable to the full
12609 path to pkg-config.
12611 Alternatively, you may set the environment variables MMLOG_CFLAGS
12612 and MMLOG_LIBS to avoid the need to call pkg-config.
12613 See the pkg-config man page for more details.
12615 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12616 See \`config.log' for more details." >&5
12617 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12618 is in your PATH or set the PKG_CONFIG environment variable to the full
12619 path to pkg-config.
12621 Alternatively, you may set the environment variables MMLOG_CFLAGS
12622 and MMLOG_LIBS to avoid the need to call pkg-config.
12623 See the pkg-config man page for more details.
12625 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12626 See \`config.log' for more details." >&2;}
12627 { (exit 1); exit 1; }; }
12629 MMLOG_CFLAGS=$pkg_cv_MMLOG_CFLAGS
12630 MMLOG_LIBS=$pkg_cv_MMLOG_LIBS
12631 { echo "$as_me:$LINENO: result: yes" >&5
12632 echo "${ECHO_T}yes" >&6; }
12638 ac_config_files="$ac_config_files Makefile mm-common.pc"
12640 cat >confcache <<\_ACEOF
12641 # This file is a shell script that caches the results of configure
12642 # tests run on this system so they can be shared between configure
12643 # scripts and configure runs, see configure's option --config-cache.
12644 # It is not useful on other systems. If it contains results you don't
12645 # want to keep, you may remove or edit it.
12647 # config.status only pays attention to the cache file if you give it
12648 # the --recheck option to rerun configure.
12650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12652 # following values.
12656 # The following way of writing the cache mishandles newlines in values,
12657 # but we know of no workaround that is simple, portable, and efficient.
12658 # So, we kill variables containing newlines.
12659 # Ultrix sh set writes to stderr and can't be redirected directly,
12660 # and sets the high bit in the cache file unless we assign to the vars.
12662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12663 eval ac_val=\$$ac_var
12667 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12668 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12671 _ | IFS | as_nl) ;; #(
12672 *) $as_unset $ac_var ;;
12678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12679 *${as_nl}ac_space=\ *)
12680 # `set' does not quote correctly, so add quotes (double-quote
12681 # substitution turns \\\\ into \\, and sed turns \\ into \).
12684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12687 # `set' quotes correctly as required by POSIX, so do not add quotes.
12688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12702 if test -w "$cache_file"; then
12703 test "x$cache_file" != "x/dev/null" &&
12704 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12705 echo "$as_me: updating cache $cache_file" >&6;}
12706 cat confcache >$cache_file
12708 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12709 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12715 # Let make expand exec_prefix.
12716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12718 DEFS=-DHAVE_CONFIG_H
12722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12723 # 1. Remove the extension, and $U if already installed.
12724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12725 ac_i=`echo "$ac_i" | sed "$ac_script"`
12726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12727 # will be set to the directory where LIBOBJS objects are built.
12728 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12729 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12731 LIBOBJS=$ac_libobjs
12733 LTLIBOBJS=$ac_ltlibobjs
12736 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12737 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12738 Usually this means the macro was only invoked conditionally." >&5
12739 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12740 Usually this means the macro was only invoked conditionally." >&2;}
12741 { (exit 1); exit 1; }; }
12743 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12744 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12745 Usually this means the macro was only invoked conditionally." >&5
12746 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12747 Usually this means the macro was only invoked conditionally." >&2;}
12748 { (exit 1); exit 1; }; }
12751 : ${CONFIG_STATUS=./config.status}
12752 ac_clean_files_save=$ac_clean_files
12753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12754 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12756 cat >$CONFIG_STATUS <<_ACEOF
12758 # Generated by $as_me.
12759 # Run this file to recreate the current configuration.
12760 # Compiler output produced by configure, useful for debugging
12761 # configure, is in config.log if it exists.
12764 ac_cs_recheck=false
12766 SHELL=\${CONFIG_SHELL-$SHELL}
12769 cat >>$CONFIG_STATUS <<\_ACEOF
12770 ## --------------------- ##
12771 ## M4sh Initialization. ##
12772 ## --------------------- ##
12774 # Be more Bourne compatible
12775 DUALCASE=1; export DUALCASE # for MKS sh
12776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12779 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12780 # is contrary to our usage. Disable this feature.
12781 alias -g '${1+"$@"}'='"$@"'
12782 setopt NO_GLOB_SUBST
12784 case `(set -o) 2>/dev/null` in
12785 *posix*) set -o posix ;;
12794 # Avoid depending upon Character Ranges.
12795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12798 as_cr_digits='0123456789'
12799 as_cr_alnum=$as_cr_Letters$as_cr_digits
12801 # The user is always right.
12802 if test "${PATH_SEPARATOR+set}" != set; then
12803 echo "#! /bin/sh" >conf$$.sh
12804 echo "exit 0" >>conf$$.sh
12806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12814 # Support unset when possible.
12815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12823 # We need space, tab and new line, in precisely that order. Quoting is
12824 # there to prevent editors from complaining about space-tab.
12825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12826 # splitting by setting IFS to empty value.)
12831 # Find who we are. Look in the path if we contain no directory separator.
12833 *[\\/]* ) as_myself=$0 ;;
12834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835 for as_dir in $PATH
12838 test -z "$as_dir" && as_dir=.
12839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12845 # We did not find ourselves, most probably we were run as `sh COMMAND'
12846 # in which case we are not to be found in the path.
12847 if test "x$as_myself" = x; then
12850 if test ! -f "$as_myself"; then
12851 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12852 { (exit 1); exit 1; }
12855 # Work around bugs in pre-3.0 UWIN ksh.
12856 for as_var in ENV MAIL MAILPATH
12857 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12865 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12866 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12867 LC_TELEPHONE LC_TIME
12869 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12870 eval $as_var=C; export $as_var
12872 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12876 # Required to use basename.
12877 if expr a : '\(a\)' >/dev/null 2>&1 &&
12878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12885 as_basename=basename
12891 # Name of the executable.
12892 as_me=`$as_basename -- "$0" ||
12893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12894 X"$0" : 'X\(//\)$' \| \
12895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12897 sed '/^.*\/\([^/][^/]*\)\/*$/{
12916 as_lineno_1=$LINENO
12917 as_lineno_2=$LINENO
12918 test "x$as_lineno_1" != "x$as_lineno_2" &&
12919 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12921 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12922 # uniformly replaced by the line number. The first 'sed' inserts a
12923 # line-number line after each line using $LINENO; the second 'sed'
12924 # does the real work. The second script uses 'N' to pair each
12925 # line-number line with the line containing $LINENO, and appends
12926 # trailing '-' during substitution so that $LINENO is not a special
12927 # case at line end.
12928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12929 # scripts with optimization help from Paolo Bonzini. Blame Lee
12930 # E. McMahon (1931-1989) for sed's syntax. :-)
12942 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12945 ' >$as_me.lineno &&
12946 chmod +x "$as_me.lineno" ||
12947 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12948 { (exit 1); exit 1; }; }
12950 # Don't try to exec as it changes $[0], causing all sort of problems
12951 # (the dirname of $[0] is not the place where we might find the
12952 # original and so on. Autoconf is especially sensitive to this).
12953 . "./$as_me.lineno"
12954 # Exit status is that of the last command.
12959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12965 ECHO_C= ECHO_N= ECHO_T=
12966 case `echo -n x` in
12968 case `echo 'x\c'` in
12969 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12976 if expr a : '\(a\)' >/dev/null 2>&1 &&
12977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12983 rm -f conf$$ conf$$.exe conf$$.file
12984 if test -d conf$$.dir; then
12985 rm -f conf$$.dir/conf$$.file
12991 if ln -s conf$$.file conf$$ 2>/dev/null; then
12993 # ... but there are two gotchas:
12994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12996 # In both cases, we have to default to `cp -p'.
12997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12999 elif ln conf$$.file conf$$ 2>/dev/null; then
13004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13005 rmdir conf$$.dir 2>/dev/null
13007 if mkdir -p . 2>/dev/null; then
13010 test -d ./-p && rmdir ./-p
13014 if test -x / >/dev/null 2>&1; then
13015 as_test_x='test -x'
13017 if ls -dL / >/dev/null 2>&1; then
13024 if test -d "$1"; then
13030 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13031 ???[sx]*):;;*)false;;esac;fi
13035 as_executable_p=$as_test_x
13037 # Sed expression to map a string onto a valid CPP name.
13038 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13040 # Sed expression to map a string onto a valid variable name.
13041 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13046 # Save the log message, to keep $[0] and so on meaningful, and to
13047 # report actual input values of CONFIG_FILES etc. instead of their
13048 # values after options handling.
13050 This file was extended by libmm-common $as_me 0.0.1, which was
13051 generated by GNU Autoconf 2.61. Invocation command line was
13053 CONFIG_FILES = $CONFIG_FILES
13054 CONFIG_HEADERS = $CONFIG_HEADERS
13055 CONFIG_LINKS = $CONFIG_LINKS
13056 CONFIG_COMMANDS = $CONFIG_COMMANDS
13059 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13064 cat >>$CONFIG_STATUS <<_ACEOF
13065 # Files that config.status was made for.
13066 config_files="$ac_config_files"
13067 config_headers="$ac_config_headers"
13068 config_commands="$ac_config_commands"
13072 cat >>$CONFIG_STATUS <<\_ACEOF
13074 \`$as_me' instantiates files from templates according to the
13075 current configuration.
13077 Usage: $0 [OPTIONS] [FILE]...
13079 -h, --help print this help, then exit
13080 -V, --version print version number and configuration settings, then exit
13081 -q, --quiet do not print progress messages
13082 -d, --debug don't remove temporary files
13083 --recheck update $as_me by reconfiguring in the same conditions
13084 --file=FILE[:TEMPLATE]
13085 instantiate the configuration file FILE
13086 --header=FILE[:TEMPLATE]
13087 instantiate the configuration header FILE
13089 Configuration files:
13092 Configuration headers:
13095 Configuration commands:
13098 Report bugs to <bug-autoconf@gnu.org>."
13101 cat >>$CONFIG_STATUS <<_ACEOF
13103 libmm-common config.status 0.0.1
13104 configured by $0, generated by GNU Autoconf 2.61,
13105 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13107 Copyright (C) 2006 Free Software Foundation, Inc.
13108 This config.status script is free software; the Free Software Foundation
13109 gives unlimited permission to copy, distribute and modify it."
13117 cat >>$CONFIG_STATUS <<\_ACEOF
13118 # If no file are specified by the user, then we need to provide default
13119 # value. By we need to know if files were specified by the user.
13125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13126 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13137 # Handling of the options.
13138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13140 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13141 echo "$ac_cs_version"; exit ;;
13142 --debug | --debu | --deb | --de | --d | -d )
13144 --file | --fil | --fi | --f )
13146 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13147 ac_need_defaults=false;;
13148 --header | --heade | --head | --hea )
13150 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13151 ac_need_defaults=false;;
13153 # Conflict between --help and --header
13154 { echo "$as_me: error: ambiguous option: $1
13155 Try \`$0 --help' for more information." >&2
13156 { (exit 1); exit 1; }; };;
13157 --help | --hel | -h )
13158 echo "$ac_cs_usage"; exit ;;
13159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13163 # This is an error.
13164 -*) { echo "$as_me: error: unrecognized option: $1
13165 Try \`$0 --help' for more information." >&2
13166 { (exit 1); exit 1; }; } ;;
13168 *) ac_config_targets="$ac_config_targets $1"
13169 ac_need_defaults=false ;;
13175 ac_configure_extra_args=
13177 if $ac_cs_silent; then
13179 ac_configure_extra_args="$ac_configure_extra_args --silent"
13183 cat >>$CONFIG_STATUS <<_ACEOF
13184 if \$ac_cs_recheck; then
13185 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13186 CONFIG_SHELL=$SHELL
13187 export CONFIG_SHELL
13188 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13192 cat >>$CONFIG_STATUS <<\_ACEOF
13196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13197 ## Running $as_me. ##
13203 cat >>$CONFIG_STATUS <<_ACEOF
13207 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13210 # The HP-UX ksh and POSIX shell print the target directory to stdout
13211 # if CDPATH is set.
13212 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13214 sed_quote_subst='$sed_quote_subst'
13215 double_quote_subst='$double_quote_subst'
13216 delay_variable_subst='$delay_variable_subst'
13217 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13218 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13219 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13220 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13221 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13222 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13223 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13224 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13225 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13226 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13227 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13228 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13229 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13230 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13231 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13232 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13233 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13234 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13235 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13236 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13237 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13238 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13239 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13240 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13241 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13242 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13243 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13244 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13245 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13246 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13247 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13248 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13249 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13250 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13251 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13252 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13253 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13254 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13255 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13256 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13257 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13258 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13259 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13260 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"`'
13261 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"`'
13262 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13263 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13264 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13265 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13266 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13267 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13268 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13269 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13270 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13271 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13272 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13273 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13274 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13275 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13276 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13277 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13278 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13279 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13280 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13281 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13282 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13283 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13284 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13285 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13286 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13287 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13288 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13289 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13290 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13291 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13292 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13293 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13294 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13295 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13296 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13297 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13298 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13299 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13300 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13301 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13302 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13303 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13304 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13305 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13306 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13307 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13308 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13309 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13310 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13311 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13312 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13313 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13314 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13315 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13316 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13317 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13318 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13319 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13320 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13321 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13322 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13323 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13324 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13325 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13326 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13327 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13328 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13329 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13330 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13331 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13332 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13333 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13336 LTCFLAGS='$LTCFLAGS'
13337 compiler='$compiler_DEFAULT'
13339 # Quote evaled strings.
13350 deplibs_check_method \
13359 lt_cv_sys_global_symbol_pipe \
13360 lt_cv_sys_global_symbol_to_cdecl \
13361 lt_cv_sys_global_symbol_to_c_name_address \
13362 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13365 lt_prog_compiler_no_builtin_flag \
13366 lt_prog_compiler_wl \
13367 lt_prog_compiler_pic \
13368 lt_prog_compiler_static \
13369 lt_cv_prog_compiler_c_o \
13377 export_dynamic_flag_spec \
13378 whole_archive_flag_spec \
13379 compiler_needs_object \
13381 allow_undefined_flag \
13382 no_undefined_flag \
13383 hardcode_libdir_flag_spec \
13384 hardcode_libdir_flag_spec_ld \
13385 hardcode_libdir_separator \
13390 variables_saved_for_relink \
13392 library_names_spec \
13397 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13398 *[\\\\\\\`\\"\\\$]*)
13399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13407 # Double-quote double-evaled strings.
13408 for var in reload_cmds \
13409 old_postinstall_cmds \
13410 old_postuninstall_cmds \
13412 extract_expsyms_cmds \
13413 old_archive_from_new_cmds \
13414 old_archive_from_expsyms_cmds \
13416 archive_expsym_cmds \
13418 module_expsym_cmds \
13419 export_symbols_cmds \
13422 postuninstall_cmds \
13424 sys_lib_search_path_spec \
13425 sys_lib_dlsearch_path_spec; do
13426 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13427 *[\\\\\\\`\\"\\\$]*)
13428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13436 # Fix-up fallback echo if it was mangled by the above quoting rules.
13438 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13442 ac_aux_dir='$ac_aux_dir'
13443 xsi_shell='$xsi_shell'
13444 lt_shell_append='$lt_shell_append'
13446 # See if we are running on zsh, and set the options which allow our
13447 # commands through without removal of \ escapes INIT.
13448 if test -n "\${ZSH_VERSION+set}" ; then
13449 setopt NO_GLOB_SUBST
13455 TIMESTAMP='$TIMESTAMP'
13464 cat >>$CONFIG_STATUS <<\_ACEOF
13466 # Handling of arguments.
13467 for ac_config_target in $ac_config_targets
13469 case $ac_config_target in
13470 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13471 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13472 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13473 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13474 "mm-common.pc") CONFIG_FILES="$CONFIG_FILES mm-common.pc" ;;
13476 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13477 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13478 { (exit 1); exit 1; }; };;
13483 # If the user did not use the arguments to specify the items to instantiate,
13484 # then the envvar interface is used. Set only those that are not.
13485 # We use the long form for the default assignment because of an extremely
13486 # bizarre bug on SunOS 4.1.3.
13487 if $ac_need_defaults; then
13488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13493 # Have a temporary directory for convenience. Make it in the build tree
13494 # simply because there is no reason against having it here, and in addition,
13495 # creating and moving files from /tmp can sometimes cause problems.
13496 # Hook for its removal unless debugging.
13497 # Note that there is a small window in which the directory will not be cleaned:
13498 # after its creation but before its name has been assigned to `$tmp'.
13502 trap 'exit_status=$?
13503 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13505 trap '{ (exit 1); exit 1; }' 1 2 13 15
13507 # Create a (secure) tmp directory for tmp files.
13510 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13511 test -n "$tmp" && test -d "$tmp"
13514 tmp=./conf$$-$RANDOM
13515 (umask 077 && mkdir "$tmp")
13518 echo "$me: cannot create a temporary directory in ." >&2
13519 { (exit 1); exit 1; }
13523 # Set up the sed scripts for CONFIG_FILES section.
13526 # No need to generate the scripts if there are no CONFIG_FILES.
13527 # This happens for instance when ./config.status config.h
13528 if test -n "$CONFIG_FILES"; then
13535 for ac_last_try in false false false false false :; do
13536 cat >conf$$subs.sed <<_ACEOF
13537 SHELL!$SHELL$ac_delim
13538 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13539 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13540 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13541 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13542 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13543 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13544 exec_prefix!$exec_prefix$ac_delim
13545 prefix!$prefix$ac_delim
13546 program_transform_name!$program_transform_name$ac_delim
13547 bindir!$bindir$ac_delim
13548 sbindir!$sbindir$ac_delim
13549 libexecdir!$libexecdir$ac_delim
13550 datarootdir!$datarootdir$ac_delim
13551 datadir!$datadir$ac_delim
13552 sysconfdir!$sysconfdir$ac_delim
13553 sharedstatedir!$sharedstatedir$ac_delim
13554 localstatedir!$localstatedir$ac_delim
13555 includedir!$includedir$ac_delim
13556 oldincludedir!$oldincludedir$ac_delim
13557 docdir!$docdir$ac_delim
13558 infodir!$infodir$ac_delim
13559 htmldir!$htmldir$ac_delim
13560 dvidir!$dvidir$ac_delim
13561 pdfdir!$pdfdir$ac_delim
13562 psdir!$psdir$ac_delim
13563 libdir!$libdir$ac_delim
13564 localedir!$localedir$ac_delim
13565 mandir!$mandir$ac_delim
13566 DEFS!$DEFS$ac_delim
13567 ECHO_C!$ECHO_C$ac_delim
13568 ECHO_N!$ECHO_N$ac_delim
13569 ECHO_T!$ECHO_T$ac_delim
13570 LIBS!$LIBS$ac_delim
13571 build_alias!$build_alias$ac_delim
13572 host_alias!$host_alias$ac_delim
13573 target_alias!$target_alias$ac_delim
13574 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13575 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13576 INSTALL_DATA!$INSTALL_DATA$ac_delim
13577 am__isrc!$am__isrc$ac_delim
13578 CYGPATH_W!$CYGPATH_W$ac_delim
13579 PACKAGE!$PACKAGE$ac_delim
13580 VERSION!$VERSION$ac_delim
13581 ACLOCAL!$ACLOCAL$ac_delim
13582 AUTOCONF!$AUTOCONF$ac_delim
13583 AUTOMAKE!$AUTOMAKE$ac_delim
13584 AUTOHEADER!$AUTOHEADER$ac_delim
13585 MAKEINFO!$MAKEINFO$ac_delim
13586 install_sh!$install_sh$ac_delim
13587 STRIP!$STRIP$ac_delim
13588 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13589 mkdir_p!$mkdir_p$ac_delim
13591 SET_MAKE!$SET_MAKE$ac_delim
13592 am__leading_dot!$am__leading_dot$ac_delim
13593 AMTAR!$AMTAR$ac_delim
13594 am__tar!$am__tar$ac_delim
13595 am__untar!$am__untar$ac_delim
13597 CFLAGS!$CFLAGS$ac_delim
13598 LDFLAGS!$LDFLAGS$ac_delim
13599 CPPFLAGS!$CPPFLAGS$ac_delim
13600 ac_ct_CC!$ac_ct_CC$ac_delim
13601 EXEEXT!$EXEEXT$ac_delim
13602 OBJEXT!$OBJEXT$ac_delim
13603 DEPDIR!$DEPDIR$ac_delim
13604 am__include!$am__include$ac_delim
13605 am__quote!$am__quote$ac_delim
13606 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13607 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13608 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13609 CCDEPMODE!$CCDEPMODE$ac_delim
13610 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13611 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13612 LIBTOOL!$LIBTOOL$ac_delim
13613 build!$build$ac_delim
13614 build_cpu!$build_cpu$ac_delim
13615 build_vendor!$build_vendor$ac_delim
13616 build_os!$build_os$ac_delim
13617 host!$host$ac_delim
13618 host_cpu!$host_cpu$ac_delim
13619 host_vendor!$host_vendor$ac_delim
13620 host_os!$host_os$ac_delim
13622 GREP!$GREP$ac_delim
13623 EGREP!$EGREP$ac_delim
13624 FGREP!$FGREP$ac_delim
13626 DUMPBIN!$DUMPBIN$ac_delim
13627 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13629 LN_S!$LN_S$ac_delim
13631 RANLIB!$RANLIB$ac_delim
13632 lt_ECHO!$lt_ECHO$ac_delim
13633 DSYMUTIL!$DSYMUTIL$ac_delim
13636 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13638 elif $ac_last_try; then
13639 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13640 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13641 { (exit 1); exit 1; }; }
13643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13647 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13648 if test -n "$ac_eof"; then
13649 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13650 ac_eof=`expr $ac_eof + 1`
13653 cat >>$CONFIG_STATUS <<_ACEOF
13654 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13658 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13659 s/^/s,@/; s/!/@,|#_!!_#|/
13662 s/'"$ac_delim"'$/,g/; t
13664 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13665 ' >>$CONFIG_STATUS <conf$$subs.sed
13666 rm -f conf$$subs.sed
13667 cat >>$CONFIG_STATUS <<_ACEOF
13673 for ac_last_try in false false false false false :; do
13674 cat >conf$$subs.sed <<_ACEOF
13675 NMEDIT!$NMEDIT$ac_delim
13676 LIPO!$LIPO$ac_delim
13677 OTOOL!$OTOOL$ac_delim
13678 OTOOL64!$OTOOL64$ac_delim
13680 LIBOBJS!$LIBOBJS$ac_delim
13681 PKG_CONFIG!$PKG_CONFIG$ac_delim
13682 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
13683 GLIB_LIBS!$GLIB_LIBS$ac_delim
13684 MMLOG_CFLAGS!$MMLOG_CFLAGS$ac_delim
13685 MMLOG_LIBS!$MMLOG_LIBS$ac_delim
13686 LTLIBOBJS!$LTLIBOBJS$ac_delim
13689 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
13691 elif $ac_last_try; then
13692 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13693 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13694 { (exit 1); exit 1; }; }
13696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13700 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13701 if test -n "$ac_eof"; then
13702 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13703 ac_eof=`expr $ac_eof + 1`
13706 cat >>$CONFIG_STATUS <<_ACEOF
13707 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13711 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13712 s/^/s,@/; s/!/@,|#_!!_#|/
13715 s/'"$ac_delim"'$/,g/; t
13717 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13718 ' >>$CONFIG_STATUS <conf$$subs.sed
13719 rm -f conf$$subs.sed
13720 cat >>$CONFIG_STATUS <<_ACEOF
13727 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13729 # trailing colons and then remove the whole line if VPATH becomes empty
13730 # (actually we leave an empty line to preserve line numbers).
13731 if test "x$srcdir" = x.; then
13732 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13733 s/:*\$(srcdir):*/:/
13734 s/:*\${srcdir}:*/:/
13736 s/^\([^=]*=[ ]*\):*/\1/
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743 fi # test -n "$CONFIG_FILES"
13746 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13749 :[FHLC]) ac_mode=$ac_tag; continue;;
13751 case $ac_mode$ac_tag in
13753 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13754 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13755 { (exit 1); exit 1; }; };;
13756 :[FH]-) ac_tag=-:-;;
13757 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13774 -) ac_f="$tmp/stdin";;
13775 *) # Look for the file first in the build tree, then in the source tree
13776 # (if the path is not absolute). The absolute path cannot be DOS-style,
13777 # because $ac_f cannot contain `:'.
13781 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13783 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13784 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13785 { (exit 1); exit 1; }; };;
13787 ac_file_inputs="$ac_file_inputs $ac_f"
13790 # Let's still pretend it is `configure' which instantiates (i.e., don't
13791 # use $as_me), people would be surprised to read:
13792 # /* config.h. Generated by config.status. */
13793 configure_input="Generated from "`IFS=:
13794 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13795 if test x"$ac_file" != x-; then
13796 configure_input="$ac_file. $configure_input"
13797 { echo "$as_me:$LINENO: creating $ac_file" >&5
13798 echo "$as_me: creating $ac_file" >&6;}
13802 *:-:* | *:-) cat >"$tmp/stdin";;
13807 ac_dir=`$as_dirname -- "$ac_file" ||
13808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13809 X"$ac_file" : 'X\(//\)[^/]' \| \
13810 X"$ac_file" : 'X\(//\)$' \| \
13811 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13817 /^X\(\/\/\)[^/].*/{
13832 -*) as_dir=./$as_dir;;
13834 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13838 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13839 *) as_qdir=$as_dir;;
13841 as_dirs="'$as_qdir' $as_dirs"
13842 as_dir=`$as_dirname -- "$as_dir" ||
13843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13844 X"$as_dir" : 'X\(//\)[^/]' \| \
13845 X"$as_dir" : 'X\(//\)$' \| \
13846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13852 /^X\(\/\/\)[^/].*/{
13865 test -d "$as_dir" && break
13867 test -z "$as_dirs" || eval "mkdir $as_dirs"
13868 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13869 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13870 { (exit 1); exit 1; }; }; }
13874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13877 # A ".." for each directory in $ac_dir_suffix.
13878 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13879 case $ac_top_builddir_sub in
13880 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13881 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13884 ac_abs_top_builddir=$ac_pwd
13885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13886 # for backward compatibility:
13887 ac_top_builddir=$ac_top_build_prefix
13890 .) # We are building in place.
13892 ac_top_srcdir=$ac_top_builddir_sub
13893 ac_abs_top_srcdir=$ac_pwd ;;
13894 [\\/]* | ?:[\\/]* ) # Absolute name.
13895 ac_srcdir=$srcdir$ac_dir_suffix;
13896 ac_top_srcdir=$srcdir
13897 ac_abs_top_srcdir=$srcdir ;;
13898 *) # Relative name.
13899 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13900 ac_top_srcdir=$ac_top_build_prefix$srcdir
13901 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13914 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13916 ac_MKDIR_P=$MKDIR_P
13918 [\\/$]* | ?:[\\/]* ) ;;
13919 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13923 cat >>$CONFIG_STATUS <<\_ACEOF
13924 # If the template does not know about datarootdir, expand it.
13925 # FIXME: This hack should be removed a few years after 2.60.
13926 ac_datarootdir_hack=; ac_datarootdir_seen=
13928 case `sed -n '/datarootdir/ {
13937 ' $ac_file_inputs` in
13938 *datarootdir*) ac_datarootdir_seen=yes;;
13939 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13940 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13941 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13943 cat >>$CONFIG_STATUS <<_ACEOF
13944 ac_datarootdir_hack='
13945 s&@datadir@&$datadir&g
13946 s&@docdir@&$docdir&g
13947 s&@infodir@&$infodir&g
13948 s&@localedir@&$localedir&g
13949 s&@mandir@&$mandir&g
13950 s&\\\${datarootdir}&$datarootdir&g' ;;
13954 # Neutralize VPATH when `$srcdir' = `.'.
13955 # Shell code in configure.ac might set extrasub.
13956 # FIXME: do we really want to maintain this feature?
13957 cat >>$CONFIG_STATUS <<_ACEOF
13961 cat >>$CONFIG_STATUS <<\_ACEOF
13963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13964 s&@configure_input@&$configure_input&;t t
13965 s&@top_builddir@&$ac_top_builddir_sub&;t t
13966 s&@srcdir@&$ac_srcdir&;t t
13967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13968 s&@top_srcdir@&$ac_top_srcdir&;t t
13969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13970 s&@builddir@&$ac_builddir&;t t
13971 s&@abs_builddir@&$ac_abs_builddir&;t t
13972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13973 s&@INSTALL@&$ac_INSTALL&;t t
13974 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13975 $ac_datarootdir_hack
13976 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13979 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13981 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13982 which seems to be undefined. Please make sure it is defined." >&5
13983 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13984 which seems to be undefined. Please make sure it is defined." >&2;}
13988 -) cat "$tmp/out"; rm -f "$tmp/out";;
13989 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13998 # Transform confdefs.h into a sed script `conftest.defines', that
13999 # substitutes the proper values into config.h.in to produce config.h.
14000 rm -f conftest.defines conftest.tail
14001 # First, append a space to every undef/define line, to ease matching.
14002 echo 's/$/ /' >conftest.defines
14003 # Then, protect against being on the right side of a sed subst, or in
14004 # an unquoted here document, in config.status. If some macros were
14005 # called several times there might be several #defines for the same
14006 # symbol, which is useless. But do not sort them, since the last
14007 # AC_DEFINE must be honored.
14008 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14009 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14010 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14011 # PARAMS is the parameter list in the macro definition--in most cases, it's
14012 # just an empty string.
14013 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14014 ac_dB='\\)[ (].*,\\1define\\2'
14022 s/^[ ]*#[ ]*define[ ][ ]*//
14027 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14028 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14029 ' >>conftest.defines
14031 # Remove the space that was appended to ease matching.
14032 # Then replace #undef with comments. This is necessary, for
14033 # example, in the case of _POSIX_SOURCE, which is predefined and required
14034 # on some systems where configure will not decide to define it.
14035 # (The regexp can be short, since the line contains either #define or #undef.)
14037 s,^[ #]*u.*,/* & */,' >>conftest.defines
14039 # Break up conftest.defines:
14040 ac_max_sed_lines=50
14042 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14043 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14044 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14046 ac_in='$ac_file_inputs'
14047 ac_out='"$tmp/out1"'
14048 ac_nxt='"$tmp/out2"'
14052 # Write a here document:
14053 cat >>$CONFIG_STATUS <<_ACEOF
14054 # First, check the format of the line:
14055 cat >"\$tmp/defines.sed" <<\\CEOF
14056 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14057 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14061 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14063 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14064 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14065 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14066 grep . conftest.tail >/dev/null || break
14067 rm -f conftest.defines
14068 mv conftest.tail conftest.defines
14070 rm -f conftest.defines conftest.tail
14072 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14073 cat >>$CONFIG_STATUS <<\_ACEOF
14074 if test x"$ac_file" != x-; then
14075 echo "/* $configure_input */" >"$tmp/config.h"
14076 cat "$ac_result" >>"$tmp/config.h"
14077 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14078 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14079 echo "$as_me: $ac_file is unchanged" >&6;}
14082 mv "$tmp/config.h" $ac_file
14085 echo "/* $configure_input */"
14089 # Compute $ac_file's index in $config_headers.
14092 for _am_header in $config_headers :; do
14093 case $_am_header in
14094 $_am_arg | $_am_arg:* )
14097 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14100 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14101 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14102 X"$_am_arg" : 'X\(//\)[^/]' \| \
14103 X"$_am_arg" : 'X\(//\)$' \| \
14104 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14110 /^X\(\/\/\)[^/].*/{
14122 s/.*/./; q'`/stamp-h$_am_stamp_count
14125 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14126 echo "$as_me: executing $ac_file commands" >&6;}
14131 case $ac_file$ac_mode in
14132 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14133 # are listed without --file. Let's play safe and only enable the eval
14134 # if we detect the quoting.
14135 case $CONFIG_FILES in
14136 *\'*) eval set x "$CONFIG_FILES" ;;
14137 *) set x $CONFIG_FILES ;;
14142 # Strip MF so we end up with the name of the file.
14143 mf=`echo "$mf" | sed -e 's/:.*$//'`
14144 # Check whether this is an Automake generated Makefile or not.
14145 # We used to match only the files named `Makefile.in', but
14146 # some people rename them; so instead we look at the file content.
14147 # Grep'ing the first line is not enough: some people post-process
14148 # each Makefile.in and add a new line on top of each file to say so.
14149 # Grep'ing the whole file is not good either: AIX grep has a line
14150 # limit of 2048, but all sed's we know have understand at least 4000.
14151 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14152 dirpart=`$as_dirname -- "$mf" ||
14153 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14154 X"$mf" : 'X\(//\)[^/]' \| \
14155 X"$mf" : 'X\(//\)$' \| \
14156 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14162 /^X\(\/\/\)[^/].*/{
14178 # Extract the definition of DEPDIR, am__include, and am__quote
14179 # from the Makefile without running `make'.
14180 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14181 test -z "$DEPDIR" && continue
14182 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14183 test -z "am__include" && continue
14184 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14185 # When using ansi2knr, U may be empty or an underscore; expand it
14186 U=`sed -n 's/^U = //p' < "$mf"`
14187 # Find all dependency output files, they are included files with
14188 # $(DEPDIR) in their names. We invoke sed twice because it is the
14189 # simplest approach to changing $(DEPDIR) to its actual value in the
14191 for file in `sed -n "
14192 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14193 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14194 # Make sure the directory exists.
14195 test -f "$dirpart/$file" && continue
14196 fdir=`$as_dirname -- "$file" ||
14197 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14198 X"$file" : 'X\(//\)[^/]' \| \
14199 X"$file" : 'X\(//\)$' \| \
14200 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14206 /^X\(\/\/\)[^/].*/{
14219 { as_dir=$dirpart/$fdir
14221 -*) as_dir=./$as_dir;;
14223 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14227 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14228 *) as_qdir=$as_dir;;
14230 as_dirs="'$as_qdir' $as_dirs"
14231 as_dir=`$as_dirname -- "$as_dir" ||
14232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14233 X"$as_dir" : 'X\(//\)[^/]' \| \
14234 X"$as_dir" : 'X\(//\)$' \| \
14235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14241 /^X\(\/\/\)[^/].*/{
14254 test -d "$as_dir" && break
14256 test -z "$as_dirs" || eval "mkdir $as_dirs"
14257 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14258 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14259 { (exit 1); exit 1; }; }; }
14260 # echo "creating $dirpart/$file"
14261 echo '# dummy' > "$dirpart/$file"
14267 # See if we are running on zsh, and set the options which allow our
14268 # commands through without removal of \ escapes.
14269 if test -n "${ZSH_VERSION+set}" ; then
14270 setopt NO_GLOB_SUBST
14273 cfgfile="${ofile}T"
14274 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14277 cat <<_LT_EOF >> "$cfgfile"
14280 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14281 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14282 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14283 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14285 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14286 # 2006, 2007, 2008 Free Software Foundation, Inc.
14287 # Written by Gordon Matzigkeit, 1996
14289 # This file is part of GNU Libtool.
14291 # GNU Libtool is free software; you can redistribute it and/or
14292 # modify it under the terms of the GNU General Public License as
14293 # published by the Free Software Foundation; either version 2 of
14294 # the License, or (at your option) any later version.
14296 # As a special exception to the GNU General Public License,
14297 # if you distribute this file as part of a program or library that
14298 # is built using GNU Libtool, you may include this file under the
14299 # same distribution terms that you use for the rest of that program.
14301 # GNU Libtool is distributed in the hope that it will be useful,
14302 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14303 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14304 # GNU General Public License for more details.
14306 # You should have received a copy of the GNU General Public License
14307 # along with GNU Libtool; see the file COPYING. If not, a copy
14308 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14309 # obtained by writing to the Free Software Foundation, Inc.,
14310 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14313 # The names of the tagged configurations supported by this script.
14316 # ### BEGIN LIBTOOL CONFIG
14318 # Which release of libtool.m4 was used?
14319 macro_version=$macro_version
14320 macro_revision=$macro_revision
14322 # Whether or not to build shared libraries.
14323 build_libtool_libs=$enable_shared
14325 # Whether or not to build static libraries.
14326 build_old_libs=$enable_static
14328 # What type of objects to build.
14331 # Whether or not to optimize for fast installation.
14332 fast_install=$enable_fast_install
14335 host_alias=$host_alias
14339 # The build system.
14340 build_alias=$build_alias
14344 # A sed program that does not truncate output.
14347 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14348 Xsed="\$SED -e 1s/^X//"
14350 # A grep program that handles long lines.
14356 # A literal string matcher.
14359 # A BSD- or MS-compatible name lister.
14362 # Whether we need soft or hard links.
14365 # What is the maximum length of a command?
14366 max_cmd_len=$max_cmd_len
14368 # Object file suffix (normally "o").
14371 # Executable file suffix (normally "").
14374 # whether the shell understands "unset".
14377 # turn spaces into newlines.
14380 # turn newlines into spaces.
14383 # How to create reloadable object files.
14384 reload_flag=$lt_reload_flag
14385 reload_cmds=$lt_reload_cmds
14387 # Method to check whether dependent libraries are shared objects.
14388 deplibs_check_method=$lt_deplibs_check_method
14390 # Command to use when deplibs_check_method == "file_magic".
14391 file_magic_cmd=$lt_file_magic_cmd
14395 AR_FLAGS=$lt_AR_FLAGS
14397 # A symbol stripping program.
14400 # Commands used to install an old-style archive.
14402 old_postinstall_cmds=$lt_old_postinstall_cmds
14403 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14408 # LTCC compiler flags.
14409 LTCFLAGS=$lt_CFLAGS
14411 # Take the output of nm and produce a listing of raw symbols and C names.
14412 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14414 # Transform the output of nm in a proper C declaration.
14415 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14417 # Transform the output of nm in a C name address pair.
14418 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14420 # Transform the output of nm in a C name address pair when lib prefix is needed.
14421 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14423 # The name of the directory that contains temporary libtool files.
14426 # Shell to use when invoking shell scripts.
14429 # An echo program that does not interpret backslashes.
14432 # Used to examine libraries when file_magic_cmd begins with "file".
14433 MAGIC_CMD=$MAGIC_CMD
14435 # Must we lock files when doing compilation?
14436 need_locks=$lt_need_locks
14438 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14439 DSYMUTIL=$lt_DSYMUTIL
14441 # Tool to change global to local symbols on Mac OS X.
14444 # Tool to manipulate fat objects and archives on Mac OS X.
14447 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14450 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14451 OTOOL64=$lt_OTOOL64
14453 # Old archive suffix (normally "a").
14456 # Shared library suffix (normally ".so").
14457 shrext_cmds=$lt_shrext_cmds
14459 # The commands to extract the exported symbol list from a shared archive.
14460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14462 # Variables whose values should be saved in libtool wrapper scripts and
14463 # restored at link time.
14464 variables_saved_for_relink=$lt_variables_saved_for_relink
14466 # Do we need the "lib" prefix for modules?
14467 need_lib_prefix=$need_lib_prefix
14469 # Do we need a version for libraries?
14470 need_version=$need_version
14472 # Library versioning type.
14473 version_type=$version_type
14475 # Shared library runtime path variable.
14476 runpath_var=$runpath_var
14478 # Shared library path variable.
14479 shlibpath_var=$shlibpath_var
14481 # Is shlibpath searched before the hard-coded library search path?
14482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14484 # Format of library name prefix.
14485 libname_spec=$lt_libname_spec
14487 # List of archive names. First name is the real one, the rest are links.
14488 # The last name is the one that the linker finds with -lNAME
14489 library_names_spec=$lt_library_names_spec
14491 # The coded name of the library, if different from the real name.
14492 soname_spec=$lt_soname_spec
14494 # Command to use after installation of a shared archive.
14495 postinstall_cmds=$lt_postinstall_cmds
14497 # Command to use after uninstallation of a shared archive.
14498 postuninstall_cmds=$lt_postuninstall_cmds
14500 # Commands used to finish a libtool library installation in a directory.
14501 finish_cmds=$lt_finish_cmds
14503 # As "finish_cmds", except a single script fragment to be evaled but
14505 finish_eval=$lt_finish_eval
14507 # Whether we should hardcode library paths into libraries.
14508 hardcode_into_libs=$hardcode_into_libs
14510 # Compile-time system search path for libraries.
14511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14513 # Run-time system search path for libraries.
14514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14516 # Whether dlopen is supported.
14517 dlopen_support=$enable_dlopen
14519 # Whether dlopen of programs is supported.
14520 dlopen_self=$enable_dlopen_self
14522 # Whether dlopen of statically linked programs is supported.
14523 dlopen_self_static=$enable_dlopen_self_static
14525 # Commands to strip libraries.
14526 old_striplib=$lt_old_striplib
14527 striplib=$lt_striplib
14530 # The linker used to build libraries.
14533 # Commands used to build an old-style archive.
14534 old_archive_cmds=$lt_old_archive_cmds
14536 # A language specific compiler.
14539 # Is the compiler the GNU compiler?
14542 # Compiler flag to turn off builtin functions.
14543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14545 # How to pass a linker flag through the compiler.
14546 wl=$lt_lt_prog_compiler_wl
14548 # Additional compiler flags for building library objects.
14549 pic_flag=$lt_lt_prog_compiler_pic
14551 # Compiler flag to prevent dynamic linking.
14552 link_static_flag=$lt_lt_prog_compiler_static
14554 # Does compiler simultaneously support -c and -o options?
14555 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14557 # Whether or not to add -lc for building shared libraries.
14558 build_libtool_need_lc=$archive_cmds_need_lc
14560 # Whether or not to disallow shared libs when runtime libs are static.
14561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14563 # Compiler flag to allow reflexive dlopens.
14564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14566 # Compiler flag to generate shared objects directly from archives.
14567 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14569 # Whether the compiler copes with passing no objects directly.
14570 compiler_needs_object=$lt_compiler_needs_object
14572 # Create an old-style archive from a shared archive.
14573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14575 # Create a temporary old-style archive to link instead of a shared archive.
14576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14578 # Commands used to build a shared archive.
14579 archive_cmds=$lt_archive_cmds
14580 archive_expsym_cmds=$lt_archive_expsym_cmds
14582 # Commands used to build a loadable module if different from building
14583 # a shared archive.
14584 module_cmds=$lt_module_cmds
14585 module_expsym_cmds=$lt_module_expsym_cmds
14587 # Whether we are building with GNU ld or not.
14588 with_gnu_ld=$lt_with_gnu_ld
14590 # Flag that allows shared libraries with undefined symbols to be built.
14591 allow_undefined_flag=$lt_allow_undefined_flag
14593 # Flag that enforces no undefined symbols.
14594 no_undefined_flag=$lt_no_undefined_flag
14596 # Flag to hardcode \$libdir into a binary during linking.
14597 # This must work even if \$libdir does not exist
14598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14600 # If ld is used when linking, flag to hardcode \$libdir into a binary
14601 # during linking. This must work even if \$libdir does not exist.
14602 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14604 # Whether we need a single "-rpath" flag with a separated argument.
14605 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14607 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14608 # DIR into the resulting binary.
14609 hardcode_direct=$hardcode_direct
14611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14612 # DIR into the resulting binary and the resulting library dependency is
14613 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14614 # library is relocated.
14615 hardcode_direct_absolute=$hardcode_direct_absolute
14617 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14618 # into the resulting binary.
14619 hardcode_minus_L=$hardcode_minus_L
14621 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14622 # into the resulting binary.
14623 hardcode_shlibpath_var=$hardcode_shlibpath_var
14625 # Set to "yes" if building a shared library automatically hardcodes DIR
14626 # into the library and all subsequent libraries and executables linked
14628 hardcode_automatic=$hardcode_automatic
14630 # Set to yes if linker adds runtime paths of dependent libraries
14631 # to runtime path list.
14632 inherit_rpath=$inherit_rpath
14634 # Whether libtool must link a program against all its dependency libraries.
14635 link_all_deplibs=$link_all_deplibs
14637 # Fix the shell variable \$srcfile for the compiler.
14638 fix_srcfile_path=$lt_fix_srcfile_path
14640 # Set to "yes" if exported symbols are required.
14641 always_export_symbols=$always_export_symbols
14643 # The commands to list exported symbols.
14644 export_symbols_cmds=$lt_export_symbols_cmds
14646 # Symbols that should not be listed in the preloaded symbols.
14647 exclude_expsyms=$lt_exclude_expsyms
14649 # Symbols that must always be exported.
14650 include_expsyms=$lt_include_expsyms
14652 # Commands necessary for linking programs (against libraries) with templates.
14653 prelink_cmds=$lt_prelink_cmds
14655 # Specify filename containing input files.
14656 file_list_spec=$lt_file_list_spec
14658 # How to hardcode a shared library path into an executable.
14659 hardcode_action=$hardcode_action
14661 # ### END LIBTOOL CONFIG
14667 cat <<\_LT_EOF >> "$cfgfile"
14668 # AIX sometimes has problems with the GCC collect2 program. For some
14669 # reason, if we set the COLLECT_NAMES environment variable, the problems
14670 # vanish in a puff of smoke.
14671 if test "X${COLLECT_NAMES+set}" != Xset; then
14673 export COLLECT_NAMES
14680 ltmain="$ac_aux_dir/ltmain.sh"
14683 # We use sed instead of cat because bash on DJGPP gets confused if
14684 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14685 # text mode, it properly converts lines to CR/LF. This bash problem
14686 # is reportedly fixed, but why not run on old versions too?
14687 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14688 || (rm -f "$cfgfile"; exit 1)
14692 cat << \_LT_EOF >> "$cfgfile"
14694 # func_dirname file append nondir_replacement
14695 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14696 # otherwise set result to NONDIR_REPLACEMENT.
14700 */*) func_dirname_result="${1%/*}${2}" ;;
14701 * ) func_dirname_result="${3}" ;;
14705 # func_basename file
14708 func_basename_result="${1##*/}"
14711 # func_dirname_and_basename file append nondir_replacement
14712 # perform func_basename and func_dirname in a single function
14714 # dirname: Compute the dirname of FILE. If nonempty,
14715 # add APPEND to the result, otherwise set result
14716 # to NONDIR_REPLACEMENT.
14717 # value returned in "$func_dirname_result"
14718 # basename: Compute filename of FILE.
14719 # value retuned in "$func_basename_result"
14720 # Implementation must be kept synchronized with func_dirname
14721 # and func_basename. For efficiency, we do not delegate to
14722 # those functions but instead duplicate the functionality here.
14723 func_dirname_and_basename ()
14726 */*) func_dirname_result="${1%/*}${2}" ;;
14727 * ) func_dirname_result="${3}" ;;
14729 func_basename_result="${1##*/}"
14732 # func_stripname prefix suffix name
14733 # strip PREFIX and SUFFIX off of NAME.
14734 # PREFIX and SUFFIX must not contain globbing or regex special
14735 # characters, hashes, percent signs, but SUFFIX may contain a leading
14736 # dot (in which case that matches only a dot).
14739 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14740 # positional parameters, so assign one to ordinary parameter first.
14741 func_stripname_result=${3}
14742 func_stripname_result=${func_stripname_result#"${1}"}
14743 func_stripname_result=${func_stripname_result%"${2}"}
14749 func_opt_split_opt=${1%%=*}
14750 func_opt_split_arg=${1#*=}
14757 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14758 *) func_lo2o_result=${1} ;;
14762 # func_xform libobj-or-source
14765 func_xform_result=${1%.*}.lo
14768 # func_arith arithmetic-term...
14771 func_arith_result=$(( $* ))
14775 # STRING may not start with a hyphen.
14778 func_len_result=${#1}
14783 *) # Bourne compatible functions.
14784 cat << \_LT_EOF >> "$cfgfile"
14786 # func_dirname file append nondir_replacement
14787 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14788 # otherwise set result to NONDIR_REPLACEMENT.
14791 # Extract subdirectory from the argument.
14792 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14793 if test "X$func_dirname_result" = "X${1}"; then
14794 func_dirname_result="${3}"
14796 func_dirname_result="$func_dirname_result${2}"
14800 # func_basename file
14803 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14807 # func_stripname prefix suffix name
14808 # strip PREFIX and SUFFIX off of NAME.
14809 # PREFIX and SUFFIX must not contain globbing or regex special
14810 # characters, hashes, percent signs, but SUFFIX may contain a leading
14811 # dot (in which case that matches only a dot).
14812 # func_strip_suffix prefix name
14816 .*) func_stripname_result=`$ECHO "X${3}" \
14817 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14818 *) func_stripname_result=`$ECHO "X${3}" \
14819 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14824 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14825 my_sed_long_arg='1s/^-[^=]*=//'
14830 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14831 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14837 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14840 # func_xform libobj-or-source
14843 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14846 # func_arith arithmetic-term...
14849 func_arith_result=`expr "$@"`
14853 # STRING may not start with a hyphen.
14856 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14862 case $lt_shell_append in
14864 cat << \_LT_EOF >> "$cfgfile"
14866 # func_append var value
14867 # Append VALUE to the end of shell variable VAR.
14875 cat << \_LT_EOF >> "$cfgfile"
14877 # func_append var value
14878 # Append VALUE to the end of shell variable VAR.
14889 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14890 || (rm -f "$cfgfile"; exit 1)
14892 mv -f "$cfgfile" "$ofile" ||
14893 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14902 { (exit 0); exit 0; }
14904 chmod +x $CONFIG_STATUS
14905 ac_clean_files=$ac_clean_files_save
14908 # configure is writing to config.log, and then calls config.status.
14909 # config.status does its own redirection, appending to config.log.
14910 # Unfortunately, on DOS this fails, as config.log is still kept open
14911 # by configure, so config.status won't be able to write to it; its
14912 # output is simply discarded. So we exec the FD to /dev/null,
14913 # effectively closing config.log, so it can be properly (re)opened and
14914 # appended to by config.status. When coming back to configure, we
14915 # need to make the FD available again.
14916 if test "$no_create" != yes; then
14918 ac_config_status_args=
14919 test "$silent" = yes &&
14920 ac_config_status_args="$ac_config_status_args --quiet"
14922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14925 # would make configure fail if this is the last instruction.
14926 $ac_cs_success || { (exit 1); exit 1; }