2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for libchise 0.4.1.
5 # Report bugs to <chise-en@m17n.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
621 echo_test_string="`eval $cmd`" &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
691 # maybe with a smaller string...
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 # Oops. We lost completely, so just stick with echo.
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
740 ac_default_prefix=/usr/local
742 ac_config_libobj_dir=.
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='libchise'
752 PACKAGE_TARNAME='libchise'
753 PACKAGE_VERSION='0.4.1'
754 PACKAGE_STRING='libchise 0.4.1'
755 PACKAGE_BUGREPORT='chise-en@m17n.org'
757 ac_unique_file="chise.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
771 # ifdef HAVE_STDLIB_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
803 program_transform_name
871 enable_option_checking
882 ac_precious_vars='build_alias
899 # Initialize some variables set by options.
901 ac_init_version=false
902 ac_unrecognized_opts=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
913 program_transform_name=s,x,x,
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 # Accept the important Cygnus configure options, so we can diagnose typos.
965 case $ac_dashdash$ac_option in
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
987 cache_file=config.cache ;;
989 -datadir | --datadir | --datadi | --datad)
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1001 -disable-* | --disable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1016 eval enable_$ac_useropt=no ;;
1018 -docdir | --docdir | --docdi | --doc | --do)
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_$ac_useropt"
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval enable_$ac_useropt=\$ac_optarg ;;
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 htmldir=$ac_optarg ;;
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1088 -libdir | --libdir | --libdi | --libd)
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1179 -psdir | --psdir | --psdi | --psd | --ps)
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 sbindir=$ac_optarg ;;
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 sharedstatedir=$ac_optarg ;;
1205 -site | --site | --sit)
1207 -site=* | --site=* | --sit=*)
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval with_$ac_useropt=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1265 eval with_$ac_useropt=no ;;
1268 # Obsolete; use --with-x.
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1319 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1320 { (exit 1); exit 1; }; } ;;
1321 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 # Check all directory arguments for consistency.
1326 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val=\$$ac_var
1332 # Remove trailing slashes.
1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\$ac_val;;
1338 # Be sure to have absolute directory names.
1340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1344 { (exit 1); exit 1; }; }
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1352 target=$target_alias
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1359 If a cross compiler is detected then cross compile mode will be used." >&2
1360 elif test "x$build_alias" != "x$host_alias"; then
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368 test "$silent" = yes && exec 6>/dev/null
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1375 { (exit 1); exit 1; }; }
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1378 { (exit 1); exit 1; }; }
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1413 ac_srcdir_defaulted=no
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1418 { (exit 1); exit 1; }; }
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1423 { (exit 1); exit 1; }; }
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 # Report the --help message.
1445 if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1449 \`configure' configures libchise 0.4.1 to adapt to many kinds of systems.
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE. See below for descriptions of some of the useful variables.
1456 Defaults for the options are specified in brackets.
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print \`checking...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for \`--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469 Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1475 By default, \`make install' will install all the files in
1476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1477 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478 for instance \`--prefix=\$HOME'.
1480 For better control, use the options below.
1482 Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/libchise]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 --target=TARGET configure for building compilers for TARGET [HOST]
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of libchise 0.4.1:";;
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-static[=PKGS] build static libraries [default=yes]
1525 --enable-fast-install[=PKGS]
1526 optimize for fast installation [default=yes]
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-pic try to use only PIC/non-PIC objects [default=use
1535 --with-tags[=TAGS] include additional configurations [automatic]
1536 --with-site-includes=PATH List of directories to search first for header files
1538 --with-site-libraries=PATH List of directories to search first for libraries
1541 Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1550 CXX C++ compiler command
1551 CXXFLAGS C++ compiler flags
1552 CXXCPP C++ preprocessor
1553 F77 Fortran 77 compiler command
1554 FFLAGS Fortran 77 compiler flags
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1559 Report bugs to <chise-en@m17n.org>.
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1589 .) # We are building in place.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1622 libchise configure 0.4.1
1623 generated by GNU Autoconf 2.62
1625 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1626 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1632 cat >config.log <<_ACEOF
1633 This file contains any messages produced by compilers while
1634 running configure, to aid debugging if configure makes a mistake.
1636 It was created by libchise $as_me 0.4.1, which was
1637 generated by GNU Autoconf 2.62. Invocation command line was
1649 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1650 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1651 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1652 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1653 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1655 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1656 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1658 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1659 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1660 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1661 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1662 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1663 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1664 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 $as_echo "PATH: $as_dir"
1689 # Keep a trace of the command line.
1690 # Strip out --no-create and --no-recursion so they do not pile up.
1691 # Strip out --silent because we don't want to record it for future runs.
1692 # Also quote any args containing shell meta-characters.
1693 # Make two passes to allow for proper duplicate-argument suppression.
1697 ac_must_keep_next=false
1703 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1705 | -silent | --silent | --silen | --sile | --sil)
1708 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1713 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1714 if test $ac_must_keep_next = true; then
1715 ac_must_keep_next=false # Got value, back to normal.
1718 *=* | --config-cache | -C | -disable-* | --disable-* \
1719 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1720 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1721 | -with-* | --with-* | -without-* | --without-* | --x)
1722 case "$ac_configure_args0 " in
1723 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726 -* ) ac_must_keep_next=true ;;
1729 ac_configure_args="$ac_configure_args '$ac_arg'"
1734 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1735 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1737 # When interrupted or exit'd, cleanup temporary files, and complete
1738 # config.log. We remove comments because anyway the quotes in there
1739 # would cause problems or look ugly.
1740 # WARNING: Use '\'' to represent an apostrophe within the trap.
1741 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1742 trap 'exit_status=$?
1743 # Save into config.log some information that might help in debugging.
1748 ## ---------------- ##
1749 ## Cache variables. ##
1750 ## ---------------- ##
1753 # The following way of writing the cache mishandles newlines in values,
1755 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1756 eval ac_val=\$$ac_var
1760 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1761 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764 _ | IFS | as_nl) ;; #(
1765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1766 *) $as_unset $ac_var ;;
1771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1791 for ac_var in $ac_subst_vars
1793 eval ac_val=\$$ac_var
1795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797 $as_echo "$ac_var='\''$ac_val'\''"
1801 if test -n "$ac_subst_files"; then
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1808 for ac_var in $ac_subst_files
1810 eval ac_val=\$$ac_var
1812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 $as_echo "$ac_var='\''$ac_val'\''"
1819 if test -s confdefs.h; then
1829 test "$ac_signal" != 0 &&
1830 $as_echo "$as_me: caught signal $ac_signal"
1831 $as_echo "$as_me: exit $exit_status"
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1837 for ac_signal in 1 2 13 15; do
1838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1845 # Predefined preprocessor variables.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer an explicitly selected file to automatically selected ones.
1876 if test -n "$CONFIG_SITE"; then
1877 ac_site_file1=$CONFIG_SITE
1878 elif test "x$prefix" != xNONE; then
1879 ac_site_file1=$prefix/share/config.site
1880 ac_site_file2=$prefix/etc/config.site
1882 ac_site_file1=$ac_default_prefix/share/config.site
1883 ac_site_file2=$ac_default_prefix/etc/config.site
1885 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1887 test "x$ac_site_file" = xNONE && continue
1888 if test -r "$ac_site_file"; then
1889 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1891 sed 's/^/| /' "$ac_site_file" >&5
1896 if test -r "$cache_file"; then
1897 # Some versions of bash will fail to source /dev/null (special
1898 # files actually), so we avoid doing that.
1899 if test -f "$cache_file"; then
1900 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1901 $as_echo "$as_me: loading cache $cache_file" >&6;}
1903 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1904 *) . "./$cache_file";;
1908 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1909 $as_echo "$as_me: creating cache $cache_file" >&6;}
1913 # Check that the precious variables saved in the cache have kept the same
1915 ac_cache_corrupted=false
1916 for ac_var in $ac_precious_vars; do
1917 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1918 eval ac_new_set=\$ac_env_${ac_var}_set
1919 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1920 eval ac_new_val=\$ac_env_${ac_var}_value
1921 case $ac_old_set,$ac_new_set in
1923 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1924 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1925 ac_cache_corrupted=: ;;
1927 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1929 ac_cache_corrupted=: ;;
1932 if test "x$ac_old_val" != "x$ac_new_val"; then
1933 # differences in whitespace do not lead to failure.
1934 ac_old_val_w=`echo x $ac_old_val`
1935 ac_new_val_w=`echo x $ac_new_val`
1936 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1937 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1938 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1939 ac_cache_corrupted=:
1941 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1942 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1943 eval $ac_var=\$ac_old_val
1945 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1946 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1947 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1948 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1954 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 if $ac_cache_corrupted; then
1964 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 ac_config_headers="$ac_config_headers config.h"
2007 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2008 if test -f "$ac_dir/install-sh"; then
2010 ac_install_sh="$ac_aux_dir/install-sh -c"
2012 elif test -f "$ac_dir/install.sh"; then
2014 ac_install_sh="$ac_aux_dir/install.sh -c"
2016 elif test -f "$ac_dir/shtool"; then
2018 ac_install_sh="$ac_aux_dir/shtool install -c"
2022 if test -z "$ac_aux_dir"; then
2023 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2024 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2025 { (exit 1); exit 1; }; }
2028 # These three variables are undocumented and unsupported,
2029 # and are intended to be withdrawn in a future Autoconf release.
2030 # They can cause serious problems if a builder's source tree is in a directory
2031 # whose full name contains unusual characters.
2032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2037 # Make sure we can run config.sub.
2038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2039 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2040 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2041 { (exit 1); exit 1; }; }
2043 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2044 $as_echo_n "checking build system type... " >&6; }
2045 if test "${ac_cv_build+set}" = set; then
2046 $as_echo_n "(cached) " >&6
2048 ac_build_alias=$build_alias
2049 test "x$ac_build_alias" = x &&
2050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2051 test "x$ac_build_alias" = x &&
2052 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2053 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2054 { (exit 1); exit 1; }; }
2055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2056 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2057 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2058 { (exit 1); exit 1; }; }
2061 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2062 $as_echo "$ac_cv_build" >&6; }
2063 case $ac_cv_build in
2065 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2066 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2067 { (exit 1); exit 1; }; };;
2070 ac_save_IFS=$IFS; IFS='-'
2076 # Remember, the first character of IFS is used to create $*,
2077 # except with old shells:
2080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2083 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2084 $as_echo_n "checking host system type... " >&6; }
2085 if test "${ac_cv_host+set}" = set; then
2086 $as_echo_n "(cached) " >&6
2088 if test "x$host_alias" = x; then
2089 ac_cv_host=$ac_cv_build
2091 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2092 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2093 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2094 { (exit 1); exit 1; }; }
2098 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2099 $as_echo "$ac_cv_host" >&6; }
2102 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2103 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2104 { (exit 1); exit 1; }; };;
2107 ac_save_IFS=$IFS; IFS='-'
2113 # Remember, the first character of IFS is used to create $*,
2114 # except with old shells:
2117 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2120 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2121 $as_echo_n "checking target system type... " >&6; }
2122 if test "${ac_cv_target+set}" = set; then
2123 $as_echo_n "(cached) " >&6
2125 if test "x$target_alias" = x; then
2126 ac_cv_target=$ac_cv_host
2128 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2129 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2130 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2131 { (exit 1); exit 1; }; }
2135 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2136 $as_echo "$ac_cv_target" >&6; }
2137 case $ac_cv_target in
2139 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2140 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2141 { (exit 1); exit 1; }; };;
2143 target=$ac_cv_target
2144 ac_save_IFS=$IFS; IFS='-'
2150 # Remember, the first character of IFS is used to create $*,
2151 # except with old shells:
2154 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2157 # The aliases save the names the user supplied, while $host etc.
2158 # will get canonicalized.
2159 test -n "$target_alias" &&
2160 test "$program_prefix$program_suffix$program_transform_name" = \
2162 program_prefix=${target_alias}-
2164 # Checks for programs.
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2170 if test -n "$ac_tool_prefix"; then
2171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 $as_echo_n "checking for $ac_word... " >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 $as_echo_n "(cached) " >&6
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test -n "$CC"; then
2200 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2201 $as_echo "$CC" >&6; }
2203 { $as_echo "$as_me:$LINENO: result: no" >&5
2204 $as_echo "no" >&6; }
2209 if test -z "$ac_cv_prog_CC"; then
2211 # Extract the first word of "gcc", so it can be a program name with args.
2212 set dummy gcc; ac_word=$2
2213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 $as_echo_n "checking for $ac_word... " >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216 $as_echo_n "(cached) " >&6
2218 if test -n "$ac_ct_CC"; then
2219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228 ac_cv_prog_ac_ct_CC="gcc"
2229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 $as_echo "$ac_ct_CC" >&6; }
2243 { $as_echo "$as_me:$LINENO: result: no" >&5
2244 $as_echo "no" >&6; }
2247 if test "x$ac_ct_CC" = x; then
2250 case $cross_compiling:$ac_tool_warned in
2252 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2253 whose name does not start with the host triplet. If you think this
2254 configuration is useful to you, please write to autoconf@gnu.org." >&5
2255 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2256 whose name does not start with the host triplet. If you think this
2257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2258 ac_tool_warned=yes ;;
2266 if test -z "$CC"; then
2267 if test -n "$ac_tool_prefix"; then
2268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}cc; ac_word=$2
2270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
2272 if test "${ac_cv_prog_CC+set}" = set; then
2273 $as_echo_n "(cached) " >&6
2275 if test -n "$CC"; then
2276 ac_cv_prog_CC="$CC" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285 ac_cv_prog_CC="${ac_tool_prefix}cc"
2286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 if test -n "$CC"; then
2297 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2298 $as_echo "$CC" >&6; }
2300 { $as_echo "$as_me:$LINENO: result: no" >&5
2301 $as_echo "no" >&6; }
2307 if test -z "$CC"; then
2308 # Extract the first word of "cc", so it can be a program name with args.
2309 set dummy cc; ac_word=$2
2310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if test "${ac_cv_prog_CC+set}" = set; then
2313 $as_echo_n "(cached) " >&6
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2327 ac_prog_rejected=yes
2331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 if test $ac_prog_rejected = yes; then
2339 # We found a bogon in the path, so make sure we never use it.
2340 set dummy $ac_cv_prog_CC
2342 if test $# != 0; then
2343 # We chose a different compiler from the bogus one.
2344 # However, it has the same basename, so the bogon will be chosen
2345 # first if we set CC to just the basename; use the full file name.
2347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2353 if test -n "$CC"; then
2354 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2355 $as_echo "$CC" >&6; }
2357 { $as_echo "$as_me:$LINENO: result: no" >&5
2358 $as_echo "no" >&6; }
2363 if test -z "$CC"; then
2364 if test -n "$ac_tool_prefix"; then
2365 for ac_prog in cl.exe
2367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 $as_echo_n "checking for $ac_word... " >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 $as_echo_n "(cached) " >&6
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 if test -n "$CC"; then
2396 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2397 $as_echo "$CC" >&6; }
2399 { $as_echo "$as_me:$LINENO: result: no" >&5
2400 $as_echo "no" >&6; }
2404 test -n "$CC" && break
2407 if test -z "$CC"; then
2409 for ac_prog in cl.exe
2411 # Extract the first word of "$ac_prog", so it can be a program name with args.
2412 set dummy $ac_prog; ac_word=$2
2413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416 $as_echo_n "(cached) " >&6
2418 if test -n "$ac_ct_CC"; then
2419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_ac_ct_CC="$ac_prog"
2429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2441 $as_echo "$ac_ct_CC" >&6; }
2443 { $as_echo "$as_me:$LINENO: result: no" >&5
2444 $as_echo "no" >&6; }
2448 test -n "$ac_ct_CC" && break
2451 if test "x$ac_ct_CC" = x; then
2454 case $cross_compiling:$ac_tool_warned in
2456 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2457 whose name does not start with the host triplet. If you think this
2458 configuration is useful to you, please write to autoconf@gnu.org." >&5
2459 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2460 whose name does not start with the host triplet. If you think this
2461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2462 ac_tool_warned=yes ;;
2471 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&5
2473 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2474 See \`config.log' for more details." >&2;}
2475 { (exit 1); exit 1; }; }
2477 # Provide some information about the compiler.
2478 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2481 { (ac_try="$ac_compiler --version >&5"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2487 $as_echo "$ac_try_echo") >&5
2488 (eval "$ac_compiler --version >&5") 2>&5
2490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2492 { (ac_try="$ac_compiler -v >&5"
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2498 $as_echo "$ac_try_echo") >&5
2499 (eval "$ac_compiler -v >&5") 2>&5
2501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }
2503 { (ac_try="$ac_compiler -V >&5"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509 $as_echo "$ac_try_echo") >&5
2510 (eval "$ac_compiler -V >&5") 2>&5
2512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2515 cat >conftest.$ac_ext <<_ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2530 ac_clean_files_save=$ac_clean_files
2531 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2532 # Try to create an executable without -o first, disregard a.out.
2533 # It will help us diagnose broken compilers, and finding out an intuition
2535 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2536 $as_echo_n "checking for C compiler default output file name... " >&6; }
2537 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539 # The possible output files:
2540 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2543 for ac_file in $ac_files
2546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2547 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2552 if { (ac_try="$ac_link_default"
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2558 $as_echo "$ac_try_echo") >&5
2559 (eval "$ac_link_default") 2>&5
2561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; then
2563 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2564 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2565 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2566 # so that the user can short-circuit this test for compilers unknown to
2568 for ac_file in $ac_files ''
2570 test -f "$ac_file" || continue
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2575 # We found the default executable, but exeext='' is most
2579 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2581 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2583 # We set ac_cv_exeext here because the later test for it is not
2584 # safe: cross compilers may not add the suffix if given an `-o'
2585 # argument, so we may need to know it at that point already.
2586 # Even if this section looks crufty: it has the advantage of
2593 test "$ac_cv_exeext" = no && ac_cv_exeext=
2599 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2600 $as_echo "$ac_file" >&6; }
2601 if test -z "$ac_file"; then
2602 $as_echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&5
2607 $as_echo "$as_me: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&2;}
2609 { (exit 77); exit 77; }; }
2612 ac_exeext=$ac_cv_exeext
2614 # Check that the compiler produces executables we can run. If not, either
2615 # the compiler is broken, or we cross compile.
2616 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2617 $as_echo_n "checking whether the C compiler works... " >&6; }
2618 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2619 # If not cross compiling, check that we can run a simple program.
2620 if test "$cross_compiling" != yes; then
2621 if { ac_try='./$ac_file'
2622 { (case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2627 $as_echo "$ac_try_echo") >&5
2628 (eval "$ac_try") 2>&5
2630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2634 if test "$cross_compiling" = maybe; then
2637 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&5
2640 $as_echo "$as_me: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'.
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2647 { $as_echo "$as_me:$LINENO: result: yes" >&5
2648 $as_echo "yes" >&6; }
2650 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2651 ac_clean_files=$ac_clean_files_save
2652 # Check that the compiler produces executables we can run. If not, either
2653 # the compiler is broken, or we cross compile.
2654 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2655 $as_echo_n "checking whether we are cross compiling... " >&6; }
2656 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2657 $as_echo "$cross_compiling" >&6; }
2659 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2660 $as_echo_n "checking for suffix of executables... " >&6; }
2661 if { (ac_try="$ac_link"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2667 $as_echo "$ac_try_echo") >&5
2668 (eval "$ac_link") 2>&5
2670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2673 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2674 # work properly (i.e., refer to `conftest.exe'), while it won't with
2676 for ac_file in conftest.exe conftest conftest.*; do
2677 test -f "$ac_file" || continue
2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2680 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2686 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2687 See \`config.log' for more details." >&5
2688 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2693 rm -f conftest$ac_cv_exeext
2694 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2695 $as_echo "$ac_cv_exeext" >&6; }
2697 rm -f conftest.$ac_ext
2698 EXEEXT=$ac_cv_exeext
2700 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2701 $as_echo_n "checking for suffix of object files... " >&6; }
2702 if test "${ac_cv_objext+set}" = set; then
2703 $as_echo_n "(cached) " >&6
2705 cat >conftest.$ac_ext <<_ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2720 rm -f conftest.o conftest.obj
2721 if { (ac_try="$ac_compile"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2727 $as_echo "$ac_try_echo") >&5
2728 (eval "$ac_compile") 2>&5
2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then
2732 for ac_file in conftest.o conftest.obj conftest.*; do
2733 test -f "$ac_file" || continue;
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2736 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2741 $as_echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2744 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2745 See \`config.log' for more details." >&5
2746 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2747 See \`config.log' for more details." >&2;}
2748 { (exit 1); exit 1; }; }
2751 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2753 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2754 $as_echo "$ac_cv_objext" >&6; }
2755 OBJEXT=$ac_cv_objext
2757 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2758 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2759 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2760 $as_echo_n "(cached) " >&6
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2780 rm -f conftest.$ac_objext
2781 if { (ac_try="$ac_compile"
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2787 $as_echo "$ac_try_echo") >&5
2788 (eval "$ac_compile") 2>conftest.er1
2790 grep -v '^ *+' conftest.er1 >conftest.err
2792 cat conftest.err >&5
2793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } && {
2795 test -z "$ac_c_werror_flag" ||
2796 test ! -s conftest.err
2797 } && test -s conftest.$ac_objext; then
2800 $as_echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2810 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2811 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2812 if test $ac_compiler_gnu = yes; then
2817 ac_test_CFLAGS=${CFLAGS+set}
2818 ac_save_CFLAGS=$CFLAGS
2819 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2820 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2821 if test "${ac_cv_prog_cc_g+set}" = set; then
2822 $as_echo_n "(cached) " >&6
2824 ac_save_c_werror_flag=$ac_c_werror_flag
2825 ac_c_werror_flag=yes
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2850 $as_echo "$ac_try_echo") >&5
2851 (eval "$ac_compile") 2>conftest.er1
2853 grep -v '^ *+' conftest.er1 >conftest.err
2855 cat conftest.err >&5
2856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } && {
2858 test -z "$ac_c_werror_flag" ||
2859 test ! -s conftest.err
2860 } && test -s conftest.$ac_objext; then
2863 $as_echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2882 rm -f conftest.$ac_objext
2883 if { (ac_try="$ac_compile"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2889 $as_echo "$ac_try_echo") >&5
2890 (eval "$ac_compile") 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } && {
2897 test -z "$ac_c_werror_flag" ||
2898 test ! -s conftest.err
2899 } && test -s conftest.$ac_objext; then
2902 $as_echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 ac_c_werror_flag=$ac_save_c_werror_flag
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2922 rm -f conftest.$ac_objext
2923 if { (ac_try="$ac_compile"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929 $as_echo "$ac_try_echo") >&5
2930 (eval "$ac_compile") 2>conftest.er1
2932 grep -v '^ *+' conftest.er1 >conftest.err
2934 cat conftest.err >&5
2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && {
2937 test -z "$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2939 } && test -s conftest.$ac_objext; then
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_c_werror_flag=$ac_save_c_werror_flag
2957 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2958 $as_echo "$ac_cv_prog_cc_g" >&6; }
2959 if test "$ac_test_CFLAGS" = set; then
2960 CFLAGS=$ac_save_CFLAGS
2961 elif test $ac_cv_prog_cc_g = yes; then
2962 if test "$GCC" = yes; then
2968 if test "$GCC" = yes; then
2974 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2975 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2976 if test "${ac_cv_prog_cc_c89+set}" = set; then
2977 $as_echo_n "(cached) " >&6
2979 ac_cv_prog_cc_c89=no
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2989 #include <sys/types.h>
2990 #include <sys/stat.h>
2991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2992 struct buf { int x; };
2993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2994 static char *e (p, i)
3000 static char *f (char * (*g) (char **, int), char **p, ...)
3005 s = g (p, va_arg (v,int));
3010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3011 function prototypes and stuff, but not '\xHH' hex character constants.
3012 These don't provoke an error unfortunately, instead are silently treated
3013 as 'x'. The following induces an error, until -std is added to get
3014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3015 array size at least. It's necessary to write '\x00'==0 to get something
3016 that's true only with -std. */
3017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3020 inside strings and character constants. */
3022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3024 int test (int i, double x);
3025 struct s1 {int (*f) (int a);};
3026 struct s2 {int (*f) (double a);};
3027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3041 CC="$ac_save_CC $ac_arg"
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3052 grep -v '^ *+' conftest.er1 >conftest.err
3054 cat conftest.err >&5
3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
3060 ac_cv_prog_cc_c89=$ac_arg
3062 $as_echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3068 rm -f core conftest.err conftest.$ac_objext
3069 test "x$ac_cv_prog_cc_c89" != "xno" && break
3071 rm -f conftest.$ac_ext
3076 case "x$ac_cv_prog_cc_c89" in
3078 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3079 $as_echo "none needed" >&6; } ;;
3081 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3082 $as_echo "unsupported" >&6; } ;;
3084 CC="$CC $ac_cv_prog_cc_c89"
3085 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3086 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096 # Check whether --enable-shared was given.
3097 if test "${enable_shared+set}" = set; then
3098 enableval=$enable_shared; p=${PACKAGE-default}
3100 yes) enable_shared=yes ;;
3101 no) enable_shared=no ;;
3104 # Look at the argument we got. We use all the common list separators.
3105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3106 for pkg in $enableval; do
3108 if test "X$pkg" = "X$p"; then
3120 # Check whether --enable-static was given.
3121 if test "${enable_static+set}" = set; then
3122 enableval=$enable_static; p=${PACKAGE-default}
3124 yes) enable_static=yes ;;
3125 no) enable_static=no ;;
3128 # Look at the argument we got. We use all the common list separators.
3129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3130 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3144 # Check whether --enable-fast-install was given.
3145 if test "${enable_fast_install+set}" = set; then
3146 enableval=$enable_fast_install; p=${PACKAGE-default}
3148 yes) enable_fast_install=yes ;;
3149 no) enable_fast_install=no ;;
3151 enable_fast_install=no
3152 # Look at the argument we got. We use all the common list separators.
3153 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3154 for pkg in $enableval; do
3156 if test "X$pkg" = "X$p"; then
3157 enable_fast_install=yes
3164 enable_fast_install=yes
3168 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3169 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3170 if test "${lt_cv_path_SED+set}" = set; then
3171 $as_echo_n "(cached) " >&6
3173 # Loop through the user's path and test for sed and gsed.
3174 # Then use that list of sed's as ones to test for truncation.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for lt_ac_prog in sed gsed; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3183 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3190 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3191 # along with /bin/sed that truncates output.
3192 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3193 test ! -f $lt_ac_sed && break
3194 cat /dev/null > conftest.in
3196 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3197 # Check for GNU sed and select it if it is found.
3198 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3199 lt_cv_path_SED=$lt_ac_sed
3203 cat conftest.in conftest.in >conftest.tmp
3204 mv conftest.tmp conftest.in
3205 cp conftest.in conftest.nl
3207 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3208 cmp -s conftest.out conftest.nl || break
3209 # 10000 chars as input seems more than enough
3210 test $lt_ac_count -gt 10 && break
3211 lt_ac_count=`expr $lt_ac_count + 1`
3212 if test $lt_ac_count -gt $lt_ac_max; then
3213 lt_ac_max=$lt_ac_count
3214 lt_cv_path_SED=$lt_ac_sed
3222 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3223 $as_echo "$SED" >&6; }
3225 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3226 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3227 if test "${ac_cv_path_GREP+set}" = set; then
3228 $as_echo_n "(cached) " >&6
3230 if test -z "$GREP"; then
3231 ac_path_GREP_found=false
3232 # Loop through the user's path and test for each of PROGNAME-LIST
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3237 test -z "$as_dir" && as_dir=.
3238 for ac_prog in grep ggrep; do
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3241 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3242 # Check for GNU ac_path_GREP and select it if it is found.
3243 # Check for GNU $ac_path_GREP
3244 case `"$ac_path_GREP" --version 2>&1` in
3246 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3249 $as_echo_n 0123456789 >"conftest.in"
3252 cat "conftest.in" "conftest.in" >"conftest.tmp"
3253 mv "conftest.tmp" "conftest.in"
3254 cp "conftest.in" "conftest.nl"
3255 $as_echo 'GREP' >> "conftest.nl"
3256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3258 ac_count=`expr $ac_count + 1`
3259 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3260 # Best one so far, save it but keep looking for a better one
3261 ac_cv_path_GREP="$ac_path_GREP"
3262 ac_path_GREP_max=$ac_count
3264 # 10*(2^10) chars as input seems more than enough
3265 test $ac_count -gt 10 && break
3267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3270 $ac_path_GREP_found && break 3
3275 if test -z "$ac_cv_path_GREP"; then
3276 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3277 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3278 { (exit 1); exit 1; }; }
3281 ac_cv_path_GREP=$GREP
3285 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3286 $as_echo "$ac_cv_path_GREP" >&6; }
3287 GREP="$ac_cv_path_GREP"
3290 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3291 $as_echo_n "checking for egrep... " >&6; }
3292 if test "${ac_cv_path_EGREP+set}" = set; then
3293 $as_echo_n "(cached) " >&6
3295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3296 then ac_cv_path_EGREP="$GREP -E"
3298 if test -z "$EGREP"; then
3299 ac_path_EGREP_found=false
3300 # Loop through the user's path and test for each of PROGNAME-LIST
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3305 test -z "$as_dir" && as_dir=.
3306 for ac_prog in egrep; do
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3309 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3310 # Check for GNU ac_path_EGREP and select it if it is found.
3311 # Check for GNU $ac_path_EGREP
3312 case `"$ac_path_EGREP" --version 2>&1` in
3314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3317 $as_echo_n 0123456789 >"conftest.in"
3320 cat "conftest.in" "conftest.in" >"conftest.tmp"
3321 mv "conftest.tmp" "conftest.in"
3322 cp "conftest.in" "conftest.nl"
3323 $as_echo 'EGREP' >> "conftest.nl"
3324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326 ac_count=`expr $ac_count + 1`
3327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3328 # Best one so far, save it but keep looking for a better one
3329 ac_cv_path_EGREP="$ac_path_EGREP"
3330 ac_path_EGREP_max=$ac_count
3332 # 10*(2^10) chars as input seems more than enough
3333 test $ac_count -gt 10 && break
3335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3338 $ac_path_EGREP_found && break 3
3343 if test -z "$ac_cv_path_EGREP"; then
3344 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3345 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3346 { (exit 1); exit 1; }; }
3349 ac_cv_path_EGREP=$EGREP
3354 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355 $as_echo "$ac_cv_path_EGREP" >&6; }
3356 EGREP="$ac_cv_path_EGREP"
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then
3362 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3368 if test "$GCC" = yes; then
3369 # Check if gcc -print-prog-name=ld gives a path.
3370 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3371 $as_echo_n "checking for ld used by $CC... " >&6; }
3374 # gcc leaves a trailing carriage return which upsets mingw
3375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3380 # Accept absolute paths.
3382 re_direlt='/[^/][^/]*/\.\./'
3383 # Canonicalize the pathname of ld
3384 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3385 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3386 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3388 test -z "$LD" && LD="$ac_prog"
3391 # If it fails, then pretend we aren't using GCC.
3395 # If it is relative, then search for the first ld in PATH.
3399 elif test "$with_gnu_ld" = yes; then
3400 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3401 $as_echo_n "checking for GNU ld... " >&6; }
3403 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3404 $as_echo_n "checking for non-GNU ld... " >&6; }
3406 if test "${lt_cv_path_LD+set}" = set; then
3407 $as_echo_n "(cached) " >&6
3409 if test -z "$LD"; then
3410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3411 for ac_dir in $PATH; do
3413 test -z "$ac_dir" && ac_dir=.
3414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3415 lt_cv_path_LD="$ac_dir/$ac_prog"
3416 # Check to see if the program is GNU ld. I'd rather use --version,
3417 # but apparently some GNU ld's only accept -v.
3418 # Break only if it was the GNU/non-GNU ld that we prefer.
3419 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3420 *GNU* | *'with BFD'*)
3421 test "$with_gnu_ld" != no && break
3424 test "$with_gnu_ld" != yes && break
3431 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3436 if test -n "$LD"; then
3437 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3438 $as_echo "$LD" >&6; }
3440 { $as_echo "$as_me:$LINENO: result: no" >&5
3441 $as_echo "no" >&6; }
3443 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3444 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3445 { (exit 1); exit 1; }; }
3446 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3447 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3448 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3449 $as_echo_n "(cached) " >&6
3451 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3452 case `$LD -v 2>&1 </dev/null` in
3453 *GNU* | *'with BFD'*)
3454 lt_cv_prog_gnu_ld=yes
3457 lt_cv_prog_gnu_ld=no
3461 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3462 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3463 with_gnu_ld=$lt_cv_prog_gnu_ld
3466 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3467 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3468 if test "${lt_cv_ld_reload_flag+set}" = set; then
3469 $as_echo_n "(cached) " >&6
3471 lt_cv_ld_reload_flag='-r'
3473 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3474 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3475 reload_flag=$lt_cv_ld_reload_flag
3476 case $reload_flag in
3478 *) reload_flag=" $reload_flag" ;;
3480 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3482 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3483 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3484 if test "${lt_cv_path_NM+set}" = set; then
3485 $as_echo_n "(cached) " >&6
3487 if test -n "$NM"; then
3488 # Let the user override the test.
3491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3492 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3494 test -z "$ac_dir" && ac_dir=.
3495 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3496 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3497 # Check to see if the nm accepts a BSD-compat flag.
3498 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3499 # nm: unknown option "B" ignored
3500 # Tru64's nm complains that /dev/null is an invalid object file
3501 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3502 */dev/null* | *'Invalid file or object type'*)
3503 lt_cv_path_NM="$tmp_nm -B"
3507 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3509 lt_cv_path_NM="$tmp_nm -p"
3513 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3514 continue # so that we can try to find one that supports BSD flags
3521 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3524 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3525 $as_echo "$lt_cv_path_NM" >&6; }
3528 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3529 $as_echo_n "checking whether ln -s works... " >&6; }
3531 if test "$LN_S" = "ln -s"; then
3532 { $as_echo "$as_me:$LINENO: result: yes" >&5
3533 $as_echo "yes" >&6; }
3535 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3536 $as_echo "no, using $LN_S" >&6; }
3539 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3540 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
3541 if test "${lt_cv_deplibs_check_method+set}" = set; then
3542 $as_echo_n "(cached) " >&6
3544 lt_cv_file_magic_cmd='$MAGIC_CMD'
3545 lt_cv_file_magic_test_file=
3546 lt_cv_deplibs_check_method='unknown'
3547 # Need to set the preceding variable on all platforms that support
3548 # interlibrary dependencies.
3549 # 'none' -- dependencies not supported.
3550 # `unknown' -- same as none, but documents that we really don't know.
3551 # 'pass_all' -- all dependencies passed with no checks.
3552 # 'test_compile' -- check by making test program.
3553 # 'file_magic [[regex]]' -- check by looking for files in library path
3554 # which responds to the $file_magic_cmd with a given extended regex.
3555 # If you have `file' or equivalent on your system and you're not sure
3556 # whether `pass_all' will *always* work, you probably want this one.
3560 lt_cv_deplibs_check_method=pass_all
3564 lt_cv_deplibs_check_method=pass_all
3568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3569 lt_cv_file_magic_cmd='/usr/bin/file -L'
3570 lt_cv_file_magic_test_file=/shlib/libc.so
3573 cygwin* | mingw* | pw32*)
3574 # win32_libid is a shell function defined in ltmain.sh
3575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3576 lt_cv_file_magic_cmd='win32_libid'
3579 darwin* | rhapsody*)
3580 # this will be overwritten by pass_all, but leave it in just in case
3581 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3582 lt_cv_file_magic_cmd='/usr/bin/file -L'
3584 rhapsody* | darwin1.[012])
3585 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3588 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3591 lt_cv_deplibs_check_method=pass_all
3594 freebsd* | kfreebsd*-gnu)
3595 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3598 # Not sure whether the presence of OpenBSD here was a mistake.
3599 # Let's accept both of them until this is cleared up.
3600 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3601 lt_cv_file_magic_cmd=/usr/bin/file
3602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3606 lt_cv_deplibs_check_method=pass_all
3611 lt_cv_deplibs_check_method=pass_all
3614 hpux10.20* | hpux11*)
3615 lt_cv_file_magic_cmd=/usr/bin/file
3618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3619 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3622 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]'
3623 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3627 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3632 irix5* | irix6* | nonstopux*)
3634 irix5* | nonstopux*)
3635 # this will be overridden with pass_all, but let us keep it just in case
3636 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3640 *-32|*"-32 ") libmagic=32-bit;;
3641 *-n32|*"-n32 ") libmagic=N32;;
3642 *-64|*"-64 ") libmagic=64-bit;;
3643 *) libmagic=never-match;;
3645 # this will be overridden with pass_all, but let us keep it just in case
3646 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3649 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3650 lt_cv_deplibs_check_method=pass_all
3653 # This must be Linux ELF.
3655 # linux always uses pass_all now, this code is the old way (tm)
3657 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
3658 lt_cv_deplibs_check_method=pass_all ;;
3660 # glibc up to 2.1.1 does not perform some relocations on ARM
3661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3663 lt_cv_deplibs_check_method=pass_all
3664 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3668 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3677 lt_cv_file_magic_cmd=/usr/bin/file
3678 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3682 lt_cv_deplibs_check_method=unknown
3686 lt_cv_file_magic_cmd=/usr/bin/file
3687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3691 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3695 osf3* | osf4* | osf5*)
3696 # this will be overridden with pass_all, but let us keep it just in case
3697 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3698 lt_cv_file_magic_test_file=/shlib/libc.so
3699 lt_cv_deplibs_check_method=pass_all
3703 lt_cv_deplibs_check_method=pass_all
3707 lt_cv_deplibs_check_method=pass_all
3708 lt_cv_file_magic_test_file=/lib/libc.so
3711 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3712 case $host_vendor in
3714 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]'
3715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3718 lt_cv_deplibs_check_method=pass_all
3721 lt_cv_file_magic_cmd='/bin/file'
3722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3725 lt_cv_file_magic_cmd='/bin/file'
3726 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3727 lt_cv_file_magic_test_file=/lib/libc.so
3730 lt_cv_deplibs_check_method=pass_all
3735 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3736 lt_cv_deplibs_check_method=pass_all
3741 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3742 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3743 file_magic_cmd=$lt_cv_file_magic_cmd
3744 deplibs_check_method=$lt_cv_deplibs_check_method
3745 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3750 # If no C compiler was specified, use CC.
3753 # Allow CC to be a program name with arguments.
3757 # Check whether --enable-libtool-lock was given.
3758 if test "${enable_libtool_lock+set}" = set; then
3759 enableval=$enable_libtool_lock;
3762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3764 # Some flags need to be propagated to the compiler or linker for good
3768 # Find out which ABI we are using.
3769 echo 'int i;' > conftest.$ac_ext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771 (eval $ac_compile) 2>&5
3773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; then
3775 case `/usr/bin/file conftest.$ac_objext` in
3787 # Find out which ABI we are using.
3788 echo '#line 3788 "configure"' > conftest.$ac_ext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>&5
3792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; then
3794 if test "$lt_cv_prog_gnu_ld" = yes; then
3795 case `/usr/bin/file conftest.$ac_objext` in
3797 LD="${LD-ld} -melf32bsmip"
3800 LD="${LD-ld} -melf32bmipn32"
3803 LD="${LD-ld} -melf64bmip"
3807 case `/usr/bin/file conftest.$ac_objext` in
3823 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3824 # Find out which ABI we are using.
3825 echo 'int i;' > conftest.$ac_ext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; then
3831 case "`/usr/bin/file conftest.o`" in
3835 LD="${LD-ld} -m elf_i386"
3837 ppc64-*linux*|powerpc64-*linux*)
3838 LD="${LD-ld} -m elf32ppclinux"
3841 LD="${LD-ld} -m elf_s390"
3844 LD="${LD-ld} -m elf32_sparc"
3851 LD="${LD-ld} -m elf_x86_64"
3853 ppc*-*linux*|powerpc*-*linux*)
3854 LD="${LD-ld} -m elf64ppc"
3857 LD="${LD-ld} -m elf64_s390"
3860 LD="${LD-ld} -m elf64_sparc"
3870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3871 SAVE_CFLAGS="$CFLAGS"
3872 CFLAGS="$CFLAGS -belf"
3873 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3874 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
3875 if test "${lt_cv_cc_needs_belf+set}" = set; then
3876 $as_echo_n "(cached) " >&6
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3899 rm -f conftest.$ac_objext conftest$ac_exeext
3900 if { (ac_try="$ac_link"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3906 $as_echo "$ac_try_echo") >&5
3907 (eval "$ac_link") 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
3911 cat conftest.err >&5
3912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } && {
3914 test -z "$ac_c_werror_flag" ||
3915 test ! -s conftest.err
3916 } && test -s conftest$ac_exeext && {
3917 test "$cross_compiling" = yes ||
3918 $as_test_x conftest$ac_exeext
3920 lt_cv_cc_needs_belf=yes
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 lt_cv_cc_needs_belf=no
3928 rm -rf conftest.dSYM
3929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3930 conftest$ac_exeext conftest.$ac_ext
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3939 $as_echo "$lt_cv_cc_needs_belf" >&6; }
3940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3942 CFLAGS="$SAVE_CFLAGS"
3948 need_locks="$enable_libtool_lock"
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3957 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3958 # On Suns, sometimes $CPP names a directory.
3959 if test -n "$CPP" && test -d "$CPP"; then
3962 if test -z "$CPP"; then
3963 if test "${ac_cv_prog_CPP+set}" = set; then
3964 $as_echo_n "(cached) " >&6
3966 # Double quotes because CPP needs to be expanded
3967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3970 for ac_c_preproc_warn_flag in '' yes
3972 # Use a header file that comes with gcc, so configuring glibc
3973 # with a fresh cross-compiler works.
3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3975 # <limits.h> exists even on freestanding compilers.
3976 # On the NeXT, cc -E runs the code through the compiler's parser,
3977 # not just through cpp. "Syntax error" is here to catch this case.
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3985 # include <limits.h>
3987 # include <assert.h>
3991 if { (ac_try="$ac_cpp conftest.$ac_ext"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3997 $as_echo "$ac_try_echo") >&5
3998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } >/dev/null && {
4005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4010 $as_echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 # Broken: fails on valid input.
4017 rm -f conftest.err conftest.$ac_ext
4019 # OK, works on sane cases. Now check whether nonexistent headers
4020 # can be detected and how.
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 #include <ac_nonexistent.h>
4029 if { (ac_try="$ac_cpp conftest.$ac_ext"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4035 $as_echo "$ac_try_echo") >&5
4036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } >/dev/null && {
4043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4046 # Broken: success on invalid input.
4049 $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 # Passes both tests.
4057 rm -f conftest.err conftest.$ac_ext
4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061 rm -f conftest.err conftest.$ac_ext
4062 if $ac_preproc_ok; then
4074 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4075 $as_echo "$CPP" >&6; }
4077 for ac_c_preproc_warn_flag in '' yes
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error" is here to catch this case.
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4092 # include <limits.h>
4094 # include <assert.h>
4098 if { (ac_try="$ac_cpp conftest.$ac_ext"
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4117 $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 # Broken: fails on valid input.
4124 rm -f conftest.err conftest.$ac_ext
4126 # OK, works on sane cases. Now check whether nonexistent headers
4127 # can be detected and how.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4136 if { (ac_try="$ac_cpp conftest.$ac_ext"
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4153 # Broken: success on invalid input.
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Passes both tests.
4164 rm -f conftest.err conftest.$ac_ext
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then
4172 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4173 See \`config.log' for more details." >&5
4174 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4175 See \`config.log' for more details." >&2;}
4176 { (exit 1); exit 1; }; }
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4187 $as_echo_n "checking for ANSI C header files... " >&6; }
4188 if test "${ac_cv_header_stdc+set}" = set; then
4189 $as_echo_n "(cached) " >&6
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && {
4225 test -z "$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 } && test -s conftest.$ac_objext; then
4228 ac_cv_header_stdc=yes
4230 $as_echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 ac_cv_header_stdc=no
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 if test $ac_cv_header_stdc = yes; then
4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250 $EGREP "memchr" >/dev/null 2>&1; then
4253 ac_cv_header_stdc=no
4259 if test $ac_cv_header_stdc = yes; then
4260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261 cat >conftest.$ac_ext <<_ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271 $EGREP "free" >/dev/null 2>&1; then
4274 ac_cv_header_stdc=no
4280 if test $ac_cv_header_stdc = yes; then
4281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4282 if test "$cross_compiling" = yes; then
4285 cat >conftest.$ac_ext <<_ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4293 #if ((' ' & 0x0FF) == 0x020)
4294 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4295 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4297 # define ISLOWER(c) \
4298 (('a' <= (c) && (c) <= 'i') \
4299 || ('j' <= (c) && (c) <= 'r') \
4300 || ('s' <= (c) && (c) <= 'z'))
4301 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4309 for (i = 0; i < 256; i++)
4310 if (XOR (islower (i), ISLOWER (i))
4311 || toupper (i) != TOUPPER (i))
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4323 $as_echo "$ac_try_echo") >&5
4324 (eval "$ac_link") 2>&5
4326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333 $as_echo "$ac_try_echo") >&5
4334 (eval "$ac_try") 2>&5
4336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4340 $as_echo "$as_me: program exited with status $ac_status" >&5
4341 $as_echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_header_stdc=no
4347 rm -rf conftest.dSYM
4348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4354 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4355 $as_echo "$ac_cv_header_stdc" >&6; }
4356 if test $ac_cv_header_stdc = yes; then
4358 cat >>confdefs.h <<\_ACEOF
4359 #define STDC_HEADERS 1
4364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4374 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4375 inttypes.h stdint.h unistd.h
4377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4379 $as_echo_n "checking for $ac_header... " >&6; }
4380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4381 $as_echo_n "(cached) " >&6
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 $ac_includes_default
4391 #include <$ac_header>
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4400 $as_echo "$ac_try_echo") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } && {
4408 test -z "$ac_c_werror_flag" ||
4409 test ! -s conftest.err
4410 } && test -s conftest.$ac_objext; then
4411 eval "$as_ac_Header=yes"
4413 $as_echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 eval "$as_ac_Header=no"
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_res=`eval 'as_val=${'$as_ac_Header'}
4422 $as_echo "$as_val"'`
4423 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4424 $as_echo "$ac_res" >&6; }
4425 if test `eval 'as_val=${'$as_ac_Header'}
4426 $as_echo "$as_val"'` = yes; then
4427 cat >>confdefs.h <<_ACEOF
4428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4437 for ac_header in dlfcn.h
4439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4442 $as_echo_n "checking for $ac_header... " >&6; }
4443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4444 $as_echo_n "(cached) " >&6
4446 ac_res=`eval 'as_val=${'$as_ac_Header'}
4447 $as_echo "$as_val"'`
4448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4449 $as_echo "$ac_res" >&6; }
4451 # Is the header compilable?
4452 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4453 $as_echo_n "checking $ac_header usability... " >&6; }
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 $ac_includes_default
4461 #include <$ac_header>
4463 rm -f conftest.$ac_objext
4464 if { (ac_try="$ac_compile"
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470 $as_echo "$ac_try_echo") >&5
4471 (eval "$ac_compile") 2>conftest.er1
4473 grep -v '^ *+' conftest.er1 >conftest.err
4475 cat conftest.err >&5
4476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } && {
4478 test -z "$ac_c_werror_flag" ||
4479 test ! -s conftest.err
4480 } && test -s conftest.$ac_objext; then
4481 ac_header_compiler=yes
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_header_compiler=no
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4491 $as_echo "$ac_header_compiler" >&6; }
4493 # Is the header present?
4494 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4495 $as_echo_n "checking $ac_header presence... " >&6; }
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <$ac_header>
4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4513 grep -v '^ *+' conftest.er1 >conftest.err
4515 cat conftest.err >&5
4516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4521 ac_header_preproc=yes
4523 $as_echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 ac_header_preproc=no
4529 rm -f conftest.err conftest.$ac_ext
4530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4531 $as_echo "$ac_header_preproc" >&6; }
4533 # So? What about this header?
4534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4537 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4540 ac_header_preproc=yes
4543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4544 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4546 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4548 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4550 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4554 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4556 ## -------------------------------- ##
4557 ## Report this to chise-en@m17n.org ##
4558 ## -------------------------------- ##
4560 ) | sed "s/^/$as_me: WARNING: /" >&2
4563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4564 $as_echo_n "checking for $ac_header... " >&6; }
4565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4566 $as_echo_n "(cached) " >&6
4568 eval "$as_ac_Header=\$ac_header_preproc"
4570 ac_res=`eval 'as_val=${'$as_ac_Header'}
4571 $as_echo "$as_val"'`
4572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4573 $as_echo "$ac_res" >&6; }
4576 if test `eval 'as_val=${'$as_ac_Header'}
4577 $as_echo "$as_val"'` = yes; then
4578 cat >>confdefs.h <<_ACEOF
4579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4587 ac_cpp='$CXXCPP $CPPFLAGS'
4588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4591 if test -z "$CXX"; then
4592 if test -n "$CCC"; then
4595 if test -n "$ac_tool_prefix"; then
4596 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_prog_CXX+set}" = set; then
4603 $as_echo_n "(cached) " >&6
4605 if test -n "$CXX"; then
4606 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 if test -n "$CXX"; then
4627 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4628 $as_echo "$CXX" >&6; }
4630 { $as_echo "$as_me:$LINENO: result: no" >&5
4631 $as_echo "no" >&6; }
4635 test -n "$CXX" && break
4638 if test -z "$CXX"; then
4640 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4642 # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$ac_ct_CXX"; then
4650 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ac_ct_CXX="$ac_prog"
4660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4670 if test -n "$ac_ct_CXX"; then
4671 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4672 $as_echo "$ac_ct_CXX" >&6; }
4674 { $as_echo "$as_me:$LINENO: result: no" >&5
4675 $as_echo "no" >&6; }
4679 test -n "$ac_ct_CXX" && break
4682 if test "x$ac_ct_CXX" = x; then
4685 case $cross_compiling:$ac_tool_warned in
4687 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4688 whose name does not start with the host triplet. If you think this
4689 configuration is useful to you, please write to autoconf@gnu.org." >&5
4690 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4691 whose name does not start with the host triplet. If you think this
4692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4693 ac_tool_warned=yes ;;
4701 # Provide some information about the compiler.
4702 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4705 { (ac_try="$ac_compiler --version >&5"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_compiler --version >&5") 2>&5
4714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }
4716 { (ac_try="$ac_compiler -v >&5"
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723 (eval "$ac_compiler -v >&5") 2>&5
4725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }
4727 { (ac_try="$ac_compiler -V >&5"
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733 $as_echo "$ac_try_echo") >&5
4734 (eval "$ac_compiler -V >&5") 2>&5
4736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }
4739 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4741 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4742 $as_echo_n "(cached) " >&6
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770 (eval "$ac_compile") 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } && {
4777 test -z "$ac_cxx_werror_flag" ||
4778 test ! -s conftest.err
4779 } && test -s conftest.$ac_objext; then
4782 $as_echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4792 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4793 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4794 if test $ac_compiler_gnu = yes; then
4799 ac_test_CXXFLAGS=${CXXFLAGS+set}
4800 ac_save_CXXFLAGS=$CXXFLAGS
4801 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4802 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4803 if test "${ac_cv_prog_cxx_g+set}" = set; then
4804 $as_echo_n "(cached) " >&6
4806 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4807 ac_cxx_werror_flag=yes
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4825 rm -f conftest.$ac_objext
4826 if { (ac_try="$ac_compile"
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4832 $as_echo "$ac_try_echo") >&5
4833 (eval "$ac_compile") 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
4837 cat conftest.err >&5
4838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && {
4840 test -z "$ac_cxx_werror_flag" ||
4841 test ! -s conftest.err
4842 } && test -s conftest.$ac_objext; then
4843 ac_cv_prog_cxx_g=yes
4845 $as_echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4849 cat >conftest.$ac_ext <<_ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4864 rm -f conftest.$ac_objext
4865 if { (ac_try="$ac_compile"
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871 $as_echo "$ac_try_echo") >&5
4872 (eval "$ac_compile") 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_cxx_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest.$ac_objext; then
4884 $as_echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4889 cat >conftest.$ac_ext <<_ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4904 rm -f conftest.$ac_objext
4905 if { (ac_try="$ac_compile"
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911 $as_echo "$ac_try_echo") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_cxx_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4922 ac_cv_prog_cxx_g=yes
4924 $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4939 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4940 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4941 if test "$ac_test_CXXFLAGS" = set; then
4942 CXXFLAGS=$ac_save_CXXFLAGS
4943 elif test $ac_cv_prog_cxx_g = yes; then
4944 if test "$GXX" = yes; then
4950 if test "$GXX" = yes; then
4957 ac_cpp='$CXXCPP $CPPFLAGS'
4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4963 ac_cpp='$CXXCPP $CPPFLAGS'
4964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4967 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4968 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4969 if test -z "$CXXCPP"; then
4970 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4971 $as_echo_n "(cached) " >&6
4973 # Double quotes because CXXCPP needs to be expanded
4974 for CXXCPP in "$CXX -E" "/lib/cpp"
4977 for ac_cxx_preproc_warn_flag in '' yes
4979 # Use a header file that comes with gcc, so configuring glibc
4980 # with a fresh cross-compiler works.
4981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4982 # <limits.h> exists even on freestanding compilers.
4983 # On the NeXT, cc -E runs the code through the compiler's parser,
4984 # not just through cpp. "Syntax error" is here to catch this case.
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4992 # include <limits.h>
4994 # include <assert.h>
4998 if { (ac_try="$ac_cpp conftest.$ac_ext"
5000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 *) ac_try_echo=$ac_try;;
5003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5004 $as_echo "$ac_try_echo") >&5
5005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null && {
5012 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5013 test ! -s conftest.err
5017 $as_echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5020 # Broken: fails on valid input.
5024 rm -f conftest.err conftest.$ac_ext
5026 # OK, works on sane cases. Now check whether nonexistent headers
5027 # can be detected and how.
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #include <ac_nonexistent.h>
5036 if { (ac_try="$ac_cpp conftest.$ac_ext"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5042 $as_echo "$ac_try_echo") >&5
5043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } >/dev/null && {
5050 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5051 test ! -s conftest.err
5053 # Broken: success on invalid input.
5056 $as_echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 # Passes both tests.
5064 rm -f conftest.err conftest.$ac_ext
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then
5074 ac_cv_prog_CXXCPP=$CXXCPP
5077 CXXCPP=$ac_cv_prog_CXXCPP
5079 ac_cv_prog_CXXCPP=$CXXCPP
5081 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5082 $as_echo "$CXXCPP" >&6; }
5084 for ac_cxx_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 # include <limits.h>
5101 # include <assert.h>
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111 $as_echo "$ac_try_echo") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null && {
5119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5120 test ! -s conftest.err
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 # Broken: fails on valid input.
5131 rm -f conftest.err conftest.$ac_ext
5133 # OK, works on sane cases. Now check whether nonexistent headers
5134 # can be detected and how.
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5143 if { (ac_try="$ac_cpp conftest.$ac_ext"
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5149 $as_echo "$ac_try_echo") >&5
5150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152 grep -v '^ *+' conftest.er1 >conftest.err
5154 cat conftest.err >&5
5155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } >/dev/null && {
5157 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5158 test ! -s conftest.err
5160 # Broken: success on invalid input.
5163 $as_echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 # Passes both tests.
5171 rm -f conftest.err conftest.$ac_ext
5174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175 rm -f conftest.err conftest.$ac_ext
5176 if $ac_preproc_ok; then
5179 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5180 See \`config.log' for more details." >&5
5181 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5182 See \`config.log' for more details." >&2;}
5183 { (exit 1); exit 1; }; }
5187 ac_cpp='$CXXCPP $CPPFLAGS'
5188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5194 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5195 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5197 if test -n "$ac_tool_prefix"; then
5198 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if test "${ac_cv_prog_F77+set}" = set; then
5205 $as_echo_n "(cached) " >&6
5207 if test -n "$F77"; then
5208 ac_cv_prog_F77="$F77" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 if test -n "$F77"; then
5229 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5230 $as_echo "$F77" >&6; }
5232 { $as_echo "$as_me:$LINENO: result: no" >&5
5233 $as_echo "no" >&6; }
5237 test -n "$F77" && break
5240 if test -z "$F77"; then
5242 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5244 # Extract the first word of "$ac_prog", so it can be a program name with args.
5245 set dummy $ac_prog; ac_word=$2
5246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5249 $as_echo_n "(cached) " >&6
5251 if test -n "$ac_ct_F77"; then
5252 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_ac_ct_F77="$ac_prog"
5262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5272 if test -n "$ac_ct_F77"; then
5273 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5274 $as_echo "$ac_ct_F77" >&6; }
5276 { $as_echo "$as_me:$LINENO: result: no" >&5
5277 $as_echo "no" >&6; }
5281 test -n "$ac_ct_F77" && break
5284 if test "x$ac_ct_F77" = x; then
5287 case $cross_compiling:$ac_tool_warned in
5289 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5290 whose name does not start with the host triplet. If you think this
5291 configuration is useful to you, please write to autoconf@gnu.org." >&5
5292 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5293 whose name does not start with the host triplet. If you think this
5294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5295 ac_tool_warned=yes ;;
5302 # Provide some information about the compiler.
5303 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5306 { (ac_try="$ac_compiler --version >&5"
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5312 $as_echo "$ac_try_echo") >&5
5313 (eval "$ac_compiler --version >&5") 2>&5
5315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }
5317 { (ac_try="$ac_compiler -v >&5"
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5323 $as_echo "$ac_try_echo") >&5
5324 (eval "$ac_compiler -v >&5") 2>&5
5326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }
5328 { (ac_try="$ac_compiler -V >&5"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334 $as_echo "$ac_try_echo") >&5
5335 (eval "$ac_compiler -V >&5") 2>&5
5337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5341 # If we don't use `.F' as extension, the preprocessor is not run on the
5342 # input file. (Note that this only needs to work for GNU compilers.)
5345 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5346 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5347 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5348 $as_echo_n "(cached) " >&6
5350 cat >conftest.$ac_ext <<_ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366 (eval "$ac_compile") 2>conftest.er1
5368 grep -v '^ *+' conftest.er1 >conftest.err
5370 cat conftest.err >&5
5371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && {
5373 test -z "$ac_f77_werror_flag" ||
5374 test ! -s conftest.err
5375 } && test -s conftest.$ac_objext; then
5378 $as_echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5388 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5389 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5391 ac_test_FFLAGS=${FFLAGS+set}
5392 ac_save_FFLAGS=$FFLAGS
5394 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5395 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5396 if test "${ac_cv_prog_f77_g+set}" = set; then
5397 $as_echo_n "(cached) " >&6
5400 cat >conftest.$ac_ext <<_ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5412 $as_echo "$ac_try_echo") >&5
5413 (eval "$ac_compile") 2>conftest.er1
5415 grep -v '^ *+' conftest.er1 >conftest.err
5417 cat conftest.err >&5
5418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } && {
5420 test -z "$ac_f77_werror_flag" ||
5421 test ! -s conftest.err
5422 } && test -s conftest.$ac_objext; then
5423 ac_cv_prog_f77_g=yes
5425 $as_echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5435 $as_echo "$ac_cv_prog_f77_g" >&6; }
5436 if test "$ac_test_FFLAGS" = set; then
5437 FFLAGS=$ac_save_FFLAGS
5438 elif test $ac_cv_prog_f77_g = yes; then
5439 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5445 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5452 if test $ac_compiler_gnu = yes; then
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5467 # find the maximum length of command line arguments
5468 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5469 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5470 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5471 $as_echo_n "(cached) " >&6
5478 # On DJGPP, this test can blow up pretty badly due to problems in libc
5479 # (any single argument exceeding 2000 bytes causes a buffer overrun
5480 # during glob expansion). Even if it were fixed, the result of this
5481 # check would be larger than it should be.
5482 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5486 # Under GNU Hurd, this test is not required because there is
5487 # no limit to the length of command line arguments.
5488 # Libtool will interpret -1 as no limit whatsoever
5489 lt_cv_sys_max_cmd_len=-1;
5493 # On Win9x/ME, this test blows up -- it succeeds, but takes
5494 # about 5 minutes as the teststring grows exponentially.
5495 # Worse, since 9x/ME are not pre-emptively multitasking,
5496 # you end up with a "frozen" computer, even though with patience
5497 # the test eventually succeeds (with a max line length of 256k).
5498 # Instead, let's just punt: use the minimum linelength reported by
5499 # all of the supported platforms: 8192 (on NT/2K/XP).
5500 lt_cv_sys_max_cmd_len=8192;
5504 # On AmigaOS with pdksh, this test takes hours, literally.
5505 # So we just punt and use a minimum line length of 8192.
5506 lt_cv_sys_max_cmd_len=8192;
5510 # If test is not a shell built-in, we'll probably end up computing a
5511 # maximum length that is only half of the actual maximum length, but
5513 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5514 = "XX$testring") >/dev/null 2>&1 &&
5515 new_result=`expr "X$testring" : ".*" 2>&1` &&
5516 lt_cv_sys_max_cmd_len=$new_result &&
5517 test $i != 17 # 1/2 MB should be enough
5520 testring=$testring$testring
5523 # Add a significant safety factor because C++ compilers can tack on massive
5524 # amounts of additional arguments before passing them to the linker.
5525 # It appears as though 1/2 is a usable value.
5526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5532 if test -n $lt_cv_sys_max_cmd_len ; then
5533 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5534 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5536 { $as_echo "$as_me:$LINENO: result: none" >&5
5537 $as_echo "none" >&6; }
5543 # Check for command to grab the raw symbol name followed by C symbol from nm.
5544 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5547 $as_echo_n "(cached) " >&6
5550 # These are sane defaults that work on at least a few old systems.
5551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5553 # Character class describing NM global symbol codes.
5554 symcode='[BCDEGRST]'
5556 # Regexp to match symbols that can be accessed directly from C.
5557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5559 # Transform the above into a raw symbol and a C symbol.
5560 symxfrm='\1 \2\3 \3'
5562 # Transform an extracted symbol line into a proper C declaration
5563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5565 # Transform an extracted symbol line into symbol name and symbol address
5566 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5568 # Define system-specific variables.
5573 cygwin* | mingw* | pw32*)
5574 symcode='[ABCDGISTW]'
5576 hpux*) # Its linker distinguishes data from code symbols
5577 if test "$host_cpu" = ia64; then
5578 symcode='[ABCDEGRST]'
5580 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5584 symcode='[BCDEGRST]'
5587 symcode='[BCDEGQRST]'
5597 # Handle CRLF in mingw tool chain
5601 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5605 # If we're using GNU nm, then use its standard symbol codes.
5606 case `$NM -V 2>&1` in
5607 *GNU* | *'with BFD'*)
5608 symcode='[ABCDGIRSTW]' ;;
5611 # Try without a prefix undercore, then with it.
5612 for ac_symprfx in "" "_"; do
5614 # Write the raw and C identifiers.
5615 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5617 # Check to see that the pipe works correctly.
5621 cat > conftest.$ac_ext <<EOF
5626 void nm_test_func(){}
5630 int main(){nm_test_var='a';nm_test_func();return(0);}
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>&5
5636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; then
5638 # Now try to grab the symbols.
5640 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5641 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && test -s "$nlist"; then
5645 # Try sorting and uniquifying the output.
5646 if sort "$nlist" | uniq > "$nlist"T; then
5647 mv -f "$nlist"T "$nlist"
5652 # Make sure that we snagged all the symbols we need.
5653 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5654 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5655 cat <<EOF > conftest.$ac_ext
5661 # Now generate the symbol file.
5662 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5664 cat <<EOF >> conftest.$ac_ext
5665 #if defined (__STDC__) && __STDC__
5666 # define lt_ptr_t void *
5668 # define lt_ptr_t char *
5672 /* The mapping between symbol names and symbols. */
5677 lt_preloaded_symbols[] =
5680 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5681 cat <<\EOF >> conftest.$ac_ext
5689 # Now try linking the two files.
5690 mv conftest.$ac_objext conftstm.$ac_objext
5691 lt_save_LIBS="$LIBS"
5692 lt_save_CFLAGS="$CFLAGS"
5693 LIBS="conftstm.$ac_objext"
5694 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696 (eval $ac_link) 2>&5
5698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5702 LIBS="$lt_save_LIBS"
5703 CFLAGS="$lt_save_CFLAGS"
5705 echo "cannot find nm_test_func in $nlist" >&5
5708 echo "cannot find nm_test_var in $nlist" >&5
5711 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5714 echo "$progname: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5717 rm -f conftest* conftst*
5719 # Do not use the global_symbol_pipe unless it works.
5720 if test "$pipe_works" = yes; then
5723 lt_cv_sys_global_symbol_pipe=
5729 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5730 lt_cv_sys_global_symbol_to_cdecl=
5732 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5733 { $as_echo "$as_me:$LINENO: result: failed" >&5
5734 $as_echo "failed" >&6; }
5736 { $as_echo "$as_me:$LINENO: result: ok" >&5
5737 $as_echo "ok" >&6; }
5740 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
5741 $as_echo_n "checking for objdir... " >&6; }
5742 if test "${lt_cv_objdir+set}" = set; then
5743 $as_echo_n "(cached) " >&6
5745 rm -f .libs 2>/dev/null
5746 mkdir .libs 2>/dev/null
5747 if test -d .libs; then
5750 # MS-DOS does not allow filenames that begin with a dot.
5753 rmdir .libs 2>/dev/null
5755 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5756 $as_echo "$lt_cv_objdir" >&6; }
5757 objdir=$lt_cv_objdir
5765 # AIX sometimes has problems with the GCC collect2 program. For some
5766 # reason, if we set the COLLECT_NAMES environment variable, the problems
5767 # vanish in a puff of smoke.
5768 if test "X${COLLECT_NAMES+set}" != Xset; then
5770 export COLLECT_NAMES
5775 # Sed substitution that helps us do robust quoting. It backslashifies
5776 # metacharacters that are still active within double-quoted strings.
5777 Xsed='sed -e s/^X//'
5778 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5780 # Same as above, but do not quote variable references.
5781 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5783 # Sed substitution to delay expansion of an escaped shell variable in a
5784 # double_quote_subst'ed string.
5785 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5787 # Sed substitution to avoid accidental globbing in evaled expressions
5788 no_glob_subst='s/\*/\\\*/g'
5794 default_ofile=libtool
5795 can_build_shared=yes
5797 # All known linkers require a `.a' archive for static linking (except M$VC,
5798 # which needs '.lib').
5800 ltmain="$ac_aux_dir/ltmain.sh"
5801 ofile="$default_ofile"
5802 with_gnu_ld="$lt_cv_prog_gnu_ld"
5804 if test -n "$ac_tool_prefix"; then
5805 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}ar; ac_word=$2
5807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if test "${ac_cv_prog_AR+set}" = set; then
5810 $as_echo_n "(cached) " >&6
5812 if test -n "$AR"; then
5813 ac_cv_prog_AR="$AR" # Let the user override the test.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_prog_AR="${ac_tool_prefix}ar"
5823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 if test -n "$AR"; then
5834 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5835 $as_echo "$AR" >&6; }
5837 { $as_echo "$as_me:$LINENO: result: no" >&5
5838 $as_echo "no" >&6; }
5843 if test -z "$ac_cv_prog_AR"; then
5845 # Extract the first word of "ar", so it can be a program name with args.
5846 set dummy ar; ac_word=$2
5847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$ac_ct_AR"; then
5853 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_ac_ct_AR="ar"
5863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5873 if test -n "$ac_ct_AR"; then
5874 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5875 $as_echo "$ac_ct_AR" >&6; }
5877 { $as_echo "$as_me:$LINENO: result: no" >&5
5878 $as_echo "no" >&6; }
5881 if test "x$ac_ct_AR" = x; then
5884 case $cross_compiling:$ac_tool_warned in
5886 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5887 whose name does not start with the host triplet. If you think this
5888 configuration is useful to you, please write to autoconf@gnu.org." >&5
5889 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5890 whose name does not start with the host triplet. If you think this
5891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5892 ac_tool_warned=yes ;;
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then
5906 $as_echo_n "(cached) " >&6
5908 if test -n "$RANLIB"; then
5909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 $as_echo "$RANLIB" >&6; }
5933 { $as_echo "$as_me:$LINENO: result: no" >&5
5934 $as_echo "no" >&6; }
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940 ac_ct_RANLIB=$RANLIB
5941 # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5946 $as_echo_n "(cached) " >&6
5948 if test -n "$ac_ct_RANLIB"; then
5949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_RANLIB="ranlib"
5959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971 $as_echo "$ac_ct_RANLIB" >&6; }
5973 { $as_echo "$as_me:$LINENO: result: no" >&5
5974 $as_echo "no" >&6; }
5977 if test "x$ac_ct_RANLIB" = x; then
5980 case $cross_compiling:$ac_tool_warned in
5982 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet. If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5990 RANLIB=$ac_ct_RANLIB
5993 RANLIB="$ac_cv_prog_RANLIB"
5996 if test -n "$ac_tool_prefix"; then
5997 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}strip; ac_word=$2
5999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if test "${ac_cv_prog_STRIP+set}" = set; then
6002 $as_echo_n "(cached) " >&6
6004 if test -n "$STRIP"; then
6005 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 STRIP=$ac_cv_prog_STRIP
6025 if test -n "$STRIP"; then
6026 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6027 $as_echo "$STRIP" >&6; }
6029 { $as_echo "$as_me:$LINENO: result: no" >&5
6030 $as_echo "no" >&6; }
6035 if test -z "$ac_cv_prog_STRIP"; then
6037 # Extract the first word of "strip", so it can be a program name with args.
6038 set dummy strip; ac_word=$2
6039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6042 $as_echo_n "(cached) " >&6
6044 if test -n "$ac_ct_STRIP"; then
6045 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_ac_ct_STRIP="strip"
6055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6065 if test -n "$ac_ct_STRIP"; then
6066 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6067 $as_echo "$ac_ct_STRIP" >&6; }
6069 { $as_echo "$as_me:$LINENO: result: no" >&5
6070 $as_echo "no" >&6; }
6073 if test "x$ac_ct_STRIP" = x; then
6076 case $cross_compiling:$ac_tool_warned in
6078 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6079 whose name does not start with the host triplet. If you think this
6080 configuration is useful to you, please write to autoconf@gnu.org." >&5
6081 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6082 whose name does not start with the host triplet. If you think this
6083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6084 ac_tool_warned=yes ;;
6089 STRIP="$ac_cv_prog_STRIP"
6094 old_CFLAGS="$CFLAGS"
6096 # Set sane defaults for various variables
6097 test -z "$AR" && AR=ar
6098 test -z "$AR_FLAGS" && AR_FLAGS=cru
6099 test -z "$AS" && AS=as
6100 test -z "$CC" && CC=cc
6101 test -z "$LTCC" && LTCC=$CC
6102 test -z "$DLLTOOL" && DLLTOOL=dlltool
6103 test -z "$LD" && LD=ld
6104 test -z "$LN_S" && LN_S="ln -s"
6105 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6106 test -z "$NM" && NM=nm
6107 test -z "$SED" && SED=sed
6108 test -z "$OBJDUMP" && OBJDUMP=objdump
6109 test -z "$RANLIB" && RANLIB=:
6110 test -z "$STRIP" && STRIP=:
6111 test -z "$ac_objext" && ac_objext=o
6113 # Determine commands to create old-style static archives.
6114 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6115 old_postinstall_cmds='chmod 644 $oldlib'
6116 old_postuninstall_cmds=
6118 if test -n "$RANLIB"; then
6121 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6124 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6127 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6130 # Only perform the check for file, if the check method requires it
6131 case $deplibs_check_method in
6133 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6134 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6135 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6136 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6137 $as_echo_n "(cached) " >&6
6141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6144 lt_save_MAGIC_CMD="$MAGIC_CMD"
6145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6146 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6147 for ac_dir in $ac_dummy; do
6149 test -z "$ac_dir" && ac_dir=.
6150 if test -f $ac_dir/${ac_tool_prefix}file; then
6151 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6152 if test -n "$file_magic_test_file"; then
6153 case $deplibs_check_method in
6155 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6156 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6157 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6158 $EGREP "$file_magic_regex" > /dev/null; then
6163 *** Warning: the command libtool uses to detect shared libraries,
6164 *** $file_magic_cmd, produces output that libtool cannot recognize.
6165 *** The result is that libtool may fail to recognize shared libraries
6166 *** as such. This will affect the creation of libtool libraries that
6167 *** depend on shared libraries, but programs linked with such libtool
6168 *** libraries will work regardless of this problem. Nevertheless, you
6169 *** may want to report the problem to your system manager and/or to
6170 *** bug-libtool@gnu.org
6180 MAGIC_CMD="$lt_save_MAGIC_CMD"
6185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186 if test -n "$MAGIC_CMD"; then
6187 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6188 $as_echo "$MAGIC_CMD" >&6; }
6190 { $as_echo "$as_me:$LINENO: result: no" >&5
6191 $as_echo "no" >&6; }
6194 if test -z "$lt_cv_path_MAGIC_CMD"; then
6195 if test -n "$ac_tool_prefix"; then
6196 { $as_echo "$as_me:$LINENO: checking for file" >&5
6197 $as_echo_n "checking for file... " >&6; }
6198 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6199 $as_echo_n "(cached) " >&6
6203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6206 lt_save_MAGIC_CMD="$MAGIC_CMD"
6207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6209 for ac_dir in $ac_dummy; do
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f $ac_dir/file; then
6213 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6214 if test -n "$file_magic_test_file"; then
6215 case $deplibs_check_method in
6217 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6220 $EGREP "$file_magic_regex" > /dev/null; then
6225 *** Warning: the command libtool uses to detect shared libraries,
6226 *** $file_magic_cmd, produces output that libtool cannot recognize.
6227 *** The result is that libtool may fail to recognize shared libraries
6228 *** as such. This will affect the creation of libtool libraries that
6229 *** depend on shared libraries, but programs linked with such libtool
6230 *** libraries will work regardless of this problem. Nevertheless, you
6231 *** may want to report the problem to your system manager and/or to
6232 *** bug-libtool@gnu.org
6242 MAGIC_CMD="$lt_save_MAGIC_CMD"
6247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6248 if test -n "$MAGIC_CMD"; then
6249 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6250 $as_echo "$MAGIC_CMD" >&6; }
6252 { $as_echo "$as_me:$LINENO: result: no" >&5
6253 $as_echo "no" >&6; }
6268 # Check whether --enable-libtool-lock was given.
6269 if test "${enable_libtool_lock+set}" = set; then
6270 enableval=$enable_libtool_lock;
6273 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6276 # Check whether --with-pic was given.
6277 if test "${with_pic+set}" = set; then
6278 withval=$with_pic; pic_mode="$withval"
6283 test -z "$pic_mode" && pic_mode=default
6285 # Use C for the default configuration in the libtool script
6289 ac_cpp='$CPP $CPPFLAGS'
6290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6295 # Source file extension for C test sources.
6298 # Object file extension for compiled C test sources.
6302 # Code to be used in simple compile tests
6303 lt_simple_compile_test_code="int some_variable = 0;\n"
6305 # Code to be used in simple link tests
6306 lt_simple_link_test_code='int main(){return(0);}\n'
6309 # If no C compiler was specified, use CC.
6312 # Allow CC to be a program name with arguments.
6317 # Check for any special shared library compilation flags.
6320 if test "$GCC" = no; then
6323 lt_prog_cc_shlib='-belf'
6327 if test -n "$lt_prog_cc_shlib"; then
6328 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6329 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6330 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6332 { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6333 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6334 lt_cv_prog_cc_can_build_shared=no
6340 # Check to make sure the static flag actually works.
6342 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6343 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6344 if test "${lt_prog_compiler_static_works+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6347 lt_prog_compiler_static_works=no
6348 save_LDFLAGS="$LDFLAGS"
6349 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6350 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6352 # The compiler can only warn and ignore the option if not recognized
6353 # So say no if there are warnings
6354 if test -s conftest.err; then
6355 # Append any errors to the config.log.
6356 cat conftest.err 1>&5
6358 lt_prog_compiler_static_works=yes
6362 LDFLAGS="$save_LDFLAGS"
6365 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6366 $as_echo "$lt_prog_compiler_static_works" >&6; }
6368 if test x"$lt_prog_compiler_static_works" = xyes; then
6371 lt_prog_compiler_static=
6377 ## There is no encapsulation within the following macros, do not change
6378 ## the running order or otherwise move them around unless you know exactly
6379 ## what you are doing...
6381 lt_prog_compiler_no_builtin_flag=
6383 if test "$GCC" = yes; then
6384 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6387 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6388 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6389 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6390 $as_echo_n "(cached) " >&6
6392 lt_cv_prog_compiler_rtti_exceptions=no
6393 ac_outfile=conftest.$ac_objext
6394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6395 lt_compiler_flag="-fno-rtti -fno-exceptions"
6396 # Insert the option either (1) after the last *FLAGS variable, or
6397 # (2) before a word containing "conftest.", or (3) at the end.
6398 # Note that $ac_compile itself does not contain backslashes and begins
6399 # with a dollar sign (not a hyphen), so the echo should work correctly.
6400 # The option is referenced via a variable to avoid confusing sed.
6401 lt_compile=`echo "$ac_compile" | $SED \
6402 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6404 -e 's:$: $lt_compiler_flag:'`
6405 (eval echo "\"\$as_me:6405: $lt_compile\"" >&5)
6406 (eval "$lt_compile" 2>conftest.err)
6408 cat conftest.err >&5
6409 echo "$as_me:6409: \$? = $ac_status" >&5
6410 if (exit $ac_status) && test -s "$ac_outfile"; then
6411 # The compiler can only warn and ignore the option if not recognized
6412 # So say no if there are warnings
6413 if test ! -s conftest.err; then
6414 lt_cv_prog_compiler_rtti_exceptions=yes
6420 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6421 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6423 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6431 lt_prog_compiler_wl=
6432 lt_prog_compiler_pic=
6433 lt_prog_compiler_static=
6435 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6436 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6438 if test "$GCC" = yes; then
6439 lt_prog_compiler_wl='-Wl,'
6440 lt_prog_compiler_static='-static'
6444 # All AIX code is PIC.
6445 if test "$host_cpu" = ia64; then
6446 # AIX 5 now supports IA64 processor
6447 lt_prog_compiler_static='-Bstatic'
6452 # FIXME: we need at least 68020 code to build shared libraries, but
6453 # adding the `-m68020' flag to GCC prevents building anything better,
6455 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6458 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6459 # PIC is the default for these OSes.
6462 mingw* | pw32* | os2*)
6463 # This hack is so that the source file can tell whether it is being
6464 # built for inclusion in a dll (and should export symbols for example).
6465 lt_prog_compiler_pic='-DDLL_EXPORT'
6468 darwin* | rhapsody*)
6469 # PIC is the default on this platform
6470 # Common symbols not allowed in MH_DYLIB files
6471 lt_prog_compiler_pic='-fno-common'
6475 # Just because we use GCC doesn't mean we suddenly get shared libraries
6476 # on systems that don't support them.
6477 lt_prog_compiler_can_build_shared=no
6482 if test -d /usr/nec; then
6483 lt_prog_compiler_pic=-Kconform_pic
6488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6495 lt_prog_compiler_pic='-fPIC'
6501 lt_prog_compiler_pic='-fPIC'
6505 # PORTME Check for flag to pass linker flags through the system compiler.
6508 lt_prog_compiler_wl='-Wl,'
6509 if test "$host_cpu" = ia64; then
6510 # AIX 5 now supports IA64 processor
6511 lt_prog_compiler_static='-Bstatic'
6513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6517 mingw* | pw32* | os2*)
6518 # This hack is so that the source file can tell whether it is being
6519 # built for inclusion in a dll (and should export symbols for example).
6520 lt_prog_compiler_pic='-DDLL_EXPORT'
6523 hpux9* | hpux10* | hpux11*)
6524 lt_prog_compiler_wl='-Wl,'
6525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6532 lt_prog_compiler_pic='+Z'
6535 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6536 lt_prog_compiler_static='${wl}-a ${wl}archive'
6539 irix5* | irix6* | nonstopux*)
6540 lt_prog_compiler_wl='-Wl,'
6541 # PIC (with -KPIC) is the default.
6542 lt_prog_compiler_static='-non_shared'
6546 lt_prog_compiler_pic='-KPIC'
6547 lt_prog_compiler_static='-Bstatic'
6553 lt_prog_compiler_wl='-Wl,'
6554 lt_prog_compiler_pic='-KPIC'
6555 lt_prog_compiler_static='-static'
6558 lt_prog_compiler_wl='-Wl,'
6559 # All Alpha code is PIC.
6560 lt_prog_compiler_static='-non_shared'
6565 osf3* | osf4* | osf5*)
6566 lt_prog_compiler_wl='-Wl,'
6567 # All OSF/1 code is PIC.
6568 lt_prog_compiler_static='-non_shared'
6572 lt_prog_compiler_pic='-Kpic'
6573 lt_prog_compiler_static='-dn'
6577 lt_prog_compiler_wl='-Wl,'
6578 lt_prog_compiler_pic='-KPIC'
6579 lt_prog_compiler_static='-Bstatic'
6583 lt_prog_compiler_wl='-Qoption ld '
6584 lt_prog_compiler_pic='-PIC'
6585 lt_prog_compiler_static='-Bstatic'
6588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6589 lt_prog_compiler_wl='-Wl,'
6590 lt_prog_compiler_pic='-KPIC'
6591 lt_prog_compiler_static='-Bstatic'
6595 if test -d /usr/nec ;then
6596 lt_prog_compiler_pic='-Kconform_pic'
6597 lt_prog_compiler_static='-Bstatic'
6602 lt_prog_compiler_pic='-pic'
6603 lt_prog_compiler_static='-Bstatic'
6607 lt_prog_compiler_can_build_shared=no
6612 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6613 $as_echo "$lt_prog_compiler_pic" >&6; }
6616 # Check to make sure the PIC flag actually works.
6618 if test -n "$lt_prog_compiler_pic"; then
6620 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6621 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6622 if test "${lt_prog_compiler_pic_works+set}" = set; then
6623 $as_echo_n "(cached) " >&6
6625 lt_prog_compiler_pic_works=no
6626 ac_outfile=conftest.$ac_objext
6627 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6628 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6629 # Insert the option either (1) after the last *FLAGS variable, or
6630 # (2) before a word containing "conftest.", or (3) at the end.
6631 # Note that $ac_compile itself does not contain backslashes and begins
6632 # with a dollar sign (not a hyphen), so the echo should work correctly.
6633 # The option is referenced via a variable to avoid confusing sed.
6634 lt_compile=`echo "$ac_compile" | $SED \
6635 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6637 -e 's:$: $lt_compiler_flag:'`
6638 (eval echo "\"\$as_me:6638: $lt_compile\"" >&5)
6639 (eval "$lt_compile" 2>conftest.err)
6641 cat conftest.err >&5
6642 echo "$as_me:6642: \$? = $ac_status" >&5
6643 if (exit $ac_status) && test -s "$ac_outfile"; then
6644 # The compiler can only warn and ignore the option if not recognized
6645 # So say no if there are warnings
6646 if test ! -s conftest.err; then
6647 lt_prog_compiler_pic_works=yes
6653 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6654 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6656 if test x"$lt_prog_compiler_pic_works" = xyes; then
6657 case $lt_prog_compiler_pic in
6659 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6662 lt_prog_compiler_pic=
6663 lt_prog_compiler_can_build_shared=no
6668 # For platforms which do not support PIC, -DPIC is meaningless:
6670 lt_prog_compiler_pic=
6673 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6677 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6679 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6680 $as_echo_n "(cached) " >&6
6682 lt_cv_prog_compiler_c_o=no
6683 $rm -r conftest 2>/dev/null
6687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6689 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6690 # that will create temporary files in the current directory regardless of
6691 # the output directory. Thus, making CWD read-only will cause this test
6692 # to fail, enabling locking or at least warning the user not to do parallel
6696 lt_compiler_flag="-o out/conftest2.$ac_objext"
6697 # Insert the option either (1) after the last *FLAGS variable, or
6698 # (2) before a word containing "conftest.", or (3) at the end.
6699 # Note that $ac_compile itself does not contain backslashes and begins
6700 # with a dollar sign (not a hyphen), so the echo should work correctly.
6701 lt_compile=`echo "$ac_compile" | $SED \
6702 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6704 -e 's:$: $lt_compiler_flag:'`
6705 (eval echo "\"\$as_me:6705: $lt_compile\"" >&5)
6706 (eval "$lt_compile" 2>out/conftest.err)
6708 cat out/conftest.err >&5
6709 echo "$as_me:6709: \$? = $ac_status" >&5
6710 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6712 # The compiler can only warn and ignore the option if not recognized
6713 # So say no if there are warnings
6714 if test ! -s out/conftest.err; then
6715 lt_cv_prog_compiler_c_o=yes
6720 # SGI C++ compiler will create directory out/ii_files/ for
6721 # template instantiation
6722 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6723 $rm out/* && rmdir out
6729 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6730 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6733 hard_links="nottested"
6734 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6735 # do not overwrite the value of need_locks provided by the user
6736 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6737 $as_echo_n "checking if we can lock with hard links... " >&6; }
6740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6742 ln conftest.a conftest.b 2>&5 || hard_links=no
6743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6744 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
6745 $as_echo "$hard_links" >&6; }
6746 if test "$hard_links" = no; then
6747 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6748 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6755 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6756 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6759 allow_undefined_flag=
6760 enable_shared_with_static_runtimes=no
6762 archive_expsym_cmds=
6763 old_archive_From_new_cmds=
6764 old_archive_from_expsyms_cmds=
6765 export_dynamic_flag_spec=
6766 whole_archive_flag_spec=
6767 thread_safe_flag_spec=
6768 hardcode_libdir_flag_spec=
6769 hardcode_libdir_flag_spec_ld=
6770 hardcode_libdir_separator=
6773 hardcode_shlibpath_var=unsupported
6774 link_all_deplibs=unknown
6775 hardcode_automatic=no
6778 always_export_symbols=no
6779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6780 # include_expsyms should be a list of space-separated symbols to be *always*
6781 # included in the symbol list
6783 # exclude_expsyms can be an extended regexp of symbols to exclude
6784 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6785 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6786 # as well as any symbol that contains `d'.
6787 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6788 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6789 # platforms (ab)use it in PIC code, but their linkers get confused if
6790 # the symbol is explicitly referenced. Since portable code cannot
6791 # rely on this symbol name, it's probably fine to never include it in
6792 # preloaded symbol tables.
6793 extract_expsyms_cmds=
6796 cygwin* | mingw* | pw32*)
6797 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6798 # When not using gcc, we currently assume that we are using
6799 # Microsoft Visual C++.
6800 if test "$GCC" != yes; then
6810 if test "$with_gnu_ld" = yes; then
6811 # If archive_cmds runs LD, not CC, wlarc should be empty
6814 # See if GNU ld supports shared libraries.
6816 aix3* | aix4* | aix5*)
6817 # On AIX/PPC, the GNU linker is very broken
6818 if test "$host_cpu" != ia64; then
6822 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6823 *** to be unable to reliably create shared libraries on AIX.
6824 *** Therefore, libtool is disabling shared libraries support. If you
6825 *** really care for shared libraries, you may want to modify your PATH
6826 *** so that a non-GNU linker is found, and then restart.
6833 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)'
6834 hardcode_libdir_flag_spec='-L$libdir'
6835 hardcode_minus_L=yes
6837 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6838 # that the semantics of dynamic libraries on AmigaOS, at least up
6839 # to version 4, is to share data among multiple programs linked
6840 # with the same dynamic library. Since this doesn't match the
6841 # behavior of shared libraries on other platforms, we can't use
6847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6848 allow_undefined_flag=unsupported
6849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6850 # support --undefined. This deserves some investigation. FIXME
6851 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6857 cygwin* | mingw* | pw32*)
6858 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6859 # as there is no search path for DLLs.
6860 hardcode_libdir_flag_spec='-L$libdir'
6861 allow_undefined_flag=unsupported
6862 always_export_symbols=no
6863 enable_shared_with_static_runtimes=yes
6864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6866 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6868 # If the export-symbols file already is a .def file (1st line
6869 # is EXPORTS), use it as is; otherwise, prepend...
6870 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6871 cp $export_symbols $output_objdir/$soname.def;
6873 echo EXPORTS > $output_objdir/$soname.def;
6874 cat $export_symbols >> $output_objdir/$soname.def;
6876 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6893 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6898 *** create shared libraries on Solaris systems. Therefore, libtool
6899 *** is disabling shared libraries support. We urge you to upgrade GNU
6900 *** binutils to release 2.9.1 or newer. Another option is to modify
6901 *** your PATH or compiler configuration so that the native linker is
6902 *** used, and then restart.
6905 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6914 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6917 hardcode_shlibpath_var=no
6921 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6922 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6923 archive_cmds="$tmp_archive_cmds"
6924 supports_anon_versioning=no
6925 case `$LD -v 2>/dev/null` in
6926 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6927 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6928 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6929 *\ 2.11.*) ;; # other 2.11 versions
6930 *) supports_anon_versioning=yes ;;
6932 if test $supports_anon_versioning = yes; then
6933 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6935 $echo "local: *; };" >> $output_objdir/$libname.ver~
6936 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6938 archive_expsym_cmds="$tmp_archive_cmds"
6946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6948 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6955 if test "$ld_shlibs" = yes; then
6956 runpath_var=LD_RUN_PATH
6957 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6958 export_dynamic_flag_spec='${wl}--export-dynamic'
6959 # ancient GNU ld didn't support --whole-archive et. al.
6960 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6961 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6963 whole_archive_flag_spec=
6967 # PORTME fill in a description of your system's linker (not GNU ld)
6970 allow_undefined_flag=unsupported
6971 always_export_symbols=yes
6972 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'
6973 # Note: this linker hardcodes the directories in LIBPATH if there
6974 # are no directories specified by -L.
6975 hardcode_minus_L=yes
6976 if test "$GCC" = yes && test -z "$link_static_flag"; then
6977 # Neither direct hardcoding nor static linking is supported with a
6979 hardcode_direct=unsupported
6984 if test "$host_cpu" = ia64; then
6985 # On IA64, the linker does run time linking by default, so we don't
6986 # have to do anything special.
6987 aix_use_runtimelinking=no
6988 exp_sym_flag='-Bexport'
6991 # If we're using GNU nm, then we don't want the "-C" option.
6992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6993 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6994 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'
6996 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'
6998 aix_use_runtimelinking=no
7000 # Test if we are trying to use run time linking or normal
7001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7002 # need to do runtime linking.
7003 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7004 for ld_flag in $LDFLAGS; do
7005 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7006 aix_use_runtimelinking=yes
7012 exp_sym_flag='-bexport'
7013 no_entry_flag='-bnoentry'
7016 # When large executables or shared objects are built, AIX ld can
7017 # have problems creating the table of contents. If linking a library
7018 # or program results in "error TOC overflow" add -mminimal-toc to
7019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7024 hardcode_libdir_separator=':'
7025 link_all_deplibs=yes
7027 if test "$GCC" = yes; then
7028 case $host_os in aix4.012|aix4.012.*)
7029 # We only want to do this on AIX 4.2 and lower, the check
7030 # below for broken collect2 doesn't work under 4.3+
7031 collect2name=`${CC} -print-prog-name=collect2`
7032 if test -f "$collect2name" && \
7033 strings "$collect2name" | grep resolve_lib_name >/dev/null
7035 # We have reworked collect2
7038 # We have old collect2
7039 hardcode_direct=unsupported
7040 # It fails to find uninstalled libraries when the uninstalled
7041 # path is not listed in the libpath. Setting hardcode_minus_L
7042 # to unsupported forces relinking
7043 hardcode_minus_L=yes
7044 hardcode_libdir_flag_spec='-L$libdir'
7045 hardcode_libdir_separator=
7048 shared_flag='-shared'
7051 if test "$host_cpu" = ia64; then
7052 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7053 # chokes on -Wl,-G. The following line is correct:
7056 if test "$aix_use_runtimelinking" = yes; then
7057 shared_flag='${wl}-G'
7059 shared_flag='${wl}-bM:SRE'
7064 # It seems that -bexpall does not export symbols beginning with
7065 # underscore (_), so it is better to generate a list of symbols to export.
7066 always_export_symbols=yes
7067 if test "$aix_use_runtimelinking" = yes; then
7068 # Warning - without using the other runtime loading flags (-brtl),
7069 # -berok will link without error, but may produce a broken library.
7070 allow_undefined_flag='-berok'
7071 # Determine the default libpath from the value encoded in an empty executable.
7072 cat >conftest.$ac_ext <<_ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7087 rm -f conftest.$ac_objext conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095 (eval "$ac_link") 2>conftest.er1
7097 grep -v '^ *+' conftest.er1 >conftest.err
7099 cat conftest.err >&5
7100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } && {
7102 test -z "$ac_c_werror_flag" ||
7103 test ! -s conftest.err
7104 } && test -s conftest$ac_exeext && {
7105 test "$cross_compiling" = yes ||
7106 $as_test_x conftest$ac_exeext
7109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7111 # Check for a 64-bit object if we didn't find anything.
7112 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7115 $as_echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7121 rm -rf conftest.dSYM
7122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7123 conftest$ac_exeext conftest.$ac_ext
7124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7126 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7127 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7129 if test "$host_cpu" = ia64; then
7130 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7131 allow_undefined_flag="-z nodefs"
7132 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7134 # Determine the default libpath from the value encoded in an empty executable.
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7150 rm -f conftest.$ac_objext conftest$ac_exeext
7151 if { (ac_try="$ac_link"
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7157 $as_echo "$ac_try_echo") >&5
7158 (eval "$ac_link") 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_c_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest$ac_exeext && {
7168 test "$cross_compiling" = yes ||
7169 $as_test_x conftest$ac_exeext
7172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7174 # Check for a 64-bit object if we didn't find anything.
7175 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7178 $as_echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7184 rm -rf conftest.dSYM
7185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7186 conftest$ac_exeext conftest.$ac_ext
7187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7190 # Warning - without using the other run time loading flags,
7191 # -berok will link without error, but may produce a broken library.
7192 no_undefined_flag=' ${wl}-bernotok'
7193 allow_undefined_flag=' ${wl}-berok'
7194 # -bexpall does not export symbols beginning with underscore (_)
7195 always_export_symbols=yes
7196 # Exported symbols can be pulled into shared objects from archives
7197 whole_archive_flag_spec=' '
7198 archive_cmds_need_lc=yes
7199 # This is similar to how AIX traditionally builds it's shared libraries.
7200 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7206 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)'
7207 hardcode_libdir_flag_spec='-L$libdir'
7208 hardcode_minus_L=yes
7209 # see comment about different semantics on the GNU ld section
7214 export_dynamic_flag_spec=-rdynamic
7217 cygwin* | mingw* | pw32*)
7218 # When not using gcc, we currently assume that we are using
7219 # Microsoft Visual C++.
7220 # hardcode_libdir_flag_spec is actually meaningless, as there is
7221 # no search path for DLLs.
7222 hardcode_libdir_flag_spec=' '
7223 allow_undefined_flag=unsupported
7224 # Tell ltmain to make .lib files, not .a files.
7226 # Tell ltmain to make .dll files, not .so files.
7228 # FIXME: Setting linknames here is a bad hack.
7229 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7230 # The linker will automatically build a .lib file if we build a DLL.
7231 old_archive_From_new_cmds='true'
7232 # FIXME: Should let the user specify the lib program.
7233 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7234 fix_srcfile_path='`cygpath -w "$srcfile"`'
7235 enable_shared_with_static_runtimes=yes
7238 darwin* | rhapsody*)
7239 if test "$GXX" = yes ; then
7240 archive_cmds_need_lc=no
7242 rhapsody* | darwin1.[012])
7243 allow_undefined_flag='-undefined suppress'
7246 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7247 allow_undefined_flag='-flat_namespace -undefined suppress'
7249 case ${MACOSX_DEPLOYMENT_TARGET} in
7251 allow_undefined_flag='-flat_namespace -undefined suppress'
7254 allow_undefined_flag='-undefined dynamic_lookup'
7260 lt_int_apple_cc_single_mod=no
7261 output_verbose_link_cmd='echo'
7262 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7263 lt_int_apple_cc_single_mod=yes
7265 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7266 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7268 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7270 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7272 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7273 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7275 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7277 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7279 hardcode_automatic=yes
7280 hardcode_shlibpath_var=unsupported
7281 whole_archive_flag_spec='-all_load $convenience'
7282 link_all_deplibs=yes
7289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 hardcode_libdir_flag_spec='-L$libdir'
7291 hardcode_shlibpath_var=no
7298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7299 # support. Future versions do this automatically, but an explicit c++rt0.o
7300 # does not break anything, and helps significantly (at the cost of a little
7303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7304 hardcode_libdir_flag_spec='-R$libdir'
7306 hardcode_shlibpath_var=no
7309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7313 hardcode_minus_L=yes
7314 hardcode_shlibpath_var=no
7317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7318 freebsd* | kfreebsd*-gnu)
7319 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7320 hardcode_libdir_flag_spec='-R$libdir'
7322 hardcode_shlibpath_var=no
7326 if test "$GCC" = yes; then
7327 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'
7329 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'
7331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7332 hardcode_libdir_separator=:
7335 # hardcode_minus_L: Not really in the search PATH,
7336 # but as the default location of the library.
7337 hardcode_minus_L=yes
7338 export_dynamic_flag_spec='${wl}-E'
7342 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7354 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7357 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7361 if test "$with_gnu_ld" = no; then
7364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7365 hardcode_libdir_flag_spec_ld='+b $libdir'
7366 hardcode_libdir_separator=:
7368 hardcode_shlibpath_var=no
7371 hardcode_libdir_flag_spec='-L$libdir'
7373 hardcode_shlibpath_var=no
7375 # hardcode_minus_L: Not really in the search PATH,
7376 # but as the default location of the library.
7377 hardcode_minus_L=yes
7380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7381 hardcode_libdir_separator=:
7383 export_dynamic_flag_spec='${wl}-E'
7385 # hardcode_minus_L: Not really in the search PATH,
7386 # but as the default location of the library.
7387 hardcode_minus_L=yes
7393 irix5* | irix6* | nonstopux*)
7394 if test "$GCC" = yes; then
7395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7397 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7398 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7401 hardcode_libdir_separator=:
7402 link_all_deplibs=yes
7406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7409 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7411 hardcode_libdir_flag_spec='-R$libdir'
7413 hardcode_shlibpath_var=no
7417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7420 hardcode_libdir_separator=:
7421 hardcode_shlibpath_var=no
7426 hardcode_shlibpath_var=no
7427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7428 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7430 export_dynamic_flag_spec='${wl}-E'
7433 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7435 hardcode_libdir_flag_spec='-R$libdir'
7438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7446 hardcode_libdir_flag_spec='-L$libdir'
7447 hardcode_minus_L=yes
7448 allow_undefined_flag=unsupported
7449 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'
7450 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7454 if test "$GCC" = yes; then
7455 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7456 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7458 allow_undefined_flag=' -expect_unresolved \*'
7459 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7462 hardcode_libdir_separator=:
7465 osf4* | osf5*) # as osf3* with the addition of -msym flag
7466 if test "$GCC" = yes; then
7467 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7468 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7471 allow_undefined_flag=' -expect_unresolved \*'
7472 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7473 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7474 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7476 # Both c and cxx compiler support -rpath directly
7477 hardcode_libdir_flag_spec='-rpath $libdir'
7479 hardcode_libdir_separator=:
7483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7484 hardcode_shlibpath_var=no
7485 export_dynamic_flag_spec='${wl}-Bexport'
7486 runpath_var=LD_RUN_PATH
7487 hardcode_runpath_var=yes
7491 no_undefined_flag=' -z text'
7492 if test "$GCC" = yes; then
7493 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7494 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7495 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7497 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7498 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7499 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7501 hardcode_libdir_flag_spec='-R$libdir'
7502 hardcode_shlibpath_var=no
7504 solaris2.[0-5] | solaris2.[0-5].*) ;;
7505 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7506 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7508 link_all_deplibs=yes
7512 if test "x$host_vendor" = xsequent; then
7513 # Use $CC to link under sequent, because it throws in some extra .o
7514 # files that make .init and .fini sections work.
7515 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7517 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7519 hardcode_libdir_flag_spec='-L$libdir'
7521 hardcode_minus_L=yes
7522 hardcode_shlibpath_var=no
7526 case $host_vendor in
7528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7529 hardcode_direct=yes # is this really true???
7532 ## LD is ld it makes a PLAMLIB
7533 ## CC just makes a GrossModule.
7534 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7535 reload_cmds='$CC -r -o $output$reload_objs'
7539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7540 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7543 runpath_var='LD_RUN_PATH'
7544 hardcode_shlibpath_var=no
7548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7549 hardcode_shlibpath_var=no
7550 export_dynamic_flag_spec='-Bexport'
7554 if test -d /usr/nec; then
7555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7556 hardcode_shlibpath_var=no
7557 runpath_var=LD_RUN_PATH
7558 hardcode_runpath_var=yes
7564 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7567 hardcode_shlibpath_var=no
7568 hardcode_runpath_var=yes
7569 runpath_var=LD_RUN_PATH
7572 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7573 no_undefined_flag='${wl}-z ${wl}text'
7574 if test "$GCC" = yes; then
7575 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7577 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7579 runpath_var='LD_RUN_PATH'
7580 hardcode_shlibpath_var=no
7584 no_undefined_flag=' -z text'
7585 # $CC -shared without GNU ld will not create a library from C++
7586 # object files and a static libstdc++, better avoid it by now
7587 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7588 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7590 hardcode_libdir_flag_spec=
7591 hardcode_shlibpath_var=no
7592 runpath_var='LD_RUN_PATH'
7596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7597 hardcode_libdir_flag_spec='-L$libdir'
7598 hardcode_shlibpath_var=no
7607 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7608 $as_echo "$ld_shlibs" >&6; }
7609 test "$ld_shlibs" = no && can_build_shared=no
7611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7612 if test "$GCC" = yes; then
7613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7617 # Do we need to explicitly link libc?
7619 case "x$archive_cmds_need_lc" in
7621 # Assume -lc should be added
7622 archive_cmds_need_lc=yes
7624 if test "$enable_shared" = yes && test "$GCC" = yes; then
7625 case $archive_cmds in
7627 # FIXME: we may have to deal with multi-command sequences.
7630 # Test whether the compiler implicitly links with -lc since on some
7631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7632 # to ld, don't add -lc before -lgcc.
7633 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>&5
7641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } 2>conftest.err; then
7645 libobjs=conftest.$ac_objext
7647 wl=$lt_prog_compiler_wl
7653 lt_save_allow_undefined_flag=$allow_undefined_flag
7654 allow_undefined_flag=
7655 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7656 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }
7661 archive_cmds_need_lc=no
7663 archive_cmds_need_lc=yes
7665 allow_undefined_flag=$lt_save_allow_undefined_flag
7667 cat conftest.err 1>&5
7670 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7671 $as_echo "$archive_cmds_need_lc" >&6; }
7678 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7679 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7681 libname_spec='lib$name'
7689 shlibpath_overrides_runpath=unknown
7691 dynamic_linker="$host_os ld.so"
7692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7693 if test "$GCC" = yes; then
7694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7695 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7696 # if the path contains ";" then we assume it to be the separator
7697 # otherwise default to the standard path separator (i.e. ":") - it is
7698 # assumed that no part of a normal pathname contains ";" but that should
7699 # okay in the real world where ";" in dirpaths is itself problematic.
7700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7707 need_lib_prefix=unknown
7708 hardcode_into_libs=no
7710 # when you set need_version to no, make sure it does not cause -set_version
7711 # flags to be left without arguments
7712 need_version=unknown
7717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7718 shlibpath_var=LIBPATH
7720 # AIX 3 has no versioning support, so we append a major version to the name.
7721 soname_spec='${libname}${release}${shared_ext}$major'
7728 hardcode_into_libs=yes
7729 if test "$host_cpu" = ia64; then
7730 # AIX 5 supports IA64
7731 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7732 shlibpath_var=LD_LIBRARY_PATH
7734 # With GCC up to 2.95.x, collect2 would create an import file
7735 # for dependence libraries. The import file would start with
7736 # the line `#! .'. This would cause the generated library to
7737 # depend on `.', always an invalid library. This was fixed in
7738 # development snapshots of GCC prior to 3.0.
7740 aix4 | aix4.[01] | aix4.[01].*)
7741 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7743 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7750 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7751 # soname into executable. Probably we can add versioning support to
7752 # collect2, so additional links can be useful in future.
7753 if test "$aix_use_runtimelinking" = yes; then
7754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7755 # instead of lib<name>.a to let people know that these are not
7756 # typical AIX shared libraries.
7757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7759 # We preserve .a as extension for shared libraries through AIX4.2
7760 # and later when we are not doing run time linking.
7761 library_names_spec='${libname}${release}.a $libname.a'
7762 soname_spec='${libname}${release}${shared_ext}$major'
7764 shlibpath_var=LIBPATH
7769 library_names_spec='$libname.ixlibrary $libname.a'
7770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7771 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'
7775 library_names_spec='${libname}${shared_ext}'
7776 dynamic_linker="$host_os ld.so"
7777 shlibpath_var=LIBRARY_PATH
7783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7784 soname_spec='${libname}${release}${shared_ext}$major'
7785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7786 shlibpath_var=LD_LIBRARY_PATH
7787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7789 # the default ld.so.conf also contains /usr/contrib/lib and
7790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7791 # libtool to hard-code these into programs
7794 cygwin* | mingw* | pw32*)
7795 version_type=windows
7800 case $GCC,$host_os in
7801 yes,cygwin* | yes,mingw* | yes,pw32*)
7802 library_names_spec='$libname.dll.a'
7803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7804 postinstall_cmds='base_file=`basename \${file}`~
7805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7806 dldir=$destdir/`dirname \$dlpath`~
7807 test -d \$dldir || mkdir -p \$dldir~
7808 $install_prog $dir/$dlname \$dldir/$dlname'
7809 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7810 dlpath=$dir/\$dldll~
7812 shlibpath_overrides_runpath=yes
7816 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7817 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7818 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7821 # MinGW DLLs use traditional 'lib' prefix
7822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7823 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7824 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7825 # It is most probably a Windows format PATH printed by
7826 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7827 # path with ; separators, and with drive letters. We can handle the
7828 # drive letters (cygwin fileutils understands them), so leave them,
7829 # especially as we might pass files found there to a mingw objdump,
7830 # which wouldn't understand a cygwinified path. Ahh.
7831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7837 # pw32 DLLs use 'pw' prefix rather than 'lib'
7838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7844 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7847 dynamic_linker='Win32 ld.exe'
7848 # FIXME: first we should search . and the directory the executable is in
7852 darwin* | rhapsody*)
7853 dynamic_linker="$host_os dyld"
7857 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7858 soname_spec='${libname}${release}${major}$shared_ext'
7859 shlibpath_overrides_runpath=yes
7860 shlibpath_var=DYLD_LIBRARY_PATH
7861 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7862 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7863 if test "$GCC" = yes; then
7864 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7866 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7868 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7876 soname_spec='${libname}${release}${shared_ext}$major'
7877 shlibpath_var=LD_LIBRARY_PATH
7888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7889 soname_spec='${libname}${release}${shared_ext}$major'
7890 shlibpath_var=LD_LIBRARY_PATH
7891 shlibpath_overrides_runpath=no
7892 hardcode_into_libs=yes
7893 dynamic_linker='GNU ld.so'
7897 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7898 version_type=freebsd-$objformat
7899 case $version_type in
7901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7910 shlibpath_var=LD_LIBRARY_PATH
7913 shlibpath_overrides_runpath=yes
7915 freebsd3.01* | freebsdelf3.01*)
7916 shlibpath_overrides_runpath=yes
7917 hardcode_into_libs=yes
7920 shlibpath_overrides_runpath=no
7921 hardcode_into_libs=yes
7930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7931 soname_spec='${libname}${release}${shared_ext}$major'
7932 shlibpath_var=LD_LIBRARY_PATH
7933 hardcode_into_libs=yes
7936 hpux9* | hpux10* | hpux11*)
7937 # Give a soname corresponding to the major version so that dld.sl refuses to
7938 # link against other versions.
7945 hardcode_into_libs=yes
7946 dynamic_linker="$host_os dld.so"
7947 shlibpath_var=LD_LIBRARY_PATH
7948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950 soname_spec='${libname}${release}${shared_ext}$major'
7951 if test "X$HPUX_IA64_MODE" = X32; then
7952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7960 hardcode_into_libs=yes
7961 dynamic_linker="$host_os dld.sl"
7962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965 soname_spec='${libname}${release}${shared_ext}$major'
7966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7971 dynamic_linker="$host_os dld.sl"
7972 shlibpath_var=SHLIB_PATH
7973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975 soname_spec='${libname}${release}${shared_ext}$major'
7978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7979 postinstall_cmds='chmod 555 $lib'
7982 irix5* | irix6* | nonstopux*)
7984 nonstopux*) version_type=nonstopux ;;
7986 if test "$lt_cv_prog_gnu_ld" = yes; then
7994 soname_spec='${libname}${release}${shared_ext}$major'
7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7997 irix5* | nonstopux*)
8001 case $LD in # libtool.m4 will add one of these switches to LD
8002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8003 libsuff= shlibsuff= libmagic=32-bit;;
8004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8005 libsuff=32 shlibsuff=N32 libmagic=N32;;
8006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8008 *) libsuff= shlibsuff= libmagic=never-match;;
8012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8013 shlibpath_overrides_runpath=no
8014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8016 hardcode_into_libs=yes
8019 # No shared lib support for Linux oldld, aout, or coff.
8020 linux*oldld* | linux*aout* | linux*coff*)
8024 # This must be Linux ELF.
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030 soname_spec='${libname}${release}${shared_ext}$major'
8031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8032 shlibpath_var=LD_LIBRARY_PATH
8033 shlibpath_overrides_runpath=no
8034 # This implies no fast_install, which is unacceptable.
8035 # Some rework will be needed to allow for fast_install
8036 # before this can be enabled.
8037 hardcode_into_libs=yes
8039 # We used to test for /lib/ld.so.1 and disable shared libraries on
8040 # powerpc, because MkLinux only supported shared libraries with the
8041 # GNU dynamic linker. Since this was broken with cross compilers,
8042 # most powerpc-linux boxes support dynamic linking these days and
8043 # people can always --disable-shared, the test was removed, and we
8044 # assume the GNU/Linux dynamic linker is in use.
8045 dynamic_linker='GNU/Linux ld.so'
8052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8055 dynamic_linker='NetBSD (a.out) ld.so'
8057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8058 soname_spec='${libname}${release}${shared_ext}$major'
8059 dynamic_linker='NetBSD ld.elf_so'
8061 shlibpath_var=LD_LIBRARY_PATH
8062 shlibpath_overrides_runpath=yes
8063 hardcode_into_libs=yes
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069 shlibpath_var=LD_LIBRARY_PATH
8070 shlibpath_overrides_runpath=yes
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078 soname_spec='${libname}${release}${shared_ext}$major'
8079 shlibpath_var=LD_LIBRARY_PATH
8080 shlibpath_overrides_runpath=yes
8087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8089 shlibpath_var=LD_LIBRARY_PATH
8090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8092 openbsd2.[89] | openbsd2.[89].*)
8093 shlibpath_overrides_runpath=no
8096 shlibpath_overrides_runpath=yes
8100 shlibpath_overrides_runpath=yes
8105 libname_spec='$name'
8108 library_names_spec='$libname${shared_ext} $libname.a'
8109 dynamic_linker='OS/2 ld.exe'
8110 shlibpath_var=LIBPATH
8113 osf3* | osf4* | osf5*)
8117 soname_spec='${libname}${release}${shared_ext}$major'
8118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8119 shlibpath_var=LD_LIBRARY_PATH
8120 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8121 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8126 soname_spec='${libname}${release}${shared_ext}$major'
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8128 shlibpath_var=LD_LIBRARY_PATH
8135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8136 soname_spec='${libname}${release}${shared_ext}$major'
8137 shlibpath_var=LD_LIBRARY_PATH
8138 shlibpath_overrides_runpath=yes
8139 hardcode_into_libs=yes
8140 # ldd complains unless libraries are executable
8141 postinstall_cmds='chmod +x $lib'
8146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8148 shlibpath_var=LD_LIBRARY_PATH
8149 shlibpath_overrides_runpath=yes
8150 if test "$with_gnu_ld" = yes; then
8156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8159 soname_spec='${libname}${release}${shared_ext}$major'
8160 shlibpath_var=LD_LIBRARY_PATH
8161 case $host_vendor in
8163 shlibpath_overrides_runpath=no
8165 export_dynamic_flag_spec='${wl}-Blargedynsym'
8166 runpath_var=LD_RUN_PATH
8174 shlibpath_overrides_runpath=no
8175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8181 if test -d /usr/nec ;then
8183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8184 soname_spec='$libname${shared_ext}.$major'
8185 shlibpath_var=LD_LIBRARY_PATH
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192 soname_spec='${libname}${release}${shared_ext}$major'
8193 shlibpath_var=LD_LIBRARY_PATH
8200 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8201 $as_echo "$dynamic_linker" >&6; }
8202 test "$dynamic_linker" = no && can_build_shared=no
8204 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8205 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8207 if test -n "$hardcode_libdir_flag_spec" || \
8208 test -n "$runpath_var " || \
8209 test "X$hardcode_automatic"="Xyes" ; then
8211 # We can hardcode non-existant directories.
8212 if test "$hardcode_direct" != no &&
8213 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8214 # have to relink, otherwise we might link with an installed library
8215 # when we should be linking with a yet-to-be-installed one
8216 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8217 test "$hardcode_minus_L" != no; then
8218 # Linking always hardcodes the temporary library directory.
8219 hardcode_action=relink
8221 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8222 hardcode_action=immediate
8225 # We cannot hardcode anything, or else we can only hardcode existing
8227 hardcode_action=unsupported
8229 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
8230 $as_echo "$hardcode_action" >&6; }
8232 if test "$hardcode_action" = relink; then
8233 # Fast installation is not supported
8234 enable_fast_install=no
8235 elif test "$shlibpath_overrides_runpath" = yes ||
8236 test "$enable_shared" = no; then
8237 # Fast installation is not necessary
8238 enable_fast_install=needless
8243 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8244 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8245 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8246 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8247 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8248 { $as_echo "$as_me:$LINENO: result: yes" >&5
8249 $as_echo "yes" >&6; }
8251 # FIXME - insert some real tests, host_os isn't really good enough
8254 if test -n "$STRIP" ; then
8255 striplib="$STRIP -x"
8256 { $as_echo "$as_me:$LINENO: result: yes" >&5
8257 $as_echo "yes" >&6; }
8259 { $as_echo "$as_me:$LINENO: result: no" >&5
8260 $as_echo "no" >&6; }
8264 { $as_echo "$as_me:$LINENO: result: no" >&5
8265 $as_echo "no" >&6; }
8270 if test "x$enable_dlopen" != xyes; then
8271 enable_dlopen=unknown
8272 enable_dlopen_self=unknown
8273 enable_dlopen_self_static=unknown
8280 lt_cv_dlopen="load_add_on"
8282 lt_cv_dlopen_self=yes
8286 lt_cv_dlopen="LoadLibrary"
8291 lt_cv_dlopen="dlopen"
8296 # if libdl is installed we need to link against it
8297 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8298 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8299 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8300 $as_echo_n "(cached) " >&6
8302 ac_check_lib_save_LIBS=$LIBS
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8311 /* Override any GCC internal prototype to avoid an error.
8312 Use char because int might match the return type of a GCC
8313 builtin and then its argument prototype would still apply. */
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8333 $as_echo "$ac_try_echo") >&5
8334 (eval "$ac_link") 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest$ac_exeext && {
8344 test "$cross_compiling" = yes ||
8345 $as_test_x conftest$ac_exeext
8347 ac_cv_lib_dl_dlopen=yes
8349 $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 ac_cv_lib_dl_dlopen=no
8355 rm -rf conftest.dSYM
8356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8357 conftest$ac_exeext conftest.$ac_ext
8358 LIBS=$ac_check_lib_save_LIBS
8360 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8361 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8362 if test $ac_cv_lib_dl_dlopen = yes; then
8363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8368 lt_cv_dlopen_self=yes
8375 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
8376 $as_echo_n "checking for shl_load... " >&6; }
8377 if test "${ac_cv_func_shl_load+set}" = set; then
8378 $as_echo_n "(cached) " >&6
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8388 #define shl_load innocuous_shl_load
8390 /* System header to define __stub macros and hopefully few prototypes,
8391 which can conflict with char shl_load (); below.
8392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8393 <limits.h> exists even on freestanding compilers. */
8396 # include <limits.h>
8398 # include <assert.h>
8403 /* Override any GCC internal prototype to avoid an error.
8404 Use char because int might match the return type of a GCC
8405 builtin and then its argument prototype would still apply. */
8410 /* The GNU C library defines this for functions which it implements
8411 to always fail with ENOSYS. Some functions are actually named
8412 something starting with __ and the normal name is an alias. */
8413 #if defined __stub_shl_load || defined __stub___shl_load
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (ac_try="$ac_link"
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8432 $as_echo "$ac_try_echo") >&5
8433 (eval "$ac_link") 2>conftest.er1
8435 grep -v '^ *+' conftest.er1 >conftest.err
8437 cat conftest.err >&5
8438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } && {
8440 test -z "$ac_c_werror_flag" ||
8441 test ! -s conftest.err
8442 } && test -s conftest$ac_exeext && {
8443 test "$cross_compiling" = yes ||
8444 $as_test_x conftest$ac_exeext
8446 ac_cv_func_shl_load=yes
8448 $as_echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 ac_cv_func_shl_load=no
8454 rm -rf conftest.dSYM
8455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8456 conftest$ac_exeext conftest.$ac_ext
8458 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8459 $as_echo "$ac_cv_func_shl_load" >&6; }
8460 if test $ac_cv_func_shl_load = yes; then
8461 lt_cv_dlopen="shl_load"
8463 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8464 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8465 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8466 $as_echo_n "(cached) " >&6
8468 ac_check_lib_save_LIBS=$LIBS
8470 cat >conftest.$ac_ext <<_ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8477 /* Override any GCC internal prototype to avoid an error.
8478 Use char because int might match the return type of a GCC
8479 builtin and then its argument prototype would still apply. */
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499 $as_echo "$ac_try_echo") >&5
8500 (eval "$ac_link") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest$ac_exeext && {
8510 test "$cross_compiling" = yes ||
8511 $as_test_x conftest$ac_exeext
8513 ac_cv_lib_dld_shl_load=yes
8515 $as_echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_cv_lib_dld_shl_load=no
8521 rm -rf conftest.dSYM
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523 conftest$ac_exeext conftest.$ac_ext
8524 LIBS=$ac_check_lib_save_LIBS
8526 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8527 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8528 if test $ac_cv_lib_dld_shl_load = yes; then
8529 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8531 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
8532 $as_echo_n "checking for dlopen... " >&6; }
8533 if test "${ac_cv_func_dlopen+set}" = set; then
8534 $as_echo_n "(cached) " >&6
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8544 #define dlopen innocuous_dlopen
8546 /* System header to define __stub macros and hopefully few prototypes,
8547 which can conflict with char dlopen (); below.
8548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8549 <limits.h> exists even on freestanding compilers. */
8552 # include <limits.h>
8554 # include <assert.h>
8559 /* Override any GCC internal prototype to avoid an error.
8560 Use char because int might match the return type of a GCC
8561 builtin and then its argument prototype would still apply. */
8566 /* The GNU C library defines this for functions which it implements
8567 to always fail with ENOSYS. Some functions are actually named
8568 something starting with __ and the normal name is an alias. */
8569 #if defined __stub_dlopen || defined __stub___dlopen
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (ac_try="$ac_link"
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8588 $as_echo "$ac_try_echo") >&5
8589 (eval "$ac_link") 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest$ac_exeext && {
8599 test "$cross_compiling" = yes ||
8600 $as_test_x conftest$ac_exeext
8602 ac_cv_func_dlopen=yes
8604 $as_echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 ac_cv_func_dlopen=no
8610 rm -rf conftest.dSYM
8611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612 conftest$ac_exeext conftest.$ac_ext
8614 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8615 $as_echo "$ac_cv_func_dlopen" >&6; }
8616 if test $ac_cv_func_dlopen = yes; then
8617 lt_cv_dlopen="dlopen"
8619 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8620 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8622 $as_echo_n "(cached) " >&6
8624 ac_check_lib_save_LIBS=$LIBS
8626 cat >conftest.$ac_ext <<_ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8633 /* Override any GCC internal prototype to avoid an error.
8634 Use char because int might match the return type of a GCC
8635 builtin and then its argument prototype would still apply. */
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (ac_try="$ac_link"
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8655 $as_echo "$ac_try_echo") >&5
8656 (eval "$ac_link") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_c_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest$ac_exeext && {
8666 test "$cross_compiling" = yes ||
8667 $as_test_x conftest$ac_exeext
8669 ac_cv_lib_dl_dlopen=yes
8671 $as_echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_lib_dl_dlopen=no
8677 rm -rf conftest.dSYM
8678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8679 conftest$ac_exeext conftest.$ac_ext
8680 LIBS=$ac_check_lib_save_LIBS
8682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8683 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8684 if test $ac_cv_lib_dl_dlopen = yes; then
8685 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8687 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8688 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8689 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8690 $as_echo_n "(cached) " >&6
8692 ac_check_lib_save_LIBS=$LIBS
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8701 /* Override any GCC internal prototype to avoid an error.
8702 Use char because int might match the return type of a GCC
8703 builtin and then its argument prototype would still apply. */
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (ac_try="$ac_link"
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8723 $as_echo "$ac_try_echo") >&5
8724 (eval "$ac_link") 2>conftest.er1
8726 grep -v '^ *+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest$ac_exeext && {
8734 test "$cross_compiling" = yes ||
8735 $as_test_x conftest$ac_exeext
8737 ac_cv_lib_svld_dlopen=yes
8739 $as_echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 ac_cv_lib_svld_dlopen=no
8745 rm -rf conftest.dSYM
8746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8747 conftest$ac_exeext conftest.$ac_ext
8748 LIBS=$ac_check_lib_save_LIBS
8750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8751 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8752 if test $ac_cv_lib_svld_dlopen = yes; then
8753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8755 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8756 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8757 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8758 $as_echo_n "(cached) " >&6
8760 ac_check_lib_save_LIBS=$LIBS
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8769 /* Override any GCC internal prototype to avoid an error.
8770 Use char because int might match the return type of a GCC
8771 builtin and then its argument prototype would still apply. */
8784 rm -f conftest.$ac_objext conftest$ac_exeext
8785 if { (ac_try="$ac_link"
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8791 $as_echo "$ac_try_echo") >&5
8792 (eval "$ac_link") 2>conftest.er1
8794 grep -v '^ *+' conftest.er1 >conftest.err
8796 cat conftest.err >&5
8797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && {
8799 test -z "$ac_c_werror_flag" ||
8800 test ! -s conftest.err
8801 } && test -s conftest$ac_exeext && {
8802 test "$cross_compiling" = yes ||
8803 $as_test_x conftest$ac_exeext
8805 ac_cv_lib_dld_dld_link=yes
8807 $as_echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 ac_cv_lib_dld_dld_link=no
8813 rm -rf conftest.dSYM
8814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8815 conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8818 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8819 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8820 if test $ac_cv_lib_dld_dld_link = yes; then
8821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8842 if test "x$lt_cv_dlopen" != xno; then
8848 case $lt_cv_dlopen in
8850 save_CPPFLAGS="$CPPFLAGS"
8851 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8853 save_LDFLAGS="$LDFLAGS"
8854 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8857 LIBS="$lt_cv_dlopen_libs $LIBS"
8859 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8860 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8861 if test "${lt_cv_dlopen_self+set}" = set; then
8862 $as_echo_n "(cached) " >&6
8864 if test "$cross_compiling" = yes; then :
8865 lt_cv_dlopen_self=cross
8867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8868 lt_status=$lt_dlunknown
8869 cat > conftest.$ac_ext <<EOF
8870 #line 8870 "configure"
8871 #include "confdefs.h"
8880 # define LT_DLGLOBAL RTLD_GLOBAL
8883 # define LT_DLGLOBAL DL_GLOBAL
8885 # define LT_DLGLOBAL 0
8889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8890 find out it does not work in some platform. */
8891 #ifndef LT_DLLAZY_OR_NOW
8893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8896 # define LT_DLLAZY_OR_NOW DL_LAZY
8899 # define LT_DLLAZY_OR_NOW RTLD_NOW
8902 # define LT_DLLAZY_OR_NOW DL_NOW
8904 # define LT_DLLAZY_OR_NOW 0
8912 extern "C" void exit (int);
8915 void fnord() { int i=42;}
8918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8919 int status = $lt_dlunknown;
8923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8924 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8925 /* dlclose (self); */
8931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932 (eval $ac_link) 2>&5
8934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8936 (./conftest; exit; ) 2>/dev/null
8939 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8940 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8941 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8944 # compilation failed
8945 lt_cv_dlopen_self=no
8952 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8953 $as_echo "$lt_cv_dlopen_self" >&6; }
8955 if test "x$lt_cv_dlopen_self" = xyes; then
8956 LDFLAGS="$LDFLAGS $link_static_flag"
8957 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8958 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8959 if test "${lt_cv_dlopen_self_static+set}" = set; then
8960 $as_echo_n "(cached) " >&6
8962 if test "$cross_compiling" = yes; then :
8963 lt_cv_dlopen_self_static=cross
8965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8966 lt_status=$lt_dlunknown
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8968 "configure"
8969 #include "confdefs.h"
8978 # define LT_DLGLOBAL RTLD_GLOBAL
8981 # define LT_DLGLOBAL DL_GLOBAL
8983 # define LT_DLGLOBAL 0
8987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8988 find out it does not work in some platform. */
8989 #ifndef LT_DLLAZY_OR_NOW
8991 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8994 # define LT_DLLAZY_OR_NOW DL_LAZY
8997 # define LT_DLLAZY_OR_NOW RTLD_NOW
9000 # define LT_DLLAZY_OR_NOW DL_NOW
9002 # define LT_DLLAZY_OR_NOW 0
9010 extern "C" void exit (int);
9013 void fnord() { int i=42;}
9016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9017 int status = $lt_dlunknown;
9021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9023 /* dlclose (self); */
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>&5
9032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9034 (./conftest; exit; ) 2>/dev/null
9037 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9038 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9039 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9042 # compilation failed
9043 lt_cv_dlopen_self_static=no
9050 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9051 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9054 CPPFLAGS="$save_CPPFLAGS"
9055 LDFLAGS="$save_LDFLAGS"
9060 case $lt_cv_dlopen_self in
9061 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9062 *) enable_dlopen_self=unknown ;;
9065 case $lt_cv_dlopen_self_static in
9066 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9067 *) enable_dlopen_self_static=unknown ;;
9072 # Report which librarie types wil actually be built
9073 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9074 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9075 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
9076 $as_echo "$can_build_shared" >&6; }
9078 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9079 $as_echo_n "checking whether to build shared libraries... " >&6; }
9080 test "$can_build_shared" = "no" && enable_shared=no
9082 # On AIX, shared libraries and static libraries use the same namespace, and
9083 # are all built from PIC.
9086 test "$enable_shared" = yes && enable_static=no
9087 if test -n "$RANLIB"; then
9088 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9089 postinstall_cmds='$RANLIB $lib'
9094 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9095 test "$enable_shared" = yes && enable_static=no
9098 darwin* | rhapsody*)
9099 if test "$GCC" = yes; then
9100 archive_cmds_need_lc=no
9102 rhapsody* | darwin1.[012])
9103 allow_undefined_flag='-undefined suppress'
9106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9107 allow_undefined_flag='-flat_namespace -undefined suppress'
9109 case ${MACOSX_DEPLOYMENT_TARGET} in
9111 allow_undefined_flag='-flat_namespace -undefined suppress'
9114 allow_undefined_flag='-undefined dynamic_lookup'
9120 output_verbose_link_cmd='echo'
9121 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9122 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9124 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9125 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9127 hardcode_automatic=yes
9128 hardcode_shlibpath_var=unsupported
9129 whole_archive_flag_spec='-all_load $convenience'
9130 link_all_deplibs=yes
9136 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
9137 $as_echo "$enable_shared" >&6; }
9139 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9140 $as_echo_n "checking whether to build static libraries... " >&6; }
9141 # Make sure either enable_shared or enable_static is yes.
9142 test "$enable_shared" = yes || enable_static=yes
9143 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
9144 $as_echo "$enable_static" >&6; }
9146 # The else clause should only fire when bootstrapping the
9147 # libtool distribution, otherwise you forgot to ship ltmain.sh
9148 # with your package, and you will get complaints that there are
9149 # no rules to generate ltmain.sh.
9150 if test -f "$ltmain"; then
9151 # See if we are running on zsh, and set the options which allow our commands through
9152 # without removal of \ escapes.
9153 if test -n "${ZSH_VERSION+set}" ; then
9154 setopt NO_GLOB_SUBST
9156 # Now quote all the things that may contain metacharacters while being
9157 # careful not to overquote the AC_SUBSTed values. We take copies of the
9158 # variables and quote the copies for generation of the libtool script.
9159 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9161 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9162 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9163 deplibs_check_method reload_flag reload_cmds need_locks \
9164 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9165 lt_cv_sys_global_symbol_to_c_name_address \
9166 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9167 old_postinstall_cmds old_postuninstall_cmds \
9171 lt_prog_compiler_wl \
9172 lt_prog_compiler_pic \
9173 lt_prog_compiler_static \
9174 lt_prog_compiler_no_builtin_flag \
9175 export_dynamic_flag_spec \
9176 thread_safe_flag_spec \
9177 whole_archive_flag_spec \
9178 enable_shared_with_static_runtimes \
9180 old_archive_from_new_cmds \
9185 compiler_lib_search_path \
9187 archive_expsym_cmds \
9189 postuninstall_cmds \
9190 old_archive_from_expsyms_cmds \
9191 allow_undefined_flag \
9193 export_symbols_cmds \
9194 hardcode_libdir_flag_spec \
9195 hardcode_libdir_flag_spec_ld \
9196 hardcode_libdir_separator \
9197 hardcode_automatic \
9199 module_expsym_cmds \
9200 lt_cv_prog_compiler_c_o \
9205 old_archive_cmds | \
9206 old_archive_from_new_cmds | \
9208 archive_expsym_cmds | \
9210 module_expsym_cmds | \
9211 old_archive_from_expsyms_cmds | \
9212 export_symbols_cmds | \
9213 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9214 postinstall_cmds | postuninstall_cmds | \
9215 old_postinstall_cmds | old_postuninstall_cmds | \
9216 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9217 # Double-quote double-evaled strings.
9218 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9227 *'\$0 --fallback-echo"')
9228 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9233 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9235 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
9236 $as_echo "$as_me: creating $ofile" >&6;}
9238 cat <<__EOF__ >> "$cfgfile"
9241 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9242 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9243 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9245 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9246 # Free Software Foundation, Inc.
9248 # This file is part of GNU Libtool:
9249 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9251 # This program is free software; you can redistribute it and/or modify
9252 # it under the terms of the GNU General Public License as published by
9253 # the Free Software Foundation; either version 2 of the License, or
9254 # (at your option) any later version.
9256 # This program is distributed in the hope that it will be useful, but
9257 # WITHOUT ANY WARRANTY; without even the implied warranty of
9258 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9259 # General Public License for more details.
9261 # You should have received a copy of the GNU General Public License
9262 # along with this program; if not, write to the Free Software
9263 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9265 # As a special exception to the GNU General Public License, if you
9266 # distribute this file as part of a program that contains a
9267 # configuration script generated by Autoconf, you may include it under
9268 # the same distribution terms that you use for the rest of that program.
9270 # A sed program that does not truncate output.
9273 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9274 Xsed="$SED -e s/^X//"
9276 # The HP-UX ksh and POSIX shell print the target directory to stdout
9278 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9280 # The names of the tagged configurations supported by this script.
9283 # ### BEGIN LIBTOOL CONFIG
9285 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9287 # Shell to use when invoking shell scripts.
9290 # Whether or not to build shared libraries.
9291 build_libtool_libs=$enable_shared
9293 # Whether or not to build static libraries.
9294 build_old_libs=$enable_static
9296 # Whether or not to add -lc for building shared libraries.
9297 build_libtool_need_lc=$archive_cmds_need_lc
9299 # Whether or not to disallow shared libs when runtime libs are static
9300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9302 # Whether or not to optimize for fast installation.
9303 fast_install=$enable_fast_install
9306 host_alias=$host_alias
9309 # An echo program that does not interpret backslashes.
9314 AR_FLAGS=$lt_AR_FLAGS
9319 # A language-specific compiler.
9322 # Is the compiler the GNU C compiler?
9328 # The linker used to build libraries.
9331 # Whether we need hard or soft links.
9334 # A BSD-compatible nm program.
9337 # A symbol stripping program
9340 # Used to examine libraries when file_magic_cmd begins "file"
9341 MAGIC_CMD=$MAGIC_CMD
9343 # Used on cygwin: DLL creation program.
9346 # Used on cygwin: object dumper.
9349 # Used on cygwin: assembler.
9352 # The name of the directory that contains temporary libtool files.
9355 # How to create reloadable object files.
9356 reload_flag=$lt_reload_flag
9357 reload_cmds=$lt_reload_cmds
9359 # How to pass a linker flag through the compiler.
9360 wl=$lt_lt_prog_compiler_wl
9362 # Object file suffix (normally "o").
9365 # Old archive suffix (normally "a").
9368 # Shared library suffix (normally ".so").
9371 # Executable file suffix (normally "").
9374 # Additional compiler flags for building library objects.
9375 pic_flag=$lt_lt_prog_compiler_pic
9378 # What is the maximum length of a command?
9379 max_cmd_len=$lt_cv_sys_max_cmd_len
9381 # Does compiler simultaneously support -c and -o options?
9382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9384 # Must we lock files when doing compilation ?
9385 need_locks=$lt_need_locks
9387 # Do we need the lib prefix for modules?
9388 need_lib_prefix=$need_lib_prefix
9390 # Do we need a version for libraries?
9391 need_version=$need_version
9393 # Whether dlopen is supported.
9394 dlopen_support=$enable_dlopen
9396 # Whether dlopen of programs is supported.
9397 dlopen_self=$enable_dlopen_self
9399 # Whether dlopen of statically linked programs is supported.
9400 dlopen_self_static=$enable_dlopen_self_static
9402 # Compiler flag to prevent dynamic linking.
9403 link_static_flag=$lt_lt_prog_compiler_static
9405 # Compiler flag to turn off builtin functions.
9406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9408 # Compiler flag to allow reflexive dlopens.
9409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9411 # Compiler flag to generate shared objects directly from archives.
9412 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9414 # Compiler flag to generate thread-safe objects.
9415 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9417 # Library versioning type.
9418 version_type=$version_type
9420 # Format of library name prefix.
9421 libname_spec=$lt_libname_spec
9423 # List of archive names. First name is the real one, the rest are links.
9424 # The last name is the one that the linker finds with -lNAME.
9425 library_names_spec=$lt_library_names_spec
9427 # The coded name of the library, if different from the real name.
9428 soname_spec=$lt_soname_spec
9430 # Commands used to build and install an old-style archive.
9432 old_archive_cmds=$lt_old_archive_cmds
9433 old_postinstall_cmds=$lt_old_postinstall_cmds
9434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9436 # Create an old-style archive from a shared archive.
9437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9439 # Create a temporary old-style archive to link instead of a shared archive.
9440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9442 # Commands used to build and install a shared archive.
9443 archive_cmds=$lt_archive_cmds
9444 archive_expsym_cmds=$lt_archive_expsym_cmds
9445 postinstall_cmds=$lt_postinstall_cmds
9446 postuninstall_cmds=$lt_postuninstall_cmds
9448 # Commands used to build a loadable module (assumed same as above if empty)
9449 module_cmds=$lt_module_cmds
9450 module_expsym_cmds=$lt_module_expsym_cmds
9452 # Commands to strip libraries.
9453 old_striplib=$lt_old_striplib
9454 striplib=$lt_striplib
9456 # Dependencies to place before the objects being linked to create a
9458 predep_objects=$lt_predep_objects
9460 # Dependencies to place after the objects being linked to create a
9462 postdep_objects=$lt_postdep_objects
9464 # Dependencies to place before the objects being linked to create a
9468 # Dependencies to place after the objects being linked to create a
9470 postdeps=$lt_postdeps
9472 # The library search path used internally by the compiler when linking
9474 compiler_lib_search_path=$lt_compiler_lib_search_path
9476 # Method to check whether dependent libraries are shared objects.
9477 deplibs_check_method=$lt_deplibs_check_method
9479 # Command to use when deplibs_check_method == file_magic.
9480 file_magic_cmd=$lt_file_magic_cmd
9482 # Flag that allows shared libraries with undefined symbols to be built.
9483 allow_undefined_flag=$lt_allow_undefined_flag
9485 # Flag that forces no undefined symbols.
9486 no_undefined_flag=$lt_no_undefined_flag
9488 # Commands used to finish a libtool library installation in a directory.
9489 finish_cmds=$lt_finish_cmds
9491 # Same as above, but a single script fragment to be evaled but not shown.
9492 finish_eval=$lt_finish_eval
9494 # Take the output of nm and produce a listing of raw symbols and C names.
9495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9497 # Transform the output of nm in a proper C declaration
9498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9500 # Transform the output of nm in a C name address pair
9501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9503 # This is the shared library runtime path variable.
9504 runpath_var=$runpath_var
9506 # This is the shared library path variable.
9507 shlibpath_var=$shlibpath_var
9509 # Is shlibpath searched before the hard-coded library search path?
9510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9512 # How to hardcode a shared library path into an executable.
9513 hardcode_action=$hardcode_action
9515 # Whether we should hardcode library paths into libraries.
9516 hardcode_into_libs=$hardcode_into_libs
9518 # Flag to hardcode \$libdir into a binary during linking.
9519 # This must work even if \$libdir does not exist.
9520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9522 # If ld is used when linking, flag to hardcode \$libdir into
9523 # a binary during linking. This must work even if \$libdir does
9525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9527 # Whether we need a single -rpath flag with a separated argument.
9528 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9532 hardcode_direct=$hardcode_direct
9534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9536 hardcode_minus_L=$hardcode_minus_L
9538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9539 # the resulting binary.
9540 hardcode_shlibpath_var=$hardcode_shlibpath_var
9542 # Set to yes if building a shared library automatically hardcodes DIR into the library
9543 # and all subsequent libraries and executables linked against it.
9544 hardcode_automatic=$hardcode_automatic
9546 # Variables whose values should be saved in libtool wrapper scripts and
9547 # restored at relink time.
9548 variables_saved_for_relink="$variables_saved_for_relink"
9550 # Whether libtool must link a program against all its dependency libraries.
9551 link_all_deplibs=$link_all_deplibs
9553 # Compile-time system search path for libraries
9554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9556 # Run-time system search path for libraries
9557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9559 # Fix the shell variable \$srcfile for the compiler.
9560 fix_srcfile_path="$fix_srcfile_path"
9562 # Set to yes if exported symbols are required.
9563 always_export_symbols=$always_export_symbols
9565 # The commands to list exported symbols.
9566 export_symbols_cmds=$lt_export_symbols_cmds
9568 # The commands to extract the exported symbol list from a shared archive.
9569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9571 # Symbols that should not be listed in the preloaded symbols.
9572 exclude_expsyms=$lt_exclude_expsyms
9574 # Symbols that must always be exported.
9575 include_expsyms=$lt_include_expsyms
9577 # ### END LIBTOOL CONFIG
9584 cat <<\EOF >> "$cfgfile"
9586 # AIX sometimes has problems with the GCC collect2 program. For some
9587 # reason, if we set the COLLECT_NAMES environment variable, the problems
9588 # vanish in a puff of smoke.
9589 if test "X${COLLECT_NAMES+set}" != Xset; then
9591 export COLLECT_NAMES
9597 # We use sed instead of cat because bash on DJGPP gets confused if
9598 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9599 # text mode, it properly converts lines to CR/LF. This bash problem
9600 # is reportedly fixed, but why not run on old versions too?
9601 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9603 mv -f "$cfgfile" "$ofile" || \
9604 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9608 # If there is no Makefile yet, we rely on a make rule to execute
9609 # `config.status --recheck' to rerun these tests and create the
9610 # libtool script then.
9611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9612 if test -f "$ltmain_in"; then
9613 test -f Makefile && make "$ltmain"
9619 ac_cpp='$CPP $CPPFLAGS'
9620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9627 # Check whether --with-tags was given.
9628 if test "${with_tags+set}" = set; then
9629 withval=$with_tags; tagnames="$withval"
9633 if test -f "$ltmain" && test -n "$tagnames"; then
9634 if test ! -f "${ofile}"; then
9635 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9636 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9639 if test -z "$LTCC"; then
9640 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9641 if test -z "$LTCC"; then
9642 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9643 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9645 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9646 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9650 # Extract list of available tagged configurations in $ofile.
9651 # Note that this assumes the entire list is on one line.
9652 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9655 for tagname in $tagnames; do
9657 # Check whether tagname contains only valid characters
9658 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9660 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9661 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
9662 { (exit 1); exit 1; }; }
9666 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9668 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9669 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9670 { (exit 1); exit 1; }; }
9673 # Update the list of available tags.
9674 if test -n "$tagname"; then
9675 echo appending configuration tag \"$tagname\" to $ofile
9679 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9681 ac_cpp='$CXXCPP $CPPFLAGS'
9682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9689 archive_cmds_need_lc_CXX=no
9690 allow_undefined_flag_CXX=
9691 always_export_symbols_CXX=no
9692 archive_expsym_cmds_CXX=
9693 export_dynamic_flag_spec_CXX=
9694 hardcode_direct_CXX=no
9695 hardcode_libdir_flag_spec_CXX=
9696 hardcode_libdir_flag_spec_ld_CXX=
9697 hardcode_libdir_separator_CXX=
9698 hardcode_minus_L_CXX=no
9699 hardcode_automatic_CXX=no
9701 module_expsym_cmds_CXX=
9702 link_all_deplibs_CXX=unknown
9703 old_archive_cmds_CXX=$old_archive_cmds
9704 no_undefined_flag_CXX=
9705 whole_archive_flag_spec_CXX=
9706 enable_shared_with_static_runtimes_CXX=no
9708 # Dependencies to place before and after the object being linked:
9710 postdep_objects_CXX=
9713 compiler_lib_search_path_CXX=
9715 # Source file extension for C++ test sources.
9718 # Object file extension for compiled C++ test sources.
9722 # Code to be used in simple compile tests
9723 lt_simple_compile_test_code="int some_variable = 0;\n"
9725 # Code to be used in simple link tests
9726 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9730 # If no C compiler was specified, use CC.
9733 # Allow CC to be a program name with arguments.
9737 # Allow CC to be a program name with arguments.
9742 lt_save_with_gnu_ld=$with_gnu_ld
9743 lt_save_path_LD=$lt_cv_path_LD
9744 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9745 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9747 unset lt_cv_prog_gnu_ld
9749 if test -n "${lt_cv_path_LDCXX+set}"; then
9750 lt_cv_path_LD=$lt_cv_path_LDCXX
9754 test -z "${LDCXX+set}" || LD=$LDCXX
9758 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9760 # We don't want -fno-exception wen compiling C++ code, so set the
9761 # no_builtin_flag separately
9762 if test "$GXX" = yes; then
9763 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9765 lt_prog_compiler_no_builtin_flag_CXX=
9768 if test "$GXX" = yes; then
9769 # Set up default GNU C++ configuration
9772 # Check whether --with-gnu-ld was given.
9773 if test "${with_gnu_ld+set}" = set; then
9774 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9780 if test "$GCC" = yes; then
9781 # Check if gcc -print-prog-name=ld gives a path.
9782 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9783 $as_echo_n "checking for ld used by $CC... " >&6; }
9786 # gcc leaves a trailing carriage return which upsets mingw
9787 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9789 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9792 # Accept absolute paths.
9794 re_direlt='/[^/][^/]*/\.\./'
9795 # Canonicalize the pathname of ld
9796 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9797 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9798 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9800 test -z "$LD" && LD="$ac_prog"
9803 # If it fails, then pretend we aren't using GCC.
9807 # If it is relative, then search for the first ld in PATH.
9811 elif test "$with_gnu_ld" = yes; then
9812 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9813 $as_echo_n "checking for GNU ld... " >&6; }
9815 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9816 $as_echo_n "checking for non-GNU ld... " >&6; }
9818 if test "${lt_cv_path_LD+set}" = set; then
9819 $as_echo_n "(cached) " >&6
9821 if test -z "$LD"; then
9822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9823 for ac_dir in $PATH; do
9825 test -z "$ac_dir" && ac_dir=.
9826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9827 lt_cv_path_LD="$ac_dir/$ac_prog"
9828 # Check to see if the program is GNU ld. I'd rather use --version,
9829 # but apparently some GNU ld's only accept -v.
9830 # Break only if it was the GNU/non-GNU ld that we prefer.
9831 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9832 *GNU* | *'with BFD'*)
9833 test "$with_gnu_ld" != no && break
9836 test "$with_gnu_ld" != yes && break
9843 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9848 if test -n "$LD"; then
9849 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9850 $as_echo "$LD" >&6; }
9852 { $as_echo "$as_me:$LINENO: result: no" >&5
9853 $as_echo "no" >&6; }
9855 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9856 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9857 { (exit 1); exit 1; }; }
9858 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9859 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9860 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9861 $as_echo_n "(cached) " >&6
9863 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9864 case `$LD -v 2>&1 </dev/null` in
9865 *GNU* | *'with BFD'*)
9866 lt_cv_prog_gnu_ld=yes
9869 lt_cv_prog_gnu_ld=no
9873 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9874 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9875 with_gnu_ld=$lt_cv_prog_gnu_ld
9879 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9880 # archiving commands below assume that GNU ld is being used.
9881 if test "$with_gnu_ld" = yes; then
9882 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9885 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9888 # If archive_cmds runs LD, not CC, wlarc should be empty
9889 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9890 # investigate it a little bit more. (MM)
9893 # ancient GNU ld didn't support --whole-archive et. al.
9894 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9895 grep 'no-whole-archive' > /dev/null; then
9896 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9898 whole_archive_flag_spec_CXX=
9904 # A generic and very simple default shared library creation
9905 # command for GNU C++ for the case where it uses the native
9906 # linker, instead of GNU ld. If possible, this setting should
9907 # overridden to take advantage of the native linker features on
9908 # the platform it is being used on.
9909 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9912 # Commands to make compiler produce verbose output that lists
9913 # what "hidden" libraries, object files and flags are used when
9914 # linking a shared library.
9915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9923 # PORTME: fill in a description of your system's C++ link characteristics
9924 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9929 # FIXME: insert proper C++ library support
9933 if test "$host_cpu" = ia64; then
9934 # On IA64, the linker does run time linking by default, so we don't
9935 # have to do anything special.
9936 aix_use_runtimelinking=no
9937 exp_sym_flag='-Bexport'
9940 aix_use_runtimelinking=no
9942 # Test if we are trying to use run time linking or normal
9943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9944 # need to do runtime linking.
9945 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9946 for ld_flag in $LDFLAGS; do
9949 aix_use_runtimelinking=yes
9956 exp_sym_flag='-bexport'
9957 no_entry_flag='-bnoentry'
9960 # When large executables or shared objects are built, AIX ld can
9961 # have problems creating the table of contents. If linking a library
9962 # or program results in "error TOC overflow" add -mminimal-toc to
9963 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9964 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9967 hardcode_direct_CXX=yes
9968 hardcode_libdir_separator_CXX=':'
9969 link_all_deplibs_CXX=yes
9971 if test "$GXX" = yes; then
9972 case $host_os in aix4.012|aix4.012.*)
9973 # We only want to do this on AIX 4.2 and lower, the check
9974 # below for broken collect2 doesn't work under 4.3+
9975 collect2name=`${CC} -print-prog-name=collect2`
9976 if test -f "$collect2name" && \
9977 strings "$collect2name" | grep resolve_lib_name >/dev/null
9979 # We have reworked collect2
9980 hardcode_direct_CXX=yes
9982 # We have old collect2
9983 hardcode_direct_CXX=unsupported
9984 # It fails to find uninstalled libraries when the uninstalled
9985 # path is not listed in the libpath. Setting hardcode_minus_L
9986 # to unsupported forces relinking
9987 hardcode_minus_L_CXX=yes
9988 hardcode_libdir_flag_spec_CXX='-L$libdir'
9989 hardcode_libdir_separator_CXX=
9992 shared_flag='-shared'
9995 if test "$host_cpu" = ia64; then
9996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9997 # chokes on -Wl,-G. The following line is correct:
10000 if test "$aix_use_runtimelinking" = yes; then
10001 shared_flag='${wl}-G'
10003 shared_flag='${wl}-bM:SRE'
10008 # It seems that -bexpall does not export symbols beginning with
10009 # underscore (_), so it is better to generate a list of symbols to export.
10010 always_export_symbols_CXX=yes
10011 if test "$aix_use_runtimelinking" = yes; then
10012 # Warning - without using the other runtime loading flags (-brtl),
10013 # -berok will link without error, but may produce a broken library.
10014 allow_undefined_flag_CXX='-berok'
10015 # Determine the default libpath from the value encoded in an empty executable.
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10038 $as_echo "$ac_try_echo") >&5
10039 (eval "$ac_link") 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && {
10046 test -z "$ac_cxx_werror_flag" ||
10047 test ! -s conftest.err
10048 } && test -s conftest$ac_exeext && {
10049 test "$cross_compiling" = yes ||
10050 $as_test_x conftest$ac_exeext
10053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10055 # Check for a 64-bit object if we didn't find anything.
10056 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10059 $as_echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10065 rm -rf conftest.dSYM
10066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10067 conftest$ac_exeext conftest.$ac_ext
10068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10070 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10072 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10074 if test "$host_cpu" = ia64; then
10075 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10076 allow_undefined_flag_CXX="-z nodefs"
10077 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10079 # Determine the default libpath from the value encoded in an empty executable.
10080 cat >conftest.$ac_ext <<_ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10102 $as_echo "$ac_try_echo") >&5
10103 (eval "$ac_link") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1 >conftest.err
10107 cat conftest.err >&5
10108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_cxx_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext && {
10113 test "$cross_compiling" = yes ||
10114 $as_test_x conftest$ac_exeext
10117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10119 # Check for a 64-bit object if we didn't find anything.
10120 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10123 $as_echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10129 rm -rf conftest.dSYM
10130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10131 conftest$ac_exeext conftest.$ac_ext
10132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10134 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10135 # Warning - without using the other run time loading flags,
10136 # -berok will link without error, but may produce a broken library.
10137 no_undefined_flag_CXX=' ${wl}-bernotok'
10138 allow_undefined_flag_CXX=' ${wl}-berok'
10139 # -bexpall does not export symbols beginning with underscore (_)
10140 always_export_symbols_CXX=yes
10141 # Exported symbols can be pulled into shared objects from archives
10142 whole_archive_flag_spec_CXX=' '
10143 archive_cmds_need_lc_CXX=yes
10144 # This is similar to how AIX traditionally builds it's shared libraries.
10145 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10150 case $cc_basename in
10152 # FIXME: insert proper C++ library support
10158 cygwin* | mingw* | pw32*)
10159 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10160 # as there is no search path for DLLs.
10161 hardcode_libdir_flag_spec_CXX='-L$libdir'
10162 allow_undefined_flag_CXX=unsupported
10163 always_export_symbols_CXX=no
10164 enable_shared_with_static_runtimes_CXX=yes
10166 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10167 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10168 # If the export-symbols file already is a .def file (1st line
10169 # is EXPORTS), use it as is; otherwise, prepend...
10170 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10171 cp $export_symbols $output_objdir/$soname.def;
10173 echo EXPORTS > $output_objdir/$soname.def;
10174 cat $export_symbols >> $output_objdir/$soname.def;
10176 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10182 darwin* | rhapsody*)
10183 if test "$GXX" = yes; then
10184 archive_cmds_need_lc_CXX=no
10186 rhapsody* | darwin1.[012])
10187 allow_undefined_flag_CXX='-undefined suppress'
10190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10191 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10193 case ${MACOSX_DEPLOYMENT_TARGET} in
10195 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10198 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10204 lt_int_apple_cc_single_mod=no
10205 output_verbose_link_cmd='echo'
10206 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10207 lt_int_apple_cc_single_mod=yes
10209 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10210 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10212 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10214 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10217 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10218 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10220 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10222 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10223 hardcode_direct_CXX=no
10224 hardcode_automatic_CXX=yes
10225 hardcode_shlibpath_var_CXX=unsupported
10226 whole_archive_flag_spec_CXX='-all_load $convenience'
10227 link_all_deplibs_CXX=yes
10234 case $cc_basename in
10236 # FIXME: insert proper C++ library support
10240 # Green Hills C++ Compiler
10241 # FIXME: insert proper C++ library support
10245 # FIXME: insert proper C++ library support
10251 # C++ shared libraries reported to be fairly broken before switch to ELF
10255 archive_cmds_need_lc_CXX=no
10257 freebsd* | kfreebsd*-gnu)
10258 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10265 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10266 hardcode_libdir_separator_CXX=:
10267 export_dynamic_flag_spec_CXX='${wl}-E'
10268 hardcode_direct_CXX=yes
10269 hardcode_minus_L_CXX=yes # Not in the search PATH,
10270 # but as the default
10271 # location of the library.
10273 case $cc_basename in
10275 # FIXME: insert proper C++ library support
10279 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10280 # Commands to make compiler produce verbose output that lists
10281 # what "hidden" libraries, object files and flags are used when
10282 # linking a shared library.
10284 # There doesn't appear to be a way to prevent this compiler from
10285 # explicitly linking system object files so we need to strip them
10286 # from the output so that they don't get included in the library
10288 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10291 if test "$GXX" = yes; then
10292 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10294 # FIXME: insert proper C++ library support
10301 if test $with_gnu_ld = no; then
10302 case "$host_cpu" in
10304 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10305 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10306 hardcode_libdir_separator_CXX=:
10309 hardcode_libdir_flag_spec_CXX='-L$libdir'
10312 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10313 hardcode_libdir_separator_CXX=:
10314 export_dynamic_flag_spec_CXX='${wl}-E'
10318 case "$host_cpu" in
10320 hardcode_direct_CXX=no
10321 hardcode_shlibpath_var_CXX=no
10324 hardcode_direct_CXX=no
10325 hardcode_shlibpath_var_CXX=no
10326 hardcode_minus_L_CXX=yes # Not in the search PATH,
10327 # but as the default
10328 # location of the library.
10331 hardcode_direct_CXX=yes
10332 hardcode_minus_L_CXX=yes # Not in the search PATH,
10333 # but as the default
10334 # location of the library.
10338 case $cc_basename in
10340 # FIXME: insert proper C++ library support
10344 case "$host_cpu" in
10346 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10349 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10352 # Commands to make compiler produce verbose output that lists
10353 # what "hidden" libraries, object files and flags are used when
10354 # linking a shared library.
10356 # There doesn't appear to be a way to prevent this compiler from
10357 # explicitly linking system object files so we need to strip them
10358 # from the output so that they don't get included in the library
10360 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10363 if test "$GXX" = yes; then
10364 if test $with_gnu_ld = no; then
10365 case "$host_cpu" in
10367 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10370 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10375 # FIXME: insert proper C++ library support
10382 case $cc_basename in
10385 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10387 # Archives containing C++ object files must be created using
10388 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10389 # necessary to make sure instantiated templates are included
10391 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10394 if test "$GXX" = yes; then
10395 if test "$with_gnu_ld" = no; then
10396 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10398 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10401 link_all_deplibs_CXX=yes
10404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10405 hardcode_libdir_separator_CXX=:
10408 case $cc_basename in
10410 # Kuck and Associates, Inc. (KAI) C++ Compiler
10412 # KCC will only create a shared library if the output file
10413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10414 # to its proper name (with version) after linking.
10415 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10416 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10417 # Commands to make compiler produce verbose output that lists
10418 # what "hidden" libraries, object files and flags are used when
10419 # linking a shared library.
10421 # There doesn't appear to be a way to prevent this compiler from
10422 # explicitly linking system object files so we need to strip them
10423 # from the output so that they don't get included in the library
10425 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10427 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10430 # Archives containing C++ object files must be created using
10431 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10432 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10437 archive_cmds_need_lc_CXX=no
10438 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10439 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10441 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10442 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10446 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10447 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10449 runpath_var=LD_RUN_PATH
10450 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10451 hardcode_libdir_separator_CXX=:
10453 # Commands to make compiler produce verbose output that lists
10454 # what "hidden" libraries, object files and flags are used when
10455 # linking a shared library.
10457 # There doesn't appear to be a way to prevent this compiler from
10458 # explicitly linking system object files so we need to strip them
10459 # from the output so that they don't get included in the library
10461 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10466 # FIXME: insert proper C++ library support
10470 # FIXME: insert proper C++ library support
10474 case $cc_basename in
10476 # FIXME: insert proper C++ library support
10480 # FIXME: insert proper C++ library support
10486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10487 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10489 hardcode_libdir_flag_spec_CXX='-R$libdir'
10490 hardcode_direct_CXX=yes
10491 hardcode_shlibpath_var_CXX=no
10493 # Workaround some broken pre-1.5 toolchains
10494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10497 case $cc_basename in
10499 # Kuck and Associates, Inc. (KAI) C++ Compiler
10501 # KCC will only create a shared library if the output file
10502 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10503 # to its proper name (with version) after linking.
10504 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10506 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10507 hardcode_libdir_separator_CXX=:
10509 # Archives containing C++ object files must be created using
10510 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10511 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10515 # Rational C++ 2.4.1
10516 # FIXME: insert proper C++ library support
10520 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10521 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10523 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10524 hardcode_libdir_separator_CXX=:
10526 # Commands to make compiler produce verbose output that lists
10527 # what "hidden" libraries, object files and flags are used when
10528 # linking a shared library.
10530 # There doesn't appear to be a way to prevent this compiler from
10531 # explicitly linking system object files so we need to strip them
10532 # from the output so that they don't get included in the library
10534 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10537 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10538 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10539 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10542 hardcode_libdir_separator_CXX=:
10544 # Commands to make compiler produce verbose output that lists
10545 # what "hidden" libraries, object files and flags are used when
10546 # linking a shared library.
10547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10550 # FIXME: insert proper C++ library support
10557 case $cc_basename in
10559 # Kuck and Associates, Inc. (KAI) C++ Compiler
10561 # KCC will only create a shared library if the output file
10562 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10563 # to its proper name (with version) after linking.
10564 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10567 hardcode_libdir_separator_CXX=:
10569 # Archives containing C++ object files must be created using
10570 # the KAI C++ compiler.
10571 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10574 # Rational C++ 2.4.1
10575 # FIXME: insert proper C++ library support
10579 allow_undefined_flag_CXX=' -expect_unresolved \*'
10580 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10581 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10582 echo "-hidden">> $lib.exp~
10583 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10586 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10587 hardcode_libdir_separator_CXX=:
10589 # Commands to make compiler produce verbose output that lists
10590 # what "hidden" libraries, object files and flags are used when
10591 # linking a shared library.
10593 # There doesn't appear to be a way to prevent this compiler from
10594 # explicitly linking system object files so we need to strip them
10595 # from the output so that they don't get included in the library
10597 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10600 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10601 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10602 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10605 hardcode_libdir_separator_CXX=:
10607 # Commands to make compiler produce verbose output that lists
10608 # what "hidden" libraries, object files and flags are used when
10609 # linking a shared library.
10610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10613 # FIXME: insert proper C++ library support
10620 # FIXME: insert proper C++ library support
10624 archive_cmds_need_lc_CXX=no
10625 case $cc_basename in
10627 # FIXME: insert proper C++ library support
10631 # FIXME: insert proper C++ library support
10637 case $cc_basename in
10640 # FIXME: insert proper C++ library support
10645 # FIXME: insert proper C++ library support
10649 # FIXME: insert proper C++ library support
10655 case $cc_basename in
10657 # Sun C++ 4.2, 5.x and Centerline C++
10658 no_undefined_flag_CXX=' -zdefs'
10659 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10660 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10661 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10663 hardcode_libdir_flag_spec_CXX='-R$libdir'
10664 hardcode_shlibpath_var_CXX=no
10666 solaris2.0-5 | solaris2.0-5.*) ;;
10668 # The C++ compiler is used as linker so we must use $wl
10669 # flag to pass the commands to the underlying system
10671 # Supported since Solaris 2.6 (maybe 2.5.1?)
10672 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10675 link_all_deplibs_CXX=yes
10677 # Commands to make compiler produce verbose output that lists
10678 # what "hidden" libraries, object files and flags are used when
10679 # linking a shared library.
10681 # There doesn't appear to be a way to prevent this compiler from
10682 # explicitly linking system object files so we need to strip them
10683 # from the output so that they don't get included in the library
10685 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10687 # Archives containing C++ object files must be created using
10688 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10689 # necessary to make sure instantiated templates are included
10691 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10694 # Green Hills C++ Compiler
10695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10697 # The C++ compiler must be used to create the archive.
10698 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10701 # GNU C++ compiler with Solaris linker
10702 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10703 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10704 if $CC --version | grep -v '^2\.7' > /dev/null; then
10705 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10706 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10707 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10709 # Commands to make compiler produce verbose output that lists
10710 # what "hidden" libraries, object files and flags are used when
10711 # linking a shared library.
10712 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10714 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10716 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10717 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10718 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10720 # Commands to make compiler produce verbose output that lists
10721 # what "hidden" libraries, object files and flags are used when
10722 # linking a shared library.
10723 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10726 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10731 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10732 archive_cmds_need_lc_CXX=no
10735 case $cc_basename in
10737 # NonStop-UX NCC 3.20
10738 # FIXME: insert proper C++ library support
10742 # FIXME: insert proper C++ library support
10748 # FIXME: insert proper C++ library support
10752 # FIXME: insert proper C++ library support
10756 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10757 $as_echo "$ld_shlibs_CXX" >&6; }
10758 test "$ld_shlibs_CXX" = no && can_build_shared=no
10764 ## There is no encapsulation within the following macros, do not change
10765 ## the running order or otherwise move them around unless you know exactly
10766 ## what you are doing...
10768 cat > conftest.$ac_ext <<EOF
10772 Foo (void) { a = 0; }
10778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10779 (eval $ac_compile) 2>&5
10781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; then
10783 # Parse the compiler output and extract the necessary
10784 # objects, libraries and library flags.
10786 # Sentinel used to keep track of whether or not we are before
10787 # the conftest object file.
10788 pre_test_object_deps_done=no
10790 # The `*' in the case matches for architectures that use `case' in
10791 # $output_verbose_cmd can trigger glob expansion during the loop
10792 # eval without this substitution.
10793 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10795 for p in `eval $output_verbose_link_cmd`; do
10799 # Some compilers place space between "-{L,R}" and the path.
10800 # Remove the space.
10801 if test $p = "-L" \
10802 || test $p = "-R"; then
10809 if test "$pre_test_object_deps_done" = no; then
10812 # Internal compiler library paths should come after those
10813 # provided the user. The postdeps already come after the
10814 # user supplied libs so there is no need to process them.
10815 if test -z "$compiler_lib_search_path_CXX"; then
10816 compiler_lib_search_path_CXX="${prev}${p}"
10818 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10821 # The "-l" case would never come before the object being
10822 # linked, so don't bother handling this case.
10825 if test -z "$postdeps_CXX"; then
10826 postdeps_CXX="${prev}${p}"
10828 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10834 # This assumes that the test object file only shows up
10835 # once in the compiler output.
10836 if test "$p" = "conftest.$objext"; then
10837 pre_test_object_deps_done=yes
10841 if test "$pre_test_object_deps_done" = no; then
10842 if test -z "$predep_objects_CXX"; then
10843 predep_objects_CXX="$p"
10845 predep_objects_CXX="$predep_objects_CXX $p"
10848 if test -z "$postdep_objects_CXX"; then
10849 postdep_objects_CXX="$p"
10851 postdep_objects_CXX="$postdep_objects_CXX $p"
10856 *) ;; # Ignore the rest.
10864 echo "libtool.m4: error: problem compiling CXX test program"
10867 $rm -f confest.$objext
10869 case " $postdeps_CXX " in
10870 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10873 lt_prog_compiler_wl_CXX=
10874 lt_prog_compiler_pic_CXX=
10875 lt_prog_compiler_static_CXX=
10877 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10878 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10880 # C++ specific cases for pic, static, wl, etc.
10881 if test "$GXX" = yes; then
10882 lt_prog_compiler_wl_CXX='-Wl,'
10883 lt_prog_compiler_static_CXX='-static'
10887 # All AIX code is PIC.
10888 if test "$host_cpu" = ia64; then
10889 # AIX 5 now supports IA64 processor
10890 lt_prog_compiler_static_CXX='-Bstatic'
10894 # FIXME: we need at least 68020 code to build shared libraries, but
10895 # adding the `-m68020' flag to GCC prevents building anything better,
10897 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10899 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10900 # PIC is the default for these OSes.
10902 mingw* | os2* | pw32*)
10903 # This hack is so that the source file can tell whether it is being
10904 # built for inclusion in a dll (and should export symbols for example).
10905 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10907 darwin* | rhapsody*)
10908 # PIC is the default on this platform
10909 # Common symbols not allowed in MH_DYLIB files
10910 lt_prog_compiler_pic_CXX='-fno-common'
10913 # DJGPP does not support shared libraries at all
10914 lt_prog_compiler_pic_CXX=
10917 if test -d /usr/nec; then
10918 lt_prog_compiler_pic_CXX=-Kconform_pic
10922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10923 # not for PA HP-UX.
10924 case "$host_cpu" in
10928 lt_prog_compiler_pic_CXX='-fPIC'
10933 lt_prog_compiler_pic_CXX='-fPIC'
10939 # All AIX code is PIC.
10940 if test "$host_cpu" = ia64; then
10941 # AIX 5 now supports IA64 processor
10942 lt_prog_compiler_static_CXX='-Bstatic'
10944 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10948 case $cc_basename in
10950 # Green Hills C++ Compiler
10951 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10956 case $cc_basename in
10958 lt_prog_compiler_pic_CXX='-KPIC'
10961 # Green Hills C++ Compiler
10962 lt_prog_compiler_pic_CXX='-pic'
10968 freebsd* | kfreebsd*-gnu)
10969 # FreeBSD uses GNU C++
10971 hpux9* | hpux10* | hpux11*)
10972 case $cc_basename in
10974 lt_prog_compiler_wl_CXX='-Wl,'
10975 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10976 if test "$host_cpu" != ia64; then
10977 lt_prog_compiler_pic_CXX='+Z'
10981 lt_prog_compiler_wl_CXX='-Wl,'
10982 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10983 case "$host_cpu" in
10988 lt_prog_compiler_pic_CXX='+Z'
10996 irix5* | irix6* | nonstopux*)
10997 case $cc_basename in
10999 lt_prog_compiler_wl_CXX='-Wl,'
11000 lt_prog_compiler_static_CXX='-non_shared'
11001 # CC pic flag -KPIC is the default.
11008 case $cc_basename in
11011 lt_prog_compiler_wl_CXX='--backend -Wl,'
11012 lt_prog_compiler_pic_CXX='-fPIC'
11016 lt_prog_compiler_wl_CXX='-Wl,'
11017 lt_prog_compiler_pic_CXX='-KPIC'
11018 lt_prog_compiler_static_CXX='-static'
11022 # Make sure the PIC flag is empty. It appears that all Alpha
11023 # Linux and Compaq Tru64 Unix objects are PIC.
11024 lt_prog_compiler_pic_CXX=
11025 lt_prog_compiler_static_CXX='-non_shared'
11036 case $cc_basename in
11038 lt_prog_compiler_pic_CXX='-W c,exportall'
11046 osf3* | osf4* | osf5*)
11047 case $cc_basename in
11049 lt_prog_compiler_wl_CXX='--backend -Wl,'
11052 # Rational C++ 2.4.1
11053 lt_prog_compiler_pic_CXX='-pic'
11056 # Digital/Compaq C++
11057 lt_prog_compiler_wl_CXX='-Wl,'
11058 # Make sure the PIC flag is empty. It appears that all Alpha
11059 # Linux and Compaq Tru64 Unix objects are PIC.
11060 lt_prog_compiler_pic_CXX=
11061 lt_prog_compiler_static_CXX='-non_shared'
11070 case $cc_basename in
11072 lt_prog_compiler_pic_CXX='-fPIC'
11079 case $cc_basename in
11081 # Sun C++ 4.2, 5.x and Centerline C++
11082 lt_prog_compiler_pic_CXX='-KPIC'
11083 lt_prog_compiler_static_CXX='-Bstatic'
11084 lt_prog_compiler_wl_CXX='-Qoption ld '
11087 # Green Hills C++ Compiler
11088 lt_prog_compiler_pic_CXX='-PIC'
11095 case $cc_basename in
11098 lt_prog_compiler_pic_CXX='-pic'
11099 lt_prog_compiler_static_CXX='-Bstatic'
11103 lt_prog_compiler_pic_CXX='-pic'
11110 case $cc_basename in
11112 # NonStop-UX NCC 3.20
11113 lt_prog_compiler_pic_CXX='-KPIC'
11124 lt_prog_compiler_can_build_shared_CXX=no
11129 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11130 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11133 # Check to make sure the PIC flag actually works.
11135 if test -n "$lt_prog_compiler_pic_CXX"; then
11137 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11138 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11139 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11140 $as_echo_n "(cached) " >&6
11142 lt_prog_compiler_pic_works_CXX=no
11143 ac_outfile=conftest.$ac_objext
11144 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11145 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11146 # Insert the option either (1) after the last *FLAGS variable, or
11147 # (2) before a word containing "conftest.", or (3) at the end.
11148 # Note that $ac_compile itself does not contain backslashes and begins
11149 # with a dollar sign (not a hyphen), so the echo should work correctly.
11150 # The option is referenced via a variable to avoid confusing sed.
11151 lt_compile=`echo "$ac_compile" | $SED \
11152 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11154 -e 's:$: $lt_compiler_flag:'`
11155 (eval echo "\"\$as_me:11155: $lt_compile\"" >&5)
11156 (eval "$lt_compile" 2>conftest.err)
11158 cat conftest.err >&5
11159 echo "$as_me:11159: \$? = $ac_status" >&5
11160 if (exit $ac_status) && test -s "$ac_outfile"; then
11161 # The compiler can only warn and ignore the option if not recognized
11162 # So say no if there are warnings
11163 if test ! -s conftest.err; then
11164 lt_prog_compiler_pic_works_CXX=yes
11170 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11171 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11173 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11174 case $lt_prog_compiler_pic_CXX in
11176 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11179 lt_prog_compiler_pic_CXX=
11180 lt_prog_compiler_can_build_shared_CXX=no
11185 # For platforms which do not support PIC, -DPIC is meaningless:
11187 lt_prog_compiler_pic_CXX=
11190 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11194 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11195 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11196 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11197 $as_echo_n "(cached) " >&6
11199 lt_cv_prog_compiler_c_o_CXX=no
11200 $rm -r conftest 2>/dev/null
11204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11206 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11207 # that will create temporary files in the current directory regardless of
11208 # the output directory. Thus, making CWD read-only will cause this test
11209 # to fail, enabling locking or at least warning the user not to do parallel
11213 lt_compiler_flag="-o out/conftest2.$ac_objext"
11214 # Insert the option either (1) after the last *FLAGS variable, or
11215 # (2) before a word containing "conftest.", or (3) at the end.
11216 # Note that $ac_compile itself does not contain backslashes and begins
11217 # with a dollar sign (not a hyphen), so the echo should work correctly.
11218 lt_compile=`echo "$ac_compile" | $SED \
11219 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11221 -e 's:$: $lt_compiler_flag:'`
11222 (eval echo "\"\$as_me:11222: $lt_compile\"" >&5)
11223 (eval "$lt_compile" 2>out/conftest.err)
11225 cat out/conftest.err >&5
11226 echo "$as_me:11226: \$? = $ac_status" >&5
11227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11229 # The compiler can only warn and ignore the option if not recognized
11230 # So say no if there are warnings
11231 if test ! -s out/conftest.err; then
11232 lt_cv_prog_compiler_c_o_CXX=yes
11237 # SGI C++ compiler will create directory out/ii_files/ for
11238 # template instantiation
11239 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11240 $rm out/* && rmdir out
11246 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11247 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11250 hard_links="nottested"
11251 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11252 # do not overwrite the value of need_locks provided by the user
11253 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11254 $as_echo_n "checking if we can lock with hard links... " >&6; }
11257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11259 ln conftest.a conftest.b 2>&5 || hard_links=no
11260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11261 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11262 $as_echo "$hard_links" >&6; }
11263 if test "$hard_links" = no; then
11264 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11265 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11272 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11275 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11278 # If we're using GNU nm, then we don't want the "-C" option.
11279 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11280 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11281 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11283 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11287 export_symbols_cmds_CXX="$ltdll_cmds"
11290 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11293 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11297 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11298 $as_echo "$ld_shlibs_CXX" >&6; }
11299 test "$ld_shlibs_CXX" = no && can_build_shared=no
11301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11302 if test "$GCC" = yes; then
11303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11307 # Do we need to explicitly link libc?
11309 case "x$archive_cmds_need_lc_CXX" in
11311 # Assume -lc should be added
11312 archive_cmds_need_lc_CXX=yes
11314 if test "$enable_shared" = yes && test "$GCC" = yes; then
11315 case $archive_cmds_CXX in
11317 # FIXME: we may have to deal with multi-command sequences.
11320 # Test whether the compiler implicitly links with -lc since on some
11321 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11322 # to ld, don't add -lc before -lgcc.
11323 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11324 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11326 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>&5
11331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } 2>conftest.err; then
11335 libobjs=conftest.$ac_objext
11337 wl=$lt_prog_compiler_wl_CXX
11343 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11344 allow_undefined_flag_CXX=
11345 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11346 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }
11351 archive_cmds_need_lc_CXX=no
11353 archive_cmds_need_lc_CXX=yes
11355 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11357 cat conftest.err 1>&5
11360 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11361 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11368 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11369 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11370 library_names_spec=
11371 libname_spec='lib$name'
11375 postuninstall_cmds=
11379 shlibpath_overrides_runpath=unknown
11381 dynamic_linker="$host_os ld.so"
11382 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11383 if test "$GCC" = yes; then
11384 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11385 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11386 # if the path contains ";" then we assume it to be the separator
11387 # otherwise default to the standard path separator (i.e. ":") - it is
11388 # assumed that no part of a normal pathname contains ";" but that should
11389 # okay in the real world where ";" in dirpaths is itself problematic.
11390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11395 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11397 need_lib_prefix=unknown
11398 hardcode_into_libs=no
11400 # when you set need_version to no, make sure it does not cause -set_version
11401 # flags to be left without arguments
11402 need_version=unknown
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11408 shlibpath_var=LIBPATH
11410 # AIX 3 has no versioning support, so we append a major version to the name.
11411 soname_spec='${libname}${release}${shared_ext}$major'
11418 hardcode_into_libs=yes
11419 if test "$host_cpu" = ia64; then
11420 # AIX 5 supports IA64
11421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11422 shlibpath_var=LD_LIBRARY_PATH
11424 # With GCC up to 2.95.x, collect2 would create an import file
11425 # for dependence libraries. The import file would start with
11426 # the line `#! .'. This would cause the generated library to
11427 # depend on `.', always an invalid library. This was fixed in
11428 # development snapshots of GCC prior to 3.0.
11430 aix4 | aix4.[01] | aix4.[01].*)
11431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11433 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11436 can_build_shared=no
11440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11441 # soname into executable. Probably we can add versioning support to
11442 # collect2, so additional links can be useful in future.
11443 if test "$aix_use_runtimelinking" = yes; then
11444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11445 # instead of lib<name>.a to let people know that these are not
11446 # typical AIX shared libraries.
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 # We preserve .a as extension for shared libraries through AIX4.2
11450 # and later when we are not doing run time linking.
11451 library_names_spec='${libname}${release}.a $libname.a'
11452 soname_spec='${libname}${release}${shared_ext}$major'
11454 shlibpath_var=LIBPATH
11459 library_names_spec='$libname.ixlibrary $libname.a'
11460 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11461 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'
11465 library_names_spec='${libname}${shared_ext}'
11466 dynamic_linker="$host_os ld.so"
11467 shlibpath_var=LIBRARY_PATH
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11478 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11479 # the default ld.so.conf also contains /usr/contrib/lib and
11480 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11481 # libtool to hard-code these into programs
11484 cygwin* | mingw* | pw32*)
11485 version_type=windows
11490 case $GCC,$host_os in
11491 yes,cygwin* | yes,mingw* | yes,pw32*)
11492 library_names_spec='$libname.dll.a'
11493 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11494 postinstall_cmds='base_file=`basename \${file}`~
11495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11496 dldir=$destdir/`dirname \$dlpath`~
11497 test -d \$dldir || mkdir -p \$dldir~
11498 $install_prog $dir/$dlname \$dldir/$dlname'
11499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11500 dlpath=$dir/\$dldll~
11502 shlibpath_overrides_runpath=yes
11506 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11507 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11508 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11511 # MinGW DLLs use traditional 'lib' prefix
11512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11514 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11515 # It is most probably a Windows format PATH printed by
11516 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11517 # path with ; separators, and with drive letters. We can handle the
11518 # drive letters (cygwin fileutils understands them), so leave them,
11519 # especially as we might pass files found there to a mingw objdump,
11520 # which wouldn't understand a cygwinified path. Ahh.
11521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11527 # pw32 DLLs use 'pw' prefix rather than 'lib'
11528 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11534 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11537 dynamic_linker='Win32 ld.exe'
11538 # FIXME: first we should search . and the directory the executable is in
11542 darwin* | rhapsody*)
11543 dynamic_linker="$host_os dyld"
11544 version_type=darwin
11547 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11548 soname_spec='${libname}${release}${major}$shared_ext'
11549 shlibpath_overrides_runpath=yes
11550 shlibpath_var=DYLD_LIBRARY_PATH
11551 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11552 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11553 if test "$GCC" = yes; then
11554 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11556 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11558 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 shlibpath_var=LD_LIBRARY_PATH
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 shlibpath_overrides_runpath=no
11582 hardcode_into_libs=yes
11583 dynamic_linker='GNU ld.so'
11587 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11588 version_type=freebsd-$objformat
11589 case $version_type in
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11600 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=yes
11605 freebsd3.01* | freebsdelf3.01*)
11606 shlibpath_overrides_runpath=yes
11607 hardcode_into_libs=yes
11610 shlibpath_overrides_runpath=no
11611 hardcode_into_libs=yes
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 hardcode_into_libs=yes
11626 hpux9* | hpux10* | hpux11*)
11627 # Give a soname corresponding to the major version so that dld.sl refuses to
11628 # link against other versions.
11632 case "$host_cpu" in
11635 hardcode_into_libs=yes
11636 dynamic_linker="$host_os dld.so"
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 soname_spec='${libname}${release}${shared_ext}$major'
11641 if test "X$HPUX_IA64_MODE" = X32; then
11642 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11644 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11650 hardcode_into_libs=yes
11651 dynamic_linker="$host_os dld.sl"
11652 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655 soname_spec='${libname}${release}${shared_ext}$major'
11656 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11661 dynamic_linker="$host_os dld.sl"
11662 shlibpath_var=SHLIB_PATH
11663 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11668 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11669 postinstall_cmds='chmod 555 $lib'
11672 irix5* | irix6* | nonstopux*)
11674 nonstopux*) version_type=nonstopux ;;
11676 if test "$lt_cv_prog_gnu_ld" = yes; then
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11687 irix5* | nonstopux*)
11688 libsuff= shlibsuff=
11691 case $LD in # libtool.m4 will add one of these switches to LD
11692 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11693 libsuff= shlibsuff= libmagic=32-bit;;
11694 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11695 libsuff=32 shlibsuff=N32 libmagic=N32;;
11696 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11697 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11698 *) libsuff= shlibsuff= libmagic=never-match;;
11702 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11703 shlibpath_overrides_runpath=no
11704 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11705 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11706 hardcode_into_libs=yes
11709 # No shared lib support for Linux oldld, aout, or coff.
11710 linux*oldld* | linux*aout* | linux*coff*)
11714 # This must be Linux ELF.
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=no
11724 # This implies no fast_install, which is unacceptable.
11725 # Some rework will be needed to allow for fast_install
11726 # before this can be enabled.
11727 hardcode_into_libs=yes
11729 # We used to test for /lib/ld.so.1 and disable shared libraries on
11730 # powerpc, because MkLinux only supported shared libraries with the
11731 # GNU dynamic linker. Since this was broken with cross compilers,
11732 # most powerpc-linux boxes support dynamic linking these days and
11733 # people can always --disable-shared, the test was removed, and we
11734 # assume the GNU/Linux dynamic linker is in use.
11735 dynamic_linker='GNU/Linux ld.so'
11742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11745 dynamic_linker='NetBSD (a.out) ld.so'
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11748 soname_spec='${libname}${release}${shared_ext}$major'
11749 dynamic_linker='NetBSD ld.elf_so'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11753 hardcode_into_libs=yes
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=yes
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768 soname_spec='${libname}${release}${shared_ext}$major'
11769 shlibpath_var=LD_LIBRARY_PATH
11770 shlibpath_overrides_runpath=yes
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11782 openbsd2.[89] | openbsd2.[89].*)
11783 shlibpath_overrides_runpath=no
11786 shlibpath_overrides_runpath=yes
11790 shlibpath_overrides_runpath=yes
11795 libname_spec='$name'
11798 library_names_spec='$libname${shared_ext} $libname.a'
11799 dynamic_linker='OS/2 ld.exe'
11800 shlibpath_var=LIBPATH
11803 osf3* | osf4* | osf5*)
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 shlibpath_var=LD_LIBRARY_PATH
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=yes
11829 hardcode_into_libs=yes
11830 # ldd complains unless libraries are executable
11831 postinstall_cmds='chmod +x $lib'
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11837 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 shlibpath_overrides_runpath=yes
11840 if test "$with_gnu_ld" = yes; then
11846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849 soname_spec='${libname}${release}${shared_ext}$major'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 case $host_vendor in
11853 shlibpath_overrides_runpath=no
11855 export_dynamic_flag_spec='${wl}-Blargedynsym'
11856 runpath_var=LD_RUN_PATH
11864 shlibpath_overrides_runpath=no
11865 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11871 if test -d /usr/nec ;then
11873 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11874 soname_spec='$libname${shared_ext}.$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882 soname_spec='${libname}${release}${shared_ext}$major'
11883 shlibpath_var=LD_LIBRARY_PATH
11890 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11891 $as_echo "$dynamic_linker" >&6; }
11892 test "$dynamic_linker" = no && can_build_shared=no
11894 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11895 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11896 hardcode_action_CXX=
11897 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11898 test -n "$runpath_var CXX" || \
11899 test "X$hardcode_automatic_CXX"="Xyes" ; then
11901 # We can hardcode non-existant directories.
11902 if test "$hardcode_direct_CXX" != no &&
11903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11904 # have to relink, otherwise we might link with an installed library
11905 # when we should be linking with a yet-to-be-installed one
11906 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11907 test "$hardcode_minus_L_CXX" != no; then
11908 # Linking always hardcodes the temporary library directory.
11909 hardcode_action_CXX=relink
11911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11912 hardcode_action_CXX=immediate
11915 # We cannot hardcode anything, or else we can only hardcode existing
11917 hardcode_action_CXX=unsupported
11919 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11920 $as_echo "$hardcode_action_CXX" >&6; }
11922 if test "$hardcode_action_CXX" = relink; then
11923 # Fast installation is not supported
11924 enable_fast_install=no
11925 elif test "$shlibpath_overrides_runpath" = yes ||
11926 test "$enable_shared" = no; then
11927 # Fast installation is not necessary
11928 enable_fast_install=needless
11933 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11934 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11935 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11936 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11937 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11938 { $as_echo "$as_me:$LINENO: result: yes" >&5
11939 $as_echo "yes" >&6; }
11941 # FIXME - insert some real tests, host_os isn't really good enough
11944 if test -n "$STRIP" ; then
11945 striplib="$STRIP -x"
11946 { $as_echo "$as_me:$LINENO: result: yes" >&5
11947 $as_echo "yes" >&6; }
11949 { $as_echo "$as_me:$LINENO: result: no" >&5
11950 $as_echo "no" >&6; }
11954 { $as_echo "$as_me:$LINENO: result: no" >&5
11955 $as_echo "no" >&6; }
11960 if test "x$enable_dlopen" != xyes; then
11961 enable_dlopen=unknown
11962 enable_dlopen_self=unknown
11963 enable_dlopen_self_static=unknown
11970 lt_cv_dlopen="load_add_on"
11972 lt_cv_dlopen_self=yes
11976 lt_cv_dlopen="LoadLibrary"
11981 lt_cv_dlopen="dlopen"
11986 # if libdl is installed we need to link against it
11987 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11990 $as_echo_n "(cached) " >&6
11992 ac_check_lib_save_LIBS=$LIBS
11994 cat >conftest.$ac_ext <<_ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12001 /* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12016 rm -f conftest.$ac_objext conftest$ac_exeext
12017 if { (ac_try="$ac_link"
12018 case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12023 $as_echo "$ac_try_echo") >&5
12024 (eval "$ac_link") 2>conftest.er1
12026 grep -v '^ *+' conftest.er1 >conftest.err
12028 cat conftest.err >&5
12029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } && {
12031 test -z "$ac_cxx_werror_flag" ||
12032 test ! -s conftest.err
12033 } && test -s conftest$ac_exeext && {
12034 test "$cross_compiling" = yes ||
12035 $as_test_x conftest$ac_exeext
12037 ac_cv_lib_dl_dlopen=yes
12039 $as_echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ac_cv_lib_dl_dlopen=no
12045 rm -rf conftest.dSYM
12046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12047 conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12051 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12052 if test $ac_cv_lib_dl_dlopen = yes; then
12053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12056 lt_cv_dlopen="dyld"
12058 lt_cv_dlopen_self=yes
12065 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12066 $as_echo_n "checking for shl_load... " >&6; }
12067 if test "${ac_cv_func_shl_load+set}" = set; then
12068 $as_echo_n "(cached) " >&6
12070 cat >conftest.$ac_ext <<_ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12078 #define shl_load innocuous_shl_load
12080 /* System header to define __stub macros and hopefully few prototypes,
12081 which can conflict with char shl_load (); below.
12082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12083 <limits.h> exists even on freestanding compilers. */
12086 # include <limits.h>
12088 # include <assert.h>
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12100 /* The GNU C library defines this for functions which it implements
12101 to always fail with ENOSYS. Some functions are actually named
12102 something starting with __ and the normal name is an alias. */
12103 #if defined __stub_shl_load || defined __stub___shl_load
12110 return shl_load ();
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12122 $as_echo "$ac_try_echo") >&5
12123 (eval "$ac_link") 2>conftest.er1
12125 grep -v '^ *+' conftest.er1 >conftest.err
12127 cat conftest.err >&5
12128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && {
12130 test -z "$ac_cxx_werror_flag" ||
12131 test ! -s conftest.err
12132 } && test -s conftest$ac_exeext && {
12133 test "$cross_compiling" = yes ||
12134 $as_test_x conftest$ac_exeext
12136 ac_cv_func_shl_load=yes
12138 $as_echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 ac_cv_func_shl_load=no
12144 rm -rf conftest.dSYM
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146 conftest$ac_exeext conftest.$ac_ext
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12149 $as_echo "$ac_cv_func_shl_load" >&6; }
12150 if test $ac_cv_func_shl_load = yes; then
12151 lt_cv_dlopen="shl_load"
12153 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12154 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12155 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12156 $as_echo_n "(cached) " >&6
12158 ac_check_lib_save_LIBS=$LIBS
12160 cat >conftest.$ac_ext <<_ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12177 return shl_load ();
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_link") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1 >conftest.err
12194 cat conftest.err >&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_cxx_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest$ac_exeext && {
12200 test "$cross_compiling" = yes ||
12201 $as_test_x conftest$ac_exeext
12203 ac_cv_lib_dld_shl_load=yes
12205 $as_echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_cv_lib_dld_shl_load=no
12211 rm -rf conftest.dSYM
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12217 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12218 if test $ac_cv_lib_dld_shl_load = yes; then
12219 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12221 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12222 $as_echo_n "checking for dlopen... " >&6; }
12223 if test "${ac_cv_func_dlopen+set}" = set; then
12224 $as_echo_n "(cached) " >&6
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12234 #define dlopen innocuous_dlopen
12236 /* System header to define __stub macros and hopefully few prototypes,
12237 which can conflict with char dlopen (); below.
12238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239 <limits.h> exists even on freestanding compilers. */
12242 # include <limits.h>
12244 # include <assert.h>
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12256 /* The GNU C library defines this for functions which it implements
12257 to always fail with ENOSYS. Some functions are actually named
12258 something starting with __ and the normal name is an alias. */
12259 #if defined __stub_dlopen || defined __stub___dlopen
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12278 $as_echo "$ac_try_echo") >&5
12279 (eval "$ac_link") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && {
12286 test -z "$ac_cxx_werror_flag" ||
12287 test ! -s conftest.err
12288 } && test -s conftest$ac_exeext && {
12289 test "$cross_compiling" = yes ||
12290 $as_test_x conftest$ac_exeext
12292 ac_cv_func_dlopen=yes
12294 $as_echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_func_dlopen=no
12300 rm -rf conftest.dSYM
12301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302 conftest$ac_exeext conftest.$ac_ext
12304 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12305 $as_echo "$ac_cv_func_dlopen" >&6; }
12306 if test $ac_cv_func_dlopen = yes; then
12307 lt_cv_dlopen="dlopen"
12309 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12310 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12312 $as_echo_n "(cached) " >&6
12314 ac_check_lib_save_LIBS=$LIBS
12316 cat >conftest.$ac_ext <<_ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (ac_try="$ac_link"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12345 $as_echo "$ac_try_echo") >&5
12346 (eval "$ac_link") 2>conftest.er1
12348 grep -v '^ *+' conftest.er1 >conftest.err
12350 cat conftest.err >&5
12351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } && {
12353 test -z "$ac_cxx_werror_flag" ||
12354 test ! -s conftest.err
12355 } && test -s conftest$ac_exeext && {
12356 test "$cross_compiling" = yes ||
12357 $as_test_x conftest$ac_exeext
12359 ac_cv_lib_dl_dlopen=yes
12361 $as_echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ac_cv_lib_dl_dlopen=no
12367 rm -rf conftest.dSYM
12368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12374 if test $ac_cv_lib_dl_dlopen = yes; then
12375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12377 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12378 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12379 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12380 $as_echo_n "(cached) " >&6
12382 ac_check_lib_save_LIBS=$LIBS
12383 LIBS="-lsvld $LIBS"
12384 cat >conftest.$ac_ext <<_ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (ac_try="$ac_link"
12408 case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12413 $as_echo "$ac_try_echo") >&5
12414 (eval "$ac_link") 2>conftest.er1
12416 grep -v '^ *+' conftest.er1 >conftest.err
12418 cat conftest.err >&5
12419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } && {
12421 test -z "$ac_cxx_werror_flag" ||
12422 test ! -s conftest.err
12423 } && test -s conftest$ac_exeext && {
12424 test "$cross_compiling" = yes ||
12425 $as_test_x conftest$ac_exeext
12427 ac_cv_lib_svld_dlopen=yes
12429 $as_echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_svld_dlopen=no
12435 rm -rf conftest.dSYM
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12441 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12442 if test $ac_cv_lib_svld_dlopen = yes; then
12443 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12445 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12446 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12447 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12448 $as_echo_n "(cached) " >&6
12450 ac_check_lib_save_LIBS=$LIBS
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 /* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12469 return dld_link ();
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475 if { (ac_try="$ac_link"
12476 case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12481 $as_echo "$ac_try_echo") >&5
12482 (eval "$ac_link") 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } && {
12489 test -z "$ac_cxx_werror_flag" ||
12490 test ! -s conftest.err
12491 } && test -s conftest$ac_exeext && {
12492 test "$cross_compiling" = yes ||
12493 $as_test_x conftest$ac_exeext
12495 ac_cv_lib_dld_dld_link=yes
12497 $as_echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_cv_lib_dld_dld_link=no
12503 rm -rf conftest.dSYM
12504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12505 conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12508 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12509 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12510 if test $ac_cv_lib_dld_dld_link = yes; then
12511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12532 if test "x$lt_cv_dlopen" != xno; then
12538 case $lt_cv_dlopen in
12540 save_CPPFLAGS="$CPPFLAGS"
12541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12543 save_LDFLAGS="$LDFLAGS"
12544 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12547 LIBS="$lt_cv_dlopen_libs $LIBS"
12549 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12550 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12551 if test "${lt_cv_dlopen_self+set}" = set; then
12552 $as_echo_n "(cached) " >&6
12554 if test "$cross_compiling" = yes; then :
12555 lt_cv_dlopen_self=cross
12557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12558 lt_status=$lt_dlunknown
12559 cat > conftest.$ac_ext <<EOF
12560 #line 12560 "configure"
12561 #include "confdefs.h"
12570 # define LT_DLGLOBAL RTLD_GLOBAL
12573 # define LT_DLGLOBAL DL_GLOBAL
12575 # define LT_DLGLOBAL 0
12579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12580 find out it does not work in some platform. */
12581 #ifndef LT_DLLAZY_OR_NOW
12583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12586 # define LT_DLLAZY_OR_NOW DL_LAZY
12589 # define LT_DLLAZY_OR_NOW RTLD_NOW
12592 # define LT_DLLAZY_OR_NOW DL_NOW
12594 # define LT_DLLAZY_OR_NOW 0
12602 extern "C" void exit (int);
12605 void fnord() { int i=42;}
12608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12609 int status = $lt_dlunknown;
12613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12615 /* dlclose (self); */
12621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12622 (eval $ac_link) 2>&5
12624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12626 (./conftest; exit; ) 2>/dev/null
12628 case x$lt_status in
12629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12631 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12634 # compilation failed
12635 lt_cv_dlopen_self=no
12642 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12643 $as_echo "$lt_cv_dlopen_self" >&6; }
12645 if test "x$lt_cv_dlopen_self" = xyes; then
12646 LDFLAGS="$LDFLAGS $link_static_flag"
12647 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12648 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12649 if test "${lt_cv_dlopen_self_static+set}" = set; then
12650 $as_echo_n "(cached) " >&6
12652 if test "$cross_compiling" = yes; then :
12653 lt_cv_dlopen_self_static=cross
12655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12656 lt_status=$lt_dlunknown
12657 cat > conftest.$ac_ext <<EOF
12658 #line 12658 "configure"
12659 #include "confdefs.h"
12668 # define LT_DLGLOBAL RTLD_GLOBAL
12671 # define LT_DLGLOBAL DL_GLOBAL
12673 # define LT_DLGLOBAL 0
12677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12678 find out it does not work in some platform. */
12679 #ifndef LT_DLLAZY_OR_NOW
12681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12684 # define LT_DLLAZY_OR_NOW DL_LAZY
12687 # define LT_DLLAZY_OR_NOW RTLD_NOW
12690 # define LT_DLLAZY_OR_NOW DL_NOW
12692 # define LT_DLLAZY_OR_NOW 0
12700 extern "C" void exit (int);
12703 void fnord() { int i=42;}
12706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12707 int status = $lt_dlunknown;
12711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12712 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12713 /* dlclose (self); */
12719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12720 (eval $ac_link) 2>&5
12722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12724 (./conftest; exit; ) 2>/dev/null
12726 case x$lt_status in
12727 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12728 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12729 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12732 # compilation failed
12733 lt_cv_dlopen_self_static=no
12740 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12741 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12744 CPPFLAGS="$save_CPPFLAGS"
12745 LDFLAGS="$save_LDFLAGS"
12750 case $lt_cv_dlopen_self in
12751 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12752 *) enable_dlopen_self=unknown ;;
12755 case $lt_cv_dlopen_self_static in
12756 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12757 *) enable_dlopen_self_static=unknown ;;
12762 # The else clause should only fire when bootstrapping the
12763 # libtool distribution, otherwise you forgot to ship ltmain.sh
12764 # with your package, and you will get complaints that there are
12765 # no rules to generate ltmain.sh.
12766 if test -f "$ltmain"; then
12767 # See if we are running on zsh, and set the options which allow our commands through
12768 # without removal of \ escapes.
12769 if test -n "${ZSH_VERSION+set}" ; then
12770 setopt NO_GLOB_SUBST
12772 # Now quote all the things that may contain metacharacters while being
12773 # careful not to overquote the AC_SUBSTed values. We take copies of the
12774 # variables and quote the copies for generation of the libtool script.
12775 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12777 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12778 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12779 deplibs_check_method reload_flag reload_cmds need_locks \
12780 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12781 lt_cv_sys_global_symbol_to_c_name_address \
12782 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12783 old_postinstall_cmds old_postuninstall_cmds \
12787 lt_prog_compiler_wl_CXX \
12788 lt_prog_compiler_pic_CXX \
12789 lt_prog_compiler_static_CXX \
12790 lt_prog_compiler_no_builtin_flag_CXX \
12791 export_dynamic_flag_spec_CXX \
12792 thread_safe_flag_spec_CXX \
12793 whole_archive_flag_spec_CXX \
12794 enable_shared_with_static_runtimes_CXX \
12795 old_archive_cmds_CXX \
12796 old_archive_from_new_cmds_CXX \
12797 predep_objects_CXX \
12798 postdep_objects_CXX \
12801 compiler_lib_search_path_CXX \
12803 archive_expsym_cmds_CXX \
12804 postinstall_cmds_CXX \
12805 postuninstall_cmds_CXX \
12806 old_archive_from_expsyms_cmds_CXX \
12807 allow_undefined_flag_CXX \
12808 no_undefined_flag_CXX \
12809 export_symbols_cmds_CXX \
12810 hardcode_libdir_flag_spec_CXX \
12811 hardcode_libdir_flag_spec_ld_CXX \
12812 hardcode_libdir_separator_CXX \
12813 hardcode_automatic_CXX \
12815 module_expsym_cmds_CXX \
12816 lt_cv_prog_compiler_c_o_CXX \
12817 exclude_expsyms_CXX \
12818 include_expsyms_CXX; do
12821 old_archive_cmds_CXX | \
12822 old_archive_from_new_cmds_CXX | \
12823 archive_cmds_CXX | \
12824 archive_expsym_cmds_CXX | \
12825 module_cmds_CXX | \
12826 module_expsym_cmds_CXX | \
12827 old_archive_from_expsyms_cmds_CXX | \
12828 export_symbols_cmds_CXX | \
12829 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12830 postinstall_cmds | postuninstall_cmds | \
12831 old_postinstall_cmds | old_postuninstall_cmds | \
12832 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12833 # Double-quote double-evaled strings.
12834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12837 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12843 *'\$0 --fallback-echo"')
12844 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12850 cat <<__EOF__ >> "$cfgfile"
12851 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12853 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12855 # Shell to use when invoking shell scripts.
12858 # Whether or not to build shared libraries.
12859 build_libtool_libs=$enable_shared
12861 # Whether or not to build static libraries.
12862 build_old_libs=$enable_static
12864 # Whether or not to add -lc for building shared libraries.
12865 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12867 # Whether or not to disallow shared libs when runtime libs are static
12868 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12870 # Whether or not to optimize for fast installation.
12871 fast_install=$enable_fast_install
12874 host_alias=$host_alias
12877 # An echo program that does not interpret backslashes.
12882 AR_FLAGS=$lt_AR_FLAGS
12887 # A language-specific compiler.
12888 CC=$lt_compiler_CXX
12890 # Is the compiler the GNU C compiler?
12896 # The linker used to build libraries.
12899 # Whether we need hard or soft links.
12902 # A BSD-compatible nm program.
12905 # A symbol stripping program
12908 # Used to examine libraries when file_magic_cmd begins "file"
12909 MAGIC_CMD=$MAGIC_CMD
12911 # Used on cygwin: DLL creation program.
12914 # Used on cygwin: object dumper.
12917 # Used on cygwin: assembler.
12920 # The name of the directory that contains temporary libtool files.
12923 # How to create reloadable object files.
12924 reload_flag=$lt_reload_flag
12925 reload_cmds=$lt_reload_cmds
12927 # How to pass a linker flag through the compiler.
12928 wl=$lt_lt_prog_compiler_wl_CXX
12930 # Object file suffix (normally "o").
12931 objext="$ac_objext"
12933 # Old archive suffix (normally "a").
12936 # Shared library suffix (normally ".so").
12939 # Executable file suffix (normally "").
12942 # Additional compiler flags for building library objects.
12943 pic_flag=$lt_lt_prog_compiler_pic_CXX
12946 # What is the maximum length of a command?
12947 max_cmd_len=$lt_cv_sys_max_cmd_len
12949 # Does compiler simultaneously support -c and -o options?
12950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12952 # Must we lock files when doing compilation ?
12953 need_locks=$lt_need_locks
12955 # Do we need the lib prefix for modules?
12956 need_lib_prefix=$need_lib_prefix
12958 # Do we need a version for libraries?
12959 need_version=$need_version
12961 # Whether dlopen is supported.
12962 dlopen_support=$enable_dlopen
12964 # Whether dlopen of programs is supported.
12965 dlopen_self=$enable_dlopen_self
12967 # Whether dlopen of statically linked programs is supported.
12968 dlopen_self_static=$enable_dlopen_self_static
12970 # Compiler flag to prevent dynamic linking.
12971 link_static_flag=$lt_lt_prog_compiler_static_CXX
12973 # Compiler flag to turn off builtin functions.
12974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12976 # Compiler flag to allow reflexive dlopens.
12977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12979 # Compiler flag to generate shared objects directly from archives.
12980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12982 # Compiler flag to generate thread-safe objects.
12983 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12985 # Library versioning type.
12986 version_type=$version_type
12988 # Format of library name prefix.
12989 libname_spec=$lt_libname_spec
12991 # List of archive names. First name is the real one, the rest are links.
12992 # The last name is the one that the linker finds with -lNAME.
12993 library_names_spec=$lt_library_names_spec
12995 # The coded name of the library, if different from the real name.
12996 soname_spec=$lt_soname_spec
12998 # Commands used to build and install an old-style archive.
13000 old_archive_cmds=$lt_old_archive_cmds_CXX
13001 old_postinstall_cmds=$lt_old_postinstall_cmds
13002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13004 # Create an old-style archive from a shared archive.
13005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13007 # Create a temporary old-style archive to link instead of a shared archive.
13008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13010 # Commands used to build and install a shared archive.
13011 archive_cmds=$lt_archive_cmds_CXX
13012 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13013 postinstall_cmds=$lt_postinstall_cmds
13014 postuninstall_cmds=$lt_postuninstall_cmds
13016 # Commands used to build a loadable module (assumed same as above if empty)
13017 module_cmds=$lt_module_cmds_CXX
13018 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13020 # Commands to strip libraries.
13021 old_striplib=$lt_old_striplib
13022 striplib=$lt_striplib
13024 # Dependencies to place before the objects being linked to create a
13026 predep_objects=$lt_predep_objects_CXX
13028 # Dependencies to place after the objects being linked to create a
13030 postdep_objects=$lt_postdep_objects_CXX
13032 # Dependencies to place before the objects being linked to create a
13034 predeps=$lt_predeps_CXX
13036 # Dependencies to place after the objects being linked to create a
13038 postdeps=$lt_postdeps_CXX
13040 # The library search path used internally by the compiler when linking
13041 # a shared library.
13042 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13044 # Method to check whether dependent libraries are shared objects.
13045 deplibs_check_method=$lt_deplibs_check_method
13047 # Command to use when deplibs_check_method == file_magic.
13048 file_magic_cmd=$lt_file_magic_cmd
13050 # Flag that allows shared libraries with undefined symbols to be built.
13051 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13053 # Flag that forces no undefined symbols.
13054 no_undefined_flag=$lt_no_undefined_flag_CXX
13056 # Commands used to finish a libtool library installation in a directory.
13057 finish_cmds=$lt_finish_cmds
13059 # Same as above, but a single script fragment to be evaled but not shown.
13060 finish_eval=$lt_finish_eval
13062 # Take the output of nm and produce a listing of raw symbols and C names.
13063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13065 # Transform the output of nm in a proper C declaration
13066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13068 # Transform the output of nm in a C name address pair
13069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13071 # This is the shared library runtime path variable.
13072 runpath_var=$runpath_var
13074 # This is the shared library path variable.
13075 shlibpath_var=$shlibpath_var
13077 # Is shlibpath searched before the hard-coded library search path?
13078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13080 # How to hardcode a shared library path into an executable.
13081 hardcode_action=$hardcode_action_CXX
13083 # Whether we should hardcode library paths into libraries.
13084 hardcode_into_libs=$hardcode_into_libs
13086 # Flag to hardcode \$libdir into a binary during linking.
13087 # This must work even if \$libdir does not exist.
13088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13090 # If ld is used when linking, flag to hardcode \$libdir into
13091 # a binary during linking. This must work even if \$libdir does
13093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13095 # Whether we need a single -rpath flag with a separated argument.
13096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13098 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13099 # resulting binary.
13100 hardcode_direct=$hardcode_direct_CXX
13102 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13103 # resulting binary.
13104 hardcode_minus_L=$hardcode_minus_L_CXX
13106 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13107 # the resulting binary.
13108 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13110 # Set to yes if building a shared library automatically hardcodes DIR into the library
13111 # and all subsequent libraries and executables linked against it.
13112 hardcode_automatic=$hardcode_automatic_CXX
13114 # Variables whose values should be saved in libtool wrapper scripts and
13115 # restored at relink time.
13116 variables_saved_for_relink="$variables_saved_for_relink"
13118 # Whether libtool must link a program against all its dependency libraries.
13119 link_all_deplibs=$link_all_deplibs_CXX
13121 # Compile-time system search path for libraries
13122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13124 # Run-time system search path for libraries
13125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13127 # Fix the shell variable \$srcfile for the compiler.
13128 fix_srcfile_path="$fix_srcfile_path_CXX"
13130 # Set to yes if exported symbols are required.
13131 always_export_symbols=$always_export_symbols_CXX
13133 # The commands to list exported symbols.
13134 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13136 # The commands to extract the exported symbol list from a shared archive.
13137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13139 # Symbols that should not be listed in the preloaded symbols.
13140 exclude_expsyms=$lt_exclude_expsyms_CXX
13142 # Symbols that must always be exported.
13143 include_expsyms=$lt_include_expsyms_CXX
13145 # ### END LIBTOOL TAG CONFIG: $tagname
13151 # If there is no Makefile yet, we rely on a make rule to execute
13152 # `config.status --recheck' to rerun these tests and create the
13153 # libtool script then.
13154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13155 if test -f "$ltmain_in"; then
13156 test -f Makefile && make "$ltmain"
13162 ac_cpp='$CPP $CPPFLAGS'
13163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13171 with_gnu_ldcxx=$with_gnu_ld
13172 with_gnu_ld=$lt_save_with_gnu_ld
13173 lt_cv_path_LDCXX=$lt_cv_path_LD
13174 lt_cv_path_LD=$lt_save_path_LD
13175 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13176 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13184 if test -n "$F77" && test "X$F77" != "Xno"; then
13187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13192 archive_cmds_need_lc_F77=no
13193 allow_undefined_flag_F77=
13194 always_export_symbols_F77=no
13195 archive_expsym_cmds_F77=
13196 export_dynamic_flag_spec_F77=
13197 hardcode_direct_F77=no
13198 hardcode_libdir_flag_spec_F77=
13199 hardcode_libdir_flag_spec_ld_F77=
13200 hardcode_libdir_separator_F77=
13201 hardcode_minus_L_F77=no
13202 hardcode_automatic_F77=no
13204 module_expsym_cmds_F77=
13205 link_all_deplibs_F77=unknown
13206 old_archive_cmds_F77=$old_archive_cmds
13207 no_undefined_flag_F77=
13208 whole_archive_flag_spec_F77=
13209 enable_shared_with_static_runtimes_F77=no
13211 # Source file extension for f77 test sources.
13214 # Object file extension for compiled f77 test sources.
13218 # Code to be used in simple compile tests
13219 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13221 # Code to be used in simple link tests
13222 lt_simple_link_test_code=" program t\n end\n"
13224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13226 # If no C compiler was specified, use CC.
13229 # Allow CC to be a program name with arguments.
13233 # Allow CC to be a program name with arguments.
13238 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13240 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13241 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13242 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13243 $as_echo "$can_build_shared" >&6; }
13245 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13246 $as_echo_n "checking whether to build shared libraries... " >&6; }
13247 test "$can_build_shared" = "no" && enable_shared=no
13249 # On AIX, shared libraries and static libraries use the same namespace, and
13250 # are all built from PIC.
13253 test "$enable_shared" = yes && enable_static=no
13254 if test -n "$RANLIB"; then
13255 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13256 postinstall_cmds='$RANLIB $lib'
13260 test "$enable_shared" = yes && enable_static=no
13263 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13264 $as_echo "$enable_shared" >&6; }
13266 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13267 $as_echo_n "checking whether to build static libraries... " >&6; }
13268 # Make sure either enable_shared or enable_static is yes.
13269 test "$enable_shared" = yes || enable_static=yes
13270 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13271 $as_echo "$enable_static" >&6; }
13273 test "$ld_shlibs_F77" = no && can_build_shared=no
13278 lt_prog_compiler_wl_F77=
13279 lt_prog_compiler_pic_F77=
13280 lt_prog_compiler_static_F77=
13282 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13285 if test "$GCC" = yes; then
13286 lt_prog_compiler_wl_F77='-Wl,'
13287 lt_prog_compiler_static_F77='-static'
13291 # All AIX code is PIC.
13292 if test "$host_cpu" = ia64; then
13293 # AIX 5 now supports IA64 processor
13294 lt_prog_compiler_static_F77='-Bstatic'
13299 # FIXME: we need at least 68020 code to build shared libraries, but
13300 # adding the `-m68020' flag to GCC prevents building anything better,
13302 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13305 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13306 # PIC is the default for these OSes.
13309 mingw* | pw32* | os2*)
13310 # This hack is so that the source file can tell whether it is being
13311 # built for inclusion in a dll (and should export symbols for example).
13312 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13315 darwin* | rhapsody*)
13316 # PIC is the default on this platform
13317 # Common symbols not allowed in MH_DYLIB files
13318 lt_prog_compiler_pic_F77='-fno-common'
13322 # Just because we use GCC doesn't mean we suddenly get shared libraries
13323 # on systems that don't support them.
13324 lt_prog_compiler_can_build_shared_F77=no
13329 if test -d /usr/nec; then
13330 lt_prog_compiler_pic_F77=-Kconform_pic
13335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13336 # not for PA HP-UX.
13337 case "$host_cpu" in
13342 lt_prog_compiler_pic_F77='-fPIC'
13348 lt_prog_compiler_pic_F77='-fPIC'
13352 # PORTME Check for flag to pass linker flags through the system compiler.
13355 lt_prog_compiler_wl_F77='-Wl,'
13356 if test "$host_cpu" = ia64; then
13357 # AIX 5 now supports IA64 processor
13358 lt_prog_compiler_static_F77='-Bstatic'
13360 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13364 mingw* | pw32* | os2*)
13365 # This hack is so that the source file can tell whether it is being
13366 # built for inclusion in a dll (and should export symbols for example).
13367 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13370 hpux9* | hpux10* | hpux11*)
13371 lt_prog_compiler_wl_F77='-Wl,'
13372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13373 # not for PA HP-UX.
13374 case "$host_cpu" in
13379 lt_prog_compiler_pic_F77='+Z'
13382 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13383 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13386 irix5* | irix6* | nonstopux*)
13387 lt_prog_compiler_wl_F77='-Wl,'
13388 # PIC (with -KPIC) is the default.
13389 lt_prog_compiler_static_F77='-non_shared'
13393 lt_prog_compiler_pic_F77='-KPIC'
13394 lt_prog_compiler_static_F77='-Bstatic'
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 lt_prog_compiler_pic_F77='-KPIC'
13402 lt_prog_compiler_static_F77='-static'
13405 lt_prog_compiler_wl_F77='-Wl,'
13406 # All Alpha code is PIC.
13407 lt_prog_compiler_static_F77='-non_shared'
13412 osf3* | osf4* | osf5*)
13413 lt_prog_compiler_wl_F77='-Wl,'
13414 # All OSF/1 code is PIC.
13415 lt_prog_compiler_static_F77='-non_shared'
13419 lt_prog_compiler_pic_F77='-Kpic'
13420 lt_prog_compiler_static_F77='-dn'
13424 lt_prog_compiler_wl_F77='-Wl,'
13425 lt_prog_compiler_pic_F77='-KPIC'
13426 lt_prog_compiler_static_F77='-Bstatic'
13430 lt_prog_compiler_wl_F77='-Qoption ld '
13431 lt_prog_compiler_pic_F77='-PIC'
13432 lt_prog_compiler_static_F77='-Bstatic'
13435 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13436 lt_prog_compiler_wl_F77='-Wl,'
13437 lt_prog_compiler_pic_F77='-KPIC'
13438 lt_prog_compiler_static_F77='-Bstatic'
13442 if test -d /usr/nec ;then
13443 lt_prog_compiler_pic_F77='-Kconform_pic'
13444 lt_prog_compiler_static_F77='-Bstatic'
13449 lt_prog_compiler_pic_F77='-pic'
13450 lt_prog_compiler_static_F77='-Bstatic'
13454 lt_prog_compiler_can_build_shared_F77=no
13459 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13460 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13463 # Check to make sure the PIC flag actually works.
13465 if test -n "$lt_prog_compiler_pic_F77"; then
13467 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13468 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13469 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13470 $as_echo_n "(cached) " >&6
13472 lt_prog_compiler_pic_works_F77=no
13473 ac_outfile=conftest.$ac_objext
13474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13475 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13476 # Insert the option either (1) after the last *FLAGS variable, or
13477 # (2) before a word containing "conftest.", or (3) at the end.
13478 # Note that $ac_compile itself does not contain backslashes and begins
13479 # with a dollar sign (not a hyphen), so the echo should work correctly.
13480 # The option is referenced via a variable to avoid confusing sed.
13481 lt_compile=`echo "$ac_compile" | $SED \
13482 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484 -e 's:$: $lt_compiler_flag:'`
13485 (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486 (eval "$lt_compile" 2>conftest.err)
13488 cat conftest.err >&5
13489 echo "$as_me:13489: \$? = $ac_status" >&5
13490 if (exit $ac_status) && test -s "$ac_outfile"; then
13491 # The compiler can only warn and ignore the option if not recognized
13492 # So say no if there are warnings
13493 if test ! -s conftest.err; then
13494 lt_prog_compiler_pic_works_F77=yes
13500 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13501 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13503 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13504 case $lt_prog_compiler_pic_F77 in
13506 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13509 lt_prog_compiler_pic_F77=
13510 lt_prog_compiler_can_build_shared_F77=no
13515 # For platforms which do not support PIC, -DPIC is meaningless:
13517 lt_prog_compiler_pic_F77=
13520 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13524 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13525 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13526 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13527 $as_echo_n "(cached) " >&6
13529 lt_cv_prog_compiler_c_o_F77=no
13530 $rm -r conftest 2>/dev/null
13534 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13536 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13537 # that will create temporary files in the current directory regardless of
13538 # the output directory. Thus, making CWD read-only will cause this test
13539 # to fail, enabling locking or at least warning the user not to do parallel
13543 lt_compiler_flag="-o out/conftest2.$ac_objext"
13544 # Insert the option either (1) after the last *FLAGS variable, or
13545 # (2) before a word containing "conftest.", or (3) at the end.
13546 # Note that $ac_compile itself does not contain backslashes and begins
13547 # with a dollar sign (not a hyphen), so the echo should work correctly.
13548 lt_compile=`echo "$ac_compile" | $SED \
13549 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13551 -e 's:$: $lt_compiler_flag:'`
13552 (eval echo "\"\$as_me:13552: $lt_compile\"" >&5)
13553 (eval "$lt_compile" 2>out/conftest.err)
13555 cat out/conftest.err >&5
13556 echo "$as_me:13556: \$? = $ac_status" >&5
13557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13559 # The compiler can only warn and ignore the option if not recognized
13560 # So say no if there are warnings
13561 if test ! -s out/conftest.err; then
13562 lt_cv_prog_compiler_c_o_F77=yes
13567 # SGI C++ compiler will create directory out/ii_files/ for
13568 # template instantiation
13569 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13570 $rm out/* && rmdir out
13576 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13577 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13580 hard_links="nottested"
13581 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13582 # do not overwrite the value of need_locks provided by the user
13583 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13584 $as_echo_n "checking if we can lock with hard links... " >&6; }
13587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13589 ln conftest.a conftest.b 2>&5 || hard_links=no
13590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13591 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13592 $as_echo "$hard_links" >&6; }
13593 if test "$hard_links" = no; then
13594 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13595 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13602 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13606 allow_undefined_flag_F77=
13607 enable_shared_with_static_runtimes_F77=no
13609 archive_expsym_cmds_F77=
13610 old_archive_From_new_cmds_F77=
13611 old_archive_from_expsyms_cmds_F77=
13612 export_dynamic_flag_spec_F77=
13613 whole_archive_flag_spec_F77=
13614 thread_safe_flag_spec_F77=
13615 hardcode_libdir_flag_spec_F77=
13616 hardcode_libdir_flag_spec_ld_F77=
13617 hardcode_libdir_separator_F77=
13618 hardcode_direct_F77=no
13619 hardcode_minus_L_F77=no
13620 hardcode_shlibpath_var_F77=unsupported
13621 link_all_deplibs_F77=unknown
13622 hardcode_automatic_F77=no
13624 module_expsym_cmds_F77=
13625 always_export_symbols_F77=no
13626 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13627 # include_expsyms should be a list of space-separated symbols to be *always*
13628 # included in the symbol list
13629 include_expsyms_F77=
13630 # exclude_expsyms can be an extended regexp of symbols to exclude
13631 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13632 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13633 # as well as any symbol that contains `d'.
13634 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13635 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13636 # platforms (ab)use it in PIC code, but their linkers get confused if
13637 # the symbol is explicitly referenced. Since portable code cannot
13638 # rely on this symbol name, it's probably fine to never include it in
13639 # preloaded symbol tables.
13640 extract_expsyms_cmds=
13643 cygwin* | mingw* | pw32*)
13644 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13645 # When not using gcc, we currently assume that we are using
13646 # Microsoft Visual C++.
13647 if test "$GCC" != yes; then
13657 if test "$with_gnu_ld" = yes; then
13658 # If archive_cmds runs LD, not CC, wlarc should be empty
13661 # See if GNU ld supports shared libraries.
13663 aix3* | aix4* | aix5*)
13664 # On AIX/PPC, the GNU linker is very broken
13665 if test "$host_cpu" != ia64; then
13669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13670 *** to be unable to reliably create shared libraries on AIX.
13671 *** Therefore, libtool is disabling shared libraries support. If you
13672 *** really care for shared libraries, you may want to modify your PATH
13673 *** so that a non-GNU linker is found, and then restart.
13680 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13681 hardcode_libdir_flag_spec_F77='-L$libdir'
13682 hardcode_minus_L_F77=yes
13684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13685 # that the semantics of dynamic libraries on AmigaOS, at least up
13686 # to version 4, is to share data among multiple programs linked
13687 # with the same dynamic library. Since this doesn't match the
13688 # behavior of shared libraries on other platforms, we can't use
13694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13695 allow_undefined_flag_F77=unsupported
13696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13697 # support --undefined. This deserves some investigation. FIXME
13698 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13704 cygwin* | mingw* | pw32*)
13705 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13706 # as there is no search path for DLLs.
13707 hardcode_libdir_flag_spec_F77='-L$libdir'
13708 allow_undefined_flag_F77=unsupported
13709 always_export_symbols_F77=no
13710 enable_shared_with_static_runtimes_F77=yes
13711 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13714 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13715 # If the export-symbols file already is a .def file (1st line
13716 # is EXPORTS), use it as is; otherwise, prepend...
13717 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13718 cp $export_symbols $output_objdir/$soname.def;
13720 echo EXPORTS > $output_objdir/$soname.def;
13721 cat $export_symbols >> $output_objdir/$soname.def;
13723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13731 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13735 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13740 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13745 *** create shared libraries on Solaris systems. Therefore, libtool
13746 *** is disabling shared libraries support. We urge you to upgrade GNU
13747 *** binutils to release 2.9.1 or newer. Another option is to modify
13748 *** your PATH or compiler configuration so that the native linker is
13749 *** used, and then restart.
13752 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13753 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13761 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13763 hardcode_direct_F77=yes
13764 hardcode_shlibpath_var_F77=no
13768 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13769 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13770 archive_cmds_F77="$tmp_archive_cmds"
13771 supports_anon_versioning=no
13772 case `$LD -v 2>/dev/null` in
13773 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13776 *\ 2.11.*) ;; # other 2.11 versions
13777 *) supports_anon_versioning=yes ;;
13779 if test $supports_anon_versioning = yes; then
13780 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13782 $echo "local: *; };" >> $output_objdir/$libname.ver~
13783 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13785 archive_expsym_cmds_F77="$tmp_archive_cmds"
13793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13795 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13802 if test "$ld_shlibs_F77" = yes; then
13803 runpath_var=LD_RUN_PATH
13804 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13805 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13806 # ancient GNU ld didn't support --whole-archive et. al.
13807 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13808 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13810 whole_archive_flag_spec_F77=
13814 # PORTME fill in a description of your system's linker (not GNU ld)
13817 allow_undefined_flag_F77=unsupported
13818 always_export_symbols_F77=yes
13819 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13820 # Note: this linker hardcodes the directories in LIBPATH if there
13821 # are no directories specified by -L.
13822 hardcode_minus_L_F77=yes
13823 if test "$GCC" = yes && test -z "$link_static_flag"; then
13824 # Neither direct hardcoding nor static linking is supported with a
13826 hardcode_direct_F77=unsupported
13831 if test "$host_cpu" = ia64; then
13832 # On IA64, the linker does run time linking by default, so we don't
13833 # have to do anything special.
13834 aix_use_runtimelinking=no
13835 exp_sym_flag='-Bexport'
13838 # If we're using GNU nm, then we don't want the "-C" option.
13839 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13840 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13841 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13843 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13845 aix_use_runtimelinking=no
13847 # Test if we are trying to use run time linking or normal
13848 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13849 # need to do runtime linking.
13850 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13851 for ld_flag in $LDFLAGS; do
13852 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13853 aix_use_runtimelinking=yes
13859 exp_sym_flag='-bexport'
13860 no_entry_flag='-bnoentry'
13863 # When large executables or shared objects are built, AIX ld can
13864 # have problems creating the table of contents. If linking a library
13865 # or program results in "error TOC overflow" add -mminimal-toc to
13866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13869 archive_cmds_F77=''
13870 hardcode_direct_F77=yes
13871 hardcode_libdir_separator_F77=':'
13872 link_all_deplibs_F77=yes
13874 if test "$GCC" = yes; then
13875 case $host_os in aix4.012|aix4.012.*)
13876 # We only want to do this on AIX 4.2 and lower, the check
13877 # below for broken collect2 doesn't work under 4.3+
13878 collect2name=`${CC} -print-prog-name=collect2`
13879 if test -f "$collect2name" && \
13880 strings "$collect2name" | grep resolve_lib_name >/dev/null
13882 # We have reworked collect2
13883 hardcode_direct_F77=yes
13885 # We have old collect2
13886 hardcode_direct_F77=unsupported
13887 # It fails to find uninstalled libraries when the uninstalled
13888 # path is not listed in the libpath. Setting hardcode_minus_L
13889 # to unsupported forces relinking
13890 hardcode_minus_L_F77=yes
13891 hardcode_libdir_flag_spec_F77='-L$libdir'
13892 hardcode_libdir_separator_F77=
13895 shared_flag='-shared'
13898 if test "$host_cpu" = ia64; then
13899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13900 # chokes on -Wl,-G. The following line is correct:
13903 if test "$aix_use_runtimelinking" = yes; then
13904 shared_flag='${wl}-G'
13906 shared_flag='${wl}-bM:SRE'
13911 # It seems that -bexpall does not export symbols beginning with
13912 # underscore (_), so it is better to generate a list of symbols to export.
13913 always_export_symbols_F77=yes
13914 if test "$aix_use_runtimelinking" = yes; then
13915 # Warning - without using the other runtime loading flags (-brtl),
13916 # -berok will link without error, but may produce a broken library.
13917 allow_undefined_flag_F77='-berok'
13918 # Determine the default libpath from the value encoded in an empty executable.
13919 cat >conftest.$ac_ext <<_ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13931 $as_echo "$ac_try_echo") >&5
13932 (eval "$ac_link") 2>conftest.er1
13934 grep -v '^ *+' conftest.er1 >conftest.err
13936 cat conftest.err >&5
13937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && {
13939 test -z "$ac_f77_werror_flag" ||
13940 test ! -s conftest.err
13941 } && test -s conftest$ac_exeext && {
13942 test "$cross_compiling" = yes ||
13943 $as_test_x conftest$ac_exeext
13946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13948 # Check for a 64-bit object if we didn't find anything.
13949 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13952 $as_echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13958 rm -rf conftest.dSYM
13959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13960 conftest$ac_exeext conftest.$ac_ext
13961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13963 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13964 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13966 if test "$host_cpu" = ia64; then
13967 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13968 allow_undefined_flag_F77="-z nodefs"
13969 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13971 # Determine the default libpath from the value encoded in an empty executable.
13972 cat >conftest.$ac_ext <<_ACEOF
13977 rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13984 $as_echo "$ac_try_echo") >&5
13985 (eval "$ac_link") 2>conftest.er1
13987 grep -v '^ *+' conftest.er1 >conftest.err
13989 cat conftest.err >&5
13990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } && {
13992 test -z "$ac_f77_werror_flag" ||
13993 test ! -s conftest.err
13994 } && test -s conftest$ac_exeext && {
13995 test "$cross_compiling" = yes ||
13996 $as_test_x conftest$ac_exeext
13999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14001 # Check for a 64-bit object if we didn't find anything.
14002 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14011 rm -rf conftest.dSYM
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013 conftest$ac_exeext conftest.$ac_ext
14014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14016 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14017 # Warning - without using the other run time loading flags,
14018 # -berok will link without error, but may produce a broken library.
14019 no_undefined_flag_F77=' ${wl}-bernotok'
14020 allow_undefined_flag_F77=' ${wl}-berok'
14021 # -bexpall does not export symbols beginning with underscore (_)
14022 always_export_symbols_F77=yes
14023 # Exported symbols can be pulled into shared objects from archives
14024 whole_archive_flag_spec_F77=' '
14025 archive_cmds_need_lc_F77=yes
14026 # This is similar to how AIX traditionally builds it's shared libraries.
14027 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14033 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14034 hardcode_libdir_flag_spec_F77='-L$libdir'
14035 hardcode_minus_L_F77=yes
14036 # see comment about different semantics on the GNU ld section
14041 export_dynamic_flag_spec_F77=-rdynamic
14044 cygwin* | mingw* | pw32*)
14045 # When not using gcc, we currently assume that we are using
14046 # Microsoft Visual C++.
14047 # hardcode_libdir_flag_spec is actually meaningless, as there is
14048 # no search path for DLLs.
14049 hardcode_libdir_flag_spec_F77=' '
14050 allow_undefined_flag_F77=unsupported
14051 # Tell ltmain to make .lib files, not .a files.
14053 # Tell ltmain to make .dll files, not .so files.
14055 # FIXME: Setting linknames here is a bad hack.
14056 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14057 # The linker will automatically build a .lib file if we build a DLL.
14058 old_archive_From_new_cmds_F77='true'
14059 # FIXME: Should let the user specify the lib program.
14060 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14061 fix_srcfile_path='`cygpath -w "$srcfile"`'
14062 enable_shared_with_static_runtimes_F77=yes
14065 darwin* | rhapsody*)
14066 if test "$GXX" = yes ; then
14067 archive_cmds_need_lc_F77=no
14069 rhapsody* | darwin1.[012])
14070 allow_undefined_flag_F77='-undefined suppress'
14073 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14074 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14076 case ${MACOSX_DEPLOYMENT_TARGET} in
14078 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14081 allow_undefined_flag_F77='-undefined dynamic_lookup'
14087 lt_int_apple_cc_single_mod=no
14088 output_verbose_link_cmd='echo'
14089 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14090 lt_int_apple_cc_single_mod=yes
14092 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14093 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14095 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14097 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14098 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14099 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14100 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14102 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14104 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14105 hardcode_direct_F77=no
14106 hardcode_automatic_F77=yes
14107 hardcode_shlibpath_var_F77=unsupported
14108 whole_archive_flag_spec_F77='-all_load $convenience'
14109 link_all_deplibs_F77=yes
14116 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14117 hardcode_libdir_flag_spec_F77='-L$libdir'
14118 hardcode_shlibpath_var_F77=no
14125 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14126 # support. Future versions do this automatically, but an explicit c++rt0.o
14127 # does not break anything, and helps significantly (at the cost of a little
14130 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14131 hardcode_libdir_flag_spec_F77='-R$libdir'
14132 hardcode_direct_F77=yes
14133 hardcode_shlibpath_var_F77=no
14136 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14138 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14139 hardcode_direct_F77=yes
14140 hardcode_minus_L_F77=yes
14141 hardcode_shlibpath_var_F77=no
14144 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14145 freebsd* | kfreebsd*-gnu)
14146 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14147 hardcode_libdir_flag_spec_F77='-R$libdir'
14148 hardcode_direct_F77=yes
14149 hardcode_shlibpath_var_F77=no
14153 if test "$GCC" = yes; then
14154 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14156 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14158 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14159 hardcode_libdir_separator_F77=:
14160 hardcode_direct_F77=yes
14162 # hardcode_minus_L: Not really in the search PATH,
14163 # but as the default location of the library.
14164 hardcode_minus_L_F77=yes
14165 export_dynamic_flag_spec_F77='${wl}-E'
14169 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14170 case "$host_cpu" in
14172 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14175 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14179 case "$host_cpu" in
14181 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14184 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14188 if test "$with_gnu_ld" = no; then
14189 case "$host_cpu" in
14191 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14192 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14193 hardcode_libdir_separator_F77=:
14194 hardcode_direct_F77=no
14195 hardcode_shlibpath_var_F77=no
14198 hardcode_libdir_flag_spec_F77='-L$libdir'
14199 hardcode_direct_F77=no
14200 hardcode_shlibpath_var_F77=no
14202 # hardcode_minus_L: Not really in the search PATH,
14203 # but as the default location of the library.
14204 hardcode_minus_L_F77=yes
14207 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14208 hardcode_libdir_separator_F77=:
14209 hardcode_direct_F77=yes
14210 export_dynamic_flag_spec_F77='${wl}-E'
14212 # hardcode_minus_L: Not really in the search PATH,
14213 # but as the default location of the library.
14214 hardcode_minus_L_F77=yes
14220 irix5* | irix6* | nonstopux*)
14221 if test "$GCC" = yes; then
14222 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14224 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14225 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14227 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14228 hardcode_libdir_separator_F77=:
14229 link_all_deplibs_F77=yes
14233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14234 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14236 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14238 hardcode_libdir_flag_spec_F77='-R$libdir'
14239 hardcode_direct_F77=yes
14240 hardcode_shlibpath_var_F77=no
14244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245 hardcode_direct_F77=yes
14246 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14247 hardcode_libdir_separator_F77=:
14248 hardcode_shlibpath_var_F77=no
14252 hardcode_direct_F77=yes
14253 hardcode_shlibpath_var_F77=no
14254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14255 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14256 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14257 export_dynamic_flag_spec_F77='${wl}-E'
14260 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14261 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14262 hardcode_libdir_flag_spec_F77='-R$libdir'
14265 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14266 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14273 hardcode_libdir_flag_spec_F77='-L$libdir'
14274 hardcode_minus_L_F77=yes
14275 allow_undefined_flag_F77=unsupported
14276 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14277 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14281 if test "$GCC" = yes; then
14282 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14283 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14285 allow_undefined_flag_F77=' -expect_unresolved \*'
14286 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14288 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14289 hardcode_libdir_separator_F77=:
14292 osf4* | osf5*) # as osf3* with the addition of -msym flag
14293 if test "$GCC" = yes; then
14294 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14295 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14296 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14298 allow_undefined_flag_F77=' -expect_unresolved \*'
14299 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14300 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14301 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14303 # Both c and cxx compiler support -rpath directly
14304 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14306 hardcode_libdir_separator_F77=:
14310 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_shlibpath_var_F77=no
14312 export_dynamic_flag_spec_F77='${wl}-Bexport'
14313 runpath_var=LD_RUN_PATH
14314 hardcode_runpath_var=yes
14318 no_undefined_flag_F77=' -z text'
14319 if test "$GCC" = yes; then
14320 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14321 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14322 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14324 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14325 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14326 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14328 hardcode_libdir_flag_spec_F77='-R$libdir'
14329 hardcode_shlibpath_var_F77=no
14331 solaris2.[0-5] | solaris2.[0-5].*) ;;
14332 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14333 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14335 link_all_deplibs_F77=yes
14339 if test "x$host_vendor" = xsequent; then
14340 # Use $CC to link under sequent, because it throws in some extra .o
14341 # files that make .init and .fini sections work.
14342 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14344 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_libdir_flag_spec_F77='-L$libdir'
14347 hardcode_direct_F77=yes
14348 hardcode_minus_L_F77=yes
14349 hardcode_shlibpath_var_F77=no
14353 case $host_vendor in
14355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14356 hardcode_direct_F77=yes # is this really true???
14359 ## LD is ld it makes a PLAMLIB
14360 ## CC just makes a GrossModule.
14361 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14362 reload_cmds_F77='$CC -r -o $output$reload_objs'
14363 hardcode_direct_F77=no
14366 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14367 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14370 runpath_var='LD_RUN_PATH'
14371 hardcode_shlibpath_var_F77=no
14375 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14376 hardcode_shlibpath_var_F77=no
14377 export_dynamic_flag_spec_F77='-Bexport'
14381 if test -d /usr/nec; then
14382 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14383 hardcode_shlibpath_var_F77=no
14384 runpath_var=LD_RUN_PATH
14385 hardcode_runpath_var=yes
14391 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14392 hardcode_direct_F77=yes
14393 hardcode_minus_L_F77=no
14394 hardcode_shlibpath_var_F77=no
14395 hardcode_runpath_var=yes
14396 runpath_var=LD_RUN_PATH
14399 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14400 no_undefined_flag_F77='${wl}-z ${wl}text'
14401 if test "$GCC" = yes; then
14402 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14404 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14406 runpath_var='LD_RUN_PATH'
14407 hardcode_shlibpath_var_F77=no
14411 no_undefined_flag_F77=' -z text'
14412 # $CC -shared without GNU ld will not create a library from C++
14413 # object files and a static libstdc++, better avoid it by now
14414 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14416 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14417 hardcode_libdir_flag_spec_F77=
14418 hardcode_shlibpath_var_F77=no
14419 runpath_var='LD_RUN_PATH'
14423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424 hardcode_libdir_flag_spec_F77='-L$libdir'
14425 hardcode_shlibpath_var_F77=no
14434 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14435 $as_echo "$ld_shlibs_F77" >&6; }
14436 test "$ld_shlibs_F77" = no && can_build_shared=no
14438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14439 if test "$GCC" = yes; then
14440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14444 # Do we need to explicitly link libc?
14446 case "x$archive_cmds_need_lc_F77" in
14448 # Assume -lc should be added
14449 archive_cmds_need_lc_F77=yes
14451 if test "$enable_shared" = yes && test "$GCC" = yes; then
14452 case $archive_cmds_F77 in
14454 # FIXME: we may have to deal with multi-command sequences.
14457 # Test whether the compiler implicitly links with -lc since on some
14458 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14459 # to ld, don't add -lc before -lgcc.
14460 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14461 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14463 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>&5
14468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } 2>conftest.err; then
14472 libobjs=conftest.$ac_objext
14474 wl=$lt_prog_compiler_wl_F77
14480 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14481 allow_undefined_flag_F77=
14482 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14483 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }
14488 archive_cmds_need_lc_F77=no
14490 archive_cmds_need_lc_F77=yes
14492 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14494 cat conftest.err 1>&5
14497 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14498 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14505 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14506 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14507 library_names_spec=
14508 libname_spec='lib$name'
14512 postuninstall_cmds=
14516 shlibpath_overrides_runpath=unknown
14518 dynamic_linker="$host_os ld.so"
14519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14520 if test "$GCC" = yes; then
14521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14522 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14523 # if the path contains ";" then we assume it to be the separator
14524 # otherwise default to the standard path separator (i.e. ":") - it is
14525 # assumed that no part of a normal pathname contains ";" but that should
14526 # okay in the real world where ";" in dirpaths is itself problematic.
14527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14532 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14534 need_lib_prefix=unknown
14535 hardcode_into_libs=no
14537 # when you set need_version to no, make sure it does not cause -set_version
14538 # flags to be left without arguments
14539 need_version=unknown
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14545 shlibpath_var=LIBPATH
14547 # AIX 3 has no versioning support, so we append a major version to the name.
14548 soname_spec='${libname}${release}${shared_ext}$major'
14555 hardcode_into_libs=yes
14556 if test "$host_cpu" = ia64; then
14557 # AIX 5 supports IA64
14558 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14559 shlibpath_var=LD_LIBRARY_PATH
14561 # With GCC up to 2.95.x, collect2 would create an import file
14562 # for dependence libraries. The import file would start with
14563 # the line `#! .'. This would cause the generated library to
14564 # depend on `.', always an invalid library. This was fixed in
14565 # development snapshots of GCC prior to 3.0.
14567 aix4 | aix4.[01] | aix4.[01].*)
14568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14570 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14573 can_build_shared=no
14577 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14578 # soname into executable. Probably we can add versioning support to
14579 # collect2, so additional links can be useful in future.
14580 if test "$aix_use_runtimelinking" = yes; then
14581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14582 # instead of lib<name>.a to let people know that these are not
14583 # typical AIX shared libraries.
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 # We preserve .a as extension for shared libraries through AIX4.2
14587 # and later when we are not doing run time linking.
14588 library_names_spec='${libname}${release}.a $libname.a'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14591 shlibpath_var=LIBPATH
14596 library_names_spec='$libname.ixlibrary $libname.a'
14597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14598 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'
14602 library_names_spec='${libname}${shared_ext}'
14603 dynamic_linker="$host_os ld.so"
14604 shlibpath_var=LIBRARY_PATH
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14616 # the default ld.so.conf also contains /usr/contrib/lib and
14617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14618 # libtool to hard-code these into programs
14621 cygwin* | mingw* | pw32*)
14622 version_type=windows
14627 case $GCC,$host_os in
14628 yes,cygwin* | yes,mingw* | yes,pw32*)
14629 library_names_spec='$libname.dll.a'
14630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14631 postinstall_cmds='base_file=`basename \${file}`~
14632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14633 dldir=$destdir/`dirname \$dlpath`~
14634 test -d \$dldir || mkdir -p \$dldir~
14635 $install_prog $dir/$dlname \$dldir/$dlname'
14636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14637 dlpath=$dir/\$dldll~
14639 shlibpath_overrides_runpath=yes
14643 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14644 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14645 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14648 # MinGW DLLs use traditional 'lib' prefix
14649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14651 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14652 # It is most probably a Windows format PATH printed by
14653 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14654 # path with ; separators, and with drive letters. We can handle the
14655 # drive letters (cygwin fileutils understands them), so leave them,
14656 # especially as we might pass files found there to a mingw objdump,
14657 # which wouldn't understand a cygwinified path. Ahh.
14658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14664 # pw32 DLLs use 'pw' prefix rather than 'lib'
14665 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14671 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14674 dynamic_linker='Win32 ld.exe'
14675 # FIXME: first we should search . and the directory the executable is in
14679 darwin* | rhapsody*)
14680 dynamic_linker="$host_os dyld"
14681 version_type=darwin
14684 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14685 soname_spec='${libname}${release}${major}$shared_ext'
14686 shlibpath_overrides_runpath=yes
14687 shlibpath_var=DYLD_LIBRARY_PATH
14688 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14689 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14690 if test "$GCC" = yes; then
14691 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14693 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14695 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 shlibpath_overrides_runpath=no
14719 hardcode_into_libs=yes
14720 dynamic_linker='GNU ld.so'
14724 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14725 version_type=freebsd-$objformat
14726 case $version_type in
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14737 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=yes
14742 freebsd3.01* | freebsdelf3.01*)
14743 shlibpath_overrides_runpath=yes
14744 hardcode_into_libs=yes
14747 shlibpath_overrides_runpath=no
14748 hardcode_into_libs=yes
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 hardcode_into_libs=yes
14763 hpux9* | hpux10* | hpux11*)
14764 # Give a soname corresponding to the major version so that dld.sl refuses to
14765 # link against other versions.
14769 case "$host_cpu" in
14772 hardcode_into_libs=yes
14773 dynamic_linker="$host_os dld.so"
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 if test "X$HPUX_IA64_MODE" = X32; then
14779 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14781 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14787 hardcode_into_libs=yes
14788 dynamic_linker="$host_os dld.sl"
14789 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14798 dynamic_linker="$host_os dld.sl"
14799 shlibpath_var=SHLIB_PATH
14800 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802 soname_spec='${libname}${release}${shared_ext}$major'
14805 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14806 postinstall_cmds='chmod 555 $lib'
14809 irix5* | irix6* | nonstopux*)
14811 nonstopux*) version_type=nonstopux ;;
14813 if test "$lt_cv_prog_gnu_ld" = yes; then
14821 soname_spec='${libname}${release}${shared_ext}$major'
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14824 irix5* | nonstopux*)
14825 libsuff= shlibsuff=
14828 case $LD in # libtool.m4 will add one of these switches to LD
14829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14830 libsuff= shlibsuff= libmagic=32-bit;;
14831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14832 libsuff=32 shlibsuff=N32 libmagic=N32;;
14833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14834 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14835 *) libsuff= shlibsuff= libmagic=never-match;;
14839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14840 shlibpath_overrides_runpath=no
14841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14843 hardcode_into_libs=yes
14846 # No shared lib support for Linux oldld, aout, or coff.
14847 linux*oldld* | linux*aout* | linux*coff*)
14851 # This must be Linux ELF.
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=no
14861 # This implies no fast_install, which is unacceptable.
14862 # Some rework will be needed to allow for fast_install
14863 # before this can be enabled.
14864 hardcode_into_libs=yes
14866 # We used to test for /lib/ld.so.1 and disable shared libraries on
14867 # powerpc, because MkLinux only supported shared libraries with the
14868 # GNU dynamic linker. Since this was broken with cross compilers,
14869 # most powerpc-linux boxes support dynamic linking these days and
14870 # people can always --disable-shared, the test was removed, and we
14871 # assume the GNU/Linux dynamic linker is in use.
14872 dynamic_linker='GNU/Linux ld.so'
14879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14882 dynamic_linker='NetBSD (a.out) ld.so'
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 dynamic_linker='NetBSD ld.elf_so'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=yes
14890 hardcode_into_libs=yes
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 shlibpath_overrides_runpath=yes
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14919 openbsd2.[89] | openbsd2.[89].*)
14920 shlibpath_overrides_runpath=no
14923 shlibpath_overrides_runpath=yes
14927 shlibpath_overrides_runpath=yes
14932 libname_spec='$name'
14935 library_names_spec='$libname${shared_ext} $libname.a'
14936 dynamic_linker='OS/2 ld.exe'
14937 shlibpath_var=LIBPATH
14940 osf3* | osf4* | osf5*)
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955 shlibpath_var=LD_LIBRARY_PATH
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath=yes
14966 hardcode_into_libs=yes
14967 # ldd complains unless libraries are executable
14968 postinstall_cmds='chmod +x $lib'
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath=yes
14977 if test "$with_gnu_ld" = yes; then
14983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 shlibpath_var=LD_LIBRARY_PATH
14988 case $host_vendor in
14990 shlibpath_overrides_runpath=no
14992 export_dynamic_flag_spec='${wl}-Blargedynsym'
14993 runpath_var=LD_RUN_PATH
15001 shlibpath_overrides_runpath=no
15002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15008 if test -d /usr/nec ;then
15010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15011 soname_spec='$libname${shared_ext}.$major'
15012 shlibpath_var=LD_LIBRARY_PATH
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 shlibpath_var=LD_LIBRARY_PATH
15027 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15028 $as_echo "$dynamic_linker" >&6; }
15029 test "$dynamic_linker" = no && can_build_shared=no
15031 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15032 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15033 hardcode_action_F77=
15034 if test -n "$hardcode_libdir_flag_spec_F77" || \
15035 test -n "$runpath_var F77" || \
15036 test "X$hardcode_automatic_F77"="Xyes" ; then
15038 # We can hardcode non-existant directories.
15039 if test "$hardcode_direct_F77" != no &&
15040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15041 # have to relink, otherwise we might link with an installed library
15042 # when we should be linking with a yet-to-be-installed one
15043 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15044 test "$hardcode_minus_L_F77" != no; then
15045 # Linking always hardcodes the temporary library directory.
15046 hardcode_action_F77=relink
15048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15049 hardcode_action_F77=immediate
15052 # We cannot hardcode anything, or else we can only hardcode existing
15054 hardcode_action_F77=unsupported
15056 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15057 $as_echo "$hardcode_action_F77" >&6; }
15059 if test "$hardcode_action_F77" = relink; then
15060 # Fast installation is not supported
15061 enable_fast_install=no
15062 elif test "$shlibpath_overrides_runpath" = yes ||
15063 test "$enable_shared" = no; then
15064 # Fast installation is not necessary
15065 enable_fast_install=needless
15070 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15071 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15072 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15073 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15074 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15075 { $as_echo "$as_me:$LINENO: result: yes" >&5
15076 $as_echo "yes" >&6; }
15078 # FIXME - insert some real tests, host_os isn't really good enough
15081 if test -n "$STRIP" ; then
15082 striplib="$STRIP -x"
15083 { $as_echo "$as_me:$LINENO: result: yes" >&5
15084 $as_echo "yes" >&6; }
15086 { $as_echo "$as_me:$LINENO: result: no" >&5
15087 $as_echo "no" >&6; }
15091 { $as_echo "$as_me:$LINENO: result: no" >&5
15092 $as_echo "no" >&6; }
15099 # The else clause should only fire when bootstrapping the
15100 # libtool distribution, otherwise you forgot to ship ltmain.sh
15101 # with your package, and you will get complaints that there are
15102 # no rules to generate ltmain.sh.
15103 if test -f "$ltmain"; then
15104 # See if we are running on zsh, and set the options which allow our commands through
15105 # without removal of \ escapes.
15106 if test -n "${ZSH_VERSION+set}" ; then
15107 setopt NO_GLOB_SUBST
15109 # Now quote all the things that may contain metacharacters while being
15110 # careful not to overquote the AC_SUBSTed values. We take copies of the
15111 # variables and quote the copies for generation of the libtool script.
15112 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15114 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15115 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15116 deplibs_check_method reload_flag reload_cmds need_locks \
15117 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15118 lt_cv_sys_global_symbol_to_c_name_address \
15119 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15120 old_postinstall_cmds old_postuninstall_cmds \
15124 lt_prog_compiler_wl_F77 \
15125 lt_prog_compiler_pic_F77 \
15126 lt_prog_compiler_static_F77 \
15127 lt_prog_compiler_no_builtin_flag_F77 \
15128 export_dynamic_flag_spec_F77 \
15129 thread_safe_flag_spec_F77 \
15130 whole_archive_flag_spec_F77 \
15131 enable_shared_with_static_runtimes_F77 \
15132 old_archive_cmds_F77 \
15133 old_archive_from_new_cmds_F77 \
15134 predep_objects_F77 \
15135 postdep_objects_F77 \
15138 compiler_lib_search_path_F77 \
15140 archive_expsym_cmds_F77 \
15141 postinstall_cmds_F77 \
15142 postuninstall_cmds_F77 \
15143 old_archive_from_expsyms_cmds_F77 \
15144 allow_undefined_flag_F77 \
15145 no_undefined_flag_F77 \
15146 export_symbols_cmds_F77 \
15147 hardcode_libdir_flag_spec_F77 \
15148 hardcode_libdir_flag_spec_ld_F77 \
15149 hardcode_libdir_separator_F77 \
15150 hardcode_automatic_F77 \
15152 module_expsym_cmds_F77 \
15153 lt_cv_prog_compiler_c_o_F77 \
15154 exclude_expsyms_F77 \
15155 include_expsyms_F77; do
15158 old_archive_cmds_F77 | \
15159 old_archive_from_new_cmds_F77 | \
15160 archive_cmds_F77 | \
15161 archive_expsym_cmds_F77 | \
15162 module_cmds_F77 | \
15163 module_expsym_cmds_F77 | \
15164 old_archive_from_expsyms_cmds_F77 | \
15165 export_symbols_cmds_F77 | \
15166 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15167 postinstall_cmds | postuninstall_cmds | \
15168 old_postinstall_cmds | old_postuninstall_cmds | \
15169 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15170 # Double-quote double-evaled strings.
15171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15180 *'\$0 --fallback-echo"')
15181 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15187 cat <<__EOF__ >> "$cfgfile"
15188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15192 # Shell to use when invoking shell scripts.
15195 # Whether or not to build shared libraries.
15196 build_libtool_libs=$enable_shared
15198 # Whether or not to build static libraries.
15199 build_old_libs=$enable_static
15201 # Whether or not to add -lc for building shared libraries.
15202 build_libtool_need_lc=$archive_cmds_need_lc_F77
15204 # Whether or not to disallow shared libs when runtime libs are static
15205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15207 # Whether or not to optimize for fast installation.
15208 fast_install=$enable_fast_install
15211 host_alias=$host_alias
15214 # An echo program that does not interpret backslashes.
15219 AR_FLAGS=$lt_AR_FLAGS
15224 # A language-specific compiler.
15225 CC=$lt_compiler_F77
15227 # Is the compiler the GNU C compiler?
15233 # The linker used to build libraries.
15236 # Whether we need hard or soft links.
15239 # A BSD-compatible nm program.
15242 # A symbol stripping program
15245 # Used to examine libraries when file_magic_cmd begins "file"
15246 MAGIC_CMD=$MAGIC_CMD
15248 # Used on cygwin: DLL creation program.
15251 # Used on cygwin: object dumper.
15254 # Used on cygwin: assembler.
15257 # The name of the directory that contains temporary libtool files.
15260 # How to create reloadable object files.
15261 reload_flag=$lt_reload_flag
15262 reload_cmds=$lt_reload_cmds
15264 # How to pass a linker flag through the compiler.
15265 wl=$lt_lt_prog_compiler_wl_F77
15267 # Object file suffix (normally "o").
15268 objext="$ac_objext"
15270 # Old archive suffix (normally "a").
15273 # Shared library suffix (normally ".so").
15276 # Executable file suffix (normally "").
15279 # Additional compiler flags for building library objects.
15280 pic_flag=$lt_lt_prog_compiler_pic_F77
15283 # What is the maximum length of a command?
15284 max_cmd_len=$lt_cv_sys_max_cmd_len
15286 # Does compiler simultaneously support -c and -o options?
15287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15289 # Must we lock files when doing compilation ?
15290 need_locks=$lt_need_locks
15292 # Do we need the lib prefix for modules?
15293 need_lib_prefix=$need_lib_prefix
15295 # Do we need a version for libraries?
15296 need_version=$need_version
15298 # Whether dlopen is supported.
15299 dlopen_support=$enable_dlopen
15301 # Whether dlopen of programs is supported.
15302 dlopen_self=$enable_dlopen_self
15304 # Whether dlopen of statically linked programs is supported.
15305 dlopen_self_static=$enable_dlopen_self_static
15307 # Compiler flag to prevent dynamic linking.
15308 link_static_flag=$lt_lt_prog_compiler_static_F77
15310 # Compiler flag to turn off builtin functions.
15311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15313 # Compiler flag to allow reflexive dlopens.
15314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15316 # Compiler flag to generate shared objects directly from archives.
15317 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15319 # Compiler flag to generate thread-safe objects.
15320 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15322 # Library versioning type.
15323 version_type=$version_type
15325 # Format of library name prefix.
15326 libname_spec=$lt_libname_spec
15328 # List of archive names. First name is the real one, the rest are links.
15329 # The last name is the one that the linker finds with -lNAME.
15330 library_names_spec=$lt_library_names_spec
15332 # The coded name of the library, if different from the real name.
15333 soname_spec=$lt_soname_spec
15335 # Commands used to build and install an old-style archive.
15337 old_archive_cmds=$lt_old_archive_cmds_F77
15338 old_postinstall_cmds=$lt_old_postinstall_cmds
15339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15341 # Create an old-style archive from a shared archive.
15342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15344 # Create a temporary old-style archive to link instead of a shared archive.
15345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15347 # Commands used to build and install a shared archive.
15348 archive_cmds=$lt_archive_cmds_F77
15349 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15350 postinstall_cmds=$lt_postinstall_cmds
15351 postuninstall_cmds=$lt_postuninstall_cmds
15353 # Commands used to build a loadable module (assumed same as above if empty)
15354 module_cmds=$lt_module_cmds_F77
15355 module_expsym_cmds=$lt_module_expsym_cmds_F77
15357 # Commands to strip libraries.
15358 old_striplib=$lt_old_striplib
15359 striplib=$lt_striplib
15361 # Dependencies to place before the objects being linked to create a
15363 predep_objects=$lt_predep_objects_F77
15365 # Dependencies to place after the objects being linked to create a
15367 postdep_objects=$lt_postdep_objects_F77
15369 # Dependencies to place before the objects being linked to create a
15371 predeps=$lt_predeps_F77
15373 # Dependencies to place after the objects being linked to create a
15375 postdeps=$lt_postdeps_F77
15377 # The library search path used internally by the compiler when linking
15378 # a shared library.
15379 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15381 # Method to check whether dependent libraries are shared objects.
15382 deplibs_check_method=$lt_deplibs_check_method
15384 # Command to use when deplibs_check_method == file_magic.
15385 file_magic_cmd=$lt_file_magic_cmd
15387 # Flag that allows shared libraries with undefined symbols to be built.
15388 allow_undefined_flag=$lt_allow_undefined_flag_F77
15390 # Flag that forces no undefined symbols.
15391 no_undefined_flag=$lt_no_undefined_flag_F77
15393 # Commands used to finish a libtool library installation in a directory.
15394 finish_cmds=$lt_finish_cmds
15396 # Same as above, but a single script fragment to be evaled but not shown.
15397 finish_eval=$lt_finish_eval
15399 # Take the output of nm and produce a listing of raw symbols and C names.
15400 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15402 # Transform the output of nm in a proper C declaration
15403 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15405 # Transform the output of nm in a C name address pair
15406 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15408 # This is the shared library runtime path variable.
15409 runpath_var=$runpath_var
15411 # This is the shared library path variable.
15412 shlibpath_var=$shlibpath_var
15414 # Is shlibpath searched before the hard-coded library search path?
15415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15417 # How to hardcode a shared library path into an executable.
15418 hardcode_action=$hardcode_action_F77
15420 # Whether we should hardcode library paths into libraries.
15421 hardcode_into_libs=$hardcode_into_libs
15423 # Flag to hardcode \$libdir into a binary during linking.
15424 # This must work even if \$libdir does not exist.
15425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15427 # If ld is used when linking, flag to hardcode \$libdir into
15428 # a binary during linking. This must work even if \$libdir does
15430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15432 # Whether we need a single -rpath flag with a separated argument.
15433 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15435 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15436 # resulting binary.
15437 hardcode_direct=$hardcode_direct_F77
15439 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15440 # resulting binary.
15441 hardcode_minus_L=$hardcode_minus_L_F77
15443 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15444 # the resulting binary.
15445 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15447 # Set to yes if building a shared library automatically hardcodes DIR into the library
15448 # and all subsequent libraries and executables linked against it.
15449 hardcode_automatic=$hardcode_automatic_F77
15451 # Variables whose values should be saved in libtool wrapper scripts and
15452 # restored at relink time.
15453 variables_saved_for_relink="$variables_saved_for_relink"
15455 # Whether libtool must link a program against all its dependency libraries.
15456 link_all_deplibs=$link_all_deplibs_F77
15458 # Compile-time system search path for libraries
15459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15461 # Run-time system search path for libraries
15462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15464 # Fix the shell variable \$srcfile for the compiler.
15465 fix_srcfile_path="$fix_srcfile_path_F77"
15467 # Set to yes if exported symbols are required.
15468 always_export_symbols=$always_export_symbols_F77
15470 # The commands to list exported symbols.
15471 export_symbols_cmds=$lt_export_symbols_cmds_F77
15473 # The commands to extract the exported symbol list from a shared archive.
15474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15476 # Symbols that should not be listed in the preloaded symbols.
15477 exclude_expsyms=$lt_exclude_expsyms_F77
15479 # Symbols that must always be exported.
15480 include_expsyms=$lt_include_expsyms_F77
15482 # ### END LIBTOOL TAG CONFIG: $tagname
15488 # If there is no Makefile yet, we rely on a make rule to execute
15489 # `config.status --recheck' to rerun these tests and create the
15490 # libtool script then.
15491 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15492 if test -f "$ltmain_in"; then
15493 test -f Makefile && make "$ltmain"
15499 ac_cpp='$CPP $CPPFLAGS'
15500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15512 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15515 # Source file extension for Java test sources.
15518 # Object file extension for compiled Java test sources.
15522 # Code to be used in simple compile tests
15523 lt_simple_compile_test_code="class foo {}\n"
15525 # Code to be used in simple link tests
15526 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15528 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15530 # If no C compiler was specified, use CC.
15533 # Allow CC to be a program name with arguments.
15537 # Allow CC to be a program name with arguments.
15543 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15544 archive_cmds_need_lc_GCJ=no
15547 ## There is no encapsulation within the following macros, do not change
15548 ## the running order or otherwise move them around unless you know exactly
15549 ## what you are doing...
15551 lt_prog_compiler_no_builtin_flag_GCJ=
15553 if test "$GCC" = yes; then
15554 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15557 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15558 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15559 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15560 $as_echo_n "(cached) " >&6
15562 lt_cv_prog_compiler_rtti_exceptions=no
15563 ac_outfile=conftest.$ac_objext
15564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15565 lt_compiler_flag="-fno-rtti -fno-exceptions"
15566 # Insert the option either (1) after the last *FLAGS variable, or
15567 # (2) before a word containing "conftest.", or (3) at the end.
15568 # Note that $ac_compile itself does not contain backslashes and begins
15569 # with a dollar sign (not a hyphen), so the echo should work correctly.
15570 # The option is referenced via a variable to avoid confusing sed.
15571 lt_compile=`echo "$ac_compile" | $SED \
15572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15574 -e 's:$: $lt_compiler_flag:'`
15575 (eval echo "\"\$as_me:15575: $lt_compile\"" >&5)
15576 (eval "$lt_compile" 2>conftest.err)
15578 cat conftest.err >&5
15579 echo "$as_me:15579: \$? = $ac_status" >&5
15580 if (exit $ac_status) && test -s "$ac_outfile"; then
15581 # The compiler can only warn and ignore the option if not recognized
15582 # So say no if there are warnings
15583 if test ! -s conftest.err; then
15584 lt_cv_prog_compiler_rtti_exceptions=yes
15590 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15591 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15594 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15601 lt_prog_compiler_wl_GCJ=
15602 lt_prog_compiler_pic_GCJ=
15603 lt_prog_compiler_static_GCJ=
15605 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15608 if test "$GCC" = yes; then
15609 lt_prog_compiler_wl_GCJ='-Wl,'
15610 lt_prog_compiler_static_GCJ='-static'
15614 # All AIX code is PIC.
15615 if test "$host_cpu" = ia64; then
15616 # AIX 5 now supports IA64 processor
15617 lt_prog_compiler_static_GCJ='-Bstatic'
15622 # FIXME: we need at least 68020 code to build shared libraries, but
15623 # adding the `-m68020' flag to GCC prevents building anything better,
15625 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15628 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15629 # PIC is the default for these OSes.
15632 mingw* | pw32* | os2*)
15633 # This hack is so that the source file can tell whether it is being
15634 # built for inclusion in a dll (and should export symbols for example).
15635 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15638 darwin* | rhapsody*)
15639 # PIC is the default on this platform
15640 # Common symbols not allowed in MH_DYLIB files
15641 lt_prog_compiler_pic_GCJ='-fno-common'
15645 # Just because we use GCC doesn't mean we suddenly get shared libraries
15646 # on systems that don't support them.
15647 lt_prog_compiler_can_build_shared_GCJ=no
15652 if test -d /usr/nec; then
15653 lt_prog_compiler_pic_GCJ=-Kconform_pic
15658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15659 # not for PA HP-UX.
15660 case "$host_cpu" in
15665 lt_prog_compiler_pic_GCJ='-fPIC'
15671 lt_prog_compiler_pic_GCJ='-fPIC'
15675 # PORTME Check for flag to pass linker flags through the system compiler.
15678 lt_prog_compiler_wl_GCJ='-Wl,'
15679 if test "$host_cpu" = ia64; then
15680 # AIX 5 now supports IA64 processor
15681 lt_prog_compiler_static_GCJ='-Bstatic'
15683 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15687 mingw* | pw32* | os2*)
15688 # This hack is so that the source file can tell whether it is being
15689 # built for inclusion in a dll (and should export symbols for example).
15690 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15693 hpux9* | hpux10* | hpux11*)
15694 lt_prog_compiler_wl_GCJ='-Wl,'
15695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15696 # not for PA HP-UX.
15697 case "$host_cpu" in
15702 lt_prog_compiler_pic_GCJ='+Z'
15705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15706 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15709 irix5* | irix6* | nonstopux*)
15710 lt_prog_compiler_wl_GCJ='-Wl,'
15711 # PIC (with -KPIC) is the default.
15712 lt_prog_compiler_static_GCJ='-non_shared'
15716 lt_prog_compiler_pic_GCJ='-KPIC'
15717 lt_prog_compiler_static_GCJ='-Bstatic'
15723 lt_prog_compiler_wl_GCJ='-Wl,'
15724 lt_prog_compiler_pic_GCJ='-KPIC'
15725 lt_prog_compiler_static_GCJ='-static'
15728 lt_prog_compiler_wl_GCJ='-Wl,'
15729 # All Alpha code is PIC.
15730 lt_prog_compiler_static_GCJ='-non_shared'
15735 osf3* | osf4* | osf5*)
15736 lt_prog_compiler_wl_GCJ='-Wl,'
15737 # All OSF/1 code is PIC.
15738 lt_prog_compiler_static_GCJ='-non_shared'
15742 lt_prog_compiler_pic_GCJ='-Kpic'
15743 lt_prog_compiler_static_GCJ='-dn'
15747 lt_prog_compiler_wl_GCJ='-Wl,'
15748 lt_prog_compiler_pic_GCJ='-KPIC'
15749 lt_prog_compiler_static_GCJ='-Bstatic'
15753 lt_prog_compiler_wl_GCJ='-Qoption ld '
15754 lt_prog_compiler_pic_GCJ='-PIC'
15755 lt_prog_compiler_static_GCJ='-Bstatic'
15758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15759 lt_prog_compiler_wl_GCJ='-Wl,'
15760 lt_prog_compiler_pic_GCJ='-KPIC'
15761 lt_prog_compiler_static_GCJ='-Bstatic'
15765 if test -d /usr/nec ;then
15766 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15767 lt_prog_compiler_static_GCJ='-Bstatic'
15772 lt_prog_compiler_pic_GCJ='-pic'
15773 lt_prog_compiler_static_GCJ='-Bstatic'
15777 lt_prog_compiler_can_build_shared_GCJ=no
15782 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15783 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15786 # Check to make sure the PIC flag actually works.
15788 if test -n "$lt_prog_compiler_pic_GCJ"; then
15790 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15791 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15792 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15793 $as_echo_n "(cached) " >&6
15795 lt_prog_compiler_pic_works_GCJ=no
15796 ac_outfile=conftest.$ac_objext
15797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15798 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15799 # Insert the option either (1) after the last *FLAGS variable, or
15800 # (2) before a word containing "conftest.", or (3) at the end.
15801 # Note that $ac_compile itself does not contain backslashes and begins
15802 # with a dollar sign (not a hyphen), so the echo should work correctly.
15803 # The option is referenced via a variable to avoid confusing sed.
15804 lt_compile=`echo "$ac_compile" | $SED \
15805 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15807 -e 's:$: $lt_compiler_flag:'`
15808 (eval echo "\"\$as_me:15808: $lt_compile\"" >&5)
15809 (eval "$lt_compile" 2>conftest.err)
15811 cat conftest.err >&5
15812 echo "$as_me:15812: \$? = $ac_status" >&5
15813 if (exit $ac_status) && test -s "$ac_outfile"; then
15814 # The compiler can only warn and ignore the option if not recognized
15815 # So say no if there are warnings
15816 if test ! -s conftest.err; then
15817 lt_prog_compiler_pic_works_GCJ=yes
15823 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15824 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15826 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15827 case $lt_prog_compiler_pic_GCJ in
15829 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15832 lt_prog_compiler_pic_GCJ=
15833 lt_prog_compiler_can_build_shared_GCJ=no
15838 # For platforms which do not support PIC, -DPIC is meaningless:
15840 lt_prog_compiler_pic_GCJ=
15843 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15847 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15849 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15850 $as_echo_n "(cached) " >&6
15852 lt_cv_prog_compiler_c_o_GCJ=no
15853 $rm -r conftest 2>/dev/null
15857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15859 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15860 # that will create temporary files in the current directory regardless of
15861 # the output directory. Thus, making CWD read-only will cause this test
15862 # to fail, enabling locking or at least warning the user not to do parallel
15866 lt_compiler_flag="-o out/conftest2.$ac_objext"
15867 # Insert the option either (1) after the last *FLAGS variable, or
15868 # (2) before a word containing "conftest.", or (3) at the end.
15869 # Note that $ac_compile itself does not contain backslashes and begins
15870 # with a dollar sign (not a hyphen), so the echo should work correctly.
15871 lt_compile=`echo "$ac_compile" | $SED \
15872 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15874 -e 's:$: $lt_compiler_flag:'`
15875 (eval echo "\"\$as_me:15875: $lt_compile\"" >&5)
15876 (eval "$lt_compile" 2>out/conftest.err)
15878 cat out/conftest.err >&5
15879 echo "$as_me:15879: \$? = $ac_status" >&5
15880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15882 # The compiler can only warn and ignore the option if not recognized
15883 # So say no if there are warnings
15884 if test ! -s out/conftest.err; then
15885 lt_cv_prog_compiler_c_o_GCJ=yes
15890 # SGI C++ compiler will create directory out/ii_files/ for
15891 # template instantiation
15892 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15893 $rm out/* && rmdir out
15899 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15900 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15903 hard_links="nottested"
15904 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15905 # do not overwrite the value of need_locks provided by the user
15906 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15907 $as_echo_n "checking if we can lock with hard links... " >&6; }
15910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15912 ln conftest.a conftest.b 2>&5 || hard_links=no
15913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15914 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15915 $as_echo "$hard_links" >&6; }
15916 if test "$hard_links" = no; then
15917 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15918 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15925 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15926 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15929 allow_undefined_flag_GCJ=
15930 enable_shared_with_static_runtimes_GCJ=no
15932 archive_expsym_cmds_GCJ=
15933 old_archive_From_new_cmds_GCJ=
15934 old_archive_from_expsyms_cmds_GCJ=
15935 export_dynamic_flag_spec_GCJ=
15936 whole_archive_flag_spec_GCJ=
15937 thread_safe_flag_spec_GCJ=
15938 hardcode_libdir_flag_spec_GCJ=
15939 hardcode_libdir_flag_spec_ld_GCJ=
15940 hardcode_libdir_separator_GCJ=
15941 hardcode_direct_GCJ=no
15942 hardcode_minus_L_GCJ=no
15943 hardcode_shlibpath_var_GCJ=unsupported
15944 link_all_deplibs_GCJ=unknown
15945 hardcode_automatic_GCJ=no
15947 module_expsym_cmds_GCJ=
15948 always_export_symbols_GCJ=no
15949 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15950 # include_expsyms should be a list of space-separated symbols to be *always*
15951 # included in the symbol list
15952 include_expsyms_GCJ=
15953 # exclude_expsyms can be an extended regexp of symbols to exclude
15954 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15955 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15956 # as well as any symbol that contains `d'.
15957 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15958 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15959 # platforms (ab)use it in PIC code, but their linkers get confused if
15960 # the symbol is explicitly referenced. Since portable code cannot
15961 # rely on this symbol name, it's probably fine to never include it in
15962 # preloaded symbol tables.
15963 extract_expsyms_cmds=
15966 cygwin* | mingw* | pw32*)
15967 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15968 # When not using gcc, we currently assume that we are using
15969 # Microsoft Visual C++.
15970 if test "$GCC" != yes; then
15980 if test "$with_gnu_ld" = yes; then
15981 # If archive_cmds runs LD, not CC, wlarc should be empty
15984 # See if GNU ld supports shared libraries.
15986 aix3* | aix4* | aix5*)
15987 # On AIX/PPC, the GNU linker is very broken
15988 if test "$host_cpu" != ia64; then
15992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15993 *** to be unable to reliably create shared libraries on AIX.
15994 *** Therefore, libtool is disabling shared libraries support. If you
15995 *** really care for shared libraries, you may want to modify your PATH
15996 *** so that a non-GNU linker is found, and then restart.
16003 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005 hardcode_minus_L_GCJ=yes
16007 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16008 # that the semantics of dynamic libraries on AmigaOS, at least up
16009 # to version 4, is to share data among multiple programs linked
16010 # with the same dynamic library. Since this doesn't match the
16011 # behavior of shared libraries on other platforms, we can't use
16017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16018 allow_undefined_flag_GCJ=unsupported
16019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16020 # support --undefined. This deserves some investigation. FIXME
16021 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16027 cygwin* | mingw* | pw32*)
16028 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16029 # as there is no search path for DLLs.
16030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16031 allow_undefined_flag_GCJ=unsupported
16032 always_export_symbols_GCJ=no
16033 enable_shared_with_static_runtimes_GCJ=yes
16034 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16036 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16037 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16038 # If the export-symbols file already is a .def file (1st line
16039 # is EXPORTS), use it as is; otherwise, prepend...
16040 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16041 cp $export_symbols $output_objdir/$soname.def;
16043 echo EXPORTS > $output_objdir/$soname.def;
16044 cat $export_symbols >> $output_objdir/$soname.def;
16046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16054 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16063 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16068 *** create shared libraries on Solaris systems. Therefore, libtool
16069 *** is disabling shared libraries support. We urge you to upgrade GNU
16070 *** binutils to release 2.9.1 or newer. Another option is to modify
16071 *** your PATH or compiler configuration so that the native linker is
16072 *** used, and then restart.
16075 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16084 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_direct_GCJ=yes
16087 hardcode_shlibpath_var_GCJ=no
16091 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16092 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16093 archive_cmds_GCJ="$tmp_archive_cmds"
16094 supports_anon_versioning=no
16095 case `$LD -v 2>/dev/null` in
16096 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16099 *\ 2.11.*) ;; # other 2.11 versions
16100 *) supports_anon_versioning=yes ;;
16102 if test $supports_anon_versioning = yes; then
16103 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16105 $echo "local: *; };" >> $output_objdir/$libname.ver~
16106 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16108 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16117 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16118 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16125 if test "$ld_shlibs_GCJ" = yes; then
16126 runpath_var=LD_RUN_PATH
16127 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16128 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16129 # ancient GNU ld didn't support --whole-archive et. al.
16130 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16131 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16133 whole_archive_flag_spec_GCJ=
16137 # PORTME fill in a description of your system's linker (not GNU ld)
16140 allow_undefined_flag_GCJ=unsupported
16141 always_export_symbols_GCJ=yes
16142 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16143 # Note: this linker hardcodes the directories in LIBPATH if there
16144 # are no directories specified by -L.
16145 hardcode_minus_L_GCJ=yes
16146 if test "$GCC" = yes && test -z "$link_static_flag"; then
16147 # Neither direct hardcoding nor static linking is supported with a
16149 hardcode_direct_GCJ=unsupported
16154 if test "$host_cpu" = ia64; then
16155 # On IA64, the linker does run time linking by default, so we don't
16156 # have to do anything special.
16157 aix_use_runtimelinking=no
16158 exp_sym_flag='-Bexport'
16161 # If we're using GNU nm, then we don't want the "-C" option.
16162 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16163 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16164 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16166 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16168 aix_use_runtimelinking=no
16170 # Test if we are trying to use run time linking or normal
16171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16172 # need to do runtime linking.
16173 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16174 for ld_flag in $LDFLAGS; do
16175 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16176 aix_use_runtimelinking=yes
16182 exp_sym_flag='-bexport'
16183 no_entry_flag='-bnoentry'
16186 # When large executables or shared objects are built, AIX ld can
16187 # have problems creating the table of contents. If linking a library
16188 # or program results in "error TOC overflow" add -mminimal-toc to
16189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16192 archive_cmds_GCJ=''
16193 hardcode_direct_GCJ=yes
16194 hardcode_libdir_separator_GCJ=':'
16195 link_all_deplibs_GCJ=yes
16197 if test "$GCC" = yes; then
16198 case $host_os in aix4.012|aix4.012.*)
16199 # We only want to do this on AIX 4.2 and lower, the check
16200 # below for broken collect2 doesn't work under 4.3+
16201 collect2name=`${CC} -print-prog-name=collect2`
16202 if test -f "$collect2name" && \
16203 strings "$collect2name" | grep resolve_lib_name >/dev/null
16205 # We have reworked collect2
16206 hardcode_direct_GCJ=yes
16208 # We have old collect2
16209 hardcode_direct_GCJ=unsupported
16210 # It fails to find uninstalled libraries when the uninstalled
16211 # path is not listed in the libpath. Setting hardcode_minus_L
16212 # to unsupported forces relinking
16213 hardcode_minus_L_GCJ=yes
16214 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16215 hardcode_libdir_separator_GCJ=
16218 shared_flag='-shared'
16221 if test "$host_cpu" = ia64; then
16222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16223 # chokes on -Wl,-G. The following line is correct:
16226 if test "$aix_use_runtimelinking" = yes; then
16227 shared_flag='${wl}-G'
16229 shared_flag='${wl}-bM:SRE'
16234 # It seems that -bexpall does not export symbols beginning with
16235 # underscore (_), so it is better to generate a list of symbols to export.
16236 always_export_symbols_GCJ=yes
16237 if test "$aix_use_runtimelinking" = yes; then
16238 # Warning - without using the other runtime loading flags (-brtl),
16239 # -berok will link without error, but may produce a broken library.
16240 allow_undefined_flag_GCJ='-berok'
16241 # Determine the default libpath from the value encoded in an empty executable.
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (ac_try="$ac_link"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16264 $as_echo "$ac_try_echo") >&5
16265 (eval "$ac_link") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_c_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest$ac_exeext && {
16275 test "$cross_compiling" = yes ||
16276 $as_test_x conftest$ac_exeext
16279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16281 # Check for a 64-bit object if we didn't find anything.
16282 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16291 rm -rf conftest.dSYM
16292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16293 conftest$ac_exeext conftest.$ac_ext
16294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16296 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16297 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16299 if test "$host_cpu" = ia64; then
16300 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16301 allow_undefined_flag_GCJ="-z nodefs"
16302 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16304 # Determine the default libpath from the value encoded in an empty executable.
16305 cat >conftest.$ac_ext <<_ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16327 $as_echo "$ac_try_echo") >&5
16328 (eval "$ac_link") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && {
16335 test -z "$ac_c_werror_flag" ||
16336 test ! -s conftest.err
16337 } && test -s conftest$ac_exeext && {
16338 test "$cross_compiling" = yes ||
16339 $as_test_x conftest$ac_exeext
16342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16344 # Check for a 64-bit object if we didn't find anything.
16345 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16348 $as_echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16354 rm -rf conftest.dSYM
16355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16356 conftest$ac_exeext conftest.$ac_ext
16357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16360 # Warning - without using the other run time loading flags,
16361 # -berok will link without error, but may produce a broken library.
16362 no_undefined_flag_GCJ=' ${wl}-bernotok'
16363 allow_undefined_flag_GCJ=' ${wl}-berok'
16364 # -bexpall does not export symbols beginning with underscore (_)
16365 always_export_symbols_GCJ=yes
16366 # Exported symbols can be pulled into shared objects from archives
16367 whole_archive_flag_spec_GCJ=' '
16368 archive_cmds_need_lc_GCJ=yes
16369 # This is similar to how AIX traditionally builds it's shared libraries.
16370 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16376 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16377 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16378 hardcode_minus_L_GCJ=yes
16379 # see comment about different semantics on the GNU ld section
16384 export_dynamic_flag_spec_GCJ=-rdynamic
16387 cygwin* | mingw* | pw32*)
16388 # When not using gcc, we currently assume that we are using
16389 # Microsoft Visual C++.
16390 # hardcode_libdir_flag_spec is actually meaningless, as there is
16391 # no search path for DLLs.
16392 hardcode_libdir_flag_spec_GCJ=' '
16393 allow_undefined_flag_GCJ=unsupported
16394 # Tell ltmain to make .lib files, not .a files.
16396 # Tell ltmain to make .dll files, not .so files.
16398 # FIXME: Setting linknames here is a bad hack.
16399 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16400 # The linker will automatically build a .lib file if we build a DLL.
16401 old_archive_From_new_cmds_GCJ='true'
16402 # FIXME: Should let the user specify the lib program.
16403 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16404 fix_srcfile_path='`cygpath -w "$srcfile"`'
16405 enable_shared_with_static_runtimes_GCJ=yes
16408 darwin* | rhapsody*)
16409 if test "$GXX" = yes ; then
16410 archive_cmds_need_lc_GCJ=no
16412 rhapsody* | darwin1.[012])
16413 allow_undefined_flag_GCJ='-undefined suppress'
16416 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16417 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16419 case ${MACOSX_DEPLOYMENT_TARGET} in
16421 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16424 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16430 lt_int_apple_cc_single_mod=no
16431 output_verbose_link_cmd='echo'
16432 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16433 lt_int_apple_cc_single_mod=yes
16435 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16436 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16438 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16440 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16442 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16443 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16445 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16447 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16448 hardcode_direct_GCJ=no
16449 hardcode_automatic_GCJ=yes
16450 hardcode_shlibpath_var_GCJ=unsupported
16451 whole_archive_flag_spec_GCJ='-all_load $convenience'
16452 link_all_deplibs_GCJ=yes
16459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16461 hardcode_shlibpath_var_GCJ=no
16468 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16469 # support. Future versions do this automatically, but an explicit c++rt0.o
16470 # does not break anything, and helps significantly (at the cost of a little
16473 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16474 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16475 hardcode_direct_GCJ=yes
16476 hardcode_shlibpath_var_GCJ=no
16479 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16481 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16482 hardcode_direct_GCJ=yes
16483 hardcode_minus_L_GCJ=yes
16484 hardcode_shlibpath_var_GCJ=no
16487 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16488 freebsd* | kfreebsd*-gnu)
16489 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16491 hardcode_direct_GCJ=yes
16492 hardcode_shlibpath_var_GCJ=no
16496 if test "$GCC" = yes; then
16497 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16499 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16501 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16502 hardcode_libdir_separator_GCJ=:
16503 hardcode_direct_GCJ=yes
16505 # hardcode_minus_L: Not really in the search PATH,
16506 # but as the default location of the library.
16507 hardcode_minus_L_GCJ=yes
16508 export_dynamic_flag_spec_GCJ='${wl}-E'
16512 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16513 case "$host_cpu" in
16515 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16522 case "$host_cpu" in
16524 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16527 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16531 if test "$with_gnu_ld" = no; then
16532 case "$host_cpu" in
16534 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16535 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16536 hardcode_libdir_separator_GCJ=:
16537 hardcode_direct_GCJ=no
16538 hardcode_shlibpath_var_GCJ=no
16541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16542 hardcode_direct_GCJ=no
16543 hardcode_shlibpath_var_GCJ=no
16545 # hardcode_minus_L: Not really in the search PATH,
16546 # but as the default location of the library.
16547 hardcode_minus_L_GCJ=yes
16550 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16551 hardcode_libdir_separator_GCJ=:
16552 hardcode_direct_GCJ=yes
16553 export_dynamic_flag_spec_GCJ='${wl}-E'
16555 # hardcode_minus_L: Not really in the search PATH,
16556 # but as the default location of the library.
16557 hardcode_minus_L_GCJ=yes
16563 irix5* | irix6* | nonstopux*)
16564 if test "$GCC" = yes; then
16565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16567 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16568 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16570 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16571 hardcode_libdir_separator_GCJ=:
16572 link_all_deplibs_GCJ=yes
16576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16577 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16579 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16581 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16582 hardcode_direct_GCJ=yes
16583 hardcode_shlibpath_var_GCJ=no
16587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588 hardcode_direct_GCJ=yes
16589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16590 hardcode_libdir_separator_GCJ=:
16591 hardcode_shlibpath_var_GCJ=no
16595 hardcode_direct_GCJ=yes
16596 hardcode_shlibpath_var_GCJ=no
16597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16598 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16600 export_dynamic_flag_spec_GCJ='${wl}-E'
16603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16604 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16608 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16617 hardcode_minus_L_GCJ=yes
16618 allow_undefined_flag_GCJ=unsupported
16619 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16620 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16624 if test "$GCC" = yes; then
16625 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16626 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16628 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16629 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16632 hardcode_libdir_separator_GCJ=:
16635 osf4* | osf5*) # as osf3* with the addition of -msym flag
16636 if test "$GCC" = yes; then
16637 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16638 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16641 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16642 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16643 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16644 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16646 # Both c and cxx compiler support -rpath directly
16647 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16649 hardcode_libdir_separator_GCJ=:
16653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_shlibpath_var_GCJ=no
16655 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16656 runpath_var=LD_RUN_PATH
16657 hardcode_runpath_var=yes
16661 no_undefined_flag_GCJ=' -z text'
16662 if test "$GCC" = yes; then
16663 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16664 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16665 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16667 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16671 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16672 hardcode_shlibpath_var_GCJ=no
16674 solaris2.[0-5] | solaris2.[0-5].*) ;;
16675 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16676 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16678 link_all_deplibs_GCJ=yes
16682 if test "x$host_vendor" = xsequent; then
16683 # Use $CC to link under sequent, because it throws in some extra .o
16684 # files that make .init and .fini sections work.
16685 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16687 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16690 hardcode_direct_GCJ=yes
16691 hardcode_minus_L_GCJ=yes
16692 hardcode_shlibpath_var_GCJ=no
16696 case $host_vendor in
16698 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_direct_GCJ=yes # is this really true???
16702 ## LD is ld it makes a PLAMLIB
16703 ## CC just makes a GrossModule.
16704 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16705 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16706 hardcode_direct_GCJ=no
16709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16713 runpath_var='LD_RUN_PATH'
16714 hardcode_shlibpath_var_GCJ=no
16718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_shlibpath_var_GCJ=no
16720 export_dynamic_flag_spec_GCJ='-Bexport'
16724 if test -d /usr/nec; then
16725 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_shlibpath_var_GCJ=no
16727 runpath_var=LD_RUN_PATH
16728 hardcode_runpath_var=yes
16734 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_direct_GCJ=yes
16736 hardcode_minus_L_GCJ=no
16737 hardcode_shlibpath_var_GCJ=no
16738 hardcode_runpath_var=yes
16739 runpath_var=LD_RUN_PATH
16742 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16743 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16744 if test "$GCC" = yes; then
16745 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 runpath_var='LD_RUN_PATH'
16750 hardcode_shlibpath_var_GCJ=no
16754 no_undefined_flag_GCJ=' -z text'
16755 # $CC -shared without GNU ld will not create a library from C++
16756 # object files and a static libstdc++, better avoid it by now
16757 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16758 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16760 hardcode_libdir_flag_spec_GCJ=
16761 hardcode_shlibpath_var_GCJ=no
16762 runpath_var='LD_RUN_PATH'
16766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16768 hardcode_shlibpath_var_GCJ=no
16777 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16778 $as_echo "$ld_shlibs_GCJ" >&6; }
16779 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16782 if test "$GCC" = yes; then
16783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16787 # Do we need to explicitly link libc?
16789 case "x$archive_cmds_need_lc_GCJ" in
16791 # Assume -lc should be added
16792 archive_cmds_need_lc_GCJ=yes
16794 if test "$enable_shared" = yes && test "$GCC" = yes; then
16795 case $archive_cmds_GCJ in
16797 # FIXME: we may have to deal with multi-command sequences.
16800 # Test whether the compiler implicitly links with -lc since on some
16801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16802 # to ld, don't add -lc before -lgcc.
16803 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16804 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16809 (eval $ac_compile) 2>&5
16811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } 2>conftest.err; then
16815 libobjs=conftest.$ac_objext
16817 wl=$lt_prog_compiler_wl_GCJ
16823 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16824 allow_undefined_flag_GCJ=
16825 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16826 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }
16831 archive_cmds_need_lc_GCJ=no
16833 archive_cmds_need_lc_GCJ=yes
16835 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16837 cat conftest.err 1>&5
16840 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16841 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16848 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16849 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16850 library_names_spec=
16851 libname_spec='lib$name'
16855 postuninstall_cmds=
16859 shlibpath_overrides_runpath=unknown
16861 dynamic_linker="$host_os ld.so"
16862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16863 if test "$GCC" = yes; then
16864 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16865 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16866 # if the path contains ";" then we assume it to be the separator
16867 # otherwise default to the standard path separator (i.e. ":") - it is
16868 # assumed that no part of a normal pathname contains ";" but that should
16869 # okay in the real world where ";" in dirpaths is itself problematic.
16870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16875 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16877 need_lib_prefix=unknown
16878 hardcode_into_libs=no
16880 # when you set need_version to no, make sure it does not cause -set_version
16881 # flags to be left without arguments
16882 need_version=unknown
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16888 shlibpath_var=LIBPATH
16890 # AIX 3 has no versioning support, so we append a major version to the name.
16891 soname_spec='${libname}${release}${shared_ext}$major'
16898 hardcode_into_libs=yes
16899 if test "$host_cpu" = ia64; then
16900 # AIX 5 supports IA64
16901 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16902 shlibpath_var=LD_LIBRARY_PATH
16904 # With GCC up to 2.95.x, collect2 would create an import file
16905 # for dependence libraries. The import file would start with
16906 # the line `#! .'. This would cause the generated library to
16907 # depend on `.', always an invalid library. This was fixed in
16908 # development snapshots of GCC prior to 3.0.
16910 aix4 | aix4.[01] | aix4.[01].*)
16911 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16913 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16916 can_build_shared=no
16920 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16921 # soname into executable. Probably we can add versioning support to
16922 # collect2, so additional links can be useful in future.
16923 if test "$aix_use_runtimelinking" = yes; then
16924 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16925 # instead of lib<name>.a to let people know that these are not
16926 # typical AIX shared libraries.
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16929 # We preserve .a as extension for shared libraries through AIX4.2
16930 # and later when we are not doing run time linking.
16931 library_names_spec='${libname}${release}.a $libname.a'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16934 shlibpath_var=LIBPATH
16939 library_names_spec='$libname.ixlibrary $libname.a'
16940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16941 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'
16945 library_names_spec='${libname}${shared_ext}'
16946 dynamic_linker="$host_os ld.so"
16947 shlibpath_var=LIBRARY_PATH
16953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16954 soname_spec='${libname}${release}${shared_ext}$major'
16955 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16958 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16959 # the default ld.so.conf also contains /usr/contrib/lib and
16960 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16961 # libtool to hard-code these into programs
16964 cygwin* | mingw* | pw32*)
16965 version_type=windows
16970 case $GCC,$host_os in
16971 yes,cygwin* | yes,mingw* | yes,pw32*)
16972 library_names_spec='$libname.dll.a'
16973 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16974 postinstall_cmds='base_file=`basename \${file}`~
16975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16976 dldir=$destdir/`dirname \$dlpath`~
16977 test -d \$dldir || mkdir -p \$dldir~
16978 $install_prog $dir/$dlname \$dldir/$dlname'
16979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16980 dlpath=$dir/\$dldll~
16982 shlibpath_overrides_runpath=yes
16986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16991 # MinGW DLLs use traditional 'lib' prefix
16992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16995 # It is most probably a Windows format PATH printed by
16996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16997 # path with ; separators, and with drive letters. We can handle the
16998 # drive letters (cygwin fileutils understands them), so leave them,
16999 # especially as we might pass files found there to a mingw objdump,
17000 # which wouldn't understand a cygwinified path. Ahh.
17001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17007 # pw32 DLLs use 'pw' prefix rather than 'lib'
17008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17017 dynamic_linker='Win32 ld.exe'
17018 # FIXME: first we should search . and the directory the executable is in
17022 darwin* | rhapsody*)
17023 dynamic_linker="$host_os dyld"
17024 version_type=darwin
17027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17028 soname_spec='${libname}${release}${major}$shared_ext'
17029 shlibpath_overrides_runpath=yes
17030 shlibpath_var=DYLD_LIBRARY_PATH
17031 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17033 if test "$GCC" = yes; then
17034 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17046 soname_spec='${libname}${release}${shared_ext}$major'
17047 shlibpath_var=LD_LIBRARY_PATH
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 shlibpath_var=LD_LIBRARY_PATH
17061 shlibpath_overrides_runpath=no
17062 hardcode_into_libs=yes
17063 dynamic_linker='GNU ld.so'
17067 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17068 version_type=freebsd-$objformat
17069 case $version_type in
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17080 shlibpath_var=LD_LIBRARY_PATH
17083 shlibpath_overrides_runpath=yes
17085 freebsd3.01* | freebsdelf3.01*)
17086 shlibpath_overrides_runpath=yes
17087 hardcode_into_libs=yes
17090 shlibpath_overrides_runpath=no
17091 hardcode_into_libs=yes
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17101 soname_spec='${libname}${release}${shared_ext}$major'
17102 shlibpath_var=LD_LIBRARY_PATH
17103 hardcode_into_libs=yes
17106 hpux9* | hpux10* | hpux11*)
17107 # Give a soname corresponding to the major version so that dld.sl refuses to
17108 # link against other versions.
17112 case "$host_cpu" in
17115 hardcode_into_libs=yes
17116 dynamic_linker="$host_os dld.so"
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 if test "X$HPUX_IA64_MODE" = X32; then
17122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17130 hardcode_into_libs=yes
17131 dynamic_linker="$host_os dld.sl"
17132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17141 dynamic_linker="$host_os dld.sl"
17142 shlibpath_var=SHLIB_PATH
17143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145 soname_spec='${libname}${release}${shared_ext}$major'
17148 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17149 postinstall_cmds='chmod 555 $lib'
17152 irix5* | irix6* | nonstopux*)
17154 nonstopux*) version_type=nonstopux ;;
17156 if test "$lt_cv_prog_gnu_ld" = yes; then
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17167 irix5* | nonstopux*)
17168 libsuff= shlibsuff=
17171 case $LD in # libtool.m4 will add one of these switches to LD
17172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17173 libsuff= shlibsuff= libmagic=32-bit;;
17174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17175 libsuff=32 shlibsuff=N32 libmagic=N32;;
17176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17178 *) libsuff= shlibsuff= libmagic=never-match;;
17182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17183 shlibpath_overrides_runpath=no
17184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17186 hardcode_into_libs=yes
17189 # No shared lib support for Linux oldld, aout, or coff.
17190 linux*oldld* | linux*aout* | linux*coff*)
17194 # This must be Linux ELF.
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17202 shlibpath_var=LD_LIBRARY_PATH
17203 shlibpath_overrides_runpath=no
17204 # This implies no fast_install, which is unacceptable.
17205 # Some rework will be needed to allow for fast_install
17206 # before this can be enabled.
17207 hardcode_into_libs=yes
17209 # We used to test for /lib/ld.so.1 and disable shared libraries on
17210 # powerpc, because MkLinux only supported shared libraries with the
17211 # GNU dynamic linker. Since this was broken with cross compilers,
17212 # most powerpc-linux boxes support dynamic linking these days and
17213 # people can always --disable-shared, the test was removed, and we
17214 # assume the GNU/Linux dynamic linker is in use.
17215 dynamic_linker='GNU/Linux ld.so'
17222 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17225 dynamic_linker='NetBSD (a.out) ld.so'
17227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17228 soname_spec='${libname}${release}${shared_ext}$major'
17229 dynamic_linker='NetBSD ld.elf_so'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 shlibpath_overrides_runpath=yes
17233 hardcode_into_libs=yes
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 shlibpath_overrides_runpath=yes
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 shlibpath_overrides_runpath=yes
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17259 shlibpath_var=LD_LIBRARY_PATH
17260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17262 openbsd2.[89] | openbsd2.[89].*)
17263 shlibpath_overrides_runpath=no
17266 shlibpath_overrides_runpath=yes
17270 shlibpath_overrides_runpath=yes
17275 libname_spec='$name'
17278 library_names_spec='$libname${shared_ext} $libname.a'
17279 dynamic_linker='OS/2 ld.exe'
17280 shlibpath_var=LIBPATH
17283 osf3* | osf4* | osf5*)
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 shlibpath_var=LD_LIBRARY_PATH
17290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 shlibpath_var=LD_LIBRARY_PATH
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306 soname_spec='${libname}${release}${shared_ext}$major'
17307 shlibpath_var=LD_LIBRARY_PATH
17308 shlibpath_overrides_runpath=yes
17309 hardcode_into_libs=yes
17310 # ldd complains unless libraries are executable
17311 postinstall_cmds='chmod +x $lib'
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 shlibpath_overrides_runpath=yes
17320 if test "$with_gnu_ld" = yes; then
17326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 case $host_vendor in
17333 shlibpath_overrides_runpath=no
17335 export_dynamic_flag_spec='${wl}-Blargedynsym'
17336 runpath_var=LD_RUN_PATH
17344 shlibpath_overrides_runpath=no
17345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17351 if test -d /usr/nec ;then
17353 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17354 soname_spec='$libname${shared_ext}.$major'
17355 shlibpath_var=LD_LIBRARY_PATH
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362 soname_spec='${libname}${release}${shared_ext}$major'
17363 shlibpath_var=LD_LIBRARY_PATH
17370 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17371 $as_echo "$dynamic_linker" >&6; }
17372 test "$dynamic_linker" = no && can_build_shared=no
17374 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17375 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17376 hardcode_action_GCJ=
17377 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17378 test -n "$runpath_var GCJ" || \
17379 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17381 # We can hardcode non-existant directories.
17382 if test "$hardcode_direct_GCJ" != no &&
17383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17384 # have to relink, otherwise we might link with an installed library
17385 # when we should be linking with a yet-to-be-installed one
17386 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17387 test "$hardcode_minus_L_GCJ" != no; then
17388 # Linking always hardcodes the temporary library directory.
17389 hardcode_action_GCJ=relink
17391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17392 hardcode_action_GCJ=immediate
17395 # We cannot hardcode anything, or else we can only hardcode existing
17397 hardcode_action_GCJ=unsupported
17399 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17400 $as_echo "$hardcode_action_GCJ" >&6; }
17402 if test "$hardcode_action_GCJ" = relink; then
17403 # Fast installation is not supported
17404 enable_fast_install=no
17405 elif test "$shlibpath_overrides_runpath" = yes ||
17406 test "$enable_shared" = no; then
17407 # Fast installation is not necessary
17408 enable_fast_install=needless
17413 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17414 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17415 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17416 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17417 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17418 { $as_echo "$as_me:$LINENO: result: yes" >&5
17419 $as_echo "yes" >&6; }
17421 # FIXME - insert some real tests, host_os isn't really good enough
17424 if test -n "$STRIP" ; then
17425 striplib="$STRIP -x"
17426 { $as_echo "$as_me:$LINENO: result: yes" >&5
17427 $as_echo "yes" >&6; }
17429 { $as_echo "$as_me:$LINENO: result: no" >&5
17430 $as_echo "no" >&6; }
17434 { $as_echo "$as_me:$LINENO: result: no" >&5
17435 $as_echo "no" >&6; }
17440 if test "x$enable_dlopen" != xyes; then
17441 enable_dlopen=unknown
17442 enable_dlopen_self=unknown
17443 enable_dlopen_self_static=unknown
17450 lt_cv_dlopen="load_add_on"
17452 lt_cv_dlopen_self=yes
17456 lt_cv_dlopen="LoadLibrary"
17461 lt_cv_dlopen="dlopen"
17466 # if libdl is installed we need to link against it
17467 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17468 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17469 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17470 $as_echo_n "(cached) " >&6
17472 ac_check_lib_save_LIBS=$LIBS
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17481 /* Override any GCC internal prototype to avoid an error.
17482 Use char because int might match the return type of a GCC
17483 builtin and then its argument prototype would still apply. */
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17503 $as_echo "$ac_try_echo") >&5
17504 (eval "$ac_link") 2>conftest.er1
17506 grep -v '^ *+' conftest.er1 >conftest.err
17508 cat conftest.err >&5
17509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest$ac_exeext && {
17514 test "$cross_compiling" = yes ||
17515 $as_test_x conftest$ac_exeext
17517 ac_cv_lib_dl_dlopen=yes
17519 $as_echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_cv_lib_dl_dlopen=no
17525 rm -rf conftest.dSYM
17526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17527 conftest$ac_exeext conftest.$ac_ext
17528 LIBS=$ac_check_lib_save_LIBS
17530 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17531 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17532 if test $ac_cv_lib_dl_dlopen = yes; then
17533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17536 lt_cv_dlopen="dyld"
17538 lt_cv_dlopen_self=yes
17545 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
17546 $as_echo_n "checking for shl_load... " >&6; }
17547 if test "${ac_cv_func_shl_load+set}" = set; then
17548 $as_echo_n "(cached) " >&6
17550 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17558 #define shl_load innocuous_shl_load
17560 /* System header to define __stub macros and hopefully few prototypes,
17561 which can conflict with char shl_load (); below.
17562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17563 <limits.h> exists even on freestanding compilers. */
17566 # include <limits.h>
17568 # include <assert.h>
17573 /* Override any GCC internal prototype to avoid an error.
17574 Use char because int might match the return type of a GCC
17575 builtin and then its argument prototype would still apply. */
17580 /* The GNU C library defines this for functions which it implements
17581 to always fail with ENOSYS. Some functions are actually named
17582 something starting with __ and the normal name is an alias. */
17583 #if defined __stub_shl_load || defined __stub___shl_load
17590 return shl_load ();
17595 rm -f conftest.$ac_objext conftest$ac_exeext
17596 if { (ac_try="$ac_link"
17597 case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17602 $as_echo "$ac_try_echo") >&5
17603 (eval "$ac_link") 2>conftest.er1
17605 grep -v '^ *+' conftest.er1 >conftest.err
17607 cat conftest.err >&5
17608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } && {
17610 test -z "$ac_c_werror_flag" ||
17611 test ! -s conftest.err
17612 } && test -s conftest$ac_exeext && {
17613 test "$cross_compiling" = yes ||
17614 $as_test_x conftest$ac_exeext
17616 ac_cv_func_shl_load=yes
17618 $as_echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ac_cv_func_shl_load=no
17624 rm -rf conftest.dSYM
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17628 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17629 $as_echo "$ac_cv_func_shl_load" >&6; }
17630 if test $ac_cv_func_shl_load = yes; then
17631 lt_cv_dlopen="shl_load"
17633 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17634 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17635 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17636 $as_echo_n "(cached) " >&6
17638 ac_check_lib_save_LIBS=$LIBS
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17647 /* Override any GCC internal prototype to avoid an error.
17648 Use char because int might match the return type of a GCC
17649 builtin and then its argument prototype would still apply. */
17657 return shl_load ();
17662 rm -f conftest.$ac_objext conftest$ac_exeext
17663 if { (ac_try="$ac_link"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17669 $as_echo "$ac_try_echo") >&5
17670 (eval "$ac_link") 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && {
17677 test -z "$ac_c_werror_flag" ||
17678 test ! -s conftest.err
17679 } && test -s conftest$ac_exeext && {
17680 test "$cross_compiling" = yes ||
17681 $as_test_x conftest$ac_exeext
17683 ac_cv_lib_dld_shl_load=yes
17685 $as_echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ac_cv_lib_dld_shl_load=no
17691 rm -rf conftest.dSYM
17692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17693 conftest$ac_exeext conftest.$ac_ext
17694 LIBS=$ac_check_lib_save_LIBS
17696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17697 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17698 if test $ac_cv_lib_dld_shl_load = yes; then
17699 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17701 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
17702 $as_echo_n "checking for dlopen... " >&6; }
17703 if test "${ac_cv_func_dlopen+set}" = set; then
17704 $as_echo_n "(cached) " >&6
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17714 #define dlopen innocuous_dlopen
17716 /* System header to define __stub macros and hopefully few prototypes,
17717 which can conflict with char dlopen (); below.
17718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17719 <limits.h> exists even on freestanding compilers. */
17722 # include <limits.h>
17724 # include <assert.h>
17729 /* Override any GCC internal prototype to avoid an error.
17730 Use char because int might match the return type of a GCC
17731 builtin and then its argument prototype would still apply. */
17736 /* The GNU C library defines this for functions which it implements
17737 to always fail with ENOSYS. Some functions are actually named
17738 something starting with __ and the normal name is an alias. */
17739 #if defined __stub_dlopen || defined __stub___dlopen
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (ac_try="$ac_link"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17758 $as_echo "$ac_try_echo") >&5
17759 (eval "$ac_link") 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } && {
17766 test -z "$ac_c_werror_flag" ||
17767 test ! -s conftest.err
17768 } && test -s conftest$ac_exeext && {
17769 test "$cross_compiling" = yes ||
17770 $as_test_x conftest$ac_exeext
17772 ac_cv_func_dlopen=yes
17774 $as_echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 ac_cv_func_dlopen=no
17780 rm -rf conftest.dSYM
17781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17782 conftest$ac_exeext conftest.$ac_ext
17784 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17785 $as_echo "$ac_cv_func_dlopen" >&6; }
17786 if test $ac_cv_func_dlopen = yes; then
17787 lt_cv_dlopen="dlopen"
17789 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17792 $as_echo_n "(cached) " >&6
17794 ac_check_lib_save_LIBS=$LIBS
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17818 rm -f conftest.$ac_objext conftest$ac_exeext
17819 if { (ac_try="$ac_link"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17825 $as_echo "$ac_try_echo") >&5
17826 (eval "$ac_link") 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } && {
17833 test -z "$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17835 } && test -s conftest$ac_exeext && {
17836 test "$cross_compiling" = yes ||
17837 $as_test_x conftest$ac_exeext
17839 ac_cv_lib_dl_dlopen=yes
17841 $as_echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_cv_lib_dl_dlopen=no
17847 rm -rf conftest.dSYM
17848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17849 conftest$ac_exeext conftest.$ac_ext
17850 LIBS=$ac_check_lib_save_LIBS
17852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17853 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17854 if test $ac_cv_lib_dl_dlopen = yes; then
17855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17857 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17858 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17859 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17860 $as_echo_n "(cached) " >&6
17862 ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-lsvld $LIBS"
17864 cat >conftest.$ac_ext <<_ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (ac_try="$ac_link"
17888 case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17893 $as_echo "$ac_try_echo") >&5
17894 (eval "$ac_link") 2>conftest.er1
17896 grep -v '^ *+' conftest.er1 >conftest.err
17898 cat conftest.err >&5
17899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } && {
17901 test -z "$ac_c_werror_flag" ||
17902 test ! -s conftest.err
17903 } && test -s conftest$ac_exeext && {
17904 test "$cross_compiling" = yes ||
17905 $as_test_x conftest$ac_exeext
17907 ac_cv_lib_svld_dlopen=yes
17909 $as_echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_cv_lib_svld_dlopen=no
17915 rm -rf conftest.dSYM
17916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17921 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17922 if test $ac_cv_lib_svld_dlopen = yes; then
17923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17925 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17926 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17927 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17928 $as_echo_n "(cached) " >&6
17930 ac_check_lib_save_LIBS=$LIBS
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17939 /* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17949 return dld_link ();
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (ac_try="$ac_link"
17956 case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17961 $as_echo "$ac_try_echo") >&5
17962 (eval "$ac_link") 2>conftest.er1
17964 grep -v '^ *+' conftest.er1 >conftest.err
17966 cat conftest.err >&5
17967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } && {
17969 test -z "$ac_c_werror_flag" ||
17970 test ! -s conftest.err
17971 } && test -s conftest$ac_exeext && {
17972 test "$cross_compiling" = yes ||
17973 $as_test_x conftest$ac_exeext
17975 ac_cv_lib_dld_dld_link=yes
17977 $as_echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_cv_lib_dld_dld_link=no
17983 rm -rf conftest.dSYM
17984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17985 conftest$ac_exeext conftest.$ac_ext
17986 LIBS=$ac_check_lib_save_LIBS
17988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17989 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17990 if test $ac_cv_lib_dld_dld_link = yes; then
17991 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18012 if test "x$lt_cv_dlopen" != xno; then
18018 case $lt_cv_dlopen in
18020 save_CPPFLAGS="$CPPFLAGS"
18021 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18023 save_LDFLAGS="$LDFLAGS"
18024 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18027 LIBS="$lt_cv_dlopen_libs $LIBS"
18029 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18030 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18031 if test "${lt_cv_dlopen_self+set}" = set; then
18032 $as_echo_n "(cached) " >&6
18034 if test "$cross_compiling" = yes; then :
18035 lt_cv_dlopen_self=cross
18037 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18038 lt_status=$lt_dlunknown
18039 cat > conftest.$ac_ext <<EOF
18040 #line 18040 "configure"
18041 #include "confdefs.h"
18050 # define LT_DLGLOBAL RTLD_GLOBAL
18053 # define LT_DLGLOBAL DL_GLOBAL
18055 # define LT_DLGLOBAL 0
18059 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18060 find out it does not work in some platform. */
18061 #ifndef LT_DLLAZY_OR_NOW
18063 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18066 # define LT_DLLAZY_OR_NOW DL_LAZY
18069 # define LT_DLLAZY_OR_NOW RTLD_NOW
18072 # define LT_DLLAZY_OR_NOW DL_NOW
18074 # define LT_DLLAZY_OR_NOW 0
18082 extern "C" void exit (int);
18085 void fnord() { int i=42;}
18088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18089 int status = $lt_dlunknown;
18093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18094 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18095 /* dlclose (self); */
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>&5
18104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18106 (./conftest; exit; ) 2>/dev/null
18108 case x$lt_status in
18109 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18110 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18111 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18114 # compilation failed
18115 lt_cv_dlopen_self=no
18122 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18123 $as_echo "$lt_cv_dlopen_self" >&6; }
18125 if test "x$lt_cv_dlopen_self" = xyes; then
18126 LDFLAGS="$LDFLAGS $link_static_flag"
18127 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18128 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18129 if test "${lt_cv_dlopen_self_static+set}" = set; then
18130 $as_echo_n "(cached) " >&6
18132 if test "$cross_compiling" = yes; then :
18133 lt_cv_dlopen_self_static=cross
18135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18136 lt_status=$lt_dlunknown
18137 cat > conftest.$ac_ext <<EOF
18138 #line 18138 "configure"
18139 #include "confdefs.h"
18148 # define LT_DLGLOBAL RTLD_GLOBAL
18151 # define LT_DLGLOBAL DL_GLOBAL
18153 # define LT_DLGLOBAL 0
18157 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18158 find out it does not work in some platform. */
18159 #ifndef LT_DLLAZY_OR_NOW
18161 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18164 # define LT_DLLAZY_OR_NOW DL_LAZY
18167 # define LT_DLLAZY_OR_NOW RTLD_NOW
18170 # define LT_DLLAZY_OR_NOW DL_NOW
18172 # define LT_DLLAZY_OR_NOW 0
18180 extern "C" void exit (int);
18183 void fnord() { int i=42;}
18186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18187 int status = $lt_dlunknown;
18191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18192 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18193 /* dlclose (self); */
18199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>&5
18202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18204 (./conftest; exit; ) 2>/dev/null
18206 case x$lt_status in
18207 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18208 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18209 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18212 # compilation failed
18213 lt_cv_dlopen_self_static=no
18220 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18221 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18224 CPPFLAGS="$save_CPPFLAGS"
18225 LDFLAGS="$save_LDFLAGS"
18230 case $lt_cv_dlopen_self in
18231 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18232 *) enable_dlopen_self=unknown ;;
18235 case $lt_cv_dlopen_self_static in
18236 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18237 *) enable_dlopen_self_static=unknown ;;
18242 # The else clause should only fire when bootstrapping the
18243 # libtool distribution, otherwise you forgot to ship ltmain.sh
18244 # with your package, and you will get complaints that there are
18245 # no rules to generate ltmain.sh.
18246 if test -f "$ltmain"; then
18247 # See if we are running on zsh, and set the options which allow our commands through
18248 # without removal of \ escapes.
18249 if test -n "${ZSH_VERSION+set}" ; then
18250 setopt NO_GLOB_SUBST
18252 # Now quote all the things that may contain metacharacters while being
18253 # careful not to overquote the AC_SUBSTed values. We take copies of the
18254 # variables and quote the copies for generation of the libtool script.
18255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18257 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18258 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18259 deplibs_check_method reload_flag reload_cmds need_locks \
18260 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18261 lt_cv_sys_global_symbol_to_c_name_address \
18262 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18263 old_postinstall_cmds old_postuninstall_cmds \
18267 lt_prog_compiler_wl_GCJ \
18268 lt_prog_compiler_pic_GCJ \
18269 lt_prog_compiler_static_GCJ \
18270 lt_prog_compiler_no_builtin_flag_GCJ \
18271 export_dynamic_flag_spec_GCJ \
18272 thread_safe_flag_spec_GCJ \
18273 whole_archive_flag_spec_GCJ \
18274 enable_shared_with_static_runtimes_GCJ \
18275 old_archive_cmds_GCJ \
18276 old_archive_from_new_cmds_GCJ \
18277 predep_objects_GCJ \
18278 postdep_objects_GCJ \
18281 compiler_lib_search_path_GCJ \
18283 archive_expsym_cmds_GCJ \
18284 postinstall_cmds_GCJ \
18285 postuninstall_cmds_GCJ \
18286 old_archive_from_expsyms_cmds_GCJ \
18287 allow_undefined_flag_GCJ \
18288 no_undefined_flag_GCJ \
18289 export_symbols_cmds_GCJ \
18290 hardcode_libdir_flag_spec_GCJ \
18291 hardcode_libdir_flag_spec_ld_GCJ \
18292 hardcode_libdir_separator_GCJ \
18293 hardcode_automatic_GCJ \
18295 module_expsym_cmds_GCJ \
18296 lt_cv_prog_compiler_c_o_GCJ \
18297 exclude_expsyms_GCJ \
18298 include_expsyms_GCJ; do
18301 old_archive_cmds_GCJ | \
18302 old_archive_from_new_cmds_GCJ | \
18303 archive_cmds_GCJ | \
18304 archive_expsym_cmds_GCJ | \
18305 module_cmds_GCJ | \
18306 module_expsym_cmds_GCJ | \
18307 old_archive_from_expsyms_cmds_GCJ | \
18308 export_symbols_cmds_GCJ | \
18309 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18310 postinstall_cmds | postuninstall_cmds | \
18311 old_postinstall_cmds | old_postuninstall_cmds | \
18312 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18313 # Double-quote double-evaled strings.
18314 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18317 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18323 *'\$0 --fallback-echo"')
18324 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18330 cat <<__EOF__ >> "$cfgfile"
18331 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18333 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18335 # Shell to use when invoking shell scripts.
18338 # Whether or not to build shared libraries.
18339 build_libtool_libs=$enable_shared
18341 # Whether or not to build static libraries.
18342 build_old_libs=$enable_static
18344 # Whether or not to add -lc for building shared libraries.
18345 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18347 # Whether or not to disallow shared libs when runtime libs are static
18348 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18350 # Whether or not to optimize for fast installation.
18351 fast_install=$enable_fast_install
18354 host_alias=$host_alias
18357 # An echo program that does not interpret backslashes.
18362 AR_FLAGS=$lt_AR_FLAGS
18367 # A language-specific compiler.
18368 CC=$lt_compiler_GCJ
18370 # Is the compiler the GNU C compiler?
18376 # The linker used to build libraries.
18379 # Whether we need hard or soft links.
18382 # A BSD-compatible nm program.
18385 # A symbol stripping program
18388 # Used to examine libraries when file_magic_cmd begins "file"
18389 MAGIC_CMD=$MAGIC_CMD
18391 # Used on cygwin: DLL creation program.
18394 # Used on cygwin: object dumper.
18397 # Used on cygwin: assembler.
18400 # The name of the directory that contains temporary libtool files.
18403 # How to create reloadable object files.
18404 reload_flag=$lt_reload_flag
18405 reload_cmds=$lt_reload_cmds
18407 # How to pass a linker flag through the compiler.
18408 wl=$lt_lt_prog_compiler_wl_GCJ
18410 # Object file suffix (normally "o").
18411 objext="$ac_objext"
18413 # Old archive suffix (normally "a").
18416 # Shared library suffix (normally ".so").
18419 # Executable file suffix (normally "").
18422 # Additional compiler flags for building library objects.
18423 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18426 # What is the maximum length of a command?
18427 max_cmd_len=$lt_cv_sys_max_cmd_len
18429 # Does compiler simultaneously support -c and -o options?
18430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18432 # Must we lock files when doing compilation ?
18433 need_locks=$lt_need_locks
18435 # Do we need the lib prefix for modules?
18436 need_lib_prefix=$need_lib_prefix
18438 # Do we need a version for libraries?
18439 need_version=$need_version
18441 # Whether dlopen is supported.
18442 dlopen_support=$enable_dlopen
18444 # Whether dlopen of programs is supported.
18445 dlopen_self=$enable_dlopen_self
18447 # Whether dlopen of statically linked programs is supported.
18448 dlopen_self_static=$enable_dlopen_self_static
18450 # Compiler flag to prevent dynamic linking.
18451 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18453 # Compiler flag to turn off builtin functions.
18454 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18456 # Compiler flag to allow reflexive dlopens.
18457 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18459 # Compiler flag to generate shared objects directly from archives.
18460 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18462 # Compiler flag to generate thread-safe objects.
18463 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18465 # Library versioning type.
18466 version_type=$version_type
18468 # Format of library name prefix.
18469 libname_spec=$lt_libname_spec
18471 # List of archive names. First name is the real one, the rest are links.
18472 # The last name is the one that the linker finds with -lNAME.
18473 library_names_spec=$lt_library_names_spec
18475 # The coded name of the library, if different from the real name.
18476 soname_spec=$lt_soname_spec
18478 # Commands used to build and install an old-style archive.
18480 old_archive_cmds=$lt_old_archive_cmds_GCJ
18481 old_postinstall_cmds=$lt_old_postinstall_cmds
18482 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18484 # Create an old-style archive from a shared archive.
18485 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18487 # Create a temporary old-style archive to link instead of a shared archive.
18488 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18490 # Commands used to build and install a shared archive.
18491 archive_cmds=$lt_archive_cmds_GCJ
18492 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18493 postinstall_cmds=$lt_postinstall_cmds
18494 postuninstall_cmds=$lt_postuninstall_cmds
18496 # Commands used to build a loadable module (assumed same as above if empty)
18497 module_cmds=$lt_module_cmds_GCJ
18498 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18500 # Commands to strip libraries.
18501 old_striplib=$lt_old_striplib
18502 striplib=$lt_striplib
18504 # Dependencies to place before the objects being linked to create a
18506 predep_objects=$lt_predep_objects_GCJ
18508 # Dependencies to place after the objects being linked to create a
18510 postdep_objects=$lt_postdep_objects_GCJ
18512 # Dependencies to place before the objects being linked to create a
18514 predeps=$lt_predeps_GCJ
18516 # Dependencies to place after the objects being linked to create a
18518 postdeps=$lt_postdeps_GCJ
18520 # The library search path used internally by the compiler when linking
18521 # a shared library.
18522 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18524 # Method to check whether dependent libraries are shared objects.
18525 deplibs_check_method=$lt_deplibs_check_method
18527 # Command to use when deplibs_check_method == file_magic.
18528 file_magic_cmd=$lt_file_magic_cmd
18530 # Flag that allows shared libraries with undefined symbols to be built.
18531 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18533 # Flag that forces no undefined symbols.
18534 no_undefined_flag=$lt_no_undefined_flag_GCJ
18536 # Commands used to finish a libtool library installation in a directory.
18537 finish_cmds=$lt_finish_cmds
18539 # Same as above, but a single script fragment to be evaled but not shown.
18540 finish_eval=$lt_finish_eval
18542 # Take the output of nm and produce a listing of raw symbols and C names.
18543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18545 # Transform the output of nm in a proper C declaration
18546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18548 # Transform the output of nm in a C name address pair
18549 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18551 # This is the shared library runtime path variable.
18552 runpath_var=$runpath_var
18554 # This is the shared library path variable.
18555 shlibpath_var=$shlibpath_var
18557 # Is shlibpath searched before the hard-coded library search path?
18558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18560 # How to hardcode a shared library path into an executable.
18561 hardcode_action=$hardcode_action_GCJ
18563 # Whether we should hardcode library paths into libraries.
18564 hardcode_into_libs=$hardcode_into_libs
18566 # Flag to hardcode \$libdir into a binary during linking.
18567 # This must work even if \$libdir does not exist.
18568 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18570 # If ld is used when linking, flag to hardcode \$libdir into
18571 # a binary during linking. This must work even if \$libdir does
18573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18575 # Whether we need a single -rpath flag with a separated argument.
18576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18578 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18579 # resulting binary.
18580 hardcode_direct=$hardcode_direct_GCJ
18582 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18583 # resulting binary.
18584 hardcode_minus_L=$hardcode_minus_L_GCJ
18586 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18587 # the resulting binary.
18588 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18590 # Set to yes if building a shared library automatically hardcodes DIR into the library
18591 # and all subsequent libraries and executables linked against it.
18592 hardcode_automatic=$hardcode_automatic_GCJ
18594 # Variables whose values should be saved in libtool wrapper scripts and
18595 # restored at relink time.
18596 variables_saved_for_relink="$variables_saved_for_relink"
18598 # Whether libtool must link a program against all its dependency libraries.
18599 link_all_deplibs=$link_all_deplibs_GCJ
18601 # Compile-time system search path for libraries
18602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18604 # Run-time system search path for libraries
18605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18607 # Fix the shell variable \$srcfile for the compiler.
18608 fix_srcfile_path="$fix_srcfile_path_GCJ"
18610 # Set to yes if exported symbols are required.
18611 always_export_symbols=$always_export_symbols_GCJ
18613 # The commands to list exported symbols.
18614 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18616 # The commands to extract the exported symbol list from a shared archive.
18617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18619 # Symbols that should not be listed in the preloaded symbols.
18620 exclude_expsyms=$lt_exclude_expsyms_GCJ
18622 # Symbols that must always be exported.
18623 include_expsyms=$lt_include_expsyms_GCJ
18625 # ### END LIBTOOL TAG CONFIG: $tagname
18631 # If there is no Makefile yet, we rely on a make rule to execute
18632 # `config.status --recheck' to rerun these tests and create the
18633 # libtool script then.
18634 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18635 if test -f "$ltmain_in"; then
18636 test -f Makefile && make "$ltmain"
18642 ac_cpp='$CPP $CPPFLAGS'
18643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18657 # Source file extension for RC test sources.
18660 # Object file extension for compiled RC test sources.
18664 # Code to be used in simple compile tests
18665 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18667 # Code to be used in simple link tests
18668 lt_simple_link_test_code="$lt_simple_compile_test_code"
18670 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18672 # If no C compiler was specified, use CC.
18675 # Allow CC to be a program name with arguments.
18679 # Allow CC to be a program name with arguments.
18684 lt_cv_prog_compiler_c_o_RC=yes
18686 # The else clause should only fire when bootstrapping the
18687 # libtool distribution, otherwise you forgot to ship ltmain.sh
18688 # with your package, and you will get complaints that there are
18689 # no rules to generate ltmain.sh.
18690 if test -f "$ltmain"; then
18691 # See if we are running on zsh, and set the options which allow our commands through
18692 # without removal of \ escapes.
18693 if test -n "${ZSH_VERSION+set}" ; then
18694 setopt NO_GLOB_SUBST
18696 # Now quote all the things that may contain metacharacters while being
18697 # careful not to overquote the AC_SUBSTed values. We take copies of the
18698 # variables and quote the copies for generation of the libtool script.
18699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18703 deplibs_check_method reload_flag reload_cmds need_locks \
18704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18705 lt_cv_sys_global_symbol_to_c_name_address \
18706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18707 old_postinstall_cmds old_postuninstall_cmds \
18711 lt_prog_compiler_wl_RC \
18712 lt_prog_compiler_pic_RC \
18713 lt_prog_compiler_static_RC \
18714 lt_prog_compiler_no_builtin_flag_RC \
18715 export_dynamic_flag_spec_RC \
18716 thread_safe_flag_spec_RC \
18717 whole_archive_flag_spec_RC \
18718 enable_shared_with_static_runtimes_RC \
18719 old_archive_cmds_RC \
18720 old_archive_from_new_cmds_RC \
18721 predep_objects_RC \
18722 postdep_objects_RC \
18725 compiler_lib_search_path_RC \
18727 archive_expsym_cmds_RC \
18728 postinstall_cmds_RC \
18729 postuninstall_cmds_RC \
18730 old_archive_from_expsyms_cmds_RC \
18731 allow_undefined_flag_RC \
18732 no_undefined_flag_RC \
18733 export_symbols_cmds_RC \
18734 hardcode_libdir_flag_spec_RC \
18735 hardcode_libdir_flag_spec_ld_RC \
18736 hardcode_libdir_separator_RC \
18737 hardcode_automatic_RC \
18739 module_expsym_cmds_RC \
18740 lt_cv_prog_compiler_c_o_RC \
18741 exclude_expsyms_RC \
18742 include_expsyms_RC; do
18745 old_archive_cmds_RC | \
18746 old_archive_from_new_cmds_RC | \
18747 archive_cmds_RC | \
18748 archive_expsym_cmds_RC | \
18750 module_expsym_cmds_RC | \
18751 old_archive_from_expsyms_cmds_RC | \
18752 export_symbols_cmds_RC | \
18753 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18754 postinstall_cmds | postuninstall_cmds | \
18755 old_postinstall_cmds | old_postuninstall_cmds | \
18756 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18757 # Double-quote double-evaled strings.
18758 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18767 *'\$0 --fallback-echo"')
18768 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18774 cat <<__EOF__ >> "$cfgfile"
18775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18779 # Shell to use when invoking shell scripts.
18782 # Whether or not to build shared libraries.
18783 build_libtool_libs=$enable_shared
18785 # Whether or not to build static libraries.
18786 build_old_libs=$enable_static
18788 # Whether or not to add -lc for building shared libraries.
18789 build_libtool_need_lc=$archive_cmds_need_lc_RC
18791 # Whether or not to disallow shared libs when runtime libs are static
18792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18794 # Whether or not to optimize for fast installation.
18795 fast_install=$enable_fast_install
18798 host_alias=$host_alias
18801 # An echo program that does not interpret backslashes.
18806 AR_FLAGS=$lt_AR_FLAGS
18811 # A language-specific compiler.
18814 # Is the compiler the GNU C compiler?
18820 # The linker used to build libraries.
18823 # Whether we need hard or soft links.
18826 # A BSD-compatible nm program.
18829 # A symbol stripping program
18832 # Used to examine libraries when file_magic_cmd begins "file"
18833 MAGIC_CMD=$MAGIC_CMD
18835 # Used on cygwin: DLL creation program.
18838 # Used on cygwin: object dumper.
18841 # Used on cygwin: assembler.
18844 # The name of the directory that contains temporary libtool files.
18847 # How to create reloadable object files.
18848 reload_flag=$lt_reload_flag
18849 reload_cmds=$lt_reload_cmds
18851 # How to pass a linker flag through the compiler.
18852 wl=$lt_lt_prog_compiler_wl_RC
18854 # Object file suffix (normally "o").
18855 objext="$ac_objext"
18857 # Old archive suffix (normally "a").
18860 # Shared library suffix (normally ".so").
18863 # Executable file suffix (normally "").
18866 # Additional compiler flags for building library objects.
18867 pic_flag=$lt_lt_prog_compiler_pic_RC
18870 # What is the maximum length of a command?
18871 max_cmd_len=$lt_cv_sys_max_cmd_len
18873 # Does compiler simultaneously support -c and -o options?
18874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18876 # Must we lock files when doing compilation ?
18877 need_locks=$lt_need_locks
18879 # Do we need the lib prefix for modules?
18880 need_lib_prefix=$need_lib_prefix
18882 # Do we need a version for libraries?
18883 need_version=$need_version
18885 # Whether dlopen is supported.
18886 dlopen_support=$enable_dlopen
18888 # Whether dlopen of programs is supported.
18889 dlopen_self=$enable_dlopen_self
18891 # Whether dlopen of statically linked programs is supported.
18892 dlopen_self_static=$enable_dlopen_self_static
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static_RC
18897 # Compiler flag to turn off builtin functions.
18898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18906 # Compiler flag to generate thread-safe objects.
18907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18909 # Library versioning type.
18910 version_type=$version_type
18912 # Format of library name prefix.
18913 libname_spec=$lt_libname_spec
18915 # List of archive names. First name is the real one, the rest are links.
18916 # The last name is the one that the linker finds with -lNAME.
18917 library_names_spec=$lt_library_names_spec
18919 # The coded name of the library, if different from the real name.
18920 soname_spec=$lt_soname_spec
18922 # Commands used to build and install an old-style archive.
18924 old_archive_cmds=$lt_old_archive_cmds_RC
18925 old_postinstall_cmds=$lt_old_postinstall_cmds
18926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18928 # Create an old-style archive from a shared archive.
18929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18931 # Create a temporary old-style archive to link instead of a shared archive.
18932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18934 # Commands used to build and install a shared archive.
18935 archive_cmds=$lt_archive_cmds_RC
18936 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18937 postinstall_cmds=$lt_postinstall_cmds
18938 postuninstall_cmds=$lt_postuninstall_cmds
18940 # Commands used to build a loadable module (assumed same as above if empty)
18941 module_cmds=$lt_module_cmds_RC
18942 module_expsym_cmds=$lt_module_expsym_cmds_RC
18944 # Commands to strip libraries.
18945 old_striplib=$lt_old_striplib
18946 striplib=$lt_striplib
18948 # Dependencies to place before the objects being linked to create a
18950 predep_objects=$lt_predep_objects_RC
18952 # Dependencies to place after the objects being linked to create a
18954 postdep_objects=$lt_postdep_objects_RC
18956 # Dependencies to place before the objects being linked to create a
18958 predeps=$lt_predeps_RC
18960 # Dependencies to place after the objects being linked to create a
18962 postdeps=$lt_postdeps_RC
18964 # The library search path used internally by the compiler when linking
18965 # a shared library.
18966 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18968 # Method to check whether dependent libraries are shared objects.
18969 deplibs_check_method=$lt_deplibs_check_method
18971 # Command to use when deplibs_check_method == file_magic.
18972 file_magic_cmd=$lt_file_magic_cmd
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag_RC
18977 # Flag that forces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag_RC
18980 # Commands used to finish a libtool library installation in a directory.
18981 finish_cmds=$lt_finish_cmds
18983 # Same as above, but a single script fragment to be evaled but not shown.
18984 finish_eval=$lt_finish_eval
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18989 # Transform the output of nm in a proper C declaration
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18992 # Transform the output of nm in a C name address pair
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18995 # This is the shared library runtime path variable.
18996 runpath_var=$runpath_var
18998 # This is the shared library path variable.
18999 shlibpath_var=$shlibpath_var
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19004 # How to hardcode a shared library path into an executable.
19005 hardcode_action=$hardcode_action_RC
19007 # Whether we should hardcode library paths into libraries.
19008 hardcode_into_libs=$hardcode_into_libs
19010 # Flag to hardcode \$libdir into a binary during linking.
19011 # This must work even if \$libdir does not exist.
19012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19014 # If ld is used when linking, flag to hardcode \$libdir into
19015 # a binary during linking. This must work even if \$libdir does
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19019 # Whether we need a single -rpath flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19023 # resulting binary.
19024 hardcode_direct=$hardcode_direct_RC
19026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19027 # resulting binary.
19028 hardcode_minus_L=$hardcode_minus_L_RC
19030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19031 # the resulting binary.
19032 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19034 # Set to yes if building a shared library automatically hardcodes DIR into the library
19035 # and all subsequent libraries and executables linked against it.
19036 hardcode_automatic=$hardcode_automatic_RC
19038 # Variables whose values should be saved in libtool wrapper scripts and
19039 # restored at relink time.
19040 variables_saved_for_relink="$variables_saved_for_relink"
19042 # Whether libtool must link a program against all its dependency libraries.
19043 link_all_deplibs=$link_all_deplibs_RC
19045 # Compile-time system search path for libraries
19046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19048 # Run-time system search path for libraries
19049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19051 # Fix the shell variable \$srcfile for the compiler.
19052 fix_srcfile_path="$fix_srcfile_path_RC"
19054 # Set to yes if exported symbols are required.
19055 always_export_symbols=$always_export_symbols_RC
19057 # The commands to list exported symbols.
19058 export_symbols_cmds=$lt_export_symbols_cmds_RC
19060 # The commands to extract the exported symbol list from a shared archive.
19061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19063 # Symbols that should not be listed in the preloaded symbols.
19064 exclude_expsyms=$lt_exclude_expsyms_RC
19066 # Symbols that must always be exported.
19067 include_expsyms=$lt_include_expsyms_RC
19069 # ### END LIBTOOL TAG CONFIG: $tagname
19075 # If there is no Makefile yet, we rely on a make rule to execute
19076 # `config.status --recheck' to rerun these tests and create the
19077 # libtool script then.
19078 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19079 if test -f "$ltmain_in"; then
19080 test -f Makefile && make "$ltmain"
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19097 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19098 { (exit 1); exit 1; }; }
19102 # Append the new tag name to the list of available tags.
19103 if test -n "$tagname" ; then
19104 available_tags="$available_tags $tagname"
19110 # Now substitute the updated list of available tags.
19111 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19112 mv "${ofile}T" "$ofile"
19116 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19117 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19118 { (exit 1); exit 1; }; }
19124 # This can be used to rebuild libtool when needed
19125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19127 # Always use our own libtool.
19128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19130 # Prevent multiple expansion
19151 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
19152 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
19154 # Settings for optional paths
19156 # Check whether --with-site_includes was given.
19157 if test "${with_site_includes+set}" = set; then
19158 withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
19160 SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
19162 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^ *//'`
19165 if test -f /sw/include/db3/db.h; then
19166 CFLAGS="-I/sw/include/db3 $CFLAGS"
19167 elif test -f /sw/include/db4/db.h; then
19168 CFLAGS="-I/sw/include/db4 $CFLAGS"
19175 # Check whether --with-site_libraries was given.
19176 if test "${with_site_libraries+set}" = set; then
19177 withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
19179 SITE_LIBS="$SITE_LIBS -L$dir"
19181 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^ *//'`
19186 # Checks for libraries.
19188 { $as_echo "$as_me:$LINENO: checking for concord_open_ds in -lconcord" >&5
19189 $as_echo_n "checking for concord_open_ds in -lconcord... " >&6; }
19190 if test "${ac_cv_lib_concord_concord_open_ds+set}" = set; then
19191 $as_echo_n "(cached) " >&6
19193 ac_check_lib_save_LIBS=$LIBS
19194 LIBS="-lconcord $LIBS"
19195 cat >conftest.$ac_ext <<_ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19202 /* Override any GCC internal prototype to avoid an error.
19203 Use char because int might match the return type of a GCC
19204 builtin and then its argument prototype would still apply. */
19208 char concord_open_ds ();
19212 return concord_open_ds ();
19217 rm -f conftest.$ac_objext conftest$ac_exeext
19218 if { (ac_try="$ac_link"
19219 case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19224 $as_echo "$ac_try_echo") >&5
19225 (eval "$ac_link") 2>conftest.er1
19227 grep -v '^ *+' conftest.er1 >conftest.err
19229 cat conftest.err >&5
19230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } && {
19232 test -z "$ac_c_werror_flag" ||
19233 test ! -s conftest.err
19234 } && test -s conftest$ac_exeext && {
19235 test "$cross_compiling" = yes ||
19236 $as_test_x conftest$ac_exeext
19238 ac_cv_lib_concord_concord_open_ds=yes
19240 $as_echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_lib_concord_concord_open_ds=no
19246 rm -rf conftest.dSYM
19247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19248 conftest$ac_exeext conftest.$ac_ext
19249 LIBS=$ac_check_lib_save_LIBS
19251 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_concord_concord_open_ds" >&5
19252 $as_echo "$ac_cv_lib_concord_concord_open_ds" >&6; }
19253 if test $ac_cv_lib_concord_concord_open_ds = yes; then
19254 cat >>confdefs.h <<_ACEOF
19255 #define HAVE_LIBCONCORD 1
19258 LIBS="-lconcord $LIBS"
19261 { { $as_echo "$as_me:$LINENO: error: libconcord is not found." >&5
19262 $as_echo "$as_me: error: libconcord is not found." >&2;}
19263 { (exit 1); exit 1; }; }
19267 # Checks for header files.
19269 # Checks for typedefs, structures, and compiler characteristics.
19270 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19271 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19272 if test "${ac_cv_c_const+set}" = set; then
19273 $as_echo_n "(cached) " >&6
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19285 /* FIXME: Include the comments suggested by Paul. */
19286 #ifndef __cplusplus
19287 /* Ultrix mips cc rejects this. */
19288 typedef int charset[2];
19290 /* SunOS 4.1.1 cc rejects this. */
19291 char const *const *pcpcc;
19293 /* NEC SVR4.0.2 mips cc rejects this. */
19294 struct point {int x, y;};
19295 static struct point const zero = {0,0};
19296 /* AIX XL C 1.02.0.0 rejects this.
19297 It does not let you subtract one const X* pointer from another in
19298 an arm of an if-expression whose if-part is not a constant
19300 const char *g = "string";
19301 pcpcc = &g + (g ? g-g : 0);
19302 /* HPUX 7.0 cc rejects these. */
19304 ppc = (char**) pcpcc;
19305 pcpcc = (char const *const *) ppc;
19306 { /* SCO 3.2v4 cc rejects this. */
19308 char const *s = 0 ? (char *) 0 : (char const *) 0;
19313 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19314 int x[] = {25, 17};
19315 const int *foo = &x[0];
19318 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19319 typedef const int *iptr;
19323 { /* AIX XL C 1.02.0.0 rejects this saying
19324 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19325 struct s { int j; const int *ap[3]; };
19326 struct s *b; b->j = 5;
19328 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19329 const int foo = 10;
19330 if (!foo) return 0;
19332 return !cs[0] && !zero.x;
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19346 $as_echo "$ac_try_echo") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest.$ac_objext; then
19359 $as_echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19367 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19368 $as_echo "$ac_cv_c_const" >&6; }
19369 if test $ac_cv_c_const = no; then
19371 cat >>confdefs.h <<\_ACEOF
19377 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19378 $as_echo_n "checking for inline... " >&6; }
19379 if test "${ac_cv_c_inline+set}" = set; then
19380 $as_echo_n "(cached) " >&6
19383 for ac_kw in inline __inline__ __inline; do
19384 cat >conftest.$ac_ext <<_ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 #ifndef __cplusplus
19392 static $ac_kw foo_t static_foo () {return 0; }
19393 $ac_kw foo_t foo () {return 0; }
19397 rm -f conftest.$ac_objext
19398 if { (ac_try="$ac_compile"
19399 case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19404 $as_echo "$ac_try_echo") >&5
19405 (eval "$ac_compile") 2>conftest.er1
19407 grep -v '^ *+' conftest.er1 >conftest.err
19409 cat conftest.err >&5
19410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && {
19412 test -z "$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 } && test -s conftest.$ac_objext; then
19415 ac_cv_c_inline=$ac_kw
19417 $as_echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 test "$ac_cv_c_inline" != no && break
19428 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19429 $as_echo "$ac_cv_c_inline" >&6; }
19432 case $ac_cv_c_inline in
19435 case $ac_cv_c_inline in
19437 *) ac_val=$ac_cv_c_inline;;
19439 cat >>confdefs.h <<_ACEOF
19440 #ifndef __cplusplus
19441 #define inline $ac_val
19448 # Checks for library functions.
19449 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19450 # for constant arguments. Useless!
19451 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19452 $as_echo_n "checking for working alloca.h... " >&6; }
19453 if test "${ac_cv_working_alloca_h+set}" = set; then
19454 $as_echo_n "(cached) " >&6
19456 cat >conftest.$ac_ext <<_ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19462 #include <alloca.h>
19466 char *p = (char *) alloca (2 * sizeof (int));
19472 rm -f conftest.$ac_objext conftest$ac_exeext
19473 if { (ac_try="$ac_link"
19474 case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19479 $as_echo "$ac_try_echo") >&5
19480 (eval "$ac_link") 2>conftest.er1
19482 grep -v '^ *+' conftest.er1 >conftest.err
19484 cat conftest.err >&5
19485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } && {
19487 test -z "$ac_c_werror_flag" ||
19488 test ! -s conftest.err
19489 } && test -s conftest$ac_exeext && {
19490 test "$cross_compiling" = yes ||
19491 $as_test_x conftest$ac_exeext
19493 ac_cv_working_alloca_h=yes
19495 $as_echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_cv_working_alloca_h=no
19501 rm -rf conftest.dSYM
19502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19503 conftest$ac_exeext conftest.$ac_ext
19505 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19506 $as_echo "$ac_cv_working_alloca_h" >&6; }
19507 if test $ac_cv_working_alloca_h = yes; then
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE_ALLOCA_H 1
19515 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19516 $as_echo_n "checking for alloca... " >&6; }
19517 if test "${ac_cv_func_alloca_works+set}" = set; then
19518 $as_echo_n "(cached) " >&6
19520 cat >conftest.$ac_ext <<_ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19527 # define alloca __builtin_alloca
19530 # include <malloc.h>
19531 # define alloca _alloca
19533 # ifdef HAVE_ALLOCA_H
19534 # include <alloca.h>
19539 # ifndef alloca /* predefined by HP cc +Olibcalls */
19550 char *p = (char *) alloca (1);
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19563 $as_echo "$ac_try_echo") >&5
19564 (eval "$ac_link") 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } && {
19571 test -z "$ac_c_werror_flag" ||
19572 test ! -s conftest.err
19573 } && test -s conftest$ac_exeext && {
19574 test "$cross_compiling" = yes ||
19575 $as_test_x conftest$ac_exeext
19577 ac_cv_func_alloca_works=yes
19579 $as_echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_func_alloca_works=no
19585 rm -rf conftest.dSYM
19586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19587 conftest$ac_exeext conftest.$ac_ext
19589 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19590 $as_echo "$ac_cv_func_alloca_works" >&6; }
19592 if test $ac_cv_func_alloca_works = yes; then
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE_ALLOCA 1
19599 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19600 # that cause trouble. Some versions do not even contain alloca or
19601 # contain a buggy version. If you still want to use their alloca,
19602 # use ar to extract alloca.o from them instead of compiling alloca.c.
19604 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19606 cat >>confdefs.h <<\_ACEOF
19611 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19612 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19613 if test "${ac_cv_os_cray+set}" = set; then
19614 $as_echo_n "(cached) " >&6
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #if defined CRAY && ! defined CRAY2
19629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19630 $EGREP "webecray" >/dev/null 2>&1; then
19638 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19639 $as_echo "$ac_cv_os_cray" >&6; }
19640 if test $ac_cv_os_cray = yes; then
19641 for ac_func in _getb67 GETB67 getb67; do
19642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19643 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19644 $as_echo_n "checking for $ac_func... " >&6; }
19645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19646 $as_echo_n "(cached) " >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19656 #define $ac_func innocuous_$ac_func
19658 /* System header to define __stub macros and hopefully few prototypes,
19659 which can conflict with char $ac_func (); below.
19660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19661 <limits.h> exists even on freestanding compilers. */
19664 # include <limits.h>
19666 # include <assert.h>
19671 /* Override any GCC internal prototype to avoid an error.
19672 Use char because int might match the return type of a GCC
19673 builtin and then its argument prototype would still apply. */
19678 /* The GNU C library defines this for functions which it implements
19679 to always fail with ENOSYS. Some functions are actually named
19680 something starting with __ and the normal name is an alias. */
19681 #if defined __stub_$ac_func || defined __stub___$ac_func
19688 return $ac_func ();
19693 rm -f conftest.$ac_objext conftest$ac_exeext
19694 if { (ac_try="$ac_link"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19700 $as_echo "$ac_try_echo") >&5
19701 (eval "$ac_link") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext && {
19711 test "$cross_compiling" = yes ||
19712 $as_test_x conftest$ac_exeext
19714 eval "$as_ac_var=yes"
19716 $as_echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19719 eval "$as_ac_var=no"
19722 rm -rf conftest.dSYM
19723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19724 conftest$ac_exeext conftest.$ac_ext
19726 ac_res=`eval 'as_val=${'$as_ac_var'}
19727 $as_echo "$as_val"'`
19728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19729 $as_echo "$ac_res" >&6; }
19730 if test `eval 'as_val=${'$as_ac_var'}
19731 $as_echo "$as_val"'` = yes; then
19733 cat >>confdefs.h <<_ACEOF
19734 #define CRAY_STACKSEG_END $ac_func
19743 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19744 $as_echo_n "checking stack direction for C alloca... " >&6; }
19745 if test "${ac_cv_c_stack_direction+set}" = set; then
19746 $as_echo_n "(cached) " >&6
19748 if test "$cross_compiling" = yes; then
19749 ac_cv_c_stack_direction=0
19751 cat >conftest.$ac_ext <<_ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 $ac_includes_default
19759 find_stack_direction ()
19761 static char *addr = 0;
19766 return find_stack_direction ();
19769 return (&dummy > addr) ? 1 : -1;
19775 return find_stack_direction () < 0;
19778 rm -f conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19785 $as_echo "$ac_try_echo") >&5
19786 (eval "$ac_link") 2>&5
19788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19790 { (case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19795 $as_echo "$ac_try_echo") >&5
19796 (eval "$ac_try") 2>&5
19798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_c_stack_direction=1
19802 $as_echo "$as_me: program exited with status $ac_status" >&5
19803 $as_echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ( exit $ac_status )
19807 ac_cv_c_stack_direction=-1
19809 rm -rf conftest.dSYM
19810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19815 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19816 $as_echo "$ac_cv_c_stack_direction" >&6; }
19818 cat >>confdefs.h <<_ACEOF
19819 #define STACK_DIRECTION $ac_cv_c_stack_direction
19826 if test "${ac_cv_header_minix_config_h+set}" = set; then
19827 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
19828 $as_echo_n "checking for minix/config.h... " >&6; }
19829 if test "${ac_cv_header_minix_config_h+set}" = set; then
19830 $as_echo_n "(cached) " >&6
19832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19833 $as_echo "$ac_cv_header_minix_config_h" >&6; }
19835 # Is the header compilable?
19836 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
19837 $as_echo_n "checking minix/config.h usability... " >&6; }
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 $ac_includes_default
19845 #include <minix/config.h>
19847 rm -f conftest.$ac_objext
19848 if { (ac_try="$ac_compile"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19854 $as_echo "$ac_try_echo") >&5
19855 (eval "$ac_compile") 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest.$ac_objext; then
19865 ac_header_compiler=yes
19867 $as_echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_header_compiler=no
19873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19875 $as_echo "$ac_header_compiler" >&6; }
19877 # Is the header present?
19878 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
19879 $as_echo_n "checking minix/config.h presence... " >&6; }
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <minix/config.h>
19888 if { (ac_try="$ac_cpp conftest.$ac_ext"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19894 $as_echo "$ac_try_echo") >&5
19895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } >/dev/null && {
19902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19905 ac_header_preproc=yes
19907 $as_echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_header_preproc=no
19913 rm -f conftest.err conftest.$ac_ext
19914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915 $as_echo "$ac_header_preproc" >&6; }
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19920 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
19921 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19922 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
19923 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
19924 ac_header_preproc=yes
19927 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
19928 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
19930 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
19931 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
19932 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
19933 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
19934 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
19935 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
19936 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
19937 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
19938 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
19940 ## -------------------------------- ##
19941 ## Report this to chise-en@m17n.org ##
19942 ## -------------------------------- ##
19944 ) | sed "s/^/$as_me: WARNING: /" >&2
19947 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
19948 $as_echo_n "checking for minix/config.h... " >&6; }
19949 if test "${ac_cv_header_minix_config_h+set}" = set; then
19950 $as_echo_n "(cached) " >&6
19952 ac_cv_header_minix_config_h=$ac_header_preproc
19954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19955 $as_echo "$ac_cv_header_minix_config_h" >&6; }
19958 if test $ac_cv_header_minix_config_h = yes; then
19965 if test "$MINIX" = yes; then
19967 cat >>confdefs.h <<\_ACEOF
19968 #define _POSIX_SOURCE 1
19972 cat >>confdefs.h <<\_ACEOF
19973 #define _POSIX_1_SOURCE 2
19977 cat >>confdefs.h <<\_ACEOF
19985 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
19986 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
19987 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
19988 $as_echo_n "(cached) " >&6
19990 cat >conftest.$ac_ext <<_ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19997 # define __EXTENSIONS__ 1
19998 $ac_includes_default
20007 rm -f conftest.$ac_objext
20008 if { (ac_try="$ac_compile"
20009 case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20014 $as_echo "$ac_try_echo") >&5
20015 (eval "$ac_compile") 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } && {
20022 test -z "$ac_c_werror_flag" ||
20023 test ! -s conftest.err
20024 } && test -s conftest.$ac_objext; then
20025 ac_cv_safe_to_define___extensions__=yes
20027 $as_echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_safe_to_define___extensions__=no
20033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
20036 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
20037 test $ac_cv_safe_to_define___extensions__ = yes &&
20038 cat >>confdefs.h <<\_ACEOF
20039 #define __EXTENSIONS__ 1
20042 cat >>confdefs.h <<\_ACEOF
20043 #define _ALL_SOURCE 1
20046 cat >>confdefs.h <<\_ACEOF
20047 #define _GNU_SOURCE 1
20050 cat >>confdefs.h <<\_ACEOF
20051 #define _POSIX_PTHREAD_SEMANTICS 1
20054 cat >>confdefs.h <<\_ACEOF
20055 #define _TANDEM_SOURCE 1
20059 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
20060 $as_echo_n "checking for working strnlen... " >&6; }
20061 if test "${ac_cv_func_strnlen_working+set}" = set; then
20062 $as_echo_n "(cached) " >&6
20064 if test "$cross_compiling" = yes; then
20065 ac_cv_func_strnlen_working=no
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 $ac_includes_default
20079 #define S_LEN (sizeof S - 1)
20081 /* At least one implementation is buggy: that of AIX 4.3 would
20082 give strnlen (S, 1) == 3. */
20085 for (i = 0; i < S_LEN + 1; ++i)
20087 int expected = i <= S_LEN ? i : S_LEN;
20088 if (strnlen (S, i) != expected)
20097 rm -f conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20104 $as_echo "$ac_try_echo") >&5
20105 (eval "$ac_link") 2>&5
20107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20109 { (case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20114 $as_echo "$ac_try_echo") >&5
20115 (eval "$ac_try") 2>&5
20117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 ac_cv_func_strnlen_working=yes
20121 $as_echo "$as_me: program exited with status $ac_status" >&5
20122 $as_echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 ( exit $ac_status )
20126 ac_cv_func_strnlen_working=no
20128 rm -rf conftest.dSYM
20129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
20135 $as_echo "$ac_cv_func_strnlen_working" >&6; }
20136 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
20137 *" strnlen.$ac_objext "* ) ;;
20138 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
20145 for ac_func in strnlen
20147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20148 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20149 $as_echo_n "checking for $ac_func... " >&6; }
20150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20151 $as_echo_n "(cached) " >&6
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20161 #define $ac_func innocuous_$ac_func
20163 /* System header to define __stub macros and hopefully few prototypes,
20164 which can conflict with char $ac_func (); below.
20165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20166 <limits.h> exists even on freestanding compilers. */
20169 # include <limits.h>
20171 # include <assert.h>
20176 /* Override any GCC internal prototype to avoid an error.
20177 Use char because int might match the return type of a GCC
20178 builtin and then its argument prototype would still apply. */
20183 /* The GNU C library defines this for functions which it implements
20184 to always fail with ENOSYS. Some functions are actually named
20185 something starting with __ and the normal name is an alias. */
20186 #if defined __stub_$ac_func || defined __stub___$ac_func
20193 return $ac_func ();
20198 rm -f conftest.$ac_objext conftest$ac_exeext
20199 if { (ac_try="$ac_link"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20205 $as_echo "$ac_try_echo") >&5
20206 (eval "$ac_link") 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest$ac_exeext && {
20216 test "$cross_compiling" = yes ||
20217 $as_test_x conftest$ac_exeext
20219 eval "$as_ac_var=yes"
20221 $as_echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 eval "$as_ac_var=no"
20227 rm -rf conftest.dSYM
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20231 ac_res=`eval 'as_val=${'$as_ac_var'}
20232 $as_echo "$as_val"'`
20233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20234 $as_echo "$ac_res" >&6; }
20235 if test `eval 'as_val=${'$as_ac_var'}
20236 $as_echo "$as_val"'` = yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20245 ac_config_files="$ac_config_files Makefile"
20247 cat >confcache <<\_ACEOF
20248 # This file is a shell script that caches the results of configure
20249 # tests run on this system so they can be shared between configure
20250 # scripts and configure runs, see configure's option --config-cache.
20251 # It is not useful on other systems. If it contains results you don't
20252 # want to keep, you may remove or edit it.
20254 # config.status only pays attention to the cache file if you give it
20255 # the --recheck option to rerun configure.
20257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20259 # following values.
20263 # The following way of writing the cache mishandles newlines in values,
20264 # but we know of no workaround that is simple, portable, and efficient.
20265 # So, we kill variables containing newlines.
20266 # Ultrix sh set writes to stderr and can't be redirected directly,
20267 # and sets the high bit in the cache file unless we assign to the vars.
20269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20270 eval ac_val=\$$ac_var
20274 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20275 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20278 _ | IFS | as_nl) ;; #(
20279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20280 *) $as_unset $ac_var ;;
20286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20287 *${as_nl}ac_space=\ *)
20288 # `set' does not quote correctly, so add quotes (double-quote
20289 # substitution turns \\\\ into \\, and sed turns \\ into \).
20292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20295 # `set' quotes correctly as required by POSIX, so do not add quotes.
20296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20310 if test -w "$cache_file"; then
20311 test "x$cache_file" != "x/dev/null" &&
20312 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20313 $as_echo "$as_me: updating cache $cache_file" >&6;}
20314 cat confcache >$cache_file
20316 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20323 # Let make expand exec_prefix.
20324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20326 DEFS=-DHAVE_CONFIG_H
20330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20331 # 1. Remove the extension, and $U if already installed.
20332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20335 # will be set to the directory where LIBOBJS objects are built.
20336 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20337 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20339 LIBOBJS=$ac_libobjs
20341 LTLIBOBJS=$ac_ltlibobjs
20345 : ${CONFIG_STATUS=./config.status}
20347 ac_clean_files_save=$ac_clean_files
20348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20349 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20351 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20353 # Generated by $as_me.
20354 # Run this file to recreate the current configuration.
20355 # Compiler output produced by configure, useful for debugging
20356 # configure, is in config.log if it exists.
20359 ac_cs_recheck=false
20361 SHELL=\${CONFIG_SHELL-$SHELL}
20364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20365 ## --------------------- ##
20366 ## M4sh Initialization. ##
20367 ## --------------------- ##
20369 # Be more Bourne compatible
20370 DUALCASE=1; export DUALCASE # for MKS sh
20371 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20374 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20375 # is contrary to our usage. Disable this feature.
20376 alias -g '${1+"$@"}'='"$@"'
20377 setopt NO_GLOB_SUBST
20379 case `(set -o) 2>/dev/null` in
20380 *posix*) set -o posix ;;
20389 # Avoid depending upon Character Ranges.
20390 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20391 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20392 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20393 as_cr_digits='0123456789'
20394 as_cr_alnum=$as_cr_Letters$as_cr_digits
20399 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20400 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20401 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20403 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20404 as_echo='printf %s\n'
20405 as_echo_n='printf %s'
20407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20408 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20409 as_echo_n='/usr/ucb/echo -n'
20411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20412 as_echo_n_body='eval
20416 expr "X$arg" : "X\\(.*\\)$as_nl";
20417 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20419 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20421 export as_echo_n_body
20422 as_echo_n='sh -c $as_echo_n_body as_echo'
20424 export as_echo_body
20425 as_echo='sh -c $as_echo_body as_echo'
20428 # The user is always right.
20429 if test "${PATH_SEPARATOR+set}" != set; then
20431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20437 # Support unset when possible.
20438 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20446 # We need space, tab and new line, in precisely that order. Quoting is
20447 # there to prevent editors from complaining about space-tab.
20448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20449 # splitting by setting IFS to empty value.)
20452 # Find who we are. Look in the path if we contain no directory separator.
20454 *[\\/]* ) as_myself=$0 ;;
20455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20456 for as_dir in $PATH
20459 test -z "$as_dir" && as_dir=.
20460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20466 # We did not find ourselves, most probably we were run as `sh COMMAND'
20467 # in which case we are not to be found in the path.
20468 if test "x$as_myself" = x; then
20471 if test ! -f "$as_myself"; then
20472 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20473 { (exit 1); exit 1; }
20476 # Work around bugs in pre-3.0 UWIN ksh.
20477 for as_var in ENV MAIL MAILPATH
20478 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20490 # Required to use basename.
20491 if expr a : '\(a\)' >/dev/null 2>&1 &&
20492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20498 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20499 as_basename=basename
20505 # Name of the executable.
20506 as_me=`$as_basename -- "$0" ||
20507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20508 X"$0" : 'X\(//\)$' \| \
20509 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20511 sed '/^.*\/\([^/][^/]*\)\/*$/{
20530 as_lineno_1=$LINENO
20531 as_lineno_2=$LINENO
20532 test "x$as_lineno_1" != "x$as_lineno_2" &&
20533 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20535 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20536 # uniformly replaced by the line number. The first 'sed' inserts a
20537 # line-number line after each line using $LINENO; the second 'sed'
20538 # does the real work. The second script uses 'N' to pair each
20539 # line-number line with the line containing $LINENO, and appends
20540 # trailing '-' during substitution so that $LINENO is not a special
20541 # case at line end.
20542 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20543 # scripts with optimization help from Paolo Bonzini. Blame Lee
20544 # E. McMahon (1931-1989) for sed's syntax. :-)
20556 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20559 ' >$as_me.lineno &&
20560 chmod +x "$as_me.lineno" ||
20561 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20562 { (exit 1); exit 1; }; }
20564 # Don't try to exec as it changes $[0], causing all sort of problems
20565 # (the dirname of $[0] is not the place where we might find the
20566 # original and so on. Autoconf is especially sensitive to this).
20567 . "./$as_me.lineno"
20568 # Exit status is that of the last command.
20573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20579 ECHO_C= ECHO_N= ECHO_T=
20580 case `echo -n x` in
20582 case `echo 'x\c'` in
20583 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20589 if expr a : '\(a\)' >/dev/null 2>&1 &&
20590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20596 rm -f conf$$ conf$$.exe conf$$.file
20597 if test -d conf$$.dir; then
20598 rm -f conf$$.dir/conf$$.file
20601 mkdir conf$$.dir 2>/dev/null
20603 if (echo >conf$$.file) 2>/dev/null; then
20604 if ln -s conf$$.file conf$$ 2>/dev/null; then
20606 # ... but there are two gotchas:
20607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20609 # In both cases, we have to default to `cp -p'.
20610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20612 elif ln conf$$.file conf$$ 2>/dev/null; then
20620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20621 rmdir conf$$.dir 2>/dev/null
20623 if mkdir -p . 2>/dev/null; then
20626 test -d ./-p && rmdir ./-p
20630 if test -x / >/dev/null 2>&1; then
20631 as_test_x='test -x'
20633 if ls -dL / >/dev/null 2>&1; then
20640 if test -d "$1"; then
20646 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20647 ???[sx]*):;;*)false;;esac;fi
20651 as_executable_p=$as_test_x
20653 # Sed expression to map a string onto a valid CPP name.
20654 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20656 # Sed expression to map a string onto a valid variable name.
20657 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20662 # Save the log message, to keep $[0] and so on meaningful, and to
20663 # report actual input values of CONFIG_FILES etc. instead of their
20664 # values after options handling.
20666 This file was extended by libchise $as_me 0.4.1, which was
20667 generated by GNU Autoconf 2.62. Invocation command line was
20669 CONFIG_FILES = $CONFIG_FILES
20670 CONFIG_HEADERS = $CONFIG_HEADERS
20671 CONFIG_LINKS = $CONFIG_LINKS
20672 CONFIG_COMMANDS = $CONFIG_COMMANDS
20675 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20681 # Files that config.status was made for.
20682 config_files="$ac_config_files"
20683 config_headers="$ac_config_headers"
20687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20689 \`$as_me' instantiates files from templates according to the
20690 current configuration.
20692 Usage: $0 [OPTIONS] [FILE]...
20694 -h, --help print this help, then exit
20695 -V, --version print version number and configuration settings, then exit
20696 -q, --quiet do not print progress messages
20697 -d, --debug don't remove temporary files
20698 --recheck update $as_me by reconfiguring in the same conditions
20699 --file=FILE[:TEMPLATE]
20700 instantiate the configuration file FILE
20701 --header=FILE[:TEMPLATE]
20702 instantiate the configuration header FILE
20704 Configuration files:
20707 Configuration headers:
20710 Report bugs to <bug-autoconf@gnu.org>."
20713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20715 libchise config.status 0.4.1
20716 configured by $0, generated by GNU Autoconf 2.62,
20717 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20719 Copyright (C) 2008 Free Software Foundation, Inc.
20720 This config.status script is free software; the Free Software Foundation
20721 gives unlimited permission to copy, distribute and modify it."
20725 test -n "\$AWK" || AWK=awk
20728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20729 # The default lists apply if the user does not specify any file.
20735 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20736 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20747 # Handling of the options.
20748 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20750 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20751 $as_echo "$ac_cs_version"; exit ;;
20752 --debug | --debu | --deb | --de | --d | -d )
20754 --file | --fil | --fi | --f )
20757 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20759 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20760 ac_need_defaults=false;;
20761 --header | --heade | --head | --hea )
20764 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20766 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20767 ac_need_defaults=false;;
20769 # Conflict between --help and --header
20770 { $as_echo "$as_me: error: ambiguous option: $1
20771 Try \`$0 --help' for more information." >&2
20772 { (exit 1); exit 1; }; };;
20773 --help | --hel | -h )
20774 $as_echo "$ac_cs_usage"; exit ;;
20775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20776 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20779 # This is an error.
20780 -*) { $as_echo "$as_me: error: unrecognized option: $1
20781 Try \`$0 --help' for more information." >&2
20782 { (exit 1); exit 1; }; } ;;
20784 *) ac_config_targets="$ac_config_targets $1"
20785 ac_need_defaults=false ;;
20791 ac_configure_extra_args=
20793 if $ac_cs_silent; then
20795 ac_configure_extra_args="$ac_configure_extra_args --silent"
20799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20800 if \$ac_cs_recheck; then
20801 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20803 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20804 CONFIG_SHELL='$SHELL'
20805 export CONFIG_SHELL
20810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20815 ## Running $as_me. ##
20821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20826 # Handling of arguments.
20827 for ac_config_target in $ac_config_targets
20829 case $ac_config_target in
20830 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20833 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20834 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20835 { (exit 1); exit 1; }; };;
20840 # If the user did not use the arguments to specify the items to instantiate,
20841 # then the envvar interface is used. Set only those that are not.
20842 # We use the long form for the default assignment because of an extremely
20843 # bizarre bug on SunOS 4.1.3.
20844 if $ac_need_defaults; then
20845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20846 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20849 # Have a temporary directory for convenience. Make it in the build tree
20850 # simply because there is no reason against having it here, and in addition,
20851 # creating and moving files from /tmp can sometimes cause problems.
20852 # Hook for its removal unless debugging.
20853 # Note that there is a small window in which the directory will not be cleaned:
20854 # after its creation but before its name has been assigned to `$tmp'.
20858 trap 'exit_status=$?
20859 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20861 trap '{ (exit 1); exit 1; }' 1 2 13 15
20863 # Create a (secure) tmp directory for tmp files.
20866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20867 test -n "$tmp" && test -d "$tmp"
20870 tmp=./conf$$-$RANDOM
20871 (umask 077 && mkdir "$tmp")
20874 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20875 { (exit 1); exit 1; }
20878 # Set up the scripts for CONFIG_FILES section.
20879 # No need to generate them if there are no CONFIG_FILES.
20880 # This happens for instance with `./config.status config.h'.
20881 if test -n "$CONFIG_FILES"; then
20885 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20886 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20889 ac_cs_awk_cr=$ac_cr
20892 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20897 echo "cat >conf$$subs.awk <<_ACEOF" &&
20898 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20900 } >conf$$subs.sh ||
20901 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20902 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20903 { (exit 1); exit 1; }; }
20904 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20906 for ac_last_try in false false false false false :; do
20907 . ./conf$$subs.sh ||
20908 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20909 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20910 { (exit 1); exit 1; }; }
20912 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
20914 elif $ac_last_try; then
20915 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20916 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20917 { (exit 1); exit 1; }; }
20919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20922 rm -f conf$$subs.sh
20924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20925 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20929 s/^/S["/; s/!.*/"]=/
20939 s/\(.\{148\}\).*/\1/
20941 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20953 s/\(.\{148\}\).*/\1/
20955 s/["\\]/\\&/g; s/^/"/; s/$/"/
20959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20964 ' <conf$$subs.awk | sed '
20969 ' >>$CONFIG_STATUS || ac_write_fail=1
20970 rm -f conf$$subs.awk
20971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20973 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20974 for (key in S) S_is_set[key] = 1
20980 nfields = split(line, field, "@")
20982 len = length(field[1])
20983 for (i = 2; i < nfields; i++) {
20985 keylen = length(key)
20986 if (S_is_set[key]) {
20988 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20989 len += length(value) + length(field[++i])
21000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21001 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21002 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21005 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21006 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21007 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21008 { (exit 1); exit 1; }; }
21011 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21012 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21013 # trailing colons and then remove the whole line if VPATH becomes empty
21014 # (actually we leave an empty line to preserve line numbers).
21015 if test "x$srcdir" = x.; then
21016 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21017 s/:*\$(srcdir):*/:/
21018 s/:*\${srcdir}:*/:/
21020 s/^\([^=]*=[ ]*\):*/\1/
21026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21027 fi # test -n "$CONFIG_FILES"
21029 # Set up the scripts for CONFIG_HEADERS section.
21030 # No need to generate them if there are no CONFIG_HEADERS.
21031 # This happens for instance with `./config.status Makefile'.
21032 if test -n "$CONFIG_HEADERS"; then
21033 cat >"$tmp/defines.awk" <<\_ACAWK ||
21037 # Transform confdefs.h into an awk script `defines.awk', embedded as
21038 # here-document in config.status, that substitutes the proper values into
21039 # config.h.in to produce config.h.
21041 # Create a delimiter string that does not exist in confdefs.h, to ease
21042 # handling of long lines.
21044 for ac_last_try in false false :; do
21045 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21046 if test -z "$ac_t"; then
21048 elif $ac_last_try; then
21049 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21050 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21051 { (exit 1); exit 1; }; }
21053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21057 # For the awk script, D is an array of macro values keyed by name,
21058 # likewise P contains macro parameters if any. Preserve backslash
21059 # newline sequences.
21061 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21063 s/.\{148\}/&'"$ac_delim"'/g
21066 s/^[ ]*#[ ]*define[ ][ ]*/ /
21073 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21075 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21079 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21080 D["\1"]=" \3\\\\\\n"\\/p
21082 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21087 s/.\{148\}/&'"$ac_delim"'/g
21092 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21095 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21097 ' <confdefs.h | sed '
21098 s/'"$ac_delim"'/"\\\
21099 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21102 for (key in D) D_is_set[key] = 1
21105 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21107 split(line, arg, " ")
21108 if (arg[1] == "#") {
21112 defundef = substr(arg[1], 2)
21115 split(mac1, mac2, "(") #)
21117 if (D_is_set[macro]) {
21118 # Preserve the white space surrounding the "#".
21119 prefix = substr(line, 1, index(line, defundef) - 1)
21120 print prefix "define", macro P[macro] D[macro]
21123 # Replace #undef with comments. This is necessary, for example,
21124 # in the case of _POSIX_SOURCE, which is predefined and required
21125 # on some systems where configure will not decide to define it.
21126 if (defundef == "undef") {
21127 print "/*", line, "*/"
21135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21136 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21137 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21138 { (exit 1); exit 1; }; }
21139 fi # test -n "$CONFIG_HEADERS"
21142 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
21147 :[FHLC]) ac_mode=$ac_tag; continue;;
21149 case $ac_mode$ac_tag in
21151 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21152 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21153 { (exit 1); exit 1; }; };;
21154 :[FH]-) ac_tag=-:-;;
21155 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21172 -) ac_f="$tmp/stdin";;
21173 *) # Look for the file first in the build tree, then in the source tree
21174 # (if the path is not absolute). The absolute path cannot be DOS-style,
21175 # because $ac_f cannot contain `:'.
21179 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21181 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21182 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21183 { (exit 1); exit 1; }; };;
21185 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21186 ac_file_inputs="$ac_file_inputs '$ac_f'"
21189 # Let's still pretend it is `configure' which instantiates (i.e., don't
21190 # use $as_me), people would be surprised to read:
21191 # /* config.h. Generated by config.status. */
21192 configure_input='Generated from '`
21193 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21195 if test x"$ac_file" != x-; then
21196 configure_input="$ac_file. $configure_input"
21197 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21198 $as_echo "$as_me: creating $ac_file" >&6;}
21200 # Neutralize special characters interpreted by sed in replacement strings.
21201 case $configure_input in #(
21202 *\&* | *\|* | *\\* )
21203 ac_sed_conf_input=`$as_echo "$configure_input" |
21204 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21205 *) ac_sed_conf_input=$configure_input;;
21209 *:-:* | *:-) cat >"$tmp/stdin" \
21210 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21211 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21212 { (exit 1); exit 1; }; } ;;
21217 ac_dir=`$as_dirname -- "$ac_file" ||
21218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21219 X"$ac_file" : 'X\(//\)[^/]' \| \
21220 X"$ac_file" : 'X\(//\)$' \| \
21221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21222 $as_echo X"$ac_file" |
21223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21227 /^X\(\/\/\)[^/].*/{
21242 -*) as_dir=./$as_dir;;
21244 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21248 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21249 *) as_qdir=$as_dir;;
21251 as_dirs="'$as_qdir' $as_dirs"
21252 as_dir=`$as_dirname -- "$as_dir" ||
21253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21254 X"$as_dir" : 'X\(//\)[^/]' \| \
21255 X"$as_dir" : 'X\(//\)$' \| \
21256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21257 $as_echo X"$as_dir" |
21258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21262 /^X\(\/\/\)[^/].*/{
21275 test -d "$as_dir" && break
21277 test -z "$as_dirs" || eval "mkdir $as_dirs"
21278 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21279 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21280 { (exit 1); exit 1; }; }; }
21284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21287 # A ".." for each directory in $ac_dir_suffix.
21288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21289 case $ac_top_builddir_sub in
21290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21294 ac_abs_top_builddir=$ac_pwd
21295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21296 # for backward compatibility:
21297 ac_top_builddir=$ac_top_build_prefix
21300 .) # We are building in place.
21302 ac_top_srcdir=$ac_top_builddir_sub
21303 ac_abs_top_srcdir=$ac_pwd ;;
21304 [\\/]* | ?:[\\/]* ) # Absolute name.
21305 ac_srcdir=$srcdir$ac_dir_suffix;
21306 ac_top_srcdir=$srcdir
21307 ac_abs_top_srcdir=$srcdir ;;
21308 *) # Relative name.
21309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21310 ac_top_srcdir=$ac_top_build_prefix$srcdir
21311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21325 # If the template does not know about datarootdir, expand it.
21326 # FIXME: This hack should be removed a few years after 2.60.
21327 ac_datarootdir_hack=; ac_datarootdir_seen=
21340 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21341 *datarootdir*) ac_datarootdir_seen=yes;;
21342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21343 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21344 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21347 ac_datarootdir_hack='
21348 s&@datadir@&$datadir&g
21349 s&@docdir@&$docdir&g
21350 s&@infodir@&$infodir&g
21351 s&@localedir@&$localedir&g
21352 s&@mandir@&$mandir&g
21353 s&\\\${datarootdir}&$datarootdir&g' ;;
21357 # Neutralize VPATH when `$srcdir' = `.'.
21358 # Shell code in configure.ac might set extrasub.
21359 # FIXME: do we really want to maintain this feature?
21360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21361 ac_sed_extra="$ac_vpsub
21364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21367 s|@configure_input@|$ac_sed_conf_input|;t t
21368 s&@top_builddir@&$ac_top_builddir_sub&;t t
21369 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21370 s&@srcdir@&$ac_srcdir&;t t
21371 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21372 s&@top_srcdir@&$ac_top_srcdir&;t t
21373 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21374 s&@builddir@&$ac_builddir&;t t
21375 s&@abs_builddir@&$ac_abs_builddir&;t t
21376 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21377 $ac_datarootdir_hack
21379 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21380 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21381 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21382 { (exit 1); exit 1; }; }
21384 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21385 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21386 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21387 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21388 which seems to be undefined. Please make sure it is defined." >&5
21389 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21390 which seems to be undefined. Please make sure it is defined." >&2;}
21394 -) cat "$tmp/out" && rm -f "$tmp/out";;
21395 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21397 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21398 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21399 { (exit 1); exit 1; }; }
21405 if test x"$ac_file" != x-; then
21407 $as_echo "/* $configure_input */" \
21408 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21409 } >"$tmp/config.h" \
21410 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21411 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21412 { (exit 1); exit 1; }; }
21413 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21414 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21415 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21418 mv "$tmp/config.h" "$ac_file" \
21419 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21420 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21421 { (exit 1); exit 1; }; }
21424 $as_echo "/* $configure_input */" \
21425 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21426 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21427 $as_echo "$as_me: error: could not create -" >&2;}
21428 { (exit 1); exit 1; }; }
21438 { (exit 0); exit 0; }
21440 chmod +x $CONFIG_STATUS
21441 ac_clean_files=$ac_clean_files_save
21443 test $ac_write_fail = 0 ||
21444 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21445 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21446 { (exit 1); exit 1; }; }
21449 # configure is writing to config.log, and then calls config.status.
21450 # config.status does its own redirection, appending to config.log.
21451 # Unfortunately, on DOS this fails, as config.log is still kept open
21452 # by configure, so config.status won't be able to write to it; its
21453 # output is simply discarded. So we exec the FD to /dev/null,
21454 # effectively closing config.log, so it can be properly (re)opened and
21455 # appended to by config.status. When coming back to configure, we
21456 # need to make the FD available again.
21457 if test "$no_create" != yes; then
21459 ac_config_status_args=
21460 test "$silent" = yes &&
21461 ac_config_status_args="$ac_config_status_args --quiet"
21463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21466 # would make configure fail if this is the last instruction.
21467 $ac_cs_success || { (exit 1); exit 1; }
21469 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21470 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
21471 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}