2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for concord 0.0.2.
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 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
599 echo_test_string="`eval $cmd`" &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='concord'
730 PACKAGE_TARNAME='concord'
731 PACKAGE_VERSION='0.0.2'
732 PACKAGE_STRING='concord 0.0.2'
733 PACKAGE_BUGREPORT='chise-en@m17n.org'
735 ac_unique_file="concord.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
848 ac_precious_vars='build_alias
865 # Initialize some variables set by options.
867 ac_init_version=false
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
969 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
970 { (exit 1); exit 1; }; }
971 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
972 eval enable_$ac_feature=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 -enable-* | --enable-*)
985 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
988 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
989 { (exit 1); exit 1; }; }
990 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
991 eval enable_$ac_feature=\$ac_optarg ;;
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 htmldir=$ac_optarg ;;
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1036 -libdir | --libdir | --libdi | --libd)
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1127 -psdir | --psdir | --psdi | --psd | --ps)
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1155 -site=* | --site=* | --sit=*)
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1182 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid package name: $ac_package" >&2
1186 { (exit 1); exit 1; }; }
1187 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1188 eval with_$ac_package=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid package name: $ac_package" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1197 eval with_$ac_package=no ;;
1200 # Obsolete; use --with-x.
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) { echo "$as_me: error: unrecognized option: $ac_option
1218 Try \`$0 --help' for more information." >&2
1219 { (exit 1); exit 1; }; }
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1227 { (exit 1); exit 1; }; }
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 { echo "$as_me: error: missing argument to $ac_option" >&2
1245 { (exit 1); exit 1; }; }
1248 # Be sure to have absolute directory names.
1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1254 eval ac_val=\$$ac_var
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1260 { (exit 1); exit 1; }; }
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1268 target=$target_alias
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1275 If a cross compiler is detected then cross compile mode will be used." >&2
1276 elif test "x$build_alias" != "x$host_alias"; then
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284 test "$silent" = yes && exec 6>/dev/null
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 { echo "$as_me: error: Working directory cannot be determined" >&2
1291 { (exit 1); exit 1; }; }
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293 { echo "$as_me: error: pwd does not report name of working directory" >&2
1294 { (exit 1); exit 1; }; }
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$0" ||
1302 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$0" : 'X\(//\)[^/]' \| \
1304 X"$0" : 'X\(//\)$' \| \
1305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1334 { (exit 1); exit 1; }; }
1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1339 { (exit 1); exit 1; }; }
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 for ac_var in $ac_precious_vars; do
1352 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_env_${ac_var}_value=\$${ac_var}
1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 # Report the --help message.
1361 if test "$ac_init_help" = "long"; then
1362 # Omit some internal or obsolete options to make the list less imposing.
1363 # This message is too long to be a string in the A/UX 3.1 sh.
1365 \`configure' configures concord 0.0.2 to adapt to many kinds of systems.
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE. See below for descriptions of some of the useful variables.
1372 Defaults for the options are specified in brackets.
1375 -h, --help display this help and exit
1376 --help=short display options specific to this package
1377 --help=recursive display the short help of all the included packages
1378 -V, --version display version information and exit
1379 -q, --quiet, --silent do not print \`checking...' messages
1380 --cache-file=FILE cache test results in FILE [disabled]
1381 -C, --config-cache alias for \`--cache-file=config.cache'
1382 -n, --no-create do not create output files
1383 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385 Installation directories:
1386 --prefix=PREFIX install architecture-independent files in PREFIX
1387 [$ac_default_prefix]
1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1396 For better control, use the options below.
1398 Fine tuning of the installation directories:
1399 --bindir=DIR user executables [EPREFIX/bin]
1400 --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 --libexecdir=DIR program executables [EPREFIX/libexec]
1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/concord]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of concord 0.0.2:";;
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-static[=PKGS] build static libraries [default=yes]
1440 --enable-fast-install[=PKGS]
1441 optimize for fast installation [default=yes]
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448 --with-pic try to use only PIC/non-PIC objects [default=use
1450 --with-tags[=TAGS] include additional configurations [automatic]
1451 --with-site-includes=PATH List of directories to search first for header files
1453 --with-site-libraries=PATH List of directories to search first for libraries
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1467 CXXCPP C++ preprocessor
1468 F77 Fortran 77 compiler command
1469 FFLAGS Fortran 77 compiler flags
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to <chise-en@m17n.org>.
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" || continue
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1526 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1535 concord configure 0.0.2
1536 generated by GNU Autoconf 2.61
1538 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1539 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1549 It was created by concord $as_me 0.0.2, which was
1550 generated by GNU Autoconf 2.61. Invocation command line was
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1575 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 echo "PATH: $as_dir"
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_must_keep_next=false
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 -* ) ac_must_keep_next=true ;;
1642 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677 _ | IFS | as_nl) ;; #(
1678 *) $as_unset $ac_var ;;
1683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
1686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1703 for ac_var in $ac_subst_vars
1705 eval ac_val=\$$ac_var
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 echo "$ac_var='\''$ac_val'\''"
1713 if test -n "$ac_subst_files"; then
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1720 for ac_var in $ac_subst_files
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 echo "$ac_var='\''$ac_val'\''"
1731 if test -s confdefs.h; then
1741 test "$ac_signal" != 0 &&
1742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
1745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749 for ac_signal in 1 2 13 15; do
1750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1757 # Predefined preprocessor variables.
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787 set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
1797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800 sed 's/^/| /' "$ac_site_file" >&5
1805 if test -r "$cache_file"; then
1806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
1817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1822 # Check that the precious variables saved in the cache have kept the same
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
1828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
1830 case $ac_old_set,$ac_new_set in
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
1842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845 echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847 echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 *) ac_arg=$ac_var=$ac_new_val ;;
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 if $ac_cache_corrupted; then
1864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 ac_config_headers="$ac_config_headers config.h"
1907 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1908 if test -f "$ac_dir/install-sh"; then
1910 ac_install_sh="$ac_aux_dir/install-sh -c"
1912 elif test -f "$ac_dir/install.sh"; then
1914 ac_install_sh="$ac_aux_dir/install.sh -c"
1916 elif test -f "$ac_dir/shtool"; then
1918 ac_install_sh="$ac_aux_dir/shtool install -c"
1922 if test -z "$ac_aux_dir"; then
1923 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1924 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1925 { (exit 1); exit 1; }; }
1928 # These three variables are undocumented and unsupported,
1929 # and are intended to be withdrawn in a future Autoconf release.
1930 # They can cause serious problems if a builder's source tree is in a directory
1931 # whose full name contains unusual characters.
1932 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1933 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1934 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1937 # Make sure we can run config.sub.
1938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1939 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1940 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1941 { (exit 1); exit 1; }; }
1943 { echo "$as_me:$LINENO: checking build system type" >&5
1944 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1945 if test "${ac_cv_build+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 ac_build_alias=$build_alias
1949 test "x$ac_build_alias" = x &&
1950 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1951 test "x$ac_build_alias" = x &&
1952 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1953 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1954 { (exit 1); exit 1; }; }
1955 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1956 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1957 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1958 { (exit 1); exit 1; }; }
1961 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1962 echo "${ECHO_T}$ac_cv_build" >&6; }
1963 case $ac_cv_build in
1965 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1966 echo "$as_me: error: invalid value of canonical build" >&2;}
1967 { (exit 1); exit 1; }; };;
1970 ac_save_IFS=$IFS; IFS='-'
1976 # Remember, the first character of IFS is used to create $*,
1977 # except with old shells:
1980 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1983 { echo "$as_me:$LINENO: checking host system type" >&5
1984 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1985 if test "${ac_cv_host+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test "x$host_alias" = x; then
1989 ac_cv_host=$ac_cv_build
1991 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1992 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1993 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1994 { (exit 1); exit 1; }; }
1998 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1999 echo "${ECHO_T}$ac_cv_host" >&6; }
2002 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2003 echo "$as_me: error: invalid value of canonical host" >&2;}
2004 { (exit 1); exit 1; }; };;
2007 ac_save_IFS=$IFS; IFS='-'
2013 # Remember, the first character of IFS is used to create $*,
2014 # except with old shells:
2017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2020 { echo "$as_me:$LINENO: checking target system type" >&5
2021 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2022 if test "${ac_cv_target+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test "x$target_alias" = x; then
2026 ac_cv_target=$ac_cv_host
2028 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2029 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2030 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2031 { (exit 1); exit 1; }; }
2035 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2036 echo "${ECHO_T}$ac_cv_target" >&6; }
2037 case $ac_cv_target in
2039 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2040 echo "$as_me: error: invalid value of canonical target" >&2;}
2041 { (exit 1); exit 1; }; };;
2043 target=$ac_cv_target
2044 ac_save_IFS=$IFS; IFS='-'
2050 # Remember, the first character of IFS is used to create $*,
2051 # except with old shells:
2054 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2057 # The aliases save the names the user supplied, while $host etc.
2058 # will get canonicalized.
2059 test -n "$target_alias" &&
2060 test "$program_prefix$program_suffix$program_transform_name" = \
2062 program_prefix=${target_alias}-
2064 # Checks for programs.
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070 if test -n "$ac_tool_prefix"; then
2071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 if test -n "$CC"; then
2100 { echo "$as_me:$LINENO: result: $CC" >&5
2101 echo "${ECHO_T}$CC" >&6; }
2103 { echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6; }
2109 if test -z "$ac_cv_prog_CC"; then
2111 # Extract the first word of "gcc", so it can be a program name with args.
2112 set dummy gcc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="gcc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2147 if test "x$ac_ct_CC" = x; then
2150 case $cross_compiling:$ac_tool_warned in
2152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2153 whose name does not start with the host triplet. If you think this
2154 configuration is useful to you, please write to autoconf@gnu.org." >&5
2155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2156 whose name does not start with the host triplet. If you think this
2157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2158 ac_tool_warned=yes ;;
2166 if test -z "$CC"; then
2167 if test -n "$ac_tool_prefix"; then
2168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}cc; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 ac_cv_prog_CC="${ac_tool_prefix}cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 if test -n "$CC"; then
2197 { echo "$as_me:$LINENO: result: $CC" >&5
2198 echo "${ECHO_T}$CC" >&6; }
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2207 if test -z "$CC"; then
2208 # Extract the first word of "cc", so it can be a program name with args.
2209 set dummy cc; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$CC"; then
2216 ac_cv_prog_CC="$CC" # Let the user override the test.
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2227 ac_prog_rejected=yes
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 if test $ac_prog_rejected = yes; then
2239 # We found a bogon in the path, so make sure we never use it.
2240 set dummy $ac_cv_prog_CC
2242 if test $# != 0; then
2243 # We chose a different compiler from the bogus one.
2244 # However, it has the same basename, so the bogon will be chosen
2245 # first if we set CC to just the basename; use the full file name.
2247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2253 if test -n "$CC"; then
2254 { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2263 if test -z "$CC"; then
2264 if test -n "$ac_tool_prefix"; then
2265 for ac_prog in cl.exe
2267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test -n "$CC"; then
2296 { echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6; }
2299 { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2304 test -n "$CC" && break
2307 if test -z "$CC"; then
2309 for ac_prog in cl.exe
2311 # Extract the first word of "$ac_prog", so it can be a program name with args.
2312 set dummy $ac_prog; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$ac_ct_CC"; then
2319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_ac_ct_CC="$ac_prog"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2339 if test -n "$ac_ct_CC"; then
2340 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2341 echo "${ECHO_T}$ac_ct_CC" >&6; }
2343 { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2348 test -n "$ac_ct_CC" && break
2351 if test "x$ac_ct_CC" = x; then
2354 case $cross_compiling:$ac_tool_warned in
2356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet. If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&5
2359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2360 whose name does not start with the host triplet. If you think this
2361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2362 ac_tool_warned=yes ;;
2371 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: no acceptable C compiler found in \$PATH
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2377 # Provide some information about the compiler.
2378 echo "$as_me:$LINENO: checking for C compiler version" >&5
2379 ac_compiler=`set X $ac_compile; echo $2`
2380 { (ac_try="$ac_compiler --version >&5"
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_compiler --version >&5") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }
2390 { (ac_try="$ac_compiler -v >&5"
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_compiler -v >&5") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }
2400 { (ac_try="$ac_compiler -V >&5"
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_compiler -V >&5") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }
2411 cat >conftest.$ac_ext <<_ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2426 ac_clean_files_save=$ac_clean_files
2427 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2428 # Try to create an executable without -o first, disregard a.out.
2429 # It will help us diagnose broken compilers, and finding out an intuition
2431 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2432 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2433 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2435 # List of possible output files, starting from the most likely.
2436 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2437 # only as a last resort. b.out is created by i960 compilers.
2438 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2440 # The IRIX 6 linker writes into existing files which may not be
2441 # executable, retaining their permissions. Remove them first so a
2442 # subsequent execution test works.
2444 for ac_file in $ac_files
2447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2448 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2453 if { (ac_try="$ac_link_default"
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459 (eval "$ac_link_default") 2>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; then
2463 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2464 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2465 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2466 # so that the user can short-circuit this test for compilers unknown to
2468 for ac_file in $ac_files ''
2470 test -f "$ac_file" || continue
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2475 # We found the default executable, but exeext='' is most
2479 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2483 # We set ac_cv_exeext here because the later test for it is not
2484 # safe: cross compilers may not add the suffix if given an `-o'
2485 # argument, so we may need to know it at that point already.
2486 # Even if this section looks crufty: it has the advantage of
2493 test "$ac_cv_exeext" = no && ac_cv_exeext=
2499 { echo "$as_me:$LINENO: result: $ac_file" >&5
2500 echo "${ECHO_T}$ac_file" >&6; }
2501 if test -z "$ac_file"; then
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2505 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&2;}
2509 { (exit 77); exit 77; }; }
2512 ac_exeext=$ac_cv_exeext
2514 # Check that the compiler produces executables we can run. If not, either
2515 # the compiler is broken, or we cross compile.
2516 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2517 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2518 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2519 # If not cross compiling, check that we can run a simple program.
2520 if test "$cross_compiling" != yes; then
2521 if { ac_try='./$ac_file'
2522 { (case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_try") 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2533 if test "$cross_compiling" = maybe; then
2536 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2537 If you meant to cross compile, use \`--host'.
2538 See \`config.log' for more details." >&5
2539 echo "$as_me: error: cannot run C compiled programs.
2540 If you meant to cross compile, use \`--host'.
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2546 { echo "$as_me:$LINENO: result: yes" >&5
2547 echo "${ECHO_T}yes" >&6; }
2549 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2550 ac_clean_files=$ac_clean_files_save
2551 # Check that the compiler produces executables we can run. If not, either
2552 # the compiler is broken, or we cross compile.
2553 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2554 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2555 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2556 echo "${ECHO_T}$cross_compiling" >&6; }
2558 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2559 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2560 if { (ac_try="$ac_link"
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_link") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2571 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2572 # work properly (i.e., refer to `conftest.exe'), while it won't with
2574 for ac_file in conftest.exe conftest conftest.*; do
2575 test -f "$ac_file" || continue
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2578 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2584 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2587 See \`config.log' for more details." >&2;}
2588 { (exit 1); exit 1; }; }
2591 rm -f conftest$ac_cv_exeext
2592 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2593 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2595 rm -f conftest.$ac_ext
2596 EXEEXT=$ac_cv_exeext
2598 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2599 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2600 if test "${ac_cv_objext+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2618 rm -f conftest.o conftest.obj
2619 if { (ac_try="$ac_compile"
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 (eval "$ac_compile") 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; then
2629 for ac_file in conftest.o conftest.obj conftest.*; do
2630 test -f "$ac_file" || continue;
2632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2641 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2642 See \`config.log' for more details." >&5
2643 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2644 See \`config.log' for more details." >&2;}
2645 { (exit 1); exit 1; }; }
2648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2650 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2651 echo "${ECHO_T}$ac_cv_objext" >&6; }
2652 OBJEXT=$ac_cv_objext
2654 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2655 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2656 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 cat >conftest.$ac_ext <<_ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2677 rm -f conftest.$ac_objext
2678 if { (ac_try="$ac_compile"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compile") 2>conftest.er1
2686 grep -v '^ *+' conftest.er1 >conftest.err
2688 cat conftest.err >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } && {
2691 test -z "$ac_c_werror_flag" ||
2692 test ! -s conftest.err
2693 } && test -s conftest.$ac_objext; then
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2706 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2707 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2708 GCC=`test $ac_compiler_gnu = yes && echo yes`
2709 ac_test_CFLAGS=${CFLAGS+set}
2710 ac_save_CFLAGS=$CFLAGS
2711 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2712 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_cc_g+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 ac_save_c_werror_flag=$ac_c_werror_flag
2717 ac_c_werror_flag=yes
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compile") 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 ac_c_werror_flag=$ac_save_c_werror_flag
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2812 rm -f conftest.$ac_objext
2813 if { (ac_try="$ac_compile"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_compile") 2>conftest.er1
2821 grep -v '^ *+' conftest.er1 >conftest.err
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } && {
2826 test -z "$ac_c_werror_flag" ||
2827 test ! -s conftest.err
2828 } && test -s conftest.$ac_objext; then
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 ac_c_werror_flag=$ac_save_c_werror_flag
2846 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2848 if test "$ac_test_CFLAGS" = set; then
2849 CFLAGS=$ac_save_CFLAGS
2850 elif test $ac_cv_prog_cc_g = yes; then
2851 if test "$GCC" = yes; then
2857 if test "$GCC" = yes; then
2863 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2864 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_cc_c89+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 ac_cv_prog_cc_c89=no
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2878 #include <sys/types.h>
2879 #include <sys/stat.h>
2880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2881 struct buf { int x; };
2882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2883 static char *e (p, i)
2889 static char *f (char * (*g) (char **, int), char **p, ...)
2894 s = g (p, va_arg (v,int));
2899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2900 function prototypes and stuff, but not '\xHH' hex character constants.
2901 These don't provoke an error unfortunately, instead are silently treated
2902 as 'x'. The following induces an error, until -std is added to get
2903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2904 array size at least. It's necessary to write '\x00'==0 to get something
2905 that's true only with -std. */
2906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2909 inside strings and character constants. */
2911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2913 int test (int i, double x);
2914 struct s1 {int (*f) (int a);};
2915 struct s2 {int (*f) (double a);};
2916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2928 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2930 CC="$ac_save_CC $ac_arg"
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2948 ac_cv_prog_cc_c89=$ac_arg
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2956 rm -f core conftest.err conftest.$ac_objext
2957 test "x$ac_cv_prog_cc_c89" != "xno" && break
2959 rm -f conftest.$ac_ext
2964 case "x$ac_cv_prog_cc_c89" in
2966 { echo "$as_me:$LINENO: result: none needed" >&5
2967 echo "${ECHO_T}none needed" >&6; } ;;
2969 { echo "$as_me:$LINENO: result: unsupported" >&5
2970 echo "${ECHO_T}unsupported" >&6; } ;;
2972 CC="$CC $ac_cv_prog_cc_c89"
2973 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2974 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 # Check whether --enable-shared was given.
2985 if test "${enable_shared+set}" = set; then
2986 enableval=$enable_shared; p=${PACKAGE-default}
2988 yes) enable_shared=yes ;;
2989 no) enable_shared=no ;;
2992 # Look at the argument we got. We use all the common list separators.
2993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2994 for pkg in $enableval; do
2996 if test "X$pkg" = "X$p"; then
3008 # Check whether --enable-static was given.
3009 if test "${enable_static+set}" = set; then
3010 enableval=$enable_static; p=${PACKAGE-default}
3012 yes) enable_static=yes ;;
3013 no) enable_static=no ;;
3016 # Look at the argument we got. We use all the common list separators.
3017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3018 for pkg in $enableval; do
3020 if test "X$pkg" = "X$p"; then
3032 # Check whether --enable-fast-install was given.
3033 if test "${enable_fast_install+set}" = set; then
3034 enableval=$enable_fast_install; p=${PACKAGE-default}
3036 yes) enable_fast_install=yes ;;
3037 no) enable_fast_install=no ;;
3039 enable_fast_install=no
3040 # Look at the argument we got. We use all the common list separators.
3041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3042 for pkg in $enableval; do
3044 if test "X$pkg" = "X$p"; then
3045 enable_fast_install=yes
3052 enable_fast_install=yes
3056 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3057 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3058 if test "${lt_cv_path_SED+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 # Loop through the user's path and test for sed and gsed.
3062 # Then use that list of sed's as ones to test for truncation.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 for lt_ac_prog in sed gsed; do
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3071 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3078 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3079 # along with /bin/sed that truncates output.
3080 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3081 test ! -f $lt_ac_sed && break
3082 cat /dev/null > conftest.in
3084 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3085 # Check for GNU sed and select it if it is found.
3086 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3087 lt_cv_path_SED=$lt_ac_sed
3091 cat conftest.in conftest.in >conftest.tmp
3092 mv conftest.tmp conftest.in
3093 cp conftest.in conftest.nl
3095 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3096 cmp -s conftest.out conftest.nl || break
3097 # 10000 chars as input seems more than enough
3098 test $lt_ac_count -gt 10 && break
3099 lt_ac_count=`expr $lt_ac_count + 1`
3100 if test $lt_ac_count -gt $lt_ac_max; then
3101 lt_ac_max=$lt_ac_count
3102 lt_cv_path_SED=$lt_ac_sed
3110 { echo "$as_me:$LINENO: result: $SED" >&5
3111 echo "${ECHO_T}$SED" >&6; }
3113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3115 if test "${ac_cv_path_GREP+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 # Extract the first word of "grep ggrep" to use in msg output
3119 if test -z "$GREP"; then
3120 set dummy grep ggrep; ac_prog_name=$2
3121 if test "${ac_cv_path_GREP+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 ac_path_GREP_found=false
3125 # Loop through the user's path and test for each of PROGNAME-LIST
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3130 test -z "$as_dir" && as_dir=.
3131 for ac_prog in grep ggrep; do
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3135 # Check for GNU ac_path_GREP and select it if it is found.
3136 # Check for GNU $ac_path_GREP
3137 case `"$ac_path_GREP" --version 2>&1` in
3139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3142 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3145 cat "conftest.in" "conftest.in" >"conftest.tmp"
3146 mv "conftest.tmp" "conftest.in"
3147 cp "conftest.in" "conftest.nl"
3148 echo 'GREP' >> "conftest.nl"
3149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3151 ac_count=`expr $ac_count + 1`
3152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3153 # Best one so far, save it but keep looking for a better one
3154 ac_cv_path_GREP="$ac_path_GREP"
3155 ac_path_GREP_max=$ac_count
3157 # 10*(2^10) chars as input seems more than enough
3158 test $ac_count -gt 10 && break
3160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3164 $ac_path_GREP_found && break 3
3174 GREP="$ac_cv_path_GREP"
3175 if test -z "$GREP"; then
3176 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3178 { (exit 1); exit 1; }; }
3182 ac_cv_path_GREP=$GREP
3187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3189 GREP="$ac_cv_path_GREP"
3192 { echo "$as_me:$LINENO: checking for egrep" >&5
3193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3194 if test "${ac_cv_path_EGREP+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3198 then ac_cv_path_EGREP="$GREP -E"
3200 # Extract the first word of "egrep" to use in msg output
3201 if test -z "$EGREP"; then
3202 set dummy egrep; ac_prog_name=$2
3203 if test "${ac_cv_path_EGREP+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 ac_path_EGREP_found=false
3207 # Loop through the user's path and test for each of PROGNAME-LIST
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3212 test -z "$as_dir" && as_dir=.
3213 for ac_prog in egrep; do
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3217 # Check for GNU ac_path_EGREP and select it if it is found.
3218 # Check for GNU $ac_path_EGREP
3219 case `"$ac_path_EGREP" --version 2>&1` in
3221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3227 cat "conftest.in" "conftest.in" >"conftest.tmp"
3228 mv "conftest.tmp" "conftest.in"
3229 cp "conftest.in" "conftest.nl"
3230 echo 'EGREP' >> "conftest.nl"
3231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3233 ac_count=`expr $ac_count + 1`
3234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3235 # Best one so far, save it but keep looking for a better one
3236 ac_cv_path_EGREP="$ac_path_EGREP"
3237 ac_path_EGREP_max=$ac_count
3239 # 10*(2^10) chars as input seems more than enough
3240 test $ac_count -gt 10 && break
3242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246 $ac_path_EGREP_found && break 3
3256 EGREP="$ac_cv_path_EGREP"
3257 if test -z "$EGREP"; then
3258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3260 { (exit 1); exit 1; }; }
3264 ac_cv_path_EGREP=$EGREP
3270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3272 EGREP="$ac_cv_path_EGREP"
3276 # Check whether --with-gnu-ld was given.
3277 if test "${with_gnu_ld+set}" = set; then
3278 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3284 if test "$GCC" = yes; then
3285 # Check if gcc -print-prog-name=ld gives a path.
3286 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3287 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3290 # gcc leaves a trailing carriage return which upsets mingw
3291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3296 # Accept absolute paths.
3298 re_direlt='/[^/][^/]*/\.\./'
3299 # Canonicalize the pathname of ld
3300 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3301 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3302 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3304 test -z "$LD" && LD="$ac_prog"
3307 # If it fails, then pretend we aren't using GCC.
3311 # If it is relative, then search for the first ld in PATH.
3315 elif test "$with_gnu_ld" = yes; then
3316 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3317 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3319 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3320 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3322 if test "${lt_cv_path_LD+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 if test -z "$LD"; then
3326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3327 for ac_dir in $PATH; do
3329 test -z "$ac_dir" && ac_dir=.
3330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3331 lt_cv_path_LD="$ac_dir/$ac_prog"
3332 # Check to see if the program is GNU ld. I'd rather use --version,
3333 # but apparently some GNU ld's only accept -v.
3334 # Break only if it was the GNU/non-GNU ld that we prefer.
3335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3336 *GNU* | *'with BFD'*)
3337 test "$with_gnu_ld" != no && break
3340 test "$with_gnu_ld" != yes && break
3347 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3352 if test -n "$LD"; then
3353 { echo "$as_me:$LINENO: result: $LD" >&5
3354 echo "${ECHO_T}$LD" >&6; }
3356 { echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6; }
3359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3361 { (exit 1); exit 1; }; }
3362 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3364 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3368 case `$LD -v 2>&1 </dev/null` in
3369 *GNU* | *'with BFD'*)
3370 lt_cv_prog_gnu_ld=yes
3373 lt_cv_prog_gnu_ld=no
3377 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3378 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3379 with_gnu_ld=$lt_cv_prog_gnu_ld
3382 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3383 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3384 if test "${lt_cv_ld_reload_flag+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 lt_cv_ld_reload_flag='-r'
3389 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3390 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3391 reload_flag=$lt_cv_ld_reload_flag
3392 case $reload_flag in
3394 *) reload_flag=" $reload_flag" ;;
3396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3398 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3399 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3400 if test "${lt_cv_path_NM+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 if test -n "$NM"; then
3404 # Let the user override the test.
3407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3408 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3410 test -z "$ac_dir" && ac_dir=.
3411 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3412 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3413 # Check to see if the nm accepts a BSD-compat flag.
3414 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3415 # nm: unknown option "B" ignored
3416 # Tru64's nm complains that /dev/null is an invalid object file
3417 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3418 */dev/null* | *'Invalid file or object type'*)
3419 lt_cv_path_NM="$tmp_nm -B"
3423 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3425 lt_cv_path_NM="$tmp_nm -p"
3429 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3430 continue # so that we can try to find one that supports BSD flags
3437 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3440 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3441 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3444 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3445 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3447 if test "$LN_S" = "ln -s"; then
3448 { echo "$as_me:$LINENO: result: yes" >&5
3449 echo "${ECHO_T}yes" >&6; }
3451 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3452 echo "${ECHO_T}no, using $LN_S" >&6; }
3455 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3456 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3457 if test "${lt_cv_deplibs_check_method+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 lt_cv_file_magic_cmd='$MAGIC_CMD'
3461 lt_cv_file_magic_test_file=
3462 lt_cv_deplibs_check_method='unknown'
3463 # Need to set the preceding variable on all platforms that support
3464 # interlibrary dependencies.
3465 # 'none' -- dependencies not supported.
3466 # `unknown' -- same as none, but documents that we really don't know.
3467 # 'pass_all' -- all dependencies passed with no checks.
3468 # 'test_compile' -- check by making test program.
3469 # 'file_magic [[regex]]' -- check by looking for files in library path
3470 # which responds to the $file_magic_cmd with a given extended regex.
3471 # If you have `file' or equivalent on your system and you're not sure
3472 # whether `pass_all' will *always* work, you probably want this one.
3476 lt_cv_deplibs_check_method=pass_all
3480 lt_cv_deplibs_check_method=pass_all
3484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3485 lt_cv_file_magic_cmd='/usr/bin/file -L'
3486 lt_cv_file_magic_test_file=/shlib/libc.so
3489 cygwin* | mingw* | pw32*)
3490 # win32_libid is a shell function defined in ltmain.sh
3491 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3492 lt_cv_file_magic_cmd='win32_libid'
3495 darwin* | rhapsody*)
3496 # this will be overwritten by pass_all, but leave it in just in case
3497 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3498 lt_cv_file_magic_cmd='/usr/bin/file -L'
3500 rhapsody* | darwin1.[012])
3501 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3504 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3507 lt_cv_deplibs_check_method=pass_all
3510 freebsd* | kfreebsd*-gnu)
3511 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3514 # Not sure whether the presence of OpenBSD here was a mistake.
3515 # Let's accept both of them until this is cleared up.
3516 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3517 lt_cv_file_magic_cmd=/usr/bin/file
3518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3522 lt_cv_deplibs_check_method=pass_all
3527 lt_cv_deplibs_check_method=pass_all
3530 hpux10.20* | hpux11*)
3531 lt_cv_file_magic_cmd=/usr/bin/file
3534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3535 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3538 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]'
3539 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3548 irix5* | irix6* | nonstopux*)
3550 irix5* | nonstopux*)
3551 # this will be overridden with pass_all, but let us keep it just in case
3552 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3556 *-32|*"-32 ") libmagic=32-bit;;
3557 *-n32|*"-n32 ") libmagic=N32;;
3558 *-64|*"-64 ") libmagic=64-bit;;
3559 *) libmagic=never-match;;
3561 # this will be overridden with pass_all, but let us keep it just in case
3562 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3565 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3566 lt_cv_deplibs_check_method=pass_all
3569 # This must be Linux ELF.
3571 # linux always uses pass_all now, this code is the old way (tm)
3573 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
3574 lt_cv_deplibs_check_method=pass_all ;;
3576 # glibc up to 2.1.1 does not perform some relocations on ARM
3577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3579 lt_cv_deplibs_check_method=pass_all
3580 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3598 lt_cv_deplibs_check_method=unknown
3602 lt_cv_file_magic_cmd=/usr/bin/file
3603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3607 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3611 osf3* | osf4* | osf5*)
3612 # this will be overridden with pass_all, but let us keep it just in case
3613 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3614 lt_cv_file_magic_test_file=/shlib/libc.so
3615 lt_cv_deplibs_check_method=pass_all
3619 lt_cv_deplibs_check_method=pass_all
3623 lt_cv_deplibs_check_method=pass_all
3624 lt_cv_file_magic_test_file=/lib/libc.so
3627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3628 case $host_vendor in
3630 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]'
3631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3634 lt_cv_deplibs_check_method=pass_all
3637 lt_cv_file_magic_cmd='/bin/file'
3638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3641 lt_cv_file_magic_cmd='/bin/file'
3642 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3643 lt_cv_file_magic_test_file=/lib/libc.so
3646 lt_cv_deplibs_check_method=pass_all
3651 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3652 lt_cv_deplibs_check_method=pass_all
3657 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3658 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3659 file_magic_cmd=$lt_cv_file_magic_cmd
3660 deplibs_check_method=$lt_cv_deplibs_check_method
3661 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3666 # If no C compiler was specified, use CC.
3669 # Allow CC to be a program name with arguments.
3673 # Check whether --enable-libtool-lock was given.
3674 if test "${enable_libtool_lock+set}" = set; then
3675 enableval=$enable_libtool_lock;
3678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3680 # Some flags need to be propagated to the compiler or linker for good
3684 # Find out which ABI we are using.
3685 echo 'int i;' > conftest.$ac_ext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; then
3691 case `/usr/bin/file conftest.$ac_objext` in
3703 # Find out which ABI we are using.
3704 echo '#line 3704 "configure"' > conftest.$ac_ext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; then
3710 if test "$lt_cv_prog_gnu_ld" = yes; then
3711 case `/usr/bin/file conftest.$ac_objext` in
3713 LD="${LD-ld} -melf32bsmip"
3716 LD="${LD-ld} -melf32bmipn32"
3719 LD="${LD-ld} -melf64bmip"
3723 case `/usr/bin/file conftest.$ac_objext` in
3739 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3740 # Find out which ABI we are using.
3741 echo 'int i;' > conftest.$ac_ext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; then
3747 case "`/usr/bin/file conftest.o`" in
3751 LD="${LD-ld} -m elf_i386"
3753 ppc64-*linux*|powerpc64-*linux*)
3754 LD="${LD-ld} -m elf32ppclinux"
3757 LD="${LD-ld} -m elf_s390"
3760 LD="${LD-ld} -m elf32_sparc"
3767 LD="${LD-ld} -m elf_x86_64"
3769 ppc*-*linux*|powerpc*-*linux*)
3770 LD="${LD-ld} -m elf64ppc"
3773 LD="${LD-ld} -m elf64_s390"
3776 LD="${LD-ld} -m elf64_sparc"
3786 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3787 SAVE_CFLAGS="$CFLAGS"
3788 CFLAGS="$CFLAGS -belf"
3789 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3790 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3791 if test "${lt_cv_cc_needs_belf+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3815 rm -f conftest.$ac_objext conftest$ac_exeext
3816 if { (ac_try="$ac_link"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_link") 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } && {
3829 test -z "$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 } && test -s conftest$ac_exeext &&
3832 $as_test_x conftest$ac_exeext; then
3833 lt_cv_cc_needs_belf=yes
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 lt_cv_cc_needs_belf=no
3841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3842 conftest$ac_exeext conftest.$ac_ext
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3851 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3852 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3853 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3854 CFLAGS="$SAVE_CFLAGS"
3860 need_locks="$enable_libtool_lock"
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3869 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3870 # On Suns, sometimes $CPP names a directory.
3871 if test -n "$CPP" && test -d "$CPP"; then
3874 if test -z "$CPP"; then
3875 if test "${ac_cv_prog_CPP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 # Double quotes because CPP needs to be expanded
3879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3882 for ac_c_preproc_warn_flag in '' yes
3884 # Use a header file that comes with gcc, so configuring glibc
3885 # with a fresh cross-compiler works.
3886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887 # <limits.h> exists even on freestanding compilers.
3888 # On the NeXT, cc -E runs the code through the compiler's parser,
3889 # not just through cpp. "Syntax error" is here to catch this case.
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3897 # include <limits.h>
3899 # include <assert.h>
3903 if { (ac_try="$ac_cpp conftest.$ac_ext"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null && {
3916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 # Broken: fails on valid input.
3928 rm -f conftest.err conftest.$ac_ext
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 #include <ac_nonexistent.h>
3940 if { (ac_try="$ac_cpp conftest.$ac_ext"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3948 grep -v '^ *+' conftest.er1 >conftest.err
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } >/dev/null && {
3953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3954 test ! -s conftest.err
3956 # Broken: success on invalid input.
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 # Passes both tests.
3967 rm -f conftest.err conftest.$ac_ext
3970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971 rm -f conftest.err conftest.$ac_ext
3972 if $ac_preproc_ok; then
3984 { echo "$as_me:$LINENO: result: $CPP" >&5
3985 echo "${ECHO_T}$CPP" >&6; }
3987 for ac_c_preproc_warn_flag in '' yes
3989 # Use a header file that comes with gcc, so configuring glibc
3990 # with a fresh cross-compiler works.
3991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3992 # <limits.h> exists even on freestanding compilers.
3993 # On the NeXT, cc -E runs the code through the compiler's parser,
3994 # not just through cpp. "Syntax error" is here to catch this case.
3995 cat >conftest.$ac_ext <<_ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4002 # include <limits.h>
4004 # include <assert.h>
4008 if { (ac_try="$ac_cpp conftest.$ac_ext"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } >/dev/null && {
4021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 # Broken: fails on valid input.
4033 rm -f conftest.err conftest.$ac_ext
4035 # OK, works on sane cases. Now check whether nonexistent headers
4036 # can be detected and how.
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #include <ac_nonexistent.h>
4045 if { (ac_try="$ac_cpp conftest.$ac_ext"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4053 grep -v '^ *+' conftest.er1 >conftest.err
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } >/dev/null && {
4058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4061 # Broken: success on invalid input.
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 # Passes both tests.
4072 rm -f conftest.err conftest.$ac_ext
4075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4076 rm -f conftest.err conftest.$ac_ext
4077 if $ac_preproc_ok; then
4080 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details." >&5
4082 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4083 See \`config.log' for more details." >&2;}
4084 { (exit 1); exit 1; }; }
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4096 if test "${ac_cv_header_stdc+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4118 rm -f conftest.$ac_objext
4119 if { (ac_try="$ac_compile"
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_compile") 2>conftest.er1
4127 grep -v '^ *+' conftest.er1 >conftest.err
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } && {
4132 test -z "$ac_c_werror_flag" ||
4133 test ! -s conftest.err
4134 } && test -s conftest.$ac_objext; then
4135 ac_cv_header_stdc=yes
4137 echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4140 ac_cv_header_stdc=no
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 if test $ac_cv_header_stdc = yes; then
4146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157 $EGREP "memchr" >/dev/null 2>&1; then
4160 ac_cv_header_stdc=no
4166 if test $ac_cv_header_stdc = yes; then
4167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4168 cat >conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178 $EGREP "free" >/dev/null 2>&1; then
4181 ac_cv_header_stdc=no
4187 if test $ac_cv_header_stdc = yes; then
4188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4189 if test "$cross_compiling" = yes; then
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4223 rm -f conftest$ac_exeext
4224 if { (ac_try="$ac_link"
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_link") 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4234 { (case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_try") 2>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4245 echo "$as_me: program exited with status $ac_status" >&5
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4250 ac_cv_header_stdc=no
4252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4258 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4259 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4260 if test $ac_cv_header_stdc = yes; then
4262 cat >>confdefs.h <<\_ACEOF
4263 #define STDC_HEADERS 1
4268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279 inttypes.h stdint.h unistd.h
4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 $ac_includes_default
4295 #include <$ac_header>
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_c_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 eval "$as_ac_Header=yes"
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 eval "$as_ac_Header=no"
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 ac_res=`eval echo '${'$as_ac_Header'}'`
4325 { echo "$as_me:$LINENO: result: $ac_res" >&5
4326 echo "${ECHO_T}$ac_res" >&6; }
4327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4328 cat >>confdefs.h <<_ACEOF
4329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338 for ac_header in dlfcn.h
4340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 ac_res=`eval echo '${'$as_ac_Header'}'`
4348 { echo "$as_me:$LINENO: result: $ac_res" >&5
4349 echo "${ECHO_T}$ac_res" >&6; }
4351 # Is the header compilable?
4352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 $ac_includes_default
4361 #include <$ac_header>
4363 rm -f conftest.$ac_objext
4364 if { (ac_try="$ac_compile"
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_compile") 2>conftest.er1
4372 grep -v '^ *+' conftest.er1 >conftest.err
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && {
4377 test -z "$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4379 } && test -s conftest.$ac_objext; then
4380 ac_header_compiler=yes
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_header_compiler=no
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4390 echo "${ECHO_T}$ac_header_compiler" >&6; }
4392 # Is the header present?
4393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 #include <$ac_header>
4403 if { (ac_try="$ac_cpp conftest.$ac_ext"
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } >/dev/null && {
4416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4419 ac_header_preproc=yes
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 ac_header_preproc=no
4427 rm -f conftest.err conftest.$ac_ext
4428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4429 echo "${ECHO_T}$ac_header_preproc" >&6; }
4431 # So? What about this header?
4432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4438 ac_header_preproc=yes
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4454 ## -------------------------------- ##
4455 ## Report this to chise-en@m17n.org ##
4456 ## -------------------------------- ##
4458 ) | sed "s/^/$as_me: WARNING: /" >&2
4461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 eval "$as_ac_Header=\$ac_header_preproc"
4468 ac_res=`eval echo '${'$as_ac_Header'}'`
4469 { echo "$as_me:$LINENO: result: $ac_res" >&5
4470 echo "${ECHO_T}$ac_res" >&6; }
4473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4474 cat >>confdefs.h <<_ACEOF
4475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4483 ac_cpp='$CXXCPP $CPPFLAGS'
4484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4487 if test -z "$CXX"; then
4488 if test -n "$CCC"; then
4491 if test -n "$ac_tool_prefix"; then
4492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_CXX+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 if test -n "$CXX"; then
4502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 if test -n "$CXX"; then
4523 { echo "$as_me:$LINENO: result: $CXX" >&5
4524 echo "${ECHO_T}$CXX" >&6; }
4526 { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4531 test -n "$CXX" && break
4534 if test -z "$CXX"; then
4536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 if test -n "$ac_ct_CXX"; then
4546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_ac_ct_CXX="$ac_prog"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4566 if test -n "$ac_ct_CXX"; then
4567 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4568 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4570 { echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6; }
4575 test -n "$ac_ct_CXX" && break
4578 if test "x$ac_ct_CXX" = x; then
4581 case $cross_compiling:$ac_tool_warned in
4583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4584 whose name does not start with the host triplet. If you think this
4585 configuration is useful to you, please write to autoconf@gnu.org." >&5
4586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4587 whose name does not start with the host triplet. If you think this
4588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4589 ac_tool_warned=yes ;;
4597 # Provide some information about the compiler.
4598 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4599 ac_compiler=`set X $ac_compile; echo $2`
4600 { (ac_try="$ac_compiler --version >&5"
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_compiler --version >&5") 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }
4610 { (ac_try="$ac_compiler -v >&5"
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_compiler -v >&5") 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }
4620 { (ac_try="$ac_compiler -V >&5"
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_compiler -V >&5") 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }
4631 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4632 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4633 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4654 rm -f conftest.$ac_objext
4655 if { (ac_try="$ac_compile"
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_compile") 2>conftest.er1
4663 grep -v '^ *+' conftest.er1 >conftest.err
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } && {
4668 test -z "$ac_cxx_werror_flag" ||
4669 test ! -s conftest.err
4670 } && test -s conftest.$ac_objext; then
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4683 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4684 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4685 GXX=`test $ac_compiler_gnu = yes && echo yes`
4686 ac_test_CXXFLAGS=${CXXFLAGS+set}
4687 ac_save_CXXFLAGS=$CXXFLAGS
4688 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4689 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_cxx_g+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4694 ac_cxx_werror_flag=yes
4697 cat >conftest.$ac_ext <<_ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4712 rm -f conftest.$ac_objext
4713 if { (ac_try="$ac_compile"
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719 (eval "$ac_compile") 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } && {
4726 test -z "$ac_cxx_werror_flag" ||
4727 test ! -s conftest.err
4728 } && test -s conftest.$ac_objext; then
4729 ac_cv_prog_cxx_g=yes
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4735 cat >conftest.$ac_ext <<_ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_cxx_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_cxx_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4806 ac_cv_prog_cxx_g=yes
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4823 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4824 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4825 if test "$ac_test_CXXFLAGS" = set; then
4826 CXXFLAGS=$ac_save_CXXFLAGS
4827 elif test $ac_cv_prog_cxx_g = yes; then
4828 if test "$GXX" = yes; then
4834 if test "$GXX" = yes; then
4841 ac_cpp='$CXXCPP $CPPFLAGS'
4842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4847 ac_cpp='$CXXCPP $CPPFLAGS'
4848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4851 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4852 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4853 if test -z "$CXXCPP"; then
4854 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 # Double quotes because CXXCPP needs to be expanded
4858 for CXXCPP in "$CXX -E" "/lib/cpp"
4861 for ac_cxx_preproc_warn_flag in '' yes
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat >conftest.$ac_ext <<_ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4876 # include <limits.h>
4878 # include <assert.h>
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4890 grep -v '^ *+' conftest.er1 >conftest.err
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null && {
4895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4896 test ! -s conftest.err
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 # Broken: fails on valid input.
4907 rm -f conftest.err conftest.$ac_ext
4909 # OK, works on sane cases. Now check whether nonexistent headers
4910 # can be detected and how.
4911 cat >conftest.$ac_ext <<_ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #include <ac_nonexistent.h>
4919 if { (ac_try="$ac_cpp conftest.$ac_ext"
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } >/dev/null && {
4932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4933 test ! -s conftest.err
4935 # Broken: success on invalid input.
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4941 # Passes both tests.
4946 rm -f conftest.err conftest.$ac_ext
4949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4950 rm -f conftest.err conftest.$ac_ext
4951 if $ac_preproc_ok; then
4956 ac_cv_prog_CXXCPP=$CXXCPP
4959 CXXCPP=$ac_cv_prog_CXXCPP
4961 ac_cv_prog_CXXCPP=$CXXCPP
4963 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4964 echo "${ECHO_T}$CXXCPP" >&6; }
4966 for ac_cxx_preproc_warn_flag in '' yes
4968 # Use a header file that comes with gcc, so configuring glibc
4969 # with a fresh cross-compiler works.
4970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4971 # <limits.h> exists even on freestanding compilers.
4972 # On the NeXT, cc -E runs the code through the compiler's parser,
4973 # not just through cpp. "Syntax error" is here to catch this case.
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4981 # include <limits.h>
4983 # include <assert.h>
4987 if { (ac_try="$ac_cpp conftest.$ac_ext"
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995 grep -v '^ *+' conftest.er1 >conftest.err
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null && {
5000 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5001 test ! -s conftest.err
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 # Broken: fails on valid input.
5012 rm -f conftest.err conftest.$ac_ext
5014 # OK, works on sane cases. Now check whether nonexistent headers
5015 # can be detected and how.
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 #include <ac_nonexistent.h>
5024 if { (ac_try="$ac_cpp conftest.$ac_ext"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null && {
5037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5038 test ! -s conftest.err
5040 # Broken: success on invalid input.
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 # Passes both tests.
5051 rm -f conftest.err conftest.$ac_ext
5054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5055 rm -f conftest.err conftest.$ac_ext
5056 if $ac_preproc_ok; then
5059 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5060 See \`config.log' for more details." >&5
5061 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5062 See \`config.log' for more details." >&2;}
5063 { (exit 1); exit 1; }; }
5067 ac_cpp='$CXXCPP $CPPFLAGS'
5068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5074 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5075 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5077 if test -n "$ac_tool_prefix"; then
5078 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
5080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5084 if test "${ac_cv_prog_F77+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 if test -n "$F77"; then
5088 ac_cv_prog_F77="$F77" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 if test -n "$F77"; then
5109 { echo "$as_me:$LINENO: result: $F77" >&5
5110 echo "${ECHO_T}$F77" >&6; }
5112 { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5117 test -n "$F77" && break
5120 if test -z "$F77"; then
5122 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
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5128 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 if test -n "$ac_ct_F77"; then
5132 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_ac_ct_F77="$ac_prog"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5152 if test -n "$ac_ct_F77"; then
5153 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5154 echo "${ECHO_T}$ac_ct_F77" >&6; }
5156 { echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6; }
5161 test -n "$ac_ct_F77" && break
5164 if test "x$ac_ct_F77" = x; then
5167 case $cross_compiling:$ac_tool_warned in
5169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5170 whose name does not start with the host triplet. If you think this
5171 configuration is useful to you, please write to autoconf@gnu.org." >&5
5172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5173 whose name does not start with the host triplet. If you think this
5174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5175 ac_tool_warned=yes ;;
5182 # Provide some information about the compiler.
5183 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5184 ac_compiler=`set X $ac_compile; echo $2`
5185 { (ac_try="$ac_compiler --version >&5"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compiler --version >&5") 2>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }
5195 { (ac_try="$ac_compiler -v >&5"
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201 (eval "$ac_compiler -v >&5") 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }
5205 { (ac_try="$ac_compiler -V >&5"
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_compiler -V >&5") 2>&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }
5217 # If we don't use `.F' as extension, the preprocessor is not run on the
5218 # input file. (Note that this only needs to work for GNU compilers.)
5221 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5222 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5223 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 cat >conftest.$ac_ext <<_ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5243 grep -v '^ *+' conftest.er1 >conftest.err
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && {
5248 test -z "$ac_f77_werror_flag" ||
5249 test ! -s conftest.err
5250 } && test -s conftest.$ac_objext; then
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5263 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5264 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5266 ac_test_FFLAGS=${FFLAGS+set}
5267 ac_save_FFLAGS=$FFLAGS
5269 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5270 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_f77_g+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 cat >conftest.$ac_ext <<_ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (ac_try="$ac_compile"
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_f77_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_cv_prog_f77_g=yes
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5309 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5310 if test "$ac_test_FFLAGS" = set; then
5311 FFLAGS=$ac_save_FFLAGS
5312 elif test $ac_cv_prog_f77_g = yes; then
5313 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5319 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5326 G77=`test $ac_compiler_gnu = yes && echo yes`
5328 ac_cpp='$CPP $CPPFLAGS'
5329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5337 # find the maximum length of command line arguments
5338 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5339 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5340 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 # On DJGPP, this test can blow up pretty badly due to problems in libc
5349 # (any single argument exceeding 2000 bytes causes a buffer overrun
5350 # during glob expansion). Even if it were fixed, the result of this
5351 # check would be larger than it should be.
5352 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5356 # Under GNU Hurd, this test is not required because there is
5357 # no limit to the length of command line arguments.
5358 # Libtool will interpret -1 as no limit whatsoever
5359 lt_cv_sys_max_cmd_len=-1;
5363 # On Win9x/ME, this test blows up -- it succeeds, but takes
5364 # about 5 minutes as the teststring grows exponentially.
5365 # Worse, since 9x/ME are not pre-emptively multitasking,
5366 # you end up with a "frozen" computer, even though with patience
5367 # the test eventually succeeds (with a max line length of 256k).
5368 # Instead, let's just punt: use the minimum linelength reported by
5369 # all of the supported platforms: 8192 (on NT/2K/XP).
5370 lt_cv_sys_max_cmd_len=8192;
5374 # On AmigaOS with pdksh, this test takes hours, literally.
5375 # So we just punt and use a minimum line length of 8192.
5376 lt_cv_sys_max_cmd_len=8192;
5380 # If test is not a shell built-in, we'll probably end up computing a
5381 # maximum length that is only half of the actual maximum length, but
5383 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5384 = "XX$testring") >/dev/null 2>&1 &&
5385 new_result=`expr "X$testring" : ".*" 2>&1` &&
5386 lt_cv_sys_max_cmd_len=$new_result &&
5387 test $i != 17 # 1/2 MB should be enough
5390 testring=$testring$testring
5393 # Add a significant safety factor because C++ compilers can tack on massive
5394 # amounts of additional arguments before passing them to the linker.
5395 # It appears as though 1/2 is a usable value.
5396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5402 if test -n $lt_cv_sys_max_cmd_len ; then
5403 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5404 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5406 { echo "$as_me:$LINENO: result: none" >&5
5407 echo "${ECHO_T}none" >&6; }
5413 # Check for command to grab the raw symbol name followed by C symbol from nm.
5414 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5415 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5416 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 # These are sane defaults that work on at least a few old systems.
5421 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5423 # Character class describing NM global symbol codes.
5424 symcode='[BCDEGRST]'
5426 # Regexp to match symbols that can be accessed directly from C.
5427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5429 # Transform the above into a raw symbol and a C symbol.
5430 symxfrm='\1 \2\3 \3'
5432 # Transform an extracted symbol line into a proper C declaration
5433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5435 # Transform an extracted symbol line into symbol name and symbol address
5436 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'"
5438 # Define system-specific variables.
5443 cygwin* | mingw* | pw32*)
5444 symcode='[ABCDGISTW]'
5446 hpux*) # Its linker distinguishes data from code symbols
5447 if test "$host_cpu" = ia64; then
5448 symcode='[ABCDEGRST]'
5450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5451 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'"
5454 symcode='[BCDEGRST]'
5457 symcode='[BCDEGQRST]'
5467 # Handle CRLF in mingw tool chain
5471 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5475 # If we're using GNU nm, then use its standard symbol codes.
5476 case `$NM -V 2>&1` in
5477 *GNU* | *'with BFD'*)
5478 symcode='[ABCDGIRSTW]' ;;
5481 # Try without a prefix undercore, then with it.
5482 for ac_symprfx in "" "_"; do
5484 # Write the raw and C identifiers.
5485 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5487 # Check to see that the pipe works correctly.
5491 cat > conftest.$ac_ext <<EOF
5496 void nm_test_func(){}
5500 int main(){nm_test_var='a';nm_test_func();return(0);}
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; then
5508 # Now try to grab the symbols.
5510 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5511 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && test -s "$nlist"; then
5515 # Try sorting and uniquifying the output.
5516 if sort "$nlist" | uniq > "$nlist"T; then
5517 mv -f "$nlist"T "$nlist"
5522 # Make sure that we snagged all the symbols we need.
5523 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5524 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5525 cat <<EOF > conftest.$ac_ext
5531 # Now generate the symbol file.
5532 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5534 cat <<EOF >> conftest.$ac_ext
5535 #if defined (__STDC__) && __STDC__
5536 # define lt_ptr_t void *
5538 # define lt_ptr_t char *
5542 /* The mapping between symbol names and symbols. */
5547 lt_preloaded_symbols[] =
5550 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5551 cat <<\EOF >> conftest.$ac_ext
5559 # Now try linking the two files.
5560 mv conftest.$ac_objext conftstm.$ac_objext
5561 lt_save_LIBS="$LIBS"
5562 lt_save_CFLAGS="$CFLAGS"
5563 LIBS="conftstm.$ac_objext"
5564 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5566 (eval $ac_link) 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5572 LIBS="$lt_save_LIBS"
5573 CFLAGS="$lt_save_CFLAGS"
5575 echo "cannot find nm_test_func in $nlist" >&5
5578 echo "cannot find nm_test_var in $nlist" >&5
5581 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5584 echo "$progname: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 rm -f conftest* conftst*
5589 # Do not use the global_symbol_pipe unless it works.
5590 if test "$pipe_works" = yes; then
5593 lt_cv_sys_global_symbol_pipe=
5599 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5600 lt_cv_sys_global_symbol_to_cdecl=
5602 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5603 { echo "$as_me:$LINENO: result: failed" >&5
5604 echo "${ECHO_T}failed" >&6; }
5606 { echo "$as_me:$LINENO: result: ok" >&5
5607 echo "${ECHO_T}ok" >&6; }
5610 { echo "$as_me:$LINENO: checking for objdir" >&5
5611 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5612 if test "${lt_cv_objdir+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 rm -f .libs 2>/dev/null
5616 mkdir .libs 2>/dev/null
5617 if test -d .libs; then
5620 # MS-DOS does not allow filenames that begin with a dot.
5623 rmdir .libs 2>/dev/null
5625 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5626 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5627 objdir=$lt_cv_objdir
5635 # AIX sometimes has problems with the GCC collect2 program. For some
5636 # reason, if we set the COLLECT_NAMES environment variable, the problems
5637 # vanish in a puff of smoke.
5638 if test "X${COLLECT_NAMES+set}" != Xset; then
5640 export COLLECT_NAMES
5645 # Sed substitution that helps us do robust quoting. It backslashifies
5646 # metacharacters that are still active within double-quoted strings.
5647 Xsed='sed -e s/^X//'
5648 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5650 # Same as above, but do not quote variable references.
5651 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5653 # Sed substitution to delay expansion of an escaped shell variable in a
5654 # double_quote_subst'ed string.
5655 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5657 # Sed substitution to avoid accidental globbing in evaled expressions
5658 no_glob_subst='s/\*/\\\*/g'
5664 default_ofile=libtool
5665 can_build_shared=yes
5667 # All known linkers require a `.a' archive for static linking (except M$VC,
5668 # which needs '.lib').
5670 ltmain="$ac_aux_dir/ltmain.sh"
5671 ofile="$default_ofile"
5672 with_gnu_ld="$lt_cv_prog_gnu_ld"
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}ar; ac_word=$2
5677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5679 if test "${ac_cv_prog_AR+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 if test -n "$AR"; then
5683 ac_cv_prog_AR="$AR" # Let the user override the test.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692 ac_cv_prog_AR="${ac_tool_prefix}ar"
5693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 if test -n "$AR"; then
5704 { echo "$as_me:$LINENO: result: $AR" >&5
5705 echo "${ECHO_T}$AR" >&6; }
5707 { echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6; }
5713 if test -z "$ac_cv_prog_AR"; then
5715 # Extract the first word of "ar", so it can be a program name with args.
5716 set dummy ar; ac_word=$2
5717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 if test -n "$ac_ct_AR"; then
5723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_prog_ac_ct_AR="ar"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5743 if test -n "$ac_ct_AR"; then
5744 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5745 echo "${ECHO_T}$ac_ct_AR" >&6; }
5747 { echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6; }
5751 if test "x$ac_ct_AR" = x; then
5754 case $cross_compiling:$ac_tool_warned in
5756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5757 whose name does not start with the host triplet. If you think this
5758 configuration is useful to you, please write to autoconf@gnu.org." >&5
5759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5760 whose name does not start with the host triplet. If you think this
5761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5762 ac_tool_warned=yes ;;
5770 if test -n "$ac_tool_prefix"; then
5771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_prog_RANLIB+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 if test -n "$RANLIB"; then
5779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 RANLIB=$ac_cv_prog_RANLIB
5799 if test -n "$RANLIB"; then
5800 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5801 echo "${ECHO_T}$RANLIB" >&6; }
5803 { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5809 if test -z "$ac_cv_prog_RANLIB"; then
5810 ac_ct_RANLIB=$RANLIB
5811 # Extract the first word of "ranlib", so it can be a program name with args.
5812 set dummy ranlib; ac_word=$2
5813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 if test -n "$ac_ct_RANLIB"; then
5819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_ac_ct_RANLIB="ranlib"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5839 if test -n "$ac_ct_RANLIB"; then
5840 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5841 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5843 { echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6; }
5847 if test "x$ac_ct_RANLIB" = x; then
5850 case $cross_compiling:$ac_tool_warned in
5852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5853 whose name does not start with the host triplet. If you think this
5854 configuration is useful to you, please write to autoconf@gnu.org." >&5
5855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5856 whose name does not start with the host triplet. If you think this
5857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5858 ac_tool_warned=yes ;;
5860 RANLIB=$ac_ct_RANLIB
5863 RANLIB="$ac_cv_prog_RANLIB"
5866 if test -n "$ac_tool_prefix"; then
5867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5868 set dummy ${ac_tool_prefix}strip; ac_word=$2
5869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871 if test "${ac_cv_prog_STRIP+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 if test -n "$STRIP"; then
5875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 STRIP=$ac_cv_prog_STRIP
5895 if test -n "$STRIP"; then
5896 { echo "$as_me:$LINENO: result: $STRIP" >&5
5897 echo "${ECHO_T}$STRIP" >&6; }
5899 { echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6; }
5905 if test -z "$ac_cv_prog_STRIP"; then
5907 # Extract the first word of "strip", so it can be a program name with args.
5908 set dummy strip; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 if test -n "$ac_ct_STRIP"; then
5915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_prog_ac_ct_STRIP="strip"
5925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5935 if test -n "$ac_ct_STRIP"; then
5936 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5937 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5939 { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5943 if test "x$ac_ct_STRIP" = x; then
5946 case $cross_compiling:$ac_tool_warned in
5948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5949 whose name does not start with the host triplet. If you think this
5950 configuration is useful to you, please write to autoconf@gnu.org." >&5
5951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5952 whose name does not start with the host triplet. If you think this
5953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5954 ac_tool_warned=yes ;;
5959 STRIP="$ac_cv_prog_STRIP"
5964 old_CFLAGS="$CFLAGS"
5966 # Set sane defaults for various variables
5967 test -z "$AR" && AR=ar
5968 test -z "$AR_FLAGS" && AR_FLAGS=cru
5969 test -z "$AS" && AS=as
5970 test -z "$CC" && CC=cc
5971 test -z "$LTCC" && LTCC=$CC
5972 test -z "$DLLTOOL" && DLLTOOL=dlltool
5973 test -z "$LD" && LD=ld
5974 test -z "$LN_S" && LN_S="ln -s"
5975 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5976 test -z "$NM" && NM=nm
5977 test -z "$SED" && SED=sed
5978 test -z "$OBJDUMP" && OBJDUMP=objdump
5979 test -z "$RANLIB" && RANLIB=:
5980 test -z "$STRIP" && STRIP=:
5981 test -z "$ac_objext" && ac_objext=o
5983 # Determine commands to create old-style static archives.
5984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5985 old_postinstall_cmds='chmod 644 $oldlib'
5986 old_postuninstall_cmds=
5988 if test -n "$RANLIB"; then
5991 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5994 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6000 # Only perform the check for file, if the check method requires it
6001 case $deplibs_check_method in
6003 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6004 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6005 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6014 lt_save_MAGIC_CMD="$MAGIC_CMD"
6015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6017 for ac_dir in $ac_dummy; do
6019 test -z "$ac_dir" && ac_dir=.
6020 if test -f $ac_dir/${ac_tool_prefix}file; then
6021 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6022 if test -n "$file_magic_test_file"; then
6023 case $deplibs_check_method in
6025 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6028 $EGREP "$file_magic_regex" > /dev/null; then
6033 *** Warning: the command libtool uses to detect shared libraries,
6034 *** $file_magic_cmd, produces output that libtool cannot recognize.
6035 *** The result is that libtool may fail to recognize shared libraries
6036 *** as such. This will affect the creation of libtool libraries that
6037 *** depend on shared libraries, but programs linked with such libtool
6038 *** libraries will work regardless of this problem. Nevertheless, you
6039 *** may want to report the problem to your system manager and/or to
6040 *** bug-libtool@gnu.org
6050 MAGIC_CMD="$lt_save_MAGIC_CMD"
6055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6056 if test -n "$MAGIC_CMD"; then
6057 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6058 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6060 { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6064 if test -z "$lt_cv_path_MAGIC_CMD"; then
6065 if test -n "$ac_tool_prefix"; then
6066 { echo "$as_me:$LINENO: checking for file" >&5
6067 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6068 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6076 lt_save_MAGIC_CMD="$MAGIC_CMD"
6077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6079 for ac_dir in $ac_dummy; do
6081 test -z "$ac_dir" && ac_dir=.
6082 if test -f $ac_dir/file; then
6083 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6084 if test -n "$file_magic_test_file"; then
6085 case $deplibs_check_method in
6087 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6090 $EGREP "$file_magic_regex" > /dev/null; then
6095 *** Warning: the command libtool uses to detect shared libraries,
6096 *** $file_magic_cmd, produces output that libtool cannot recognize.
6097 *** The result is that libtool may fail to recognize shared libraries
6098 *** as such. This will affect the creation of libtool libraries that
6099 *** depend on shared libraries, but programs linked with such libtool
6100 *** libraries will work regardless of this problem. Nevertheless, you
6101 *** may want to report the problem to your system manager and/or to
6102 *** bug-libtool@gnu.org
6112 MAGIC_CMD="$lt_save_MAGIC_CMD"
6117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6118 if test -n "$MAGIC_CMD"; then
6119 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6120 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6122 { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6138 # Check whether --enable-libtool-lock was given.
6139 if test "${enable_libtool_lock+set}" = set; then
6140 enableval=$enable_libtool_lock;
6143 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6146 # Check whether --with-pic was given.
6147 if test "${with_pic+set}" = set; then
6148 withval=$with_pic; pic_mode="$withval"
6153 test -z "$pic_mode" && pic_mode=default
6155 # Use C for the default configuration in the libtool script
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165 # Source file extension for C test sources.
6168 # Object file extension for compiled C test sources.
6172 # Code to be used in simple compile tests
6173 lt_simple_compile_test_code="int some_variable = 0;\n"
6175 # Code to be used in simple link tests
6176 lt_simple_link_test_code='int main(){return(0);}\n'
6179 # If no C compiler was specified, use CC.
6182 # Allow CC to be a program name with arguments.
6187 # Check for any special shared library compilation flags.
6190 if test "$GCC" = no; then
6193 lt_prog_cc_shlib='-belf'
6197 if test -n "$lt_prog_cc_shlib"; then
6198 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6199 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6200 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6202 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6203 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6204 lt_cv_prog_cc_can_build_shared=no
6210 # Check to make sure the static flag actually works.
6212 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6213 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6214 if test "${lt_prog_compiler_static_works+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 lt_prog_compiler_static_works=no
6218 save_LDFLAGS="$LDFLAGS"
6219 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6220 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6222 # The compiler can only warn and ignore the option if not recognized
6223 # So say no if there are warnings
6224 if test -s conftest.err; then
6225 # Append any errors to the config.log.
6226 cat conftest.err 1>&5
6228 lt_prog_compiler_static_works=yes
6232 LDFLAGS="$save_LDFLAGS"
6235 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6236 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6238 if test x"$lt_prog_compiler_static_works" = xyes; then
6241 lt_prog_compiler_static=
6247 ## There is no encapsulation within the following macros, do not change
6248 ## the running order or otherwise move them around unless you know exactly
6249 ## what you are doing...
6251 lt_prog_compiler_no_builtin_flag=
6253 if test "$GCC" = yes; then
6254 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6257 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 lt_cv_prog_compiler_rtti_exceptions=no
6263 ac_outfile=conftest.$ac_objext
6264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6265 lt_compiler_flag="-fno-rtti -fno-exceptions"
6266 # Insert the option either (1) after the last *FLAGS variable, or
6267 # (2) before a word containing "conftest.", or (3) at the end.
6268 # Note that $ac_compile itself does not contain backslashes and begins
6269 # with a dollar sign (not a hyphen), so the echo should work correctly.
6270 # The option is referenced via a variable to avoid confusing sed.
6271 lt_compile=`echo "$ac_compile" | $SED \
6272 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6274 -e 's:$: $lt_compiler_flag:'`
6275 (eval echo "\"\$as_me:6275: $lt_compile\"" >&5)
6276 (eval "$lt_compile" 2>conftest.err)
6278 cat conftest.err >&5
6279 echo "$as_me:6279: \$? = $ac_status" >&5
6280 if (exit $ac_status) && test -s "$ac_outfile"; then
6281 # The compiler can only warn and ignore the option if not recognized
6282 # So say no if there are warnings
6283 if test ! -s conftest.err; then
6284 lt_cv_prog_compiler_rtti_exceptions=yes
6290 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6294 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6301 lt_prog_compiler_wl=
6302 lt_prog_compiler_pic=
6303 lt_prog_compiler_static=
6305 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6308 if test "$GCC" = yes; then
6309 lt_prog_compiler_wl='-Wl,'
6310 lt_prog_compiler_static='-static'
6314 # All AIX code is PIC.
6315 if test "$host_cpu" = ia64; then
6316 # AIX 5 now supports IA64 processor
6317 lt_prog_compiler_static='-Bstatic'
6322 # FIXME: we need at least 68020 code to build shared libraries, but
6323 # adding the `-m68020' flag to GCC prevents building anything better,
6325 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6328 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6329 # PIC is the default for these OSes.
6332 mingw* | pw32* | os2*)
6333 # This hack is so that the source file can tell whether it is being
6334 # built for inclusion in a dll (and should export symbols for example).
6335 lt_prog_compiler_pic='-DDLL_EXPORT'
6338 darwin* | rhapsody*)
6339 # PIC is the default on this platform
6340 # Common symbols not allowed in MH_DYLIB files
6341 lt_prog_compiler_pic='-fno-common'
6345 # Just because we use GCC doesn't mean we suddenly get shared libraries
6346 # on systems that don't support them.
6347 lt_prog_compiler_can_build_shared=no
6352 if test -d /usr/nec; then
6353 lt_prog_compiler_pic=-Kconform_pic
6358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6365 lt_prog_compiler_pic='-fPIC'
6371 lt_prog_compiler_pic='-fPIC'
6375 # PORTME Check for flag to pass linker flags through the system compiler.
6378 lt_prog_compiler_wl='-Wl,'
6379 if test "$host_cpu" = ia64; then
6380 # AIX 5 now supports IA64 processor
6381 lt_prog_compiler_static='-Bstatic'
6383 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6387 mingw* | pw32* | os2*)
6388 # This hack is so that the source file can tell whether it is being
6389 # built for inclusion in a dll (and should export symbols for example).
6390 lt_prog_compiler_pic='-DDLL_EXPORT'
6393 hpux9* | hpux10* | hpux11*)
6394 lt_prog_compiler_wl='-Wl,'
6395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6402 lt_prog_compiler_pic='+Z'
6405 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6406 lt_prog_compiler_static='${wl}-a ${wl}archive'
6409 irix5* | irix6* | nonstopux*)
6410 lt_prog_compiler_wl='-Wl,'
6411 # PIC (with -KPIC) is the default.
6412 lt_prog_compiler_static='-non_shared'
6416 lt_prog_compiler_pic='-KPIC'
6417 lt_prog_compiler_static='-Bstatic'
6423 lt_prog_compiler_wl='-Wl,'
6424 lt_prog_compiler_pic='-KPIC'
6425 lt_prog_compiler_static='-static'
6428 lt_prog_compiler_wl='-Wl,'
6429 # All Alpha code is PIC.
6430 lt_prog_compiler_static='-non_shared'
6435 osf3* | osf4* | osf5*)
6436 lt_prog_compiler_wl='-Wl,'
6437 # All OSF/1 code is PIC.
6438 lt_prog_compiler_static='-non_shared'
6442 lt_prog_compiler_pic='-Kpic'
6443 lt_prog_compiler_static='-dn'
6447 lt_prog_compiler_wl='-Wl,'
6448 lt_prog_compiler_pic='-KPIC'
6449 lt_prog_compiler_static='-Bstatic'
6453 lt_prog_compiler_wl='-Qoption ld '
6454 lt_prog_compiler_pic='-PIC'
6455 lt_prog_compiler_static='-Bstatic'
6458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
6465 if test -d /usr/nec ;then
6466 lt_prog_compiler_pic='-Kconform_pic'
6467 lt_prog_compiler_static='-Bstatic'
6472 lt_prog_compiler_pic='-pic'
6473 lt_prog_compiler_static='-Bstatic'
6477 lt_prog_compiler_can_build_shared=no
6482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6483 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6486 # Check to make sure the PIC flag actually works.
6488 if test -n "$lt_prog_compiler_pic"; then
6490 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6492 if test "${lt_prog_compiler_pic_works+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 lt_prog_compiler_pic_works=no
6496 ac_outfile=conftest.$ac_objext
6497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6498 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6499 # Insert the option either (1) after the last *FLAGS variable, or
6500 # (2) before a word containing "conftest.", or (3) at the end.
6501 # Note that $ac_compile itself does not contain backslashes and begins
6502 # with a dollar sign (not a hyphen), so the echo should work correctly.
6503 # The option is referenced via a variable to avoid confusing sed.
6504 lt_compile=`echo "$ac_compile" | $SED \
6505 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507 -e 's:$: $lt_compiler_flag:'`
6508 (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
6509 (eval "$lt_compile" 2>conftest.err)
6511 cat conftest.err >&5
6512 echo "$as_me:6512: \$? = $ac_status" >&5
6513 if (exit $ac_status) && test -s "$ac_outfile"; then
6514 # The compiler can only warn and ignore the option if not recognized
6515 # So say no if there are warnings
6516 if test ! -s conftest.err; then
6517 lt_prog_compiler_pic_works=yes
6523 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6524 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6526 if test x"$lt_prog_compiler_pic_works" = xyes; then
6527 case $lt_prog_compiler_pic in
6529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6532 lt_prog_compiler_pic=
6533 lt_prog_compiler_can_build_shared=no
6538 # For platforms which do not support PIC, -DPIC is meaningless:
6540 lt_prog_compiler_pic=
6543 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6547 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 lt_cv_prog_compiler_c_o=no
6553 $rm -r conftest 2>/dev/null
6557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6559 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6560 # that will create temporary files in the current directory regardless of
6561 # the output directory. Thus, making CWD read-only will cause this test
6562 # to fail, enabling locking or at least warning the user not to do parallel
6566 lt_compiler_flag="-o out/conftest2.$ac_objext"
6567 # Insert the option either (1) after the last *FLAGS variable, or
6568 # (2) before a word containing "conftest.", or (3) at the end.
6569 # Note that $ac_compile itself does not contain backslashes and begins
6570 # with a dollar sign (not a hyphen), so the echo should work correctly.
6571 lt_compile=`echo "$ac_compile" | $SED \
6572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6574 -e 's:$: $lt_compiler_flag:'`
6575 (eval echo "\"\$as_me:6575: $lt_compile\"" >&5)
6576 (eval "$lt_compile" 2>out/conftest.err)
6578 cat out/conftest.err >&5
6579 echo "$as_me:6579: \$? = $ac_status" >&5
6580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6582 # The compiler can only warn and ignore the option if not recognized
6583 # So say no if there are warnings
6584 if test ! -s out/conftest.err; then
6585 lt_cv_prog_compiler_c_o=yes
6590 # SGI C++ compiler will create directory out/ii_files/ for
6591 # template instantiation
6592 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6593 $rm out/* && rmdir out
6599 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6600 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6603 hard_links="nottested"
6604 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6605 # do not overwrite the value of need_locks provided by the user
6606 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6607 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6612 ln conftest.a conftest.b 2>&5 || hard_links=no
6613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6614 { echo "$as_me:$LINENO: result: $hard_links" >&5
6615 echo "${ECHO_T}$hard_links" >&6; }
6616 if test "$hard_links" = no; then
6617 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6618 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6625 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6626 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6629 allow_undefined_flag=
6630 enable_shared_with_static_runtimes=no
6632 archive_expsym_cmds=
6633 old_archive_From_new_cmds=
6634 old_archive_from_expsyms_cmds=
6635 export_dynamic_flag_spec=
6636 whole_archive_flag_spec=
6637 thread_safe_flag_spec=
6638 hardcode_libdir_flag_spec=
6639 hardcode_libdir_flag_spec_ld=
6640 hardcode_libdir_separator=
6643 hardcode_shlibpath_var=unsupported
6644 link_all_deplibs=unknown
6645 hardcode_automatic=no
6648 always_export_symbols=no
6649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6650 # include_expsyms should be a list of space-separated symbols to be *always*
6651 # included in the symbol list
6653 # exclude_expsyms can be an extended regexp of symbols to exclude
6654 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6655 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6656 # as well as any symbol that contains `d'.
6657 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6658 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6659 # platforms (ab)use it in PIC code, but their linkers get confused if
6660 # the symbol is explicitly referenced. Since portable code cannot
6661 # rely on this symbol name, it's probably fine to never include it in
6662 # preloaded symbol tables.
6663 extract_expsyms_cmds=
6666 cygwin* | mingw* | pw32*)
6667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6668 # When not using gcc, we currently assume that we are using
6669 # Microsoft Visual C++.
6670 if test "$GCC" != yes; then
6680 if test "$with_gnu_ld" = yes; then
6681 # If archive_cmds runs LD, not CC, wlarc should be empty
6684 # See if GNU ld supports shared libraries.
6686 aix3* | aix4* | aix5*)
6687 # On AIX/PPC, the GNU linker is very broken
6688 if test "$host_cpu" != ia64; then
6692 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6693 *** to be unable to reliably create shared libraries on AIX.
6694 *** Therefore, libtool is disabling shared libraries support. If you
6695 *** really care for shared libraries, you may want to modify your PATH
6696 *** so that a non-GNU linker is found, and then restart.
6703 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)'
6704 hardcode_libdir_flag_spec='-L$libdir'
6705 hardcode_minus_L=yes
6707 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6708 # that the semantics of dynamic libraries on AmigaOS, at least up
6709 # to version 4, is to share data among multiple programs linked
6710 # with the same dynamic library. Since this doesn't match the
6711 # behavior of shared libraries on other platforms, we can't use
6717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6718 allow_undefined_flag=unsupported
6719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6720 # support --undefined. This deserves some investigation. FIXME
6721 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6727 cygwin* | mingw* | pw32*)
6728 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6729 # as there is no search path for DLLs.
6730 hardcode_libdir_flag_spec='-L$libdir'
6731 allow_undefined_flag=unsupported
6732 always_export_symbols=no
6733 enable_shared_with_static_runtimes=yes
6734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6736 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6738 # If the export-symbols file already is a .def file (1st line
6739 # is EXPORTS), use it as is; otherwise, prepend...
6740 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6741 cp $export_symbols $output_objdir/$soname.def;
6743 echo EXPORTS > $output_objdir/$soname.def;
6744 cat $export_symbols >> $output_objdir/$soname.def;
6746 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6763 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6768 *** create shared libraries on Solaris systems. Therefore, libtool
6769 *** is disabling shared libraries support. We urge you to upgrade GNU
6770 *** binutils to release 2.9.1 or newer. Another option is to modify
6771 *** your PATH or compiler configuration so that the native linker is
6772 *** used, and then restart.
6775 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6784 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6787 hardcode_shlibpath_var=no
6791 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6792 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6793 archive_cmds="$tmp_archive_cmds"
6794 supports_anon_versioning=no
6795 case `$LD -v 2>/dev/null` in
6796 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6797 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6798 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6799 *\ 2.11.*) ;; # other 2.11 versions
6800 *) supports_anon_versioning=yes ;;
6802 if test $supports_anon_versioning = yes; then
6803 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6805 $echo "local: *; };" >> $output_objdir/$libname.ver~
6806 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6808 archive_expsym_cmds="$tmp_archive_cmds"
6816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6825 if test "$ld_shlibs" = yes; then
6826 runpath_var=LD_RUN_PATH
6827 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6828 export_dynamic_flag_spec='${wl}--export-dynamic'
6829 # ancient GNU ld didn't support --whole-archive et. al.
6830 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6831 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6833 whole_archive_flag_spec=
6837 # PORTME fill in a description of your system's linker (not GNU ld)
6840 allow_undefined_flag=unsupported
6841 always_export_symbols=yes
6842 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'
6843 # Note: this linker hardcodes the directories in LIBPATH if there
6844 # are no directories specified by -L.
6845 hardcode_minus_L=yes
6846 if test "$GCC" = yes && test -z "$link_static_flag"; then
6847 # Neither direct hardcoding nor static linking is supported with a
6849 hardcode_direct=unsupported
6854 if test "$host_cpu" = ia64; then
6855 # On IA64, the linker does run time linking by default, so we don't
6856 # have to do anything special.
6857 aix_use_runtimelinking=no
6858 exp_sym_flag='-Bexport'
6861 # If we're using GNU nm, then we don't want the "-C" option.
6862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6864 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'
6866 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'
6868 aix_use_runtimelinking=no
6870 # Test if we are trying to use run time linking or normal
6871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6872 # need to do runtime linking.
6873 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6874 for ld_flag in $LDFLAGS; do
6875 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6876 aix_use_runtimelinking=yes
6882 exp_sym_flag='-bexport'
6883 no_entry_flag='-bnoentry'
6886 # When large executables or shared objects are built, AIX ld can
6887 # have problems creating the table of contents. If linking a library
6888 # or program results in "error TOC overflow" add -mminimal-toc to
6889 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6890 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6894 hardcode_libdir_separator=':'
6895 link_all_deplibs=yes
6897 if test "$GCC" = yes; then
6898 case $host_os in aix4.012|aix4.012.*)
6899 # We only want to do this on AIX 4.2 and lower, the check
6900 # below for broken collect2 doesn't work under 4.3+
6901 collect2name=`${CC} -print-prog-name=collect2`
6902 if test -f "$collect2name" && \
6903 strings "$collect2name" | grep resolve_lib_name >/dev/null
6905 # We have reworked collect2
6908 # We have old collect2
6909 hardcode_direct=unsupported
6910 # It fails to find uninstalled libraries when the uninstalled
6911 # path is not listed in the libpath. Setting hardcode_minus_L
6912 # to unsupported forces relinking
6913 hardcode_minus_L=yes
6914 hardcode_libdir_flag_spec='-L$libdir'
6915 hardcode_libdir_separator=
6918 shared_flag='-shared'
6921 if test "$host_cpu" = ia64; then
6922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6923 # chokes on -Wl,-G. The following line is correct:
6926 if test "$aix_use_runtimelinking" = yes; then
6927 shared_flag='${wl}-G'
6929 shared_flag='${wl}-bM:SRE'
6934 # It seems that -bexpall does not export symbols beginning with
6935 # underscore (_), so it is better to generate a list of symbols to export.
6936 always_export_symbols=yes
6937 if test "$aix_use_runtimelinking" = yes; then
6938 # Warning - without using the other runtime loading flags (-brtl),
6939 # -berok will link without error, but may produce a broken library.
6940 allow_undefined_flag='-berok'
6941 # Determine the default libpath from the value encoded in an empty executable.
6942 cat >conftest.$ac_ext <<_ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (ac_try="$ac_link"
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_link") 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest$ac_exeext &&
6974 $as_test_x conftest$ac_exeext; then
6976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6978 # Check for a 64-bit object if we didn't find anything.
6979 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; }
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989 conftest$ac_exeext conftest.$ac_ext
6990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6992 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6993 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"
6995 if test "$host_cpu" = ia64; then
6996 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6997 allow_undefined_flag="-z nodefs"
6998 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"
7000 # Determine the default libpath from the value encoded in an empty executable.
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (ac_try="$ac_link"
7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7023 (eval "$ac_link") 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest$ac_exeext &&
7033 $as_test_x conftest$ac_exeext; then
7035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7037 # Check for a 64-bit object if we didn't find anything.
7038 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; }
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7048 conftest$ac_exeext conftest.$ac_ext
7049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7051 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7052 # Warning - without using the other run time loading flags,
7053 # -berok will link without error, but may produce a broken library.
7054 no_undefined_flag=' ${wl}-bernotok'
7055 allow_undefined_flag=' ${wl}-berok'
7056 # -bexpall does not export symbols beginning with underscore (_)
7057 always_export_symbols=yes
7058 # Exported symbols can be pulled into shared objects from archives
7059 whole_archive_flag_spec=' '
7060 archive_cmds_need_lc=yes
7061 # This is similar to how AIX traditionally builds it's shared libraries.
7062 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'
7068 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)'
7069 hardcode_libdir_flag_spec='-L$libdir'
7070 hardcode_minus_L=yes
7071 # see comment about different semantics on the GNU ld section
7076 export_dynamic_flag_spec=-rdynamic
7079 cygwin* | mingw* | pw32*)
7080 # When not using gcc, we currently assume that we are using
7081 # Microsoft Visual C++.
7082 # hardcode_libdir_flag_spec is actually meaningless, as there is
7083 # no search path for DLLs.
7084 hardcode_libdir_flag_spec=' '
7085 allow_undefined_flag=unsupported
7086 # Tell ltmain to make .lib files, not .a files.
7088 # Tell ltmain to make .dll files, not .so files.
7090 # FIXME: Setting linknames here is a bad hack.
7091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7092 # The linker will automatically build a .lib file if we build a DLL.
7093 old_archive_From_new_cmds='true'
7094 # FIXME: Should let the user specify the lib program.
7095 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7096 fix_srcfile_path='`cygpath -w "$srcfile"`'
7097 enable_shared_with_static_runtimes=yes
7100 darwin* | rhapsody*)
7101 if test "$GXX" = yes ; then
7102 archive_cmds_need_lc=no
7104 rhapsody* | darwin1.[012])
7105 allow_undefined_flag='-undefined suppress'
7108 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7109 allow_undefined_flag='-flat_namespace -undefined suppress'
7111 case ${MACOSX_DEPLOYMENT_TARGET} in
7113 allow_undefined_flag='-flat_namespace -undefined suppress'
7116 allow_undefined_flag='-undefined dynamic_lookup'
7122 lt_int_apple_cc_single_mod=no
7123 output_verbose_link_cmd='echo'
7124 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7125 lt_int_apple_cc_single_mod=yes
7127 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7128 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7130 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'
7132 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7133 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7134 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7135 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}'
7137 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}'
7139 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}'
7141 hardcode_automatic=yes
7142 hardcode_shlibpath_var=unsupported
7143 whole_archive_flag_spec='-all_load $convenience'
7144 link_all_deplibs=yes
7151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7152 hardcode_libdir_flag_spec='-L$libdir'
7153 hardcode_shlibpath_var=no
7160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7161 # support. Future versions do this automatically, but an explicit c++rt0.o
7162 # does not break anything, and helps significantly (at the cost of a little
7165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7166 hardcode_libdir_flag_spec='-R$libdir'
7168 hardcode_shlibpath_var=no
7171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7175 hardcode_minus_L=yes
7176 hardcode_shlibpath_var=no
7179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7180 freebsd* | kfreebsd*-gnu)
7181 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7182 hardcode_libdir_flag_spec='-R$libdir'
7184 hardcode_shlibpath_var=no
7188 if test "$GCC" = yes; then
7189 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'
7191 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'
7193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7194 hardcode_libdir_separator=:
7197 # hardcode_minus_L: Not really in the search PATH,
7198 # but as the default location of the library.
7199 hardcode_minus_L=yes
7200 export_dynamic_flag_spec='${wl}-E'
7204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7216 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7219 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7223 if test "$with_gnu_ld" = no; then
7226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7227 hardcode_libdir_flag_spec_ld='+b $libdir'
7228 hardcode_libdir_separator=:
7230 hardcode_shlibpath_var=no
7233 hardcode_libdir_flag_spec='-L$libdir'
7235 hardcode_shlibpath_var=no
7237 # hardcode_minus_L: Not really in the search PATH,
7238 # but as the default location of the library.
7239 hardcode_minus_L=yes
7242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7243 hardcode_libdir_separator=:
7245 export_dynamic_flag_spec='${wl}-E'
7247 # hardcode_minus_L: Not really in the search PATH,
7248 # but as the default location of the library.
7249 hardcode_minus_L=yes
7255 irix5* | irix6* | nonstopux*)
7256 if test "$GCC" = yes; then
7257 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'
7259 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'
7260 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263 hardcode_libdir_separator=:
7264 link_all_deplibs=yes
7268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7271 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7273 hardcode_libdir_flag_spec='-R$libdir'
7275 hardcode_shlibpath_var=no
7279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7282 hardcode_libdir_separator=:
7283 hardcode_shlibpath_var=no
7288 hardcode_shlibpath_var=no
7289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7290 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7292 export_dynamic_flag_spec='${wl}-E'
7295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7297 hardcode_libdir_flag_spec='-R$libdir'
7300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7301 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7308 hardcode_libdir_flag_spec='-L$libdir'
7309 hardcode_minus_L=yes
7310 allow_undefined_flag=unsupported
7311 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'
7312 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7316 if test "$GCC" = yes; then
7317 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7318 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'
7320 allow_undefined_flag=' -expect_unresolved \*'
7321 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'
7323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7324 hardcode_libdir_separator=:
7327 osf4* | osf5*) # as osf3* with the addition of -msym flag
7328 if test "$GCC" = yes; then
7329 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7330 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'
7331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7333 allow_undefined_flag=' -expect_unresolved \*'
7334 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'
7335 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7336 $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'
7338 # Both c and cxx compiler support -rpath directly
7339 hardcode_libdir_flag_spec='-rpath $libdir'
7341 hardcode_libdir_separator=:
7345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_shlibpath_var=no
7347 export_dynamic_flag_spec='${wl}-Bexport'
7348 runpath_var=LD_RUN_PATH
7349 hardcode_runpath_var=yes
7353 no_undefined_flag=' -z text'
7354 if test "$GCC" = yes; then
7355 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7356 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7359 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7363 hardcode_libdir_flag_spec='-R$libdir'
7364 hardcode_shlibpath_var=no
7366 solaris2.[0-5] | solaris2.[0-5].*) ;;
7367 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7368 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7370 link_all_deplibs=yes
7374 if test "x$host_vendor" = xsequent; then
7375 # Use $CC to link under sequent, because it throws in some extra .o
7376 # files that make .init and .fini sections work.
7377 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7381 hardcode_libdir_flag_spec='-L$libdir'
7383 hardcode_minus_L=yes
7384 hardcode_shlibpath_var=no
7388 case $host_vendor in
7390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391 hardcode_direct=yes # is this really true???
7394 ## LD is ld it makes a PLAMLIB
7395 ## CC just makes a GrossModule.
7396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7397 reload_cmds='$CC -r -o $output$reload_objs'
7401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7405 runpath_var='LD_RUN_PATH'
7406 hardcode_shlibpath_var=no
7410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_shlibpath_var=no
7412 export_dynamic_flag_spec='-Bexport'
7416 if test -d /usr/nec; then
7417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_shlibpath_var=no
7419 runpath_var=LD_RUN_PATH
7420 hardcode_runpath_var=yes
7426 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7429 hardcode_shlibpath_var=no
7430 hardcode_runpath_var=yes
7431 runpath_var=LD_RUN_PATH
7434 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7435 no_undefined_flag='${wl}-z ${wl}text'
7436 if test "$GCC" = yes; then
7437 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7439 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7441 runpath_var='LD_RUN_PATH'
7442 hardcode_shlibpath_var=no
7446 no_undefined_flag=' -z text'
7447 # $CC -shared without GNU ld will not create a library from C++
7448 # object files and a static libstdc++, better avoid it by now
7449 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7451 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7452 hardcode_libdir_flag_spec=
7453 hardcode_shlibpath_var=no
7454 runpath_var='LD_RUN_PATH'
7458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_libdir_flag_spec='-L$libdir'
7460 hardcode_shlibpath_var=no
7469 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7470 echo "${ECHO_T}$ld_shlibs" >&6; }
7471 test "$ld_shlibs" = no && can_build_shared=no
7473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7474 if test "$GCC" = yes; then
7475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7479 # Do we need to explicitly link libc?
7481 case "x$archive_cmds_need_lc" in
7483 # Assume -lc should be added
7484 archive_cmds_need_lc=yes
7486 if test "$enable_shared" = yes && test "$GCC" = yes; then
7487 case $archive_cmds in
7489 # FIXME: we may have to deal with multi-command sequences.
7492 # Test whether the compiler implicitly links with -lc since on some
7493 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7494 # to ld, don't add -lc before -lgcc.
7495 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7496 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501 (eval $ac_compile) 2>&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } 2>conftest.err; then
7507 libobjs=conftest.$ac_objext
7509 wl=$lt_prog_compiler_wl
7515 lt_save_allow_undefined_flag=$allow_undefined_flag
7516 allow_undefined_flag=
7517 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7518 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }
7523 archive_cmds_need_lc=no
7525 archive_cmds_need_lc=yes
7527 allow_undefined_flag=$lt_save_allow_undefined_flag
7529 cat conftest.err 1>&5
7532 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7533 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7540 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7541 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7543 libname_spec='lib$name'
7551 shlibpath_overrides_runpath=unknown
7553 dynamic_linker="$host_os ld.so"
7554 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7555 if test "$GCC" = yes; then
7556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7557 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7558 # if the path contains ";" then we assume it to be the separator
7559 # otherwise default to the standard path separator (i.e. ":") - it is
7560 # assumed that no part of a normal pathname contains ";" but that should
7561 # okay in the real world where ";" in dirpaths is itself problematic.
7562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7567 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7569 need_lib_prefix=unknown
7570 hardcode_into_libs=no
7572 # when you set need_version to no, make sure it does not cause -set_version
7573 # flags to be left without arguments
7574 need_version=unknown
7579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7580 shlibpath_var=LIBPATH
7582 # AIX 3 has no versioning support, so we append a major version to the name.
7583 soname_spec='${libname}${release}${shared_ext}$major'
7590 hardcode_into_libs=yes
7591 if test "$host_cpu" = ia64; then
7592 # AIX 5 supports IA64
7593 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7594 shlibpath_var=LD_LIBRARY_PATH
7596 # With GCC up to 2.95.x, collect2 would create an import file
7597 # for dependence libraries. The import file would start with
7598 # the line `#! .'. This would cause the generated library to
7599 # depend on `.', always an invalid library. This was fixed in
7600 # development snapshots of GCC prior to 3.0.
7602 aix4 | aix4.[01] | aix4.[01].*)
7603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7605 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7613 # soname into executable. Probably we can add versioning support to
7614 # collect2, so additional links can be useful in future.
7615 if test "$aix_use_runtimelinking" = yes; then
7616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7617 # instead of lib<name>.a to let people know that these are not
7618 # typical AIX shared libraries.
7619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 # We preserve .a as extension for shared libraries through AIX4.2
7622 # and later when we are not doing run time linking.
7623 library_names_spec='${libname}${release}.a $libname.a'
7624 soname_spec='${libname}${release}${shared_ext}$major'
7626 shlibpath_var=LIBPATH
7631 library_names_spec='$libname.ixlibrary $libname.a'
7632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7633 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'
7637 library_names_spec='${libname}${shared_ext}'
7638 dynamic_linker="$host_os ld.so"
7639 shlibpath_var=LIBRARY_PATH
7645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646 soname_spec='${libname}${release}${shared_ext}$major'
7647 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7648 shlibpath_var=LD_LIBRARY_PATH
7649 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7650 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7651 # the default ld.so.conf also contains /usr/contrib/lib and
7652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7653 # libtool to hard-code these into programs
7656 cygwin* | mingw* | pw32*)
7657 version_type=windows
7662 case $GCC,$host_os in
7663 yes,cygwin* | yes,mingw* | yes,pw32*)
7664 library_names_spec='$libname.dll.a'
7665 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7666 postinstall_cmds='base_file=`basename \${file}`~
7667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7668 dldir=$destdir/`dirname \$dlpath`~
7669 test -d \$dldir || mkdir -p \$dldir~
7670 $install_prog $dir/$dlname \$dldir/$dlname'
7671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7672 dlpath=$dir/\$dldll~
7674 shlibpath_overrides_runpath=yes
7678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7680 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7683 # MinGW DLLs use traditional 'lib' prefix
7684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7686 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7687 # It is most probably a Windows format PATH printed by
7688 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7689 # path with ; separators, and with drive letters. We can handle the
7690 # drive letters (cygwin fileutils understands them), so leave them,
7691 # especially as we might pass files found there to a mingw objdump,
7692 # which wouldn't understand a cygwinified path. Ahh.
7693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7699 # pw32 DLLs use 'pw' prefix rather than 'lib'
7700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7709 dynamic_linker='Win32 ld.exe'
7710 # FIXME: first we should search . and the directory the executable is in
7714 darwin* | rhapsody*)
7715 dynamic_linker="$host_os dyld"
7719 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7720 soname_spec='${libname}${release}${major}$shared_ext'
7721 shlibpath_overrides_runpath=yes
7722 shlibpath_var=DYLD_LIBRARY_PATH
7723 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7724 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7725 if test "$GCC" = yes; then
7726 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"`
7728 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7730 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7738 soname_spec='${libname}${release}${shared_ext}$major'
7739 shlibpath_var=LD_LIBRARY_PATH
7750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7751 soname_spec='${libname}${release}${shared_ext}$major'
7752 shlibpath_var=LD_LIBRARY_PATH
7753 shlibpath_overrides_runpath=no
7754 hardcode_into_libs=yes
7755 dynamic_linker='GNU ld.so'
7759 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7760 version_type=freebsd-$objformat
7761 case $version_type in
7763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7772 shlibpath_var=LD_LIBRARY_PATH
7775 shlibpath_overrides_runpath=yes
7777 freebsd3.01* | freebsdelf3.01*)
7778 shlibpath_overrides_runpath=yes
7779 hardcode_into_libs=yes
7782 shlibpath_overrides_runpath=no
7783 hardcode_into_libs=yes
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7793 soname_spec='${libname}${release}${shared_ext}$major'
7794 shlibpath_var=LD_LIBRARY_PATH
7795 hardcode_into_libs=yes
7798 hpux9* | hpux10* | hpux11*)
7799 # Give a soname corresponding to the major version so that dld.sl refuses to
7800 # link against other versions.
7807 hardcode_into_libs=yes
7808 dynamic_linker="$host_os dld.so"
7809 shlibpath_var=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7812 soname_spec='${libname}${release}${shared_ext}$major'
7813 if test "X$HPUX_IA64_MODE" = X32; then
7814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7822 hardcode_into_libs=yes
7823 dynamic_linker="$host_os dld.sl"
7824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7827 soname_spec='${libname}${release}${shared_ext}$major'
7828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7833 dynamic_linker="$host_os dld.sl"
7834 shlibpath_var=SHLIB_PATH
7835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7837 soname_spec='${libname}${release}${shared_ext}$major'
7840 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7841 postinstall_cmds='chmod 555 $lib'
7844 irix5* | irix6* | nonstopux*)
7846 nonstopux*) version_type=nonstopux ;;
7848 if test "$lt_cv_prog_gnu_ld" = yes; then
7856 soname_spec='${libname}${release}${shared_ext}$major'
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7859 irix5* | nonstopux*)
7863 case $LD in # libtool.m4 will add one of these switches to LD
7864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7865 libsuff= shlibsuff= libmagic=32-bit;;
7866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7867 libsuff=32 shlibsuff=N32 libmagic=N32;;
7868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7870 *) libsuff= shlibsuff= libmagic=never-match;;
7874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7875 shlibpath_overrides_runpath=no
7876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7878 hardcode_into_libs=yes
7881 # No shared lib support for Linux oldld, aout, or coff.
7882 linux*oldld* | linux*aout* | linux*coff*)
7886 # This must be Linux ELF.
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892 soname_spec='${libname}${release}${shared_ext}$major'
7893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7894 shlibpath_var=LD_LIBRARY_PATH
7895 shlibpath_overrides_runpath=no
7896 # This implies no fast_install, which is unacceptable.
7897 # Some rework will be needed to allow for fast_install
7898 # before this can be enabled.
7899 hardcode_into_libs=yes
7901 # We used to test for /lib/ld.so.1 and disable shared libraries on
7902 # powerpc, because MkLinux only supported shared libraries with the
7903 # GNU dynamic linker. Since this was broken with cross compilers,
7904 # most powerpc-linux boxes support dynamic linking these days and
7905 # people can always --disable-shared, the test was removed, and we
7906 # assume the GNU/Linux dynamic linker is in use.
7907 dynamic_linker='GNU/Linux ld.so'
7914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7917 dynamic_linker='NetBSD (a.out) ld.so'
7919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7920 soname_spec='${libname}${release}${shared_ext}$major'
7921 dynamic_linker='NetBSD ld.elf_so'
7923 shlibpath_var=LD_LIBRARY_PATH
7924 shlibpath_overrides_runpath=yes
7925 hardcode_into_libs=yes
7930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931 shlibpath_var=LD_LIBRARY_PATH
7932 shlibpath_overrides_runpath=yes
7939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7940 soname_spec='${libname}${release}${shared_ext}$major'
7941 shlibpath_var=LD_LIBRARY_PATH
7942 shlibpath_overrides_runpath=yes
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7951 shlibpath_var=LD_LIBRARY_PATH
7952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7954 openbsd2.[89] | openbsd2.[89].*)
7955 shlibpath_overrides_runpath=no
7958 shlibpath_overrides_runpath=yes
7962 shlibpath_overrides_runpath=yes
7967 libname_spec='$name'
7970 library_names_spec='$libname${shared_ext} $libname.a'
7971 dynamic_linker='OS/2 ld.exe'
7972 shlibpath_var=LIBPATH
7975 osf3* | osf4* | osf5*)
7979 soname_spec='${libname}${release}${shared_ext}$major'
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7983 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7988 soname_spec='${libname}${release}${shared_ext}$major'
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 shlibpath_var=LD_LIBRARY_PATH
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998 soname_spec='${libname}${release}${shared_ext}$major'
7999 shlibpath_var=LD_LIBRARY_PATH
8000 shlibpath_overrides_runpath=yes
8001 hardcode_into_libs=yes
8002 # ldd complains unless libraries are executable
8003 postinstall_cmds='chmod +x $lib'
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8010 shlibpath_var=LD_LIBRARY_PATH
8011 shlibpath_overrides_runpath=yes
8012 if test "$with_gnu_ld" = yes; then
8018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021 soname_spec='${libname}${release}${shared_ext}$major'
8022 shlibpath_var=LD_LIBRARY_PATH
8023 case $host_vendor in
8025 shlibpath_overrides_runpath=no
8027 export_dynamic_flag_spec='${wl}-Blargedynsym'
8028 runpath_var=LD_RUN_PATH
8036 shlibpath_overrides_runpath=no
8037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8043 if test -d /usr/nec ;then
8045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8046 soname_spec='$libname${shared_ext}.$major'
8047 shlibpath_var=LD_LIBRARY_PATH
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054 soname_spec='${libname}${release}${shared_ext}$major'
8055 shlibpath_var=LD_LIBRARY_PATH
8062 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8063 echo "${ECHO_T}$dynamic_linker" >&6; }
8064 test "$dynamic_linker" = no && can_build_shared=no
8066 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8067 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8069 if test -n "$hardcode_libdir_flag_spec" || \
8070 test -n "$runpath_var " || \
8071 test "X$hardcode_automatic"="Xyes" ; then
8073 # We can hardcode non-existant directories.
8074 if test "$hardcode_direct" != no &&
8075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8076 # have to relink, otherwise we might link with an installed library
8077 # when we should be linking with a yet-to-be-installed one
8078 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8079 test "$hardcode_minus_L" != no; then
8080 # Linking always hardcodes the temporary library directory.
8081 hardcode_action=relink
8083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8084 hardcode_action=immediate
8087 # We cannot hardcode anything, or else we can only hardcode existing
8089 hardcode_action=unsupported
8091 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8092 echo "${ECHO_T}$hardcode_action" >&6; }
8094 if test "$hardcode_action" = relink; then
8095 # Fast installation is not supported
8096 enable_fast_install=no
8097 elif test "$shlibpath_overrides_runpath" = yes ||
8098 test "$enable_shared" = no; then
8099 # Fast installation is not necessary
8100 enable_fast_install=needless
8105 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8106 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8107 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8108 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8109 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8110 { echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6; }
8113 # FIXME - insert some real tests, host_os isn't really good enough
8116 if test -n "$STRIP" ; then
8117 striplib="$STRIP -x"
8118 { echo "$as_me:$LINENO: result: yes" >&5
8119 echo "${ECHO_T}yes" >&6; }
8121 { echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6; }
8126 { echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6; }
8132 if test "x$enable_dlopen" != xyes; then
8133 enable_dlopen=unknown
8134 enable_dlopen_self=unknown
8135 enable_dlopen_self_static=unknown
8142 lt_cv_dlopen="load_add_on"
8144 lt_cv_dlopen_self=yes
8148 lt_cv_dlopen="LoadLibrary"
8153 lt_cv_dlopen="dlopen"
8158 # if libdl is installed we need to link against it
8159 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 ac_check_lib_save_LIBS=$LIBS
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 /* Override any GCC internal prototype to avoid an error.
8174 Use char because int might match the return type of a GCC
8175 builtin and then its argument prototype would still apply. */
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (ac_try="$ac_link"
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_link") 2>conftest.er1
8197 grep -v '^ *+' conftest.er1 >conftest.err
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest$ac_exeext &&
8205 $as_test_x conftest$ac_exeext; then
8206 ac_cv_lib_dl_dlopen=yes
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_cv_lib_dl_dlopen=no
8214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8215 conftest$ac_exeext conftest.$ac_ext
8216 LIBS=$ac_check_lib_save_LIBS
8218 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8219 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8220 if test $ac_cv_lib_dl_dlopen = yes; then
8221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8226 lt_cv_dlopen_self=yes
8233 { echo "$as_me:$LINENO: checking for shl_load" >&5
8234 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8235 if test "${ac_cv_func_shl_load+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8246 #define shl_load innocuous_shl_load
8248 /* System header to define __stub macros and hopefully few prototypes,
8249 which can conflict with char shl_load (); below.
8250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8251 <limits.h> exists even on freestanding compilers. */
8254 # include <limits.h>
8256 # include <assert.h>
8261 /* Override any GCC internal prototype to avoid an error.
8262 Use char because int might match the return type of a GCC
8263 builtin and then its argument prototype would still apply. */
8268 /* The GNU C library defines this for functions which it implements
8269 to always fail with ENOSYS. Some functions are actually named
8270 something starting with __ and the normal name is an alias. */
8271 #if defined __stub_shl_load || defined __stub___shl_load
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (ac_try="$ac_link"
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_link") 2>conftest.er1
8292 grep -v '^ *+' conftest.er1 >conftest.err
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest$ac_exeext &&
8300 $as_test_x conftest$ac_exeext; then
8301 ac_cv_func_shl_load=yes
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 ac_cv_func_shl_load=no
8309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8312 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8313 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8314 if test $ac_cv_func_shl_load = yes; then
8315 lt_cv_dlopen="shl_load"
8317 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8318 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8319 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 ac_check_lib_save_LIBS=$LIBS
8324 cat >conftest.$ac_ext <<_ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8331 /* Override any GCC internal prototype to avoid an error.
8332 Use char because int might match the return type of a GCC
8333 builtin and then its argument prototype would still apply. */
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (ac_try="$ac_link"
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_link") 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest$ac_exeext &&
8363 $as_test_x conftest$ac_exeext; then
8364 ac_cv_lib_dld_shl_load=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_lib_dld_shl_load=no
8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373 conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_lib_save_LIBS
8376 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8377 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8378 if test $ac_cv_lib_dld_shl_load = yes; then
8379 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8381 { echo "$as_me:$LINENO: checking for dlopen" >&5
8382 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8383 if test "${ac_cv_func_dlopen+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 cat >conftest.$ac_ext <<_ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8394 #define dlopen innocuous_dlopen
8396 /* System header to define __stub macros and hopefully few prototypes,
8397 which can conflict with char dlopen (); below.
8398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8399 <limits.h> exists even on freestanding compilers. */
8402 # include <limits.h>
8404 # include <assert.h>
8409 /* Override any GCC internal prototype to avoid an error.
8410 Use char because int might match the return type of a GCC
8411 builtin and then its argument prototype would still apply. */
8416 /* The GNU C library defines this for functions which it implements
8417 to always fail with ENOSYS. Some functions are actually named
8418 something starting with __ and the normal name is an alias. */
8419 #if defined __stub_dlopen || defined __stub___dlopen
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (ac_try="$ac_link"
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_link") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest$ac_exeext &&
8448 $as_test_x conftest$ac_exeext; then
8449 ac_cv_func_dlopen=yes
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_cv_func_dlopen=no
8457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8458 conftest$ac_exeext conftest.$ac_ext
8460 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8461 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8462 if test $ac_cv_func_dlopen = yes; then
8463 lt_cv_dlopen="dlopen"
8465 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 ac_check_lib_save_LIBS=$LIBS
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8479 /* Override any GCC internal prototype to avoid an error.
8480 Use char because int might match the return type of a GCC
8481 builtin and then its argument prototype would still apply. */
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (ac_try="$ac_link"
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_link") 2>conftest.er1
8503 grep -v '^ *+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest$ac_exeext &&
8511 $as_test_x conftest$ac_exeext; then
8512 ac_cv_lib_dl_dlopen=yes
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_cv_lib_dl_dlopen=no
8520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8521 conftest$ac_exeext conftest.$ac_ext
8522 LIBS=$ac_check_lib_save_LIBS
8524 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8525 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8526 if test $ac_cv_lib_dl_dlopen = yes; then
8527 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8529 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8530 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8531 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 ac_check_lib_save_LIBS=$LIBS
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8543 /* Override any GCC internal prototype to avoid an error.
8544 Use char because int might match the return type of a GCC
8545 builtin and then its argument prototype would still apply. */
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (ac_try="$ac_link"
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_link") 2>conftest.er1
8567 grep -v '^ *+' conftest.er1 >conftest.err
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && {
8572 test -z "$ac_c_werror_flag" ||
8573 test ! -s conftest.err
8574 } && test -s conftest$ac_exeext &&
8575 $as_test_x conftest$ac_exeext; then
8576 ac_cv_lib_svld_dlopen=yes
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 ac_cv_lib_svld_dlopen=no
8584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8585 conftest$ac_exeext conftest.$ac_ext
8586 LIBS=$ac_check_lib_save_LIBS
8588 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8589 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8590 if test $ac_cv_lib_svld_dlopen = yes; then
8591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8593 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8594 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8595 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 ac_check_lib_save_LIBS=$LIBS
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8607 /* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (ac_try="$ac_link"
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_link") 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_c_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest$ac_exeext &&
8639 $as_test_x conftest$ac_exeext; then
8640 ac_cv_lib_dld_dld_link=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_lib_dld_dld_link=no
8648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8649 conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8652 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8653 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8654 if test $ac_cv_lib_dld_dld_link = yes; then
8655 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8676 if test "x$lt_cv_dlopen" != xno; then
8682 case $lt_cv_dlopen in
8684 save_CPPFLAGS="$CPPFLAGS"
8685 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8687 save_LDFLAGS="$LDFLAGS"
8688 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8691 LIBS="$lt_cv_dlopen_libs $LIBS"
8693 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8694 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8695 if test "${lt_cv_dlopen_self+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 if test "$cross_compiling" = yes; then :
8699 lt_cv_dlopen_self=cross
8701 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8702 lt_status=$lt_dlunknown
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8704 "configure"
8705 #include "confdefs.h"
8714 # define LT_DLGLOBAL RTLD_GLOBAL
8717 # define LT_DLGLOBAL DL_GLOBAL
8719 # define LT_DLGLOBAL 0
8723 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8724 find out it does not work in some platform. */
8725 #ifndef LT_DLLAZY_OR_NOW
8727 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8730 # define LT_DLLAZY_OR_NOW DL_LAZY
8733 # define LT_DLLAZY_OR_NOW RTLD_NOW
8736 # define LT_DLLAZY_OR_NOW DL_NOW
8738 # define LT_DLLAZY_OR_NOW 0
8746 extern "C" void exit (int);
8749 void fnord() { int i=42;}
8752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8753 int status = $lt_dlunknown;
8757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8758 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8759 /* dlclose (self); */
8765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8766 (eval $ac_link) 2>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8770 (./conftest; exit; ) 2>/dev/null
8773 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8774 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8775 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8778 # compilation failed
8779 lt_cv_dlopen_self=no
8786 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8787 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8789 if test "x$lt_cv_dlopen_self" = xyes; then
8790 LDFLAGS="$LDFLAGS $link_static_flag"
8791 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8792 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8793 if test "${lt_cv_dlopen_self_static+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 if test "$cross_compiling" = yes; then :
8797 lt_cv_dlopen_self_static=cross
8799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8800 lt_status=$lt_dlunknown
8801 cat > conftest.$ac_ext <<EOF
8802 #line 8802 "configure"
8803 #include "confdefs.h"
8812 # define LT_DLGLOBAL RTLD_GLOBAL
8815 # define LT_DLGLOBAL DL_GLOBAL
8817 # define LT_DLGLOBAL 0
8821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8822 find out it does not work in some platform. */
8823 #ifndef LT_DLLAZY_OR_NOW
8825 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8828 # define LT_DLLAZY_OR_NOW DL_LAZY
8831 # define LT_DLLAZY_OR_NOW RTLD_NOW
8834 # define LT_DLLAZY_OR_NOW DL_NOW
8836 # define LT_DLLAZY_OR_NOW 0
8844 extern "C" void exit (int);
8847 void fnord() { int i=42;}
8850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8851 int status = $lt_dlunknown;
8855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8856 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8857 /* dlclose (self); */
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8868 (./conftest; exit; ) 2>/dev/null
8871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8873 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8876 # compilation failed
8877 lt_cv_dlopen_self_static=no
8884 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8885 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8888 CPPFLAGS="$save_CPPFLAGS"
8889 LDFLAGS="$save_LDFLAGS"
8894 case $lt_cv_dlopen_self in
8895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8896 *) enable_dlopen_self=unknown ;;
8899 case $lt_cv_dlopen_self_static in
8900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8901 *) enable_dlopen_self_static=unknown ;;
8906 # Report which librarie types wil actually be built
8907 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8908 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
8909 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
8910 echo "${ECHO_T}$can_build_shared" >&6; }
8912 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8913 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
8914 test "$can_build_shared" = "no" && enable_shared=no
8916 # On AIX, shared libraries and static libraries use the same namespace, and
8917 # are all built from PIC.
8920 test "$enable_shared" = yes && enable_static=no
8921 if test -n "$RANLIB"; then
8922 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8923 postinstall_cmds='$RANLIB $lib'
8928 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8929 test "$enable_shared" = yes && enable_static=no
8932 darwin* | rhapsody*)
8933 if test "$GCC" = yes; then
8934 archive_cmds_need_lc=no
8936 rhapsody* | darwin1.[012])
8937 allow_undefined_flag='-undefined suppress'
8940 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8941 allow_undefined_flag='-flat_namespace -undefined suppress'
8943 case ${MACOSX_DEPLOYMENT_TARGET} in
8945 allow_undefined_flag='-flat_namespace -undefined suppress'
8948 allow_undefined_flag='-undefined dynamic_lookup'
8954 output_verbose_link_cmd='echo'
8955 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8956 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8957 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8958 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}'
8959 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}'
8961 hardcode_automatic=yes
8962 hardcode_shlibpath_var=unsupported
8963 whole_archive_flag_spec='-all_load $convenience'
8964 link_all_deplibs=yes
8970 { echo "$as_me:$LINENO: result: $enable_shared" >&5
8971 echo "${ECHO_T}$enable_shared" >&6; }
8973 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8974 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
8975 # Make sure either enable_shared or enable_static is yes.
8976 test "$enable_shared" = yes || enable_static=yes
8977 { echo "$as_me:$LINENO: result: $enable_static" >&5
8978 echo "${ECHO_T}$enable_static" >&6; }
8980 # The else clause should only fire when bootstrapping the
8981 # libtool distribution, otherwise you forgot to ship ltmain.sh
8982 # with your package, and you will get complaints that there are
8983 # no rules to generate ltmain.sh.
8984 if test -f "$ltmain"; then
8985 # See if we are running on zsh, and set the options which allow our commands through
8986 # without removal of \ escapes.
8987 if test -n "${ZSH_VERSION+set}" ; then
8988 setopt NO_GLOB_SUBST
8990 # Now quote all the things that may contain metacharacters while being
8991 # careful not to overquote the AC_SUBSTed values. We take copies of the
8992 # variables and quote the copies for generation of the libtool script.
8993 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8995 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8996 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8997 deplibs_check_method reload_flag reload_cmds need_locks \
8998 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8999 lt_cv_sys_global_symbol_to_c_name_address \
9000 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9001 old_postinstall_cmds old_postuninstall_cmds \
9005 lt_prog_compiler_wl \
9006 lt_prog_compiler_pic \
9007 lt_prog_compiler_static \
9008 lt_prog_compiler_no_builtin_flag \
9009 export_dynamic_flag_spec \
9010 thread_safe_flag_spec \
9011 whole_archive_flag_spec \
9012 enable_shared_with_static_runtimes \
9014 old_archive_from_new_cmds \
9019 compiler_lib_search_path \
9021 archive_expsym_cmds \
9023 postuninstall_cmds \
9024 old_archive_from_expsyms_cmds \
9025 allow_undefined_flag \
9027 export_symbols_cmds \
9028 hardcode_libdir_flag_spec \
9029 hardcode_libdir_flag_spec_ld \
9030 hardcode_libdir_separator \
9031 hardcode_automatic \
9033 module_expsym_cmds \
9034 lt_cv_prog_compiler_c_o \
9039 old_archive_cmds | \
9040 old_archive_from_new_cmds | \
9042 archive_expsym_cmds | \
9044 module_expsym_cmds | \
9045 old_archive_from_expsyms_cmds | \
9046 export_symbols_cmds | \
9047 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9048 postinstall_cmds | postuninstall_cmds | \
9049 old_postinstall_cmds | old_postuninstall_cmds | \
9050 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9051 # Double-quote double-evaled strings.
9052 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9061 *'\$0 --fallback-echo"')
9062 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9067 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9069 { echo "$as_me:$LINENO: creating $ofile" >&5
9070 echo "$as_me: creating $ofile" >&6;}
9072 cat <<__EOF__ >> "$cfgfile"
9075 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9076 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9077 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9079 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9080 # Free Software Foundation, Inc.
9082 # This file is part of GNU Libtool:
9083 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9085 # This program is free software; you can redistribute it and/or modify
9086 # it under the terms of the GNU General Public License as published by
9087 # the Free Software Foundation; either version 2 of the License, or
9088 # (at your option) any later version.
9090 # This program is distributed in the hope that it will be useful, but
9091 # WITHOUT ANY WARRANTY; without even the implied warranty of
9092 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9093 # General Public License for more details.
9095 # You should have received a copy of the GNU General Public License
9096 # along with this program; if not, write to the Free Software
9097 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9099 # As a special exception to the GNU General Public License, if you
9100 # distribute this file as part of a program that contains a
9101 # configuration script generated by Autoconf, you may include it under
9102 # the same distribution terms that you use for the rest of that program.
9104 # A sed program that does not truncate output.
9107 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9108 Xsed="$SED -e s/^X//"
9110 # The HP-UX ksh and POSIX shell print the target directory to stdout
9112 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9114 # The names of the tagged configurations supported by this script.
9117 # ### BEGIN LIBTOOL CONFIG
9119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9121 # Shell to use when invoking shell scripts.
9124 # Whether or not to build shared libraries.
9125 build_libtool_libs=$enable_shared
9127 # Whether or not to build static libraries.
9128 build_old_libs=$enable_static
9130 # Whether or not to add -lc for building shared libraries.
9131 build_libtool_need_lc=$archive_cmds_need_lc
9133 # Whether or not to disallow shared libs when runtime libs are static
9134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9136 # Whether or not to optimize for fast installation.
9137 fast_install=$enable_fast_install
9140 host_alias=$host_alias
9143 # An echo program that does not interpret backslashes.
9148 AR_FLAGS=$lt_AR_FLAGS
9153 # A language-specific compiler.
9156 # Is the compiler the GNU C compiler?
9162 # The linker used to build libraries.
9165 # Whether we need hard or soft links.
9168 # A BSD-compatible nm program.
9171 # A symbol stripping program
9174 # Used to examine libraries when file_magic_cmd begins "file"
9175 MAGIC_CMD=$MAGIC_CMD
9177 # Used on cygwin: DLL creation program.
9180 # Used on cygwin: object dumper.
9183 # Used on cygwin: assembler.
9186 # The name of the directory that contains temporary libtool files.
9189 # How to create reloadable object files.
9190 reload_flag=$lt_reload_flag
9191 reload_cmds=$lt_reload_cmds
9193 # How to pass a linker flag through the compiler.
9194 wl=$lt_lt_prog_compiler_wl
9196 # Object file suffix (normally "o").
9199 # Old archive suffix (normally "a").
9202 # Shared library suffix (normally ".so").
9205 # Executable file suffix (normally "").
9208 # Additional compiler flags for building library objects.
9209 pic_flag=$lt_lt_prog_compiler_pic
9212 # What is the maximum length of a command?
9213 max_cmd_len=$lt_cv_sys_max_cmd_len
9215 # Does compiler simultaneously support -c and -o options?
9216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9218 # Must we lock files when doing compilation ?
9219 need_locks=$lt_need_locks
9221 # Do we need the lib prefix for modules?
9222 need_lib_prefix=$need_lib_prefix
9224 # Do we need a version for libraries?
9225 need_version=$need_version
9227 # Whether dlopen is supported.
9228 dlopen_support=$enable_dlopen
9230 # Whether dlopen of programs is supported.
9231 dlopen_self=$enable_dlopen_self
9233 # Whether dlopen of statically linked programs is supported.
9234 dlopen_self_static=$enable_dlopen_self_static
9236 # Compiler flag to prevent dynamic linking.
9237 link_static_flag=$lt_lt_prog_compiler_static
9239 # Compiler flag to turn off builtin functions.
9240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9242 # Compiler flag to allow reflexive dlopens.
9243 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9245 # Compiler flag to generate shared objects directly from archives.
9246 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9248 # Compiler flag to generate thread-safe objects.
9249 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9251 # Library versioning type.
9252 version_type=$version_type
9254 # Format of library name prefix.
9255 libname_spec=$lt_libname_spec
9257 # List of archive names. First name is the real one, the rest are links.
9258 # The last name is the one that the linker finds with -lNAME.
9259 library_names_spec=$lt_library_names_spec
9261 # The coded name of the library, if different from the real name.
9262 soname_spec=$lt_soname_spec
9264 # Commands used to build and install an old-style archive.
9266 old_archive_cmds=$lt_old_archive_cmds
9267 old_postinstall_cmds=$lt_old_postinstall_cmds
9268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9270 # Create an old-style archive from a shared archive.
9271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9273 # Create a temporary old-style archive to link instead of a shared archive.
9274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9276 # Commands used to build and install a shared archive.
9277 archive_cmds=$lt_archive_cmds
9278 archive_expsym_cmds=$lt_archive_expsym_cmds
9279 postinstall_cmds=$lt_postinstall_cmds
9280 postuninstall_cmds=$lt_postuninstall_cmds
9282 # Commands used to build a loadable module (assumed same as above if empty)
9283 module_cmds=$lt_module_cmds
9284 module_expsym_cmds=$lt_module_expsym_cmds
9286 # Commands to strip libraries.
9287 old_striplib=$lt_old_striplib
9288 striplib=$lt_striplib
9290 # Dependencies to place before the objects being linked to create a
9292 predep_objects=$lt_predep_objects
9294 # Dependencies to place after the objects being linked to create a
9296 postdep_objects=$lt_postdep_objects
9298 # Dependencies to place before the objects being linked to create a
9302 # Dependencies to place after the objects being linked to create a
9304 postdeps=$lt_postdeps
9306 # The library search path used internally by the compiler when linking
9308 compiler_lib_search_path=$lt_compiler_lib_search_path
9310 # Method to check whether dependent libraries are shared objects.
9311 deplibs_check_method=$lt_deplibs_check_method
9313 # Command to use when deplibs_check_method == file_magic.
9314 file_magic_cmd=$lt_file_magic_cmd
9316 # Flag that allows shared libraries with undefined symbols to be built.
9317 allow_undefined_flag=$lt_allow_undefined_flag
9319 # Flag that forces no undefined symbols.
9320 no_undefined_flag=$lt_no_undefined_flag
9322 # Commands used to finish a libtool library installation in a directory.
9323 finish_cmds=$lt_finish_cmds
9325 # Same as above, but a single script fragment to be evaled but not shown.
9326 finish_eval=$lt_finish_eval
9328 # Take the output of nm and produce a listing of raw symbols and C names.
9329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9331 # Transform the output of nm in a proper C declaration
9332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9334 # Transform the output of nm in a C name address pair
9335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9337 # This is the shared library runtime path variable.
9338 runpath_var=$runpath_var
9340 # This is the shared library path variable.
9341 shlibpath_var=$shlibpath_var
9343 # Is shlibpath searched before the hard-coded library search path?
9344 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9346 # How to hardcode a shared library path into an executable.
9347 hardcode_action=$hardcode_action
9349 # Whether we should hardcode library paths into libraries.
9350 hardcode_into_libs=$hardcode_into_libs
9352 # Flag to hardcode \$libdir into a binary during linking.
9353 # This must work even if \$libdir does not exist.
9354 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9356 # If ld is used when linking, flag to hardcode \$libdir into
9357 # a binary during linking. This must work even if \$libdir does
9359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9361 # Whether we need a single -rpath flag with a separated argument.
9362 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9364 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9366 hardcode_direct=$hardcode_direct
9368 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9370 hardcode_minus_L=$hardcode_minus_L
9372 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9373 # the resulting binary.
9374 hardcode_shlibpath_var=$hardcode_shlibpath_var
9376 # Set to yes if building a shared library automatically hardcodes DIR into the library
9377 # and all subsequent libraries and executables linked against it.
9378 hardcode_automatic=$hardcode_automatic
9380 # Variables whose values should be saved in libtool wrapper scripts and
9381 # restored at relink time.
9382 variables_saved_for_relink="$variables_saved_for_relink"
9384 # Whether libtool must link a program against all its dependency libraries.
9385 link_all_deplibs=$link_all_deplibs
9387 # Compile-time system search path for libraries
9388 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9390 # Run-time system search path for libraries
9391 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9393 # Fix the shell variable \$srcfile for the compiler.
9394 fix_srcfile_path="$fix_srcfile_path"
9396 # Set to yes if exported symbols are required.
9397 always_export_symbols=$always_export_symbols
9399 # The commands to list exported symbols.
9400 export_symbols_cmds=$lt_export_symbols_cmds
9402 # The commands to extract the exported symbol list from a shared archive.
9403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9405 # Symbols that should not be listed in the preloaded symbols.
9406 exclude_expsyms=$lt_exclude_expsyms
9408 # Symbols that must always be exported.
9409 include_expsyms=$lt_include_expsyms
9411 # ### END LIBTOOL CONFIG
9418 cat <<\EOF >> "$cfgfile"
9420 # AIX sometimes has problems with the GCC collect2 program. For some
9421 # reason, if we set the COLLECT_NAMES environment variable, the problems
9422 # vanish in a puff of smoke.
9423 if test "X${COLLECT_NAMES+set}" != Xset; then
9425 export COLLECT_NAMES
9431 # We use sed instead of cat because bash on DJGPP gets confused if
9432 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9433 # text mode, it properly converts lines to CR/LF. This bash problem
9434 # is reportedly fixed, but why not run on old versions too?
9435 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9437 mv -f "$cfgfile" "$ofile" || \
9438 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9442 # If there is no Makefile yet, we rely on a make rule to execute
9443 # `config.status --recheck' to rerun these tests and create the
9444 # libtool script then.
9445 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9446 if test -f "$ltmain_in"; then
9447 test -f Makefile && make "$ltmain"
9453 ac_cpp='$CPP $CPPFLAGS'
9454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9461 # Check whether --with-tags was given.
9462 if test "${with_tags+set}" = set; then
9463 withval=$with_tags; tagnames="$withval"
9467 if test -f "$ltmain" && test -n "$tagnames"; then
9468 if test ! -f "${ofile}"; then
9469 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9470 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9473 if test -z "$LTCC"; then
9474 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9475 if test -z "$LTCC"; then
9476 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9477 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9480 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9484 # Extract list of available tagged configurations in $ofile.
9485 # Note that this assumes the entire list is on one line.
9486 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9489 for tagname in $tagnames; do
9491 # Check whether tagname contains only valid characters
9492 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9494 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9495 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9496 { (exit 1); exit 1; }; }
9500 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9502 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9503 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9504 { (exit 1); exit 1; }; }
9507 # Update the list of available tags.
9508 if test -n "$tagname"; then
9509 echo appending configuration tag \"$tagname\" to $ofile
9513 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9515 ac_cpp='$CXXCPP $CPPFLAGS'
9516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9523 archive_cmds_need_lc_CXX=no
9524 allow_undefined_flag_CXX=
9525 always_export_symbols_CXX=no
9526 archive_expsym_cmds_CXX=
9527 export_dynamic_flag_spec_CXX=
9528 hardcode_direct_CXX=no
9529 hardcode_libdir_flag_spec_CXX=
9530 hardcode_libdir_flag_spec_ld_CXX=
9531 hardcode_libdir_separator_CXX=
9532 hardcode_minus_L_CXX=no
9533 hardcode_automatic_CXX=no
9535 module_expsym_cmds_CXX=
9536 link_all_deplibs_CXX=unknown
9537 old_archive_cmds_CXX=$old_archive_cmds
9538 no_undefined_flag_CXX=
9539 whole_archive_flag_spec_CXX=
9540 enable_shared_with_static_runtimes_CXX=no
9542 # Dependencies to place before and after the object being linked:
9544 postdep_objects_CXX=
9547 compiler_lib_search_path_CXX=
9549 # Source file extension for C++ test sources.
9552 # Object file extension for compiled C++ test sources.
9556 # Code to be used in simple compile tests
9557 lt_simple_compile_test_code="int some_variable = 0;\n"
9559 # Code to be used in simple link tests
9560 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9562 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9564 # If no C compiler was specified, use CC.
9567 # Allow CC to be a program name with arguments.
9571 # Allow CC to be a program name with arguments.
9576 lt_save_with_gnu_ld=$with_gnu_ld
9577 lt_save_path_LD=$lt_cv_path_LD
9578 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9579 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9581 unset lt_cv_prog_gnu_ld
9583 if test -n "${lt_cv_path_LDCXX+set}"; then
9584 lt_cv_path_LD=$lt_cv_path_LDCXX
9588 test -z "${LDCXX+set}" || LD=$LDCXX
9592 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9594 # We don't want -fno-exception wen compiling C++ code, so set the
9595 # no_builtin_flag separately
9596 if test "$GXX" = yes; then
9597 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9599 lt_prog_compiler_no_builtin_flag_CXX=
9602 if test "$GXX" = yes; then
9603 # Set up default GNU C++ configuration
9606 # Check whether --with-gnu-ld was given.
9607 if test "${with_gnu_ld+set}" = set; then
9608 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9614 if test "$GCC" = yes; then
9615 # Check if gcc -print-prog-name=ld gives a path.
9616 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9617 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9620 # gcc leaves a trailing carriage return which upsets mingw
9621 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9623 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9626 # Accept absolute paths.
9628 re_direlt='/[^/][^/]*/\.\./'
9629 # Canonicalize the pathname of ld
9630 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9631 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9632 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9634 test -z "$LD" && LD="$ac_prog"
9637 # If it fails, then pretend we aren't using GCC.
9641 # If it is relative, then search for the first ld in PATH.
9645 elif test "$with_gnu_ld" = yes; then
9646 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9647 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9649 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9650 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9652 if test "${lt_cv_path_LD+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 if test -z "$LD"; then
9656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9657 for ac_dir in $PATH; do
9659 test -z "$ac_dir" && ac_dir=.
9660 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9661 lt_cv_path_LD="$ac_dir/$ac_prog"
9662 # Check to see if the program is GNU ld. I'd rather use --version,
9663 # but apparently some GNU ld's only accept -v.
9664 # Break only if it was the GNU/non-GNU ld that we prefer.
9665 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9666 *GNU* | *'with BFD'*)
9667 test "$with_gnu_ld" != no && break
9670 test "$with_gnu_ld" != yes && break
9677 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9682 if test -n "$LD"; then
9683 { echo "$as_me:$LINENO: result: $LD" >&5
9684 echo "${ECHO_T}$LD" >&6; }
9686 { echo "$as_me:$LINENO: result: no" >&5
9687 echo "${ECHO_T}no" >&6; }
9689 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9690 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9691 { (exit 1); exit 1; }; }
9692 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9693 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9694 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9698 case `$LD -v 2>&1 </dev/null` in
9699 *GNU* | *'with BFD'*)
9700 lt_cv_prog_gnu_ld=yes
9703 lt_cv_prog_gnu_ld=no
9707 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9708 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
9709 with_gnu_ld=$lt_cv_prog_gnu_ld
9713 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9714 # archiving commands below assume that GNU ld is being used.
9715 if test "$with_gnu_ld" = yes; then
9716 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9717 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'
9719 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9722 # If archive_cmds runs LD, not CC, wlarc should be empty
9723 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9724 # investigate it a little bit more. (MM)
9727 # ancient GNU ld didn't support --whole-archive et. al.
9728 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9729 grep 'no-whole-archive' > /dev/null; then
9730 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9732 whole_archive_flag_spec_CXX=
9738 # A generic and very simple default shared library creation
9739 # command for GNU C++ for the case where it uses the native
9740 # linker, instead of GNU ld. If possible, this setting should
9741 # overridden to take advantage of the native linker features on
9742 # the platform it is being used on.
9743 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9746 # Commands to make compiler produce verbose output that lists
9747 # what "hidden" libraries, object files and flags are used when
9748 # linking a shared library.
9749 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9757 # PORTME: fill in a description of your system's C++ link characteristics
9758 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9759 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9763 # FIXME: insert proper C++ library support
9767 if test "$host_cpu" = ia64; then
9768 # On IA64, the linker does run time linking by default, so we don't
9769 # have to do anything special.
9770 aix_use_runtimelinking=no
9771 exp_sym_flag='-Bexport'
9774 aix_use_runtimelinking=no
9776 # Test if we are trying to use run time linking or normal
9777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9778 # need to do runtime linking.
9779 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9780 for ld_flag in $LDFLAGS; do
9783 aix_use_runtimelinking=yes
9790 exp_sym_flag='-bexport'
9791 no_entry_flag='-bnoentry'
9794 # When large executables or shared objects are built, AIX ld can
9795 # have problems creating the table of contents. If linking a library
9796 # or program results in "error TOC overflow" add -mminimal-toc to
9797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9801 hardcode_direct_CXX=yes
9802 hardcode_libdir_separator_CXX=':'
9803 link_all_deplibs_CXX=yes
9805 if test "$GXX" = yes; then
9806 case $host_os in aix4.012|aix4.012.*)
9807 # We only want to do this on AIX 4.2 and lower, the check
9808 # below for broken collect2 doesn't work under 4.3+
9809 collect2name=`${CC} -print-prog-name=collect2`
9810 if test -f "$collect2name" && \
9811 strings "$collect2name" | grep resolve_lib_name >/dev/null
9813 # We have reworked collect2
9814 hardcode_direct_CXX=yes
9816 # We have old collect2
9817 hardcode_direct_CXX=unsupported
9818 # It fails to find uninstalled libraries when the uninstalled
9819 # path is not listed in the libpath. Setting hardcode_minus_L
9820 # to unsupported forces relinking
9821 hardcode_minus_L_CXX=yes
9822 hardcode_libdir_flag_spec_CXX='-L$libdir'
9823 hardcode_libdir_separator_CXX=
9826 shared_flag='-shared'
9829 if test "$host_cpu" = ia64; then
9830 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9831 # chokes on -Wl,-G. The following line is correct:
9834 if test "$aix_use_runtimelinking" = yes; then
9835 shared_flag='${wl}-G'
9837 shared_flag='${wl}-bM:SRE'
9842 # It seems that -bexpall does not export symbols beginning with
9843 # underscore (_), so it is better to generate a list of symbols to export.
9844 always_export_symbols_CXX=yes
9845 if test "$aix_use_runtimelinking" = yes; then
9846 # Warning - without using the other runtime loading flags (-brtl),
9847 # -berok will link without error, but may produce a broken library.
9848 allow_undefined_flag_CXX='-berok'
9849 # Determine the default libpath from the value encoded in an empty executable.
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
9874 grep -v '^ *+' conftest.er1 >conftest.err
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } && {
9879 test -z "$ac_cxx_werror_flag" ||
9880 test ! -s conftest.err
9881 } && test -s conftest$ac_exeext &&
9882 $as_test_x conftest$ac_exeext; then
9884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9886 # Check for a 64-bit object if we didn't find anything.
9887 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; }
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9897 conftest$ac_exeext conftest.$ac_ext
9898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9900 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9902 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"
9904 if test "$host_cpu" = ia64; then
9905 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9906 allow_undefined_flag_CXX="-z nodefs"
9907 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"
9909 # Determine the default libpath from the value encoded in an empty executable.
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_link") 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_cxx_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest$ac_exeext &&
9942 $as_test_x conftest$ac_exeext; then
9944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9946 # Check for a 64-bit object if we didn't find anything.
9947 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; }
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957 conftest$ac_exeext conftest.$ac_ext
9958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9960 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9961 # Warning - without using the other run time loading flags,
9962 # -berok will link without error, but may produce a broken library.
9963 no_undefined_flag_CXX=' ${wl}-bernotok'
9964 allow_undefined_flag_CXX=' ${wl}-berok'
9965 # -bexpall does not export symbols beginning with underscore (_)
9966 always_export_symbols_CXX=yes
9967 # Exported symbols can be pulled into shared objects from archives
9968 whole_archive_flag_spec_CXX=' '
9969 archive_cmds_need_lc_CXX=yes
9970 # This is similar to how AIX traditionally builds it's shared libraries.
9971 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'
9976 case $cc_basename in
9978 # FIXME: insert proper C++ library support
9984 cygwin* | mingw* | pw32*)
9985 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9986 # as there is no search path for DLLs.
9987 hardcode_libdir_flag_spec_CXX='-L$libdir'
9988 allow_undefined_flag_CXX=unsupported
9989 always_export_symbols_CXX=no
9990 enable_shared_with_static_runtimes_CXX=yes
9992 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9993 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'
9994 # If the export-symbols file already is a .def file (1st line
9995 # is EXPORTS), use it as is; otherwise, prepend...
9996 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9997 cp $export_symbols $output_objdir/$soname.def;
9999 echo EXPORTS > $output_objdir/$soname.def;
10000 cat $export_symbols >> $output_objdir/$soname.def;
10002 $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'
10008 darwin* | rhapsody*)
10009 if test "$GXX" = yes; then
10010 archive_cmds_need_lc_CXX=no
10012 rhapsody* | darwin1.[012])
10013 allow_undefined_flag_CXX='-undefined suppress'
10016 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10017 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10019 case ${MACOSX_DEPLOYMENT_TARGET} in
10021 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10024 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10030 lt_int_apple_cc_single_mod=no
10031 output_verbose_link_cmd='echo'
10032 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10033 lt_int_apple_cc_single_mod=yes
10035 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10036 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10038 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'
10040 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10043 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10044 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}'
10046 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}'
10048 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}'
10049 hardcode_direct_CXX=no
10050 hardcode_automatic_CXX=yes
10051 hardcode_shlibpath_var_CXX=unsupported
10052 whole_archive_flag_spec_CXX='-all_load $convenience'
10053 link_all_deplibs_CXX=yes
10060 case $cc_basename in
10062 # FIXME: insert proper C++ library support
10066 # Green Hills C++ Compiler
10067 # FIXME: insert proper C++ library support
10071 # FIXME: insert proper C++ library support
10077 # C++ shared libraries reported to be fairly broken before switch to ELF
10081 archive_cmds_need_lc_CXX=no
10083 freebsd* | kfreebsd*-gnu)
10084 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10091 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10092 hardcode_libdir_separator_CXX=:
10093 export_dynamic_flag_spec_CXX='${wl}-E'
10094 hardcode_direct_CXX=yes
10095 hardcode_minus_L_CXX=yes # Not in the search PATH,
10096 # but as the default
10097 # location of the library.
10099 case $cc_basename in
10101 # FIXME: insert proper C++ library support
10105 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'
10106 # Commands to make compiler produce verbose output that lists
10107 # what "hidden" libraries, object files and flags are used when
10108 # linking a shared library.
10110 # There doesn't appear to be a way to prevent this compiler from
10111 # explicitly linking system object files so we need to strip them
10112 # from the output so that they don't get included in the library
10114 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'
10117 if test "$GXX" = yes; then
10118 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'
10120 # FIXME: insert proper C++ library support
10127 if test $with_gnu_ld = no; then
10128 case "$host_cpu" in
10130 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10131 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10132 hardcode_libdir_separator_CXX=:
10135 hardcode_libdir_flag_spec_CXX='-L$libdir'
10138 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10139 hardcode_libdir_separator_CXX=:
10140 export_dynamic_flag_spec_CXX='${wl}-E'
10144 case "$host_cpu" in
10146 hardcode_direct_CXX=no
10147 hardcode_shlibpath_var_CXX=no
10150 hardcode_direct_CXX=no
10151 hardcode_shlibpath_var_CXX=no
10152 hardcode_minus_L_CXX=yes # Not in the search PATH,
10153 # but as the default
10154 # location of the library.
10157 hardcode_direct_CXX=yes
10158 hardcode_minus_L_CXX=yes # Not in the search PATH,
10159 # but as the default
10160 # location of the library.
10164 case $cc_basename in
10166 # FIXME: insert proper C++ library support
10170 case "$host_cpu" in
10172 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10175 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10178 # Commands to make compiler produce verbose output that lists
10179 # what "hidden" libraries, object files and flags are used when
10180 # linking a shared library.
10182 # There doesn't appear to be a way to prevent this compiler from
10183 # explicitly linking system object files so we need to strip them
10184 # from the output so that they don't get included in the library
10186 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'
10189 if test "$GXX" = yes; then
10190 if test $with_gnu_ld = no; then
10191 case "$host_cpu" in
10193 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10196 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'
10201 # FIXME: insert proper C++ library support
10208 case $cc_basename in
10211 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'
10213 # Archives containing C++ object files must be created using
10214 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10215 # necessary to make sure instantiated templates are included
10217 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10220 if test "$GXX" = yes; then
10221 if test "$with_gnu_ld" = no; then
10222 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'
10224 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'
10227 link_all_deplibs_CXX=yes
10230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10231 hardcode_libdir_separator_CXX=:
10234 case $cc_basename in
10236 # Kuck and Associates, Inc. (KAI) C++ Compiler
10238 # KCC will only create a shared library if the output file
10239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10240 # to its proper name (with version) after linking.
10241 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'
10242 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'
10243 # Commands to make compiler produce verbose output that lists
10244 # what "hidden" libraries, object files and flags are used when
10245 # linking a shared library.
10247 # There doesn't appear to be a way to prevent this compiler from
10248 # explicitly linking system object files so we need to strip them
10249 # from the output so that they don't get included in the library
10251 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'
10253 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10254 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10256 # Archives containing C++ object files must be created using
10257 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10258 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10263 archive_cmds_need_lc_CXX=no
10264 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10265 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'
10266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10268 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273 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'
10275 runpath_var=LD_RUN_PATH
10276 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10277 hardcode_libdir_separator_CXX=:
10279 # Commands to make compiler produce verbose output that lists
10280 # what "hidden" libraries, object files and flags are used when
10281 # linking a shared library.
10283 # There doesn't appear to be a way to prevent this compiler from
10284 # explicitly linking system object files so we need to strip them
10285 # from the output so that they don't get included in the library
10287 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'
10292 # FIXME: insert proper C++ library support
10296 # FIXME: insert proper C++ library support
10300 case $cc_basename in
10302 # FIXME: insert proper C++ library support
10306 # FIXME: insert proper C++ library support
10312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10313 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10315 hardcode_libdir_flag_spec_CXX='-R$libdir'
10316 hardcode_direct_CXX=yes
10317 hardcode_shlibpath_var_CXX=no
10319 # Workaround some broken pre-1.5 toolchains
10320 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10323 case $cc_basename in
10325 # Kuck and Associates, Inc. (KAI) C++ Compiler
10327 # KCC will only create a shared library if the output file
10328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10329 # to its proper name (with version) after linking.
10330 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'
10332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10333 hardcode_libdir_separator_CXX=:
10335 # Archives containing C++ object files must be created using
10336 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10337 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10341 # Rational C++ 2.4.1
10342 # FIXME: insert proper C++ library support
10346 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10347 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'
10349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10350 hardcode_libdir_separator_CXX=:
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 -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'
10363 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10364 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10365 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'
10367 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10368 hardcode_libdir_separator_CXX=:
10370 # Commands to make compiler produce verbose output that lists
10371 # what "hidden" libraries, object files and flags are used when
10372 # linking a shared library.
10373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10376 # FIXME: insert proper C++ library support
10383 case $cc_basename in
10385 # Kuck and Associates, Inc. (KAI) C++ Compiler
10387 # KCC will only create a shared library if the output file
10388 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10389 # to its proper name (with version) after linking.
10390 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'
10392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10393 hardcode_libdir_separator_CXX=:
10395 # Archives containing C++ object files must be created using
10396 # the KAI C++ compiler.
10397 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10400 # Rational C++ 2.4.1
10401 # FIXME: insert proper C++ library support
10405 allow_undefined_flag_CXX=' -expect_unresolved \*'
10406 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'
10407 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10408 echo "-hidden">> $lib.exp~
10409 $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~
10412 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10413 hardcode_libdir_separator_CXX=:
10415 # Commands to make compiler produce verbose output that lists
10416 # what "hidden" libraries, object files and flags are used when
10417 # linking a shared library.
10419 # There doesn't appear to be a way to prevent this compiler from
10420 # explicitly linking system object files so we need to strip them
10421 # from the output so that they don't get included in the library
10423 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'
10426 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10427 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10428 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'
10430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10431 hardcode_libdir_separator_CXX=:
10433 # Commands to make compiler produce verbose output that lists
10434 # what "hidden" libraries, object files and flags are used when
10435 # linking a shared library.
10436 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10439 # FIXME: insert proper C++ library support
10446 # FIXME: insert proper C++ library support
10450 archive_cmds_need_lc_CXX=no
10451 case $cc_basename in
10453 # FIXME: insert proper C++ library support
10457 # FIXME: insert proper C++ library support
10463 case $cc_basename in
10466 # FIXME: insert proper C++ library support
10471 # FIXME: insert proper C++ library support
10475 # FIXME: insert proper C++ library support
10481 case $cc_basename in
10483 # Sun C++ 4.2, 5.x and Centerline C++
10484 no_undefined_flag_CXX=' -zdefs'
10485 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10486 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10487 $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'
10489 hardcode_libdir_flag_spec_CXX='-R$libdir'
10490 hardcode_shlibpath_var_CXX=no
10492 solaris2.0-5 | solaris2.0-5.*) ;;
10494 # The C++ compiler is used as linker so we must use $wl
10495 # flag to pass the commands to the underlying system
10497 # Supported since Solaris 2.6 (maybe 2.5.1?)
10498 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10501 link_all_deplibs_CXX=yes
10503 # Commands to make compiler produce verbose output that lists
10504 # what "hidden" libraries, object files and flags are used when
10505 # linking a shared library.
10507 # There doesn't appear to be a way to prevent this compiler from
10508 # explicitly linking system object files so we need to strip them
10509 # from the output so that they don't get included in the library
10511 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'
10513 # Archives containing C++ object files must be created using
10514 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10515 # necessary to make sure instantiated templates are included
10517 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10520 # Green Hills C++ Compiler
10521 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10523 # The C++ compiler must be used to create the archive.
10524 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10527 # GNU C++ compiler with Solaris linker
10528 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10529 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10530 if $CC --version | grep -v '^2\.7' > /dev/null; then
10531 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10532 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10533 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10535 # Commands to make compiler produce verbose output that lists
10536 # what "hidden" libraries, object files and flags are used when
10537 # linking a shared library.
10538 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10540 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10542 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10543 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10544 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10546 # Commands to make compiler produce verbose output that lists
10547 # what "hidden" libraries, object files and flags are used when
10548 # linking a shared library.
10549 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10552 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10557 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10558 archive_cmds_need_lc_CXX=no
10561 case $cc_basename in
10563 # NonStop-UX NCC 3.20
10564 # FIXME: insert proper C++ library support
10568 # FIXME: insert proper C++ library support
10574 # FIXME: insert proper C++ library support
10578 # FIXME: insert proper C++ library support
10582 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10583 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10584 test "$ld_shlibs_CXX" = no && can_build_shared=no
10590 ## There is no encapsulation within the following macros, do not change
10591 ## the running order or otherwise move them around unless you know exactly
10592 ## what you are doing...
10594 cat > conftest.$ac_ext <<EOF
10598 Foo (void) { a = 0; }
10604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605 (eval $ac_compile) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; then
10609 # Parse the compiler output and extract the necessary
10610 # objects, libraries and library flags.
10612 # Sentinel used to keep track of whether or not we are before
10613 # the conftest object file.
10614 pre_test_object_deps_done=no
10616 # The `*' in the case matches for architectures that use `case' in
10617 # $output_verbose_cmd can trigger glob expansion during the loop
10618 # eval without this substitution.
10619 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10621 for p in `eval $output_verbose_link_cmd`; do
10625 # Some compilers place space between "-{L,R}" and the path.
10626 # Remove the space.
10627 if test $p = "-L" \
10628 || test $p = "-R"; then
10635 if test "$pre_test_object_deps_done" = no; then
10638 # Internal compiler library paths should come after those
10639 # provided the user. The postdeps already come after the
10640 # user supplied libs so there is no need to process them.
10641 if test -z "$compiler_lib_search_path_CXX"; then
10642 compiler_lib_search_path_CXX="${prev}${p}"
10644 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10647 # The "-l" case would never come before the object being
10648 # linked, so don't bother handling this case.
10651 if test -z "$postdeps_CXX"; then
10652 postdeps_CXX="${prev}${p}"
10654 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10660 # This assumes that the test object file only shows up
10661 # once in the compiler output.
10662 if test "$p" = "conftest.$objext"; then
10663 pre_test_object_deps_done=yes
10667 if test "$pre_test_object_deps_done" = no; then
10668 if test -z "$predep_objects_CXX"; then
10669 predep_objects_CXX="$p"
10671 predep_objects_CXX="$predep_objects_CXX $p"
10674 if test -z "$postdep_objects_CXX"; then
10675 postdep_objects_CXX="$p"
10677 postdep_objects_CXX="$postdep_objects_CXX $p"
10682 *) ;; # Ignore the rest.
10690 echo "libtool.m4: error: problem compiling CXX test program"
10693 $rm -f confest.$objext
10695 case " $postdeps_CXX " in
10696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10699 lt_prog_compiler_wl_CXX=
10700 lt_prog_compiler_pic_CXX=
10701 lt_prog_compiler_static_CXX=
10703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10706 # C++ specific cases for pic, static, wl, etc.
10707 if test "$GXX" = yes; then
10708 lt_prog_compiler_wl_CXX='-Wl,'
10709 lt_prog_compiler_static_CXX='-static'
10713 # All AIX code is PIC.
10714 if test "$host_cpu" = ia64; then
10715 # AIX 5 now supports IA64 processor
10716 lt_prog_compiler_static_CXX='-Bstatic'
10720 # FIXME: we need at least 68020 code to build shared libraries, but
10721 # adding the `-m68020' flag to GCC prevents building anything better,
10723 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10725 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10726 # PIC is the default for these OSes.
10728 mingw* | os2* | pw32*)
10729 # This hack is so that the source file can tell whether it is being
10730 # built for inclusion in a dll (and should export symbols for example).
10731 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10733 darwin* | rhapsody*)
10734 # PIC is the default on this platform
10735 # Common symbols not allowed in MH_DYLIB files
10736 lt_prog_compiler_pic_CXX='-fno-common'
10739 # DJGPP does not support shared libraries at all
10740 lt_prog_compiler_pic_CXX=
10743 if test -d /usr/nec; then
10744 lt_prog_compiler_pic_CXX=-Kconform_pic
10748 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10749 # not for PA HP-UX.
10750 case "$host_cpu" in
10754 lt_prog_compiler_pic_CXX='-fPIC'
10759 lt_prog_compiler_pic_CXX='-fPIC'
10765 # All AIX code is PIC.
10766 if test "$host_cpu" = ia64; then
10767 # AIX 5 now supports IA64 processor
10768 lt_prog_compiler_static_CXX='-Bstatic'
10770 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10774 case $cc_basename in
10776 # Green Hills C++ Compiler
10777 # _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"
10782 case $cc_basename in
10784 lt_prog_compiler_pic_CXX='-KPIC'
10787 # Green Hills C++ Compiler
10788 lt_prog_compiler_pic_CXX='-pic'
10794 freebsd* | kfreebsd*-gnu)
10795 # FreeBSD uses GNU C++
10797 hpux9* | hpux10* | hpux11*)
10798 case $cc_basename in
10800 lt_prog_compiler_wl_CXX='-Wl,'
10801 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10802 if test "$host_cpu" != ia64; then
10803 lt_prog_compiler_pic_CXX='+Z'
10807 lt_prog_compiler_wl_CXX='-Wl,'
10808 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10809 case "$host_cpu" in
10814 lt_prog_compiler_pic_CXX='+Z'
10822 irix5* | irix6* | nonstopux*)
10823 case $cc_basename in
10825 lt_prog_compiler_wl_CXX='-Wl,'
10826 lt_prog_compiler_static_CXX='-non_shared'
10827 # CC pic flag -KPIC is the default.
10834 case $cc_basename in
10837 lt_prog_compiler_wl_CXX='--backend -Wl,'
10838 lt_prog_compiler_pic_CXX='-fPIC'
10842 lt_prog_compiler_wl_CXX='-Wl,'
10843 lt_prog_compiler_pic_CXX='-KPIC'
10844 lt_prog_compiler_static_CXX='-static'
10848 # Make sure the PIC flag is empty. It appears that all Alpha
10849 # Linux and Compaq Tru64 Unix objects are PIC.
10850 lt_prog_compiler_pic_CXX=
10851 lt_prog_compiler_static_CXX='-non_shared'
10862 case $cc_basename in
10864 lt_prog_compiler_pic_CXX='-W c,exportall'
10872 osf3* | osf4* | osf5*)
10873 case $cc_basename in
10875 lt_prog_compiler_wl_CXX='--backend -Wl,'
10878 # Rational C++ 2.4.1
10879 lt_prog_compiler_pic_CXX='-pic'
10882 # Digital/Compaq C++
10883 lt_prog_compiler_wl_CXX='-Wl,'
10884 # Make sure the PIC flag is empty. It appears that all Alpha
10885 # Linux and Compaq Tru64 Unix objects are PIC.
10886 lt_prog_compiler_pic_CXX=
10887 lt_prog_compiler_static_CXX='-non_shared'
10896 case $cc_basename in
10898 lt_prog_compiler_pic_CXX='-fPIC'
10905 case $cc_basename in
10907 # Sun C++ 4.2, 5.x and Centerline C++
10908 lt_prog_compiler_pic_CXX='-KPIC'
10909 lt_prog_compiler_static_CXX='-Bstatic'
10910 lt_prog_compiler_wl_CXX='-Qoption ld '
10913 # Green Hills C++ Compiler
10914 lt_prog_compiler_pic_CXX='-PIC'
10921 case $cc_basename in
10924 lt_prog_compiler_pic_CXX='-pic'
10925 lt_prog_compiler_static_CXX='-Bstatic'
10929 lt_prog_compiler_pic_CXX='-pic'
10936 case $cc_basename in
10938 # NonStop-UX NCC 3.20
10939 lt_prog_compiler_pic_CXX='-KPIC'
10950 lt_prog_compiler_can_build_shared_CXX=no
10955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10956 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
10959 # Check to make sure the PIC flag actually works.
10961 if test -n "$lt_prog_compiler_pic_CXX"; then
10963 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10964 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
10965 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 lt_prog_compiler_pic_works_CXX=no
10969 ac_outfile=conftest.$ac_objext
10970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10971 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10972 # Insert the option either (1) after the last *FLAGS variable, or
10973 # (2) before a word containing "conftest.", or (3) at the end.
10974 # Note that $ac_compile itself does not contain backslashes and begins
10975 # with a dollar sign (not a hyphen), so the echo should work correctly.
10976 # The option is referenced via a variable to avoid confusing sed.
10977 lt_compile=`echo "$ac_compile" | $SED \
10978 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10980 -e 's:$: $lt_compiler_flag:'`
10981 (eval echo "\"\$as_me:10981: $lt_compile\"" >&5)
10982 (eval "$lt_compile" 2>conftest.err)
10984 cat conftest.err >&5
10985 echo "$as_me:10985: \$? = $ac_status" >&5
10986 if (exit $ac_status) && test -s "$ac_outfile"; then
10987 # The compiler can only warn and ignore the option if not recognized
10988 # So say no if there are warnings
10989 if test ! -s conftest.err; then
10990 lt_prog_compiler_pic_works_CXX=yes
10996 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10997 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
10999 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11000 case $lt_prog_compiler_pic_CXX in
11002 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11005 lt_prog_compiler_pic_CXX=
11006 lt_prog_compiler_can_build_shared_CXX=no
11011 # For platforms which do not support PIC, -DPIC is meaningless:
11013 lt_prog_compiler_pic_CXX=
11016 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11020 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11021 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11022 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 lt_cv_prog_compiler_c_o_CXX=no
11026 $rm -r conftest 2>/dev/null
11030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11032 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11033 # that will create temporary files in the current directory regardless of
11034 # the output directory. Thus, making CWD read-only will cause this test
11035 # to fail, enabling locking or at least warning the user not to do parallel
11039 lt_compiler_flag="-o out/conftest2.$ac_objext"
11040 # Insert the option either (1) after the last *FLAGS variable, or
11041 # (2) before a word containing "conftest.", or (3) at the end.
11042 # Note that $ac_compile itself does not contain backslashes and begins
11043 # with a dollar sign (not a hyphen), so the echo should work correctly.
11044 lt_compile=`echo "$ac_compile" | $SED \
11045 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11047 -e 's:$: $lt_compiler_flag:'`
11048 (eval echo "\"\$as_me:11048: $lt_compile\"" >&5)
11049 (eval "$lt_compile" 2>out/conftest.err)
11051 cat out/conftest.err >&5
11052 echo "$as_me:11052: \$? = $ac_status" >&5
11053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11055 # The compiler can only warn and ignore the option if not recognized
11056 # So say no if there are warnings
11057 if test ! -s out/conftest.err; then
11058 lt_cv_prog_compiler_c_o_CXX=yes
11063 # SGI C++ compiler will create directory out/ii_files/ for
11064 # template instantiation
11065 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11066 $rm out/* && rmdir out
11072 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11076 hard_links="nottested"
11077 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11078 # do not overwrite the value of need_locks provided by the user
11079 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11085 ln conftest.a conftest.b 2>&5 || hard_links=no
11086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11087 { echo "$as_me:$LINENO: result: $hard_links" >&5
11088 echo "${ECHO_T}$hard_links" >&6; }
11089 if test "$hard_links" = no; then
11090 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11098 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11101 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11104 # If we're using GNU nm, then we don't want the "-C" option.
11105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11106 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11107 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'
11109 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'
11113 export_symbols_cmds_CXX="$ltdll_cmds"
11116 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11119 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11123 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11124 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11125 test "$ld_shlibs_CXX" = no && can_build_shared=no
11127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11128 if test "$GCC" = yes; then
11129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11133 # Do we need to explicitly link libc?
11135 case "x$archive_cmds_need_lc_CXX" in
11137 # Assume -lc should be added
11138 archive_cmds_need_lc_CXX=yes
11140 if test "$enable_shared" = yes && test "$GCC" = yes; then
11141 case $archive_cmds_CXX in
11143 # FIXME: we may have to deal with multi-command sequences.
11146 # Test whether the compiler implicitly links with -lc since on some
11147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11148 # to ld, don't add -lc before -lgcc.
11149 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11150 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } 2>conftest.err; then
11161 libobjs=conftest.$ac_objext
11163 wl=$lt_prog_compiler_wl_CXX
11169 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11170 allow_undefined_flag_CXX=
11171 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11172 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }
11177 archive_cmds_need_lc_CXX=no
11179 archive_cmds_need_lc_CXX=yes
11181 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11183 cat conftest.err 1>&5
11186 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11187 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11194 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11195 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11196 library_names_spec=
11197 libname_spec='lib$name'
11201 postuninstall_cmds=
11205 shlibpath_overrides_runpath=unknown
11207 dynamic_linker="$host_os ld.so"
11208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11209 if test "$GCC" = yes; then
11210 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11211 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11212 # if the path contains ";" then we assume it to be the separator
11213 # otherwise default to the standard path separator (i.e. ":") - it is
11214 # assumed that no part of a normal pathname contains ";" but that should
11215 # okay in the real world where ";" in dirpaths is itself problematic.
11216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11221 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11223 need_lib_prefix=unknown
11224 hardcode_into_libs=no
11226 # when you set need_version to no, make sure it does not cause -set_version
11227 # flags to be left without arguments
11228 need_version=unknown
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11234 shlibpath_var=LIBPATH
11236 # AIX 3 has no versioning support, so we append a major version to the name.
11237 soname_spec='${libname}${release}${shared_ext}$major'
11244 hardcode_into_libs=yes
11245 if test "$host_cpu" = ia64; then
11246 # AIX 5 supports IA64
11247 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11248 shlibpath_var=LD_LIBRARY_PATH
11250 # With GCC up to 2.95.x, collect2 would create an import file
11251 # for dependence libraries. The import file would start with
11252 # the line `#! .'. This would cause the generated library to
11253 # depend on `.', always an invalid library. This was fixed in
11254 # development snapshots of GCC prior to 3.0.
11256 aix4 | aix4.[01] | aix4.[01].*)
11257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11259 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11262 can_build_shared=no
11266 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11267 # soname into executable. Probably we can add versioning support to
11268 # collect2, so additional links can be useful in future.
11269 if test "$aix_use_runtimelinking" = yes; then
11270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11271 # instead of lib<name>.a to let people know that these are not
11272 # typical AIX shared libraries.
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 # We preserve .a as extension for shared libraries through AIX4.2
11276 # and later when we are not doing run time linking.
11277 library_names_spec='${libname}${release}.a $libname.a'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11280 shlibpath_var=LIBPATH
11285 library_names_spec='$libname.ixlibrary $libname.a'
11286 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11287 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'
11291 library_names_spec='${libname}${shared_ext}'
11292 dynamic_linker="$host_os ld.so"
11293 shlibpath_var=LIBRARY_PATH
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11304 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11305 # the default ld.so.conf also contains /usr/contrib/lib and
11306 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11307 # libtool to hard-code these into programs
11310 cygwin* | mingw* | pw32*)
11311 version_type=windows
11316 case $GCC,$host_os in
11317 yes,cygwin* | yes,mingw* | yes,pw32*)
11318 library_names_spec='$libname.dll.a'
11319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11320 postinstall_cmds='base_file=`basename \${file}`~
11321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11322 dldir=$destdir/`dirname \$dlpath`~
11323 test -d \$dldir || mkdir -p \$dldir~
11324 $install_prog $dir/$dlname \$dldir/$dlname'
11325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11326 dlpath=$dir/\$dldll~
11328 shlibpath_overrides_runpath=yes
11332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11337 # MinGW DLLs use traditional 'lib' prefix
11338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11340 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11341 # It is most probably a Windows format PATH printed by
11342 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11343 # path with ; separators, and with drive letters. We can handle the
11344 # drive letters (cygwin fileutils understands them), so leave them,
11345 # especially as we might pass files found there to a mingw objdump,
11346 # which wouldn't understand a cygwinified path. Ahh.
11347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11353 # pw32 DLLs use 'pw' prefix rather than 'lib'
11354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11363 dynamic_linker='Win32 ld.exe'
11364 # FIXME: first we should search . and the directory the executable is in
11368 darwin* | rhapsody*)
11369 dynamic_linker="$host_os dyld"
11370 version_type=darwin
11373 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11374 soname_spec='${libname}${release}${major}$shared_ext'
11375 shlibpath_overrides_runpath=yes
11376 shlibpath_var=DYLD_LIBRARY_PATH
11377 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11378 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11379 if test "$GCC" = yes; then
11380 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"`
11382 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 shlibpath_var=LD_LIBRARY_PATH
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 shlibpath_overrides_runpath=no
11408 hardcode_into_libs=yes
11409 dynamic_linker='GNU ld.so'
11413 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11414 version_type=freebsd-$objformat
11415 case $version_type in
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11426 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=yes
11431 freebsd3.01* | freebsdelf3.01*)
11432 shlibpath_overrides_runpath=yes
11433 hardcode_into_libs=yes
11436 shlibpath_overrides_runpath=no
11437 hardcode_into_libs=yes
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 hardcode_into_libs=yes
11452 hpux9* | hpux10* | hpux11*)
11453 # Give a soname corresponding to the major version so that dld.sl refuses to
11454 # link against other versions.
11458 case "$host_cpu" in
11461 hardcode_into_libs=yes
11462 dynamic_linker="$host_os dld.so"
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 if test "X$HPUX_IA64_MODE" = X32; then
11468 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11470 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11476 hardcode_into_libs=yes
11477 dynamic_linker="$host_os dld.sl"
11478 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11487 dynamic_linker="$host_os dld.sl"
11488 shlibpath_var=SHLIB_PATH
11489 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 soname_spec='${libname}${release}${shared_ext}$major'
11494 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11495 postinstall_cmds='chmod 555 $lib'
11498 irix5* | irix6* | nonstopux*)
11500 nonstopux*) version_type=nonstopux ;;
11502 if test "$lt_cv_prog_gnu_ld" = yes; then
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11513 irix5* | nonstopux*)
11514 libsuff= shlibsuff=
11517 case $LD in # libtool.m4 will add one of these switches to LD
11518 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11519 libsuff= shlibsuff= libmagic=32-bit;;
11520 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11521 libsuff=32 shlibsuff=N32 libmagic=N32;;
11522 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11523 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11524 *) libsuff= shlibsuff= libmagic=never-match;;
11528 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11529 shlibpath_overrides_runpath=no
11530 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11531 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11532 hardcode_into_libs=yes
11535 # No shared lib support for Linux oldld, aout, or coff.
11536 linux*oldld* | linux*aout* | linux*coff*)
11540 # This must be Linux ELF.
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546 soname_spec='${libname}${release}${shared_ext}$major'
11547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=no
11550 # This implies no fast_install, which is unacceptable.
11551 # Some rework will be needed to allow for fast_install
11552 # before this can be enabled.
11553 hardcode_into_libs=yes
11555 # We used to test for /lib/ld.so.1 and disable shared libraries on
11556 # powerpc, because MkLinux only supported shared libraries with the
11557 # GNU dynamic linker. Since this was broken with cross compilers,
11558 # most powerpc-linux boxes support dynamic linking these days and
11559 # people can always --disable-shared, the test was removed, and we
11560 # assume the GNU/Linux dynamic linker is in use.
11561 dynamic_linker='GNU/Linux ld.so'
11568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11571 dynamic_linker='NetBSD (a.out) ld.so'
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 dynamic_linker='NetBSD ld.elf_so'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=yes
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=yes
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11608 openbsd2.[89] | openbsd2.[89].*)
11609 shlibpath_overrides_runpath=no
11612 shlibpath_overrides_runpath=yes
11616 shlibpath_overrides_runpath=yes
11621 libname_spec='$name'
11624 library_names_spec='$libname${shared_ext} $libname.a'
11625 dynamic_linker='OS/2 ld.exe'
11626 shlibpath_var=LIBPATH
11629 osf3* | osf4* | osf5*)
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 shlibpath_var=LD_LIBRARY_PATH
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=yes
11655 hardcode_into_libs=yes
11656 # ldd complains unless libraries are executable
11657 postinstall_cmds='chmod +x $lib'
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11663 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 if test "$with_gnu_ld" = yes; then
11672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 case $host_vendor in
11679 shlibpath_overrides_runpath=no
11681 export_dynamic_flag_spec='${wl}-Blargedynsym'
11682 runpath_var=LD_RUN_PATH
11690 shlibpath_overrides_runpath=no
11691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11697 if test -d /usr/nec ;then
11699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11700 soname_spec='$libname${shared_ext}.$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 soname_spec='${libname}${release}${shared_ext}$major'
11709 shlibpath_var=LD_LIBRARY_PATH
11716 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11717 echo "${ECHO_T}$dynamic_linker" >&6; }
11718 test "$dynamic_linker" = no && can_build_shared=no
11720 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11721 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11722 hardcode_action_CXX=
11723 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11724 test -n "$runpath_var CXX" || \
11725 test "X$hardcode_automatic_CXX"="Xyes" ; then
11727 # We can hardcode non-existant directories.
11728 if test "$hardcode_direct_CXX" != no &&
11729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11730 # have to relink, otherwise we might link with an installed library
11731 # when we should be linking with a yet-to-be-installed one
11732 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11733 test "$hardcode_minus_L_CXX" != no; then
11734 # Linking always hardcodes the temporary library directory.
11735 hardcode_action_CXX=relink
11737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11738 hardcode_action_CXX=immediate
11741 # We cannot hardcode anything, or else we can only hardcode existing
11743 hardcode_action_CXX=unsupported
11745 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11746 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
11748 if test "$hardcode_action_CXX" = relink; then
11749 # Fast installation is not supported
11750 enable_fast_install=no
11751 elif test "$shlibpath_overrides_runpath" = yes ||
11752 test "$enable_shared" = no; then
11753 # Fast installation is not necessary
11754 enable_fast_install=needless
11759 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11760 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11761 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11764 { echo "$as_me:$LINENO: result: yes" >&5
11765 echo "${ECHO_T}yes" >&6; }
11767 # FIXME - insert some real tests, host_os isn't really good enough
11770 if test -n "$STRIP" ; then
11771 striplib="$STRIP -x"
11772 { echo "$as_me:$LINENO: result: yes" >&5
11773 echo "${ECHO_T}yes" >&6; }
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11780 { echo "$as_me:$LINENO: result: no" >&5
11781 echo "${ECHO_T}no" >&6; }
11786 if test "x$enable_dlopen" != xyes; then
11787 enable_dlopen=unknown
11788 enable_dlopen_self=unknown
11789 enable_dlopen_self_static=unknown
11796 lt_cv_dlopen="load_add_on"
11798 lt_cv_dlopen_self=yes
11802 lt_cv_dlopen="LoadLibrary"
11807 lt_cv_dlopen="dlopen"
11812 # if libdl is installed we need to link against it
11813 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 ac_check_lib_save_LIBS=$LIBS
11820 cat >conftest.$ac_ext <<_ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11827 /* Override any GCC internal prototype to avoid an error.
11828 Use char because int might match the return type of a GCC
11829 builtin and then its argument prototype would still apply. */
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && {
11856 test -z "$ac_cxx_werror_flag" ||
11857 test ! -s conftest.err
11858 } && test -s conftest$ac_exeext &&
11859 $as_test_x conftest$ac_exeext; then
11860 ac_cv_lib_dl_dlopen=yes
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_cv_lib_dl_dlopen=no
11868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11873 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11874 if test $ac_cv_lib_dl_dlopen = yes; then
11875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11878 lt_cv_dlopen="dyld"
11880 lt_cv_dlopen_self=yes
11887 { echo "$as_me:$LINENO: checking for shl_load" >&5
11888 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11889 if test "${ac_cv_func_shl_load+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11900 #define shl_load innocuous_shl_load
11902 /* System header to define __stub macros and hopefully few prototypes,
11903 which can conflict with char shl_load (); below.
11904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905 <limits.h> exists even on freestanding compilers. */
11908 # include <limits.h>
11910 # include <assert.h>
11915 /* Override any GCC internal prototype to avoid an error.
11916 Use char because int might match the return type of a GCC
11917 builtin and then its argument prototype would still apply. */
11922 /* The GNU C library defines this for functions which it implements
11923 to always fail with ENOSYS. Some functions are actually named
11924 something starting with __ and the normal name is an alias. */
11925 #if defined __stub_shl_load || defined __stub___shl_load
11932 return shl_load ();
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (ac_try="$ac_link"
11939 case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_link") 2>conftest.er1
11946 grep -v '^ *+' conftest.er1 >conftest.err
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } && {
11951 test -z "$ac_cxx_werror_flag" ||
11952 test ! -s conftest.err
11953 } && test -s conftest$ac_exeext &&
11954 $as_test_x conftest$ac_exeext; then
11955 ac_cv_func_shl_load=yes
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 ac_cv_func_shl_load=no
11963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11964 conftest$ac_exeext conftest.$ac_ext
11966 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11967 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11968 if test $ac_cv_func_shl_load = yes; then
11969 lt_cv_dlopen="shl_load"
11971 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11972 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11973 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 ac_check_lib_save_LIBS=$LIBS
11978 cat >conftest.$ac_ext <<_ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11995 return shl_load ();
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_link") 2>conftest.er1
12009 grep -v '^ *+' conftest.er1 >conftest.err
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } && {
12014 test -z "$ac_cxx_werror_flag" ||
12015 test ! -s conftest.err
12016 } && test -s conftest$ac_exeext &&
12017 $as_test_x conftest$ac_exeext; then
12018 ac_cv_lib_dld_shl_load=yes
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12023 ac_cv_lib_dld_shl_load=no
12026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12027 conftest$ac_exeext conftest.$ac_ext
12028 LIBS=$ac_check_lib_save_LIBS
12030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12031 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12032 if test $ac_cv_lib_dld_shl_load = yes; then
12033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12035 { echo "$as_me:$LINENO: checking for dlopen" >&5
12036 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12037 if test "${ac_cv_func_dlopen+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12048 #define dlopen innocuous_dlopen
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char dlopen (); below.
12052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053 <limits.h> exists even on freestanding compilers. */
12056 # include <limits.h>
12058 # include <assert.h>
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12070 /* The GNU C library defines this for functions which it implements
12071 to always fail with ENOSYS. Some functions are actually named
12072 something starting with __ and the normal name is an alias. */
12073 #if defined __stub_dlopen || defined __stub___dlopen
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (ac_try="$ac_link"
12087 case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_link") 2>conftest.er1
12094 grep -v '^ *+' conftest.er1 >conftest.err
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } && {
12099 test -z "$ac_cxx_werror_flag" ||
12100 test ! -s conftest.err
12101 } && test -s conftest$ac_exeext &&
12102 $as_test_x conftest$ac_exeext; then
12103 ac_cv_func_dlopen=yes
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 ac_cv_func_dlopen=no
12111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12112 conftest$ac_exeext conftest.$ac_ext
12114 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12116 if test $ac_cv_func_dlopen = yes; then
12117 lt_cv_dlopen="dlopen"
12119 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 ac_check_lib_save_LIBS=$LIBS
12126 cat >conftest.$ac_ext <<_ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h. */
12133 /* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (ac_try="$ac_link"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12157 grep -v '^ *+' conftest.er1 >conftest.err
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_cxx_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest$ac_exeext &&
12165 $as_test_x conftest$ac_exeext; then
12166 ac_cv_lib_dl_dlopen=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_lib_dl_dlopen=no
12174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12175 conftest$ac_exeext conftest.$ac_ext
12176 LIBS=$ac_check_lib_save_LIBS
12178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12180 if test $ac_cv_lib_dl_dlopen = yes; then
12181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12183 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12184 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12185 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-lsvld $LIBS"
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_cxx_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest$ac_exeext &&
12229 $as_test_x conftest$ac_exeext; then
12230 ac_cv_lib_svld_dlopen=yes
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ac_cv_lib_svld_dlopen=no
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12244 if test $ac_cv_lib_svld_dlopen = yes; then
12245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12247 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12248 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 ac_check_lib_save_LIBS=$LIBS
12254 cat >conftest.$ac_ext <<_ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12271 return dld_link ();
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_cxx_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 ac_cv_lib_dld_dld_link=yes
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_dld_dld_link=no
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12308 if test $ac_cv_lib_dld_dld_link = yes; then
12309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12330 if test "x$lt_cv_dlopen" != xno; then
12336 case $lt_cv_dlopen in
12338 save_CPPFLAGS="$CPPFLAGS"
12339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12341 save_LDFLAGS="$LDFLAGS"
12342 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12345 LIBS="$lt_cv_dlopen_libs $LIBS"
12347 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12349 if test "${lt_cv_dlopen_self+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 if test "$cross_compiling" = yes; then :
12353 lt_cv_dlopen_self=cross
12355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12356 lt_status=$lt_dlunknown
12357 cat > conftest.$ac_ext <<EOF
12358 #line 12358 "configure"
12359 #include "confdefs.h"
12368 # define LT_DLGLOBAL RTLD_GLOBAL
12371 # define LT_DLGLOBAL DL_GLOBAL
12373 # define LT_DLGLOBAL 0
12377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12378 find out it does not work in some platform. */
12379 #ifndef LT_DLLAZY_OR_NOW
12381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12384 # define LT_DLLAZY_OR_NOW DL_LAZY
12387 # define LT_DLLAZY_OR_NOW RTLD_NOW
12390 # define LT_DLLAZY_OR_NOW DL_NOW
12392 # define LT_DLLAZY_OR_NOW 0
12400 extern "C" void exit (int);
12403 void fnord() { int i=42;}
12406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12407 int status = $lt_dlunknown;
12411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12413 /* dlclose (self); */
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12424 (./conftest; exit; ) 2>/dev/null
12426 case x$lt_status in
12427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12429 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12432 # compilation failed
12433 lt_cv_dlopen_self=no
12440 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12443 if test "x$lt_cv_dlopen_self" = xyes; then
12444 LDFLAGS="$LDFLAGS $link_static_flag"
12445 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12447 if test "${lt_cv_dlopen_self_static+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 if test "$cross_compiling" = yes; then :
12451 lt_cv_dlopen_self_static=cross
12453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12454 lt_status=$lt_dlunknown
12455 cat > conftest.$ac_ext <<EOF
12456 #line 12456 "configure"
12457 #include "confdefs.h"
12466 # define LT_DLGLOBAL RTLD_GLOBAL
12469 # define LT_DLGLOBAL DL_GLOBAL
12471 # define LT_DLGLOBAL 0
12475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12476 find out it does not work in some platform. */
12477 #ifndef LT_DLLAZY_OR_NOW
12479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12482 # define LT_DLLAZY_OR_NOW DL_LAZY
12485 # define LT_DLLAZY_OR_NOW RTLD_NOW
12488 # define LT_DLLAZY_OR_NOW DL_NOW
12490 # define LT_DLLAZY_OR_NOW 0
12498 extern "C" void exit (int);
12501 void fnord() { int i=42;}
12504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12505 int status = $lt_dlunknown;
12509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12511 /* dlclose (self); */
12517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518 (eval $ac_link) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12522 (./conftest; exit; ) 2>/dev/null
12524 case x$lt_status in
12525 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12526 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12527 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12530 # compilation failed
12531 lt_cv_dlopen_self_static=no
12538 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12542 CPPFLAGS="$save_CPPFLAGS"
12543 LDFLAGS="$save_LDFLAGS"
12548 case $lt_cv_dlopen_self in
12549 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12550 *) enable_dlopen_self=unknown ;;
12553 case $lt_cv_dlopen_self_static in
12554 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12555 *) enable_dlopen_self_static=unknown ;;
12560 # The else clause should only fire when bootstrapping the
12561 # libtool distribution, otherwise you forgot to ship ltmain.sh
12562 # with your package, and you will get complaints that there are
12563 # no rules to generate ltmain.sh.
12564 if test -f "$ltmain"; then
12565 # See if we are running on zsh, and set the options which allow our commands through
12566 # without removal of \ escapes.
12567 if test -n "${ZSH_VERSION+set}" ; then
12568 setopt NO_GLOB_SUBST
12570 # Now quote all the things that may contain metacharacters while being
12571 # careful not to overquote the AC_SUBSTed values. We take copies of the
12572 # variables and quote the copies for generation of the libtool script.
12573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12577 deplibs_check_method reload_flag reload_cmds need_locks \
12578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12579 lt_cv_sys_global_symbol_to_c_name_address \
12580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12581 old_postinstall_cmds old_postuninstall_cmds \
12585 lt_prog_compiler_wl_CXX \
12586 lt_prog_compiler_pic_CXX \
12587 lt_prog_compiler_static_CXX \
12588 lt_prog_compiler_no_builtin_flag_CXX \
12589 export_dynamic_flag_spec_CXX \
12590 thread_safe_flag_spec_CXX \
12591 whole_archive_flag_spec_CXX \
12592 enable_shared_with_static_runtimes_CXX \
12593 old_archive_cmds_CXX \
12594 old_archive_from_new_cmds_CXX \
12595 predep_objects_CXX \
12596 postdep_objects_CXX \
12599 compiler_lib_search_path_CXX \
12601 archive_expsym_cmds_CXX \
12602 postinstall_cmds_CXX \
12603 postuninstall_cmds_CXX \
12604 old_archive_from_expsyms_cmds_CXX \
12605 allow_undefined_flag_CXX \
12606 no_undefined_flag_CXX \
12607 export_symbols_cmds_CXX \
12608 hardcode_libdir_flag_spec_CXX \
12609 hardcode_libdir_flag_spec_ld_CXX \
12610 hardcode_libdir_separator_CXX \
12611 hardcode_automatic_CXX \
12613 module_expsym_cmds_CXX \
12614 lt_cv_prog_compiler_c_o_CXX \
12615 exclude_expsyms_CXX \
12616 include_expsyms_CXX; do
12619 old_archive_cmds_CXX | \
12620 old_archive_from_new_cmds_CXX | \
12621 archive_cmds_CXX | \
12622 archive_expsym_cmds_CXX | \
12623 module_cmds_CXX | \
12624 module_expsym_cmds_CXX | \
12625 old_archive_from_expsyms_cmds_CXX | \
12626 export_symbols_cmds_CXX | \
12627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12628 postinstall_cmds | postuninstall_cmds | \
12629 old_postinstall_cmds | old_postuninstall_cmds | \
12630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12631 # Double-quote double-evaled strings.
12632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12641 *'\$0 --fallback-echo"')
12642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12648 cat <<__EOF__ >> "$cfgfile"
12649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12653 # Shell to use when invoking shell scripts.
12656 # Whether or not to build shared libraries.
12657 build_libtool_libs=$enable_shared
12659 # Whether or not to build static libraries.
12660 build_old_libs=$enable_static
12662 # Whether or not to add -lc for building shared libraries.
12663 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12665 # Whether or not to disallow shared libs when runtime libs are static
12666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12668 # Whether or not to optimize for fast installation.
12669 fast_install=$enable_fast_install
12672 host_alias=$host_alias
12675 # An echo program that does not interpret backslashes.
12680 AR_FLAGS=$lt_AR_FLAGS
12685 # A language-specific compiler.
12686 CC=$lt_compiler_CXX
12688 # Is the compiler the GNU C compiler?
12694 # The linker used to build libraries.
12697 # Whether we need hard or soft links.
12700 # A BSD-compatible nm program.
12703 # A symbol stripping program
12706 # Used to examine libraries when file_magic_cmd begins "file"
12707 MAGIC_CMD=$MAGIC_CMD
12709 # Used on cygwin: DLL creation program.
12712 # Used on cygwin: object dumper.
12715 # Used on cygwin: assembler.
12718 # The name of the directory that contains temporary libtool files.
12721 # How to create reloadable object files.
12722 reload_flag=$lt_reload_flag
12723 reload_cmds=$lt_reload_cmds
12725 # How to pass a linker flag through the compiler.
12726 wl=$lt_lt_prog_compiler_wl_CXX
12728 # Object file suffix (normally "o").
12729 objext="$ac_objext"
12731 # Old archive suffix (normally "a").
12734 # Shared library suffix (normally ".so").
12737 # Executable file suffix (normally "").
12740 # Additional compiler flags for building library objects.
12741 pic_flag=$lt_lt_prog_compiler_pic_CXX
12744 # What is the maximum length of a command?
12745 max_cmd_len=$lt_cv_sys_max_cmd_len
12747 # Does compiler simultaneously support -c and -o options?
12748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12750 # Must we lock files when doing compilation ?
12751 need_locks=$lt_need_locks
12753 # Do we need the lib prefix for modules?
12754 need_lib_prefix=$need_lib_prefix
12756 # Do we need a version for libraries?
12757 need_version=$need_version
12759 # Whether dlopen is supported.
12760 dlopen_support=$enable_dlopen
12762 # Whether dlopen of programs is supported.
12763 dlopen_self=$enable_dlopen_self
12765 # Whether dlopen of statically linked programs is supported.
12766 dlopen_self_static=$enable_dlopen_self_static
12768 # Compiler flag to prevent dynamic linking.
12769 link_static_flag=$lt_lt_prog_compiler_static_CXX
12771 # Compiler flag to turn off builtin functions.
12772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12774 # Compiler flag to allow reflexive dlopens.
12775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12777 # Compiler flag to generate shared objects directly from archives.
12778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12780 # Compiler flag to generate thread-safe objects.
12781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12783 # Library versioning type.
12784 version_type=$version_type
12786 # Format of library name prefix.
12787 libname_spec=$lt_libname_spec
12789 # List of archive names. First name is the real one, the rest are links.
12790 # The last name is the one that the linker finds with -lNAME.
12791 library_names_spec=$lt_library_names_spec
12793 # The coded name of the library, if different from the real name.
12794 soname_spec=$lt_soname_spec
12796 # Commands used to build and install an old-style archive.
12798 old_archive_cmds=$lt_old_archive_cmds_CXX
12799 old_postinstall_cmds=$lt_old_postinstall_cmds
12800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12802 # Create an old-style archive from a shared archive.
12803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12805 # Create a temporary old-style archive to link instead of a shared archive.
12806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12808 # Commands used to build and install a shared archive.
12809 archive_cmds=$lt_archive_cmds_CXX
12810 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12811 postinstall_cmds=$lt_postinstall_cmds
12812 postuninstall_cmds=$lt_postuninstall_cmds
12814 # Commands used to build a loadable module (assumed same as above if empty)
12815 module_cmds=$lt_module_cmds_CXX
12816 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12818 # Commands to strip libraries.
12819 old_striplib=$lt_old_striplib
12820 striplib=$lt_striplib
12822 # Dependencies to place before the objects being linked to create a
12824 predep_objects=$lt_predep_objects_CXX
12826 # Dependencies to place after the objects being linked to create a
12828 postdep_objects=$lt_postdep_objects_CXX
12830 # Dependencies to place before the objects being linked to create a
12832 predeps=$lt_predeps_CXX
12834 # Dependencies to place after the objects being linked to create a
12836 postdeps=$lt_postdeps_CXX
12838 # The library search path used internally by the compiler when linking
12839 # a shared library.
12840 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12842 # Method to check whether dependent libraries are shared objects.
12843 deplibs_check_method=$lt_deplibs_check_method
12845 # Command to use when deplibs_check_method == file_magic.
12846 file_magic_cmd=$lt_file_magic_cmd
12848 # Flag that allows shared libraries with undefined symbols to be built.
12849 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12851 # Flag that forces no undefined symbols.
12852 no_undefined_flag=$lt_no_undefined_flag_CXX
12854 # Commands used to finish a libtool library installation in a directory.
12855 finish_cmds=$lt_finish_cmds
12857 # Same as above, but a single script fragment to be evaled but not shown.
12858 finish_eval=$lt_finish_eval
12860 # Take the output of nm and produce a listing of raw symbols and C names.
12861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12863 # Transform the output of nm in a proper C declaration
12864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12866 # Transform the output of nm in a C name address pair
12867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12869 # This is the shared library runtime path variable.
12870 runpath_var=$runpath_var
12872 # This is the shared library path variable.
12873 shlibpath_var=$shlibpath_var
12875 # Is shlibpath searched before the hard-coded library search path?
12876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12878 # How to hardcode a shared library path into an executable.
12879 hardcode_action=$hardcode_action_CXX
12881 # Whether we should hardcode library paths into libraries.
12882 hardcode_into_libs=$hardcode_into_libs
12884 # Flag to hardcode \$libdir into a binary during linking.
12885 # This must work even if \$libdir does not exist.
12886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12888 # If ld is used when linking, flag to hardcode \$libdir into
12889 # a binary during linking. This must work even if \$libdir does
12891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12893 # Whether we need a single -rpath flag with a separated argument.
12894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12897 # resulting binary.
12898 hardcode_direct=$hardcode_direct_CXX
12900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12901 # resulting binary.
12902 hardcode_minus_L=$hardcode_minus_L_CXX
12904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12905 # the resulting binary.
12906 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12908 # Set to yes if building a shared library automatically hardcodes DIR into the library
12909 # and all subsequent libraries and executables linked against it.
12910 hardcode_automatic=$hardcode_automatic_CXX
12912 # Variables whose values should be saved in libtool wrapper scripts and
12913 # restored at relink time.
12914 variables_saved_for_relink="$variables_saved_for_relink"
12916 # Whether libtool must link a program against all its dependency libraries.
12917 link_all_deplibs=$link_all_deplibs_CXX
12919 # Compile-time system search path for libraries
12920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12922 # Run-time system search path for libraries
12923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12925 # Fix the shell variable \$srcfile for the compiler.
12926 fix_srcfile_path="$fix_srcfile_path_CXX"
12928 # Set to yes if exported symbols are required.
12929 always_export_symbols=$always_export_symbols_CXX
12931 # The commands to list exported symbols.
12932 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12934 # The commands to extract the exported symbol list from a shared archive.
12935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12937 # Symbols that should not be listed in the preloaded symbols.
12938 exclude_expsyms=$lt_exclude_expsyms_CXX
12940 # Symbols that must always be exported.
12941 include_expsyms=$lt_include_expsyms_CXX
12943 # ### END LIBTOOL TAG CONFIG: $tagname
12949 # If there is no Makefile yet, we rely on a make rule to execute
12950 # `config.status --recheck' to rerun these tests and create the
12951 # libtool script then.
12952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12953 if test -f "$ltmain_in"; then
12954 test -f Makefile && make "$ltmain"
12960 ac_cpp='$CPP $CPPFLAGS'
12961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12969 with_gnu_ldcxx=$with_gnu_ld
12970 with_gnu_ld=$lt_save_with_gnu_ld
12971 lt_cv_path_LDCXX=$lt_cv_path_LD
12972 lt_cv_path_LD=$lt_save_path_LD
12973 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12974 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12982 if test -n "$F77" && test "X$F77" != "Xno"; then
12985 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12986 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12990 archive_cmds_need_lc_F77=no
12991 allow_undefined_flag_F77=
12992 always_export_symbols_F77=no
12993 archive_expsym_cmds_F77=
12994 export_dynamic_flag_spec_F77=
12995 hardcode_direct_F77=no
12996 hardcode_libdir_flag_spec_F77=
12997 hardcode_libdir_flag_spec_ld_F77=
12998 hardcode_libdir_separator_F77=
12999 hardcode_minus_L_F77=no
13000 hardcode_automatic_F77=no
13002 module_expsym_cmds_F77=
13003 link_all_deplibs_F77=unknown
13004 old_archive_cmds_F77=$old_archive_cmds
13005 no_undefined_flag_F77=
13006 whole_archive_flag_spec_F77=
13007 enable_shared_with_static_runtimes_F77=no
13009 # Source file extension for f77 test sources.
13012 # Object file extension for compiled f77 test sources.
13016 # Code to be used in simple compile tests
13017 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13019 # Code to be used in simple link tests
13020 lt_simple_link_test_code=" program t\n end\n"
13022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13024 # If no C compiler was specified, use CC.
13027 # Allow CC to be a program name with arguments.
13031 # Allow CC to be a program name with arguments.
13036 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13038 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13039 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13040 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13041 echo "${ECHO_T}$can_build_shared" >&6; }
13043 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13044 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13045 test "$can_build_shared" = "no" && enable_shared=no
13047 # On AIX, shared libraries and static libraries use the same namespace, and
13048 # are all built from PIC.
13051 test "$enable_shared" = yes && enable_static=no
13052 if test -n "$RANLIB"; then
13053 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13054 postinstall_cmds='$RANLIB $lib'
13058 test "$enable_shared" = yes && enable_static=no
13061 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13062 echo "${ECHO_T}$enable_shared" >&6; }
13064 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13065 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13066 # Make sure either enable_shared or enable_static is yes.
13067 test "$enable_shared" = yes || enable_static=yes
13068 { echo "$as_me:$LINENO: result: $enable_static" >&5
13069 echo "${ECHO_T}$enable_static" >&6; }
13071 test "$ld_shlibs_F77" = no && can_build_shared=no
13076 lt_prog_compiler_wl_F77=
13077 lt_prog_compiler_pic_F77=
13078 lt_prog_compiler_static_F77=
13080 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13083 if test "$GCC" = yes; then
13084 lt_prog_compiler_wl_F77='-Wl,'
13085 lt_prog_compiler_static_F77='-static'
13089 # All AIX code is PIC.
13090 if test "$host_cpu" = ia64; then
13091 # AIX 5 now supports IA64 processor
13092 lt_prog_compiler_static_F77='-Bstatic'
13097 # FIXME: we need at least 68020 code to build shared libraries, but
13098 # adding the `-m68020' flag to GCC prevents building anything better,
13100 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13103 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13104 # PIC is the default for these OSes.
13107 mingw* | pw32* | os2*)
13108 # This hack is so that the source file can tell whether it is being
13109 # built for inclusion in a dll (and should export symbols for example).
13110 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13113 darwin* | rhapsody*)
13114 # PIC is the default on this platform
13115 # Common symbols not allowed in MH_DYLIB files
13116 lt_prog_compiler_pic_F77='-fno-common'
13120 # Just because we use GCC doesn't mean we suddenly get shared libraries
13121 # on systems that don't support them.
13122 lt_prog_compiler_can_build_shared_F77=no
13127 if test -d /usr/nec; then
13128 lt_prog_compiler_pic_F77=-Kconform_pic
13133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13134 # not for PA HP-UX.
13135 case "$host_cpu" in
13140 lt_prog_compiler_pic_F77='-fPIC'
13146 lt_prog_compiler_pic_F77='-fPIC'
13150 # PORTME Check for flag to pass linker flags through the system compiler.
13153 lt_prog_compiler_wl_F77='-Wl,'
13154 if test "$host_cpu" = ia64; then
13155 # AIX 5 now supports IA64 processor
13156 lt_prog_compiler_static_F77='-Bstatic'
13158 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13162 mingw* | pw32* | os2*)
13163 # This hack is so that the source file can tell whether it is being
13164 # built for inclusion in a dll (and should export symbols for example).
13165 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13168 hpux9* | hpux10* | hpux11*)
13169 lt_prog_compiler_wl_F77='-Wl,'
13170 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13171 # not for PA HP-UX.
13172 case "$host_cpu" in
13177 lt_prog_compiler_pic_F77='+Z'
13180 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13181 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13184 irix5* | irix6* | nonstopux*)
13185 lt_prog_compiler_wl_F77='-Wl,'
13186 # PIC (with -KPIC) is the default.
13187 lt_prog_compiler_static_F77='-non_shared'
13191 lt_prog_compiler_pic_F77='-KPIC'
13192 lt_prog_compiler_static_F77='-Bstatic'
13198 lt_prog_compiler_wl_F77='-Wl,'
13199 lt_prog_compiler_pic_F77='-KPIC'
13200 lt_prog_compiler_static_F77='-static'
13203 lt_prog_compiler_wl_F77='-Wl,'
13204 # All Alpha code is PIC.
13205 lt_prog_compiler_static_F77='-non_shared'
13210 osf3* | osf4* | osf5*)
13211 lt_prog_compiler_wl_F77='-Wl,'
13212 # All OSF/1 code is PIC.
13213 lt_prog_compiler_static_F77='-non_shared'
13217 lt_prog_compiler_pic_F77='-Kpic'
13218 lt_prog_compiler_static_F77='-dn'
13222 lt_prog_compiler_wl_F77='-Wl,'
13223 lt_prog_compiler_pic_F77='-KPIC'
13224 lt_prog_compiler_static_F77='-Bstatic'
13228 lt_prog_compiler_wl_F77='-Qoption ld '
13229 lt_prog_compiler_pic_F77='-PIC'
13230 lt_prog_compiler_static_F77='-Bstatic'
13233 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13234 lt_prog_compiler_wl_F77='-Wl,'
13235 lt_prog_compiler_pic_F77='-KPIC'
13236 lt_prog_compiler_static_F77='-Bstatic'
13240 if test -d /usr/nec ;then
13241 lt_prog_compiler_pic_F77='-Kconform_pic'
13242 lt_prog_compiler_static_F77='-Bstatic'
13247 lt_prog_compiler_pic_F77='-pic'
13248 lt_prog_compiler_static_F77='-Bstatic'
13252 lt_prog_compiler_can_build_shared_F77=no
13257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13258 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13261 # Check to make sure the PIC flag actually works.
13263 if test -n "$lt_prog_compiler_pic_F77"; then
13265 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13266 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13267 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 lt_prog_compiler_pic_works_F77=no
13271 ac_outfile=conftest.$ac_objext
13272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13273 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13274 # Insert the option either (1) after the last *FLAGS variable, or
13275 # (2) before a word containing "conftest.", or (3) at the end.
13276 # Note that $ac_compile itself does not contain backslashes and begins
13277 # with a dollar sign (not a hyphen), so the echo should work correctly.
13278 # The option is referenced via a variable to avoid confusing sed.
13279 lt_compile=`echo "$ac_compile" | $SED \
13280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13282 -e 's:$: $lt_compiler_flag:'`
13283 (eval echo "\"\$as_me:13283: $lt_compile\"" >&5)
13284 (eval "$lt_compile" 2>conftest.err)
13286 cat conftest.err >&5
13287 echo "$as_me:13287: \$? = $ac_status" >&5
13288 if (exit $ac_status) && test -s "$ac_outfile"; then
13289 # The compiler can only warn and ignore the option if not recognized
13290 # So say no if there are warnings
13291 if test ! -s conftest.err; then
13292 lt_prog_compiler_pic_works_F77=yes
13298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13299 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13301 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13302 case $lt_prog_compiler_pic_F77 in
13304 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13307 lt_prog_compiler_pic_F77=
13308 lt_prog_compiler_can_build_shared_F77=no
13313 # For platforms which do not support PIC, -DPIC is meaningless:
13315 lt_prog_compiler_pic_F77=
13318 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13322 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13323 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13324 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 lt_cv_prog_compiler_c_o_F77=no
13328 $rm -r conftest 2>/dev/null
13332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13334 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13335 # that will create temporary files in the current directory regardless of
13336 # the output directory. Thus, making CWD read-only will cause this test
13337 # to fail, enabling locking or at least warning the user not to do parallel
13341 lt_compiler_flag="-o out/conftest2.$ac_objext"
13342 # Insert the option either (1) after the last *FLAGS variable, or
13343 # (2) before a word containing "conftest.", or (3) at the end.
13344 # Note that $ac_compile itself does not contain backslashes and begins
13345 # with a dollar sign (not a hyphen), so the echo should work correctly.
13346 lt_compile=`echo "$ac_compile" | $SED \
13347 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13349 -e 's:$: $lt_compiler_flag:'`
13350 (eval echo "\"\$as_me:13350: $lt_compile\"" >&5)
13351 (eval "$lt_compile" 2>out/conftest.err)
13353 cat out/conftest.err >&5
13354 echo "$as_me:13354: \$? = $ac_status" >&5
13355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13357 # The compiler can only warn and ignore the option if not recognized
13358 # So say no if there are warnings
13359 if test ! -s out/conftest.err; then
13360 lt_cv_prog_compiler_c_o_F77=yes
13365 # SGI C++ compiler will create directory out/ii_files/ for
13366 # template instantiation
13367 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13368 $rm out/* && rmdir out
13374 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13375 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13378 hard_links="nottested"
13379 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13380 # do not overwrite the value of need_locks provided by the user
13381 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13382 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13387 ln conftest.a conftest.b 2>&5 || hard_links=no
13388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13389 { echo "$as_me:$LINENO: result: $hard_links" >&5
13390 echo "${ECHO_T}$hard_links" >&6; }
13391 if test "$hard_links" = no; then
13392 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13393 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13400 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13401 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13404 allow_undefined_flag_F77=
13405 enable_shared_with_static_runtimes_F77=no
13407 archive_expsym_cmds_F77=
13408 old_archive_From_new_cmds_F77=
13409 old_archive_from_expsyms_cmds_F77=
13410 export_dynamic_flag_spec_F77=
13411 whole_archive_flag_spec_F77=
13412 thread_safe_flag_spec_F77=
13413 hardcode_libdir_flag_spec_F77=
13414 hardcode_libdir_flag_spec_ld_F77=
13415 hardcode_libdir_separator_F77=
13416 hardcode_direct_F77=no
13417 hardcode_minus_L_F77=no
13418 hardcode_shlibpath_var_F77=unsupported
13419 link_all_deplibs_F77=unknown
13420 hardcode_automatic_F77=no
13422 module_expsym_cmds_F77=
13423 always_export_symbols_F77=no
13424 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13425 # include_expsyms should be a list of space-separated symbols to be *always*
13426 # included in the symbol list
13427 include_expsyms_F77=
13428 # exclude_expsyms can be an extended regexp of symbols to exclude
13429 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13430 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13431 # as well as any symbol that contains `d'.
13432 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13433 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13434 # platforms (ab)use it in PIC code, but their linkers get confused if
13435 # the symbol is explicitly referenced. Since portable code cannot
13436 # rely on this symbol name, it's probably fine to never include it in
13437 # preloaded symbol tables.
13438 extract_expsyms_cmds=
13441 cygwin* | mingw* | pw32*)
13442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13443 # When not using gcc, we currently assume that we are using
13444 # Microsoft Visual C++.
13445 if test "$GCC" != yes; then
13455 if test "$with_gnu_ld" = yes; then
13456 # If archive_cmds runs LD, not CC, wlarc should be empty
13459 # See if GNU ld supports shared libraries.
13461 aix3* | aix4* | aix5*)
13462 # On AIX/PPC, the GNU linker is very broken
13463 if test "$host_cpu" != ia64; then
13467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13468 *** to be unable to reliably create shared libraries on AIX.
13469 *** Therefore, libtool is disabling shared libraries support. If you
13470 *** really care for shared libraries, you may want to modify your PATH
13471 *** so that a non-GNU linker is found, and then restart.
13478 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)'
13479 hardcode_libdir_flag_spec_F77='-L$libdir'
13480 hardcode_minus_L_F77=yes
13482 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13483 # that the semantics of dynamic libraries on AmigaOS, at least up
13484 # to version 4, is to share data among multiple programs linked
13485 # with the same dynamic library. Since this doesn't match the
13486 # behavior of shared libraries on other platforms, we can't use
13492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13493 allow_undefined_flag_F77=unsupported
13494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13495 # support --undefined. This deserves some investigation. FIXME
13496 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13502 cygwin* | mingw* | pw32*)
13503 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13504 # as there is no search path for DLLs.
13505 hardcode_libdir_flag_spec_F77='-L$libdir'
13506 allow_undefined_flag_F77=unsupported
13507 always_export_symbols_F77=no
13508 enable_shared_with_static_runtimes_F77=yes
13509 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13511 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13513 # If the export-symbols file already is a .def file (1st line
13514 # is EXPORTS), use it as is; otherwise, prepend...
13515 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13516 cp $export_symbols $output_objdir/$soname.def;
13518 echo EXPORTS > $output_objdir/$soname.def;
13519 cat $export_symbols >> $output_objdir/$soname.def;
13521 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13528 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13529 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13532 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13538 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13543 *** create shared libraries on Solaris systems. Therefore, libtool
13544 *** is disabling shared libraries support. We urge you to upgrade GNU
13545 *** binutils to release 2.9.1 or newer. Another option is to modify
13546 *** your PATH or compiler configuration so that the native linker is
13547 *** used, and then restart.
13550 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13559 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13561 hardcode_direct_F77=yes
13562 hardcode_shlibpath_var_F77=no
13566 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13567 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13568 archive_cmds_F77="$tmp_archive_cmds"
13569 supports_anon_versioning=no
13570 case `$LD -v 2>/dev/null` in
13571 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13572 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13573 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13574 *\ 2.11.*) ;; # other 2.11 versions
13575 *) supports_anon_versioning=yes ;;
13577 if test $supports_anon_versioning = yes; then
13578 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13580 $echo "local: *; };" >> $output_objdir/$libname.ver~
13581 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13583 archive_expsym_cmds_F77="$tmp_archive_cmds"
13591 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13592 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13593 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13600 if test "$ld_shlibs_F77" = yes; then
13601 runpath_var=LD_RUN_PATH
13602 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13603 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13604 # ancient GNU ld didn't support --whole-archive et. al.
13605 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13606 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13608 whole_archive_flag_spec_F77=
13612 # PORTME fill in a description of your system's linker (not GNU ld)
13615 allow_undefined_flag_F77=unsupported
13616 always_export_symbols_F77=yes
13617 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'
13618 # Note: this linker hardcodes the directories in LIBPATH if there
13619 # are no directories specified by -L.
13620 hardcode_minus_L_F77=yes
13621 if test "$GCC" = yes && test -z "$link_static_flag"; then
13622 # Neither direct hardcoding nor static linking is supported with a
13624 hardcode_direct_F77=unsupported
13629 if test "$host_cpu" = ia64; then
13630 # On IA64, the linker does run time linking by default, so we don't
13631 # have to do anything special.
13632 aix_use_runtimelinking=no
13633 exp_sym_flag='-Bexport'
13636 # If we're using GNU nm, then we don't want the "-C" option.
13637 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13638 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13639 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'
13641 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'
13643 aix_use_runtimelinking=no
13645 # Test if we are trying to use run time linking or normal
13646 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13647 # need to do runtime linking.
13648 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13649 for ld_flag in $LDFLAGS; do
13650 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13651 aix_use_runtimelinking=yes
13657 exp_sym_flag='-bexport'
13658 no_entry_flag='-bnoentry'
13661 # When large executables or shared objects are built, AIX ld can
13662 # have problems creating the table of contents. If linking a library
13663 # or program results in "error TOC overflow" add -mminimal-toc to
13664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13667 archive_cmds_F77=''
13668 hardcode_direct_F77=yes
13669 hardcode_libdir_separator_F77=':'
13670 link_all_deplibs_F77=yes
13672 if test "$GCC" = yes; then
13673 case $host_os in aix4.012|aix4.012.*)
13674 # We only want to do this on AIX 4.2 and lower, the check
13675 # below for broken collect2 doesn't work under 4.3+
13676 collect2name=`${CC} -print-prog-name=collect2`
13677 if test -f "$collect2name" && \
13678 strings "$collect2name" | grep resolve_lib_name >/dev/null
13680 # We have reworked collect2
13681 hardcode_direct_F77=yes
13683 # We have old collect2
13684 hardcode_direct_F77=unsupported
13685 # It fails to find uninstalled libraries when the uninstalled
13686 # path is not listed in the libpath. Setting hardcode_minus_L
13687 # to unsupported forces relinking
13688 hardcode_minus_L_F77=yes
13689 hardcode_libdir_flag_spec_F77='-L$libdir'
13690 hardcode_libdir_separator_F77=
13693 shared_flag='-shared'
13696 if test "$host_cpu" = ia64; then
13697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13698 # chokes on -Wl,-G. The following line is correct:
13701 if test "$aix_use_runtimelinking" = yes; then
13702 shared_flag='${wl}-G'
13704 shared_flag='${wl}-bM:SRE'
13709 # It seems that -bexpall does not export symbols beginning with
13710 # underscore (_), so it is better to generate a list of symbols to export.
13711 always_export_symbols_F77=yes
13712 if test "$aix_use_runtimelinking" = yes; then
13713 # Warning - without using the other runtime loading flags (-brtl),
13714 # -berok will link without error, but may produce a broken library.
13715 allow_undefined_flag_F77='-berok'
13716 # Determine the default libpath from the value encoded in an empty executable.
13717 cat >conftest.$ac_ext <<_ACEOF
13722 rm -f conftest.$ac_objext conftest$ac_exeext
13723 if { (ac_try="$ac_link"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_link") 2>conftest.er1
13731 grep -v '^ *+' conftest.er1 >conftest.err
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } && {
13736 test -z "$ac_f77_werror_flag" ||
13737 test ! -s conftest.err
13738 } && test -s conftest$ac_exeext &&
13739 $as_test_x conftest$ac_exeext; then
13741 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13743 # Check for a 64-bit object if we didn't find anything.
13744 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; }
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13754 conftest$ac_exeext conftest.$ac_ext
13755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13757 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13758 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"
13760 if test "$host_cpu" = ia64; then
13761 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13762 allow_undefined_flag_F77="-z nodefs"
13763 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"
13765 # Determine the default libpath from the value encoded in an empty executable.
13766 cat >conftest.$ac_ext <<_ACEOF
13771 rm -f conftest.$ac_objext conftest$ac_exeext
13772 if { (ac_try="$ac_link"
13773 case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_link") 2>conftest.er1
13780 grep -v '^ *+' conftest.er1 >conftest.err
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } && {
13785 test -z "$ac_f77_werror_flag" ||
13786 test ! -s conftest.err
13787 } && test -s conftest$ac_exeext &&
13788 $as_test_x conftest$ac_exeext; then
13790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13792 # Check for a 64-bit object if we didn't find anything.
13793 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; }
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13803 conftest$ac_exeext conftest.$ac_ext
13804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13806 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13807 # Warning - without using the other run time loading flags,
13808 # -berok will link without error, but may produce a broken library.
13809 no_undefined_flag_F77=' ${wl}-bernotok'
13810 allow_undefined_flag_F77=' ${wl}-berok'
13811 # -bexpall does not export symbols beginning with underscore (_)
13812 always_export_symbols_F77=yes
13813 # Exported symbols can be pulled into shared objects from archives
13814 whole_archive_flag_spec_F77=' '
13815 archive_cmds_need_lc_F77=yes
13816 # This is similar to how AIX traditionally builds it's shared libraries.
13817 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'
13823 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)'
13824 hardcode_libdir_flag_spec_F77='-L$libdir'
13825 hardcode_minus_L_F77=yes
13826 # see comment about different semantics on the GNU ld section
13831 export_dynamic_flag_spec_F77=-rdynamic
13834 cygwin* | mingw* | pw32*)
13835 # When not using gcc, we currently assume that we are using
13836 # Microsoft Visual C++.
13837 # hardcode_libdir_flag_spec is actually meaningless, as there is
13838 # no search path for DLLs.
13839 hardcode_libdir_flag_spec_F77=' '
13840 allow_undefined_flag_F77=unsupported
13841 # Tell ltmain to make .lib files, not .a files.
13843 # Tell ltmain to make .dll files, not .so files.
13845 # FIXME: Setting linknames here is a bad hack.
13846 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13847 # The linker will automatically build a .lib file if we build a DLL.
13848 old_archive_From_new_cmds_F77='true'
13849 # FIXME: Should let the user specify the lib program.
13850 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13851 fix_srcfile_path='`cygpath -w "$srcfile"`'
13852 enable_shared_with_static_runtimes_F77=yes
13855 darwin* | rhapsody*)
13856 if test "$GXX" = yes ; then
13857 archive_cmds_need_lc_F77=no
13859 rhapsody* | darwin1.[012])
13860 allow_undefined_flag_F77='-undefined suppress'
13863 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13864 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13866 case ${MACOSX_DEPLOYMENT_TARGET} in
13868 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13871 allow_undefined_flag_F77='-undefined dynamic_lookup'
13877 lt_int_apple_cc_single_mod=no
13878 output_verbose_link_cmd='echo'
13879 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13880 lt_int_apple_cc_single_mod=yes
13882 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13883 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13885 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'
13887 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13888 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13889 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13890 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}'
13892 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}'
13894 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}'
13895 hardcode_direct_F77=no
13896 hardcode_automatic_F77=yes
13897 hardcode_shlibpath_var_F77=unsupported
13898 whole_archive_flag_spec_F77='-all_load $convenience'
13899 link_all_deplibs_F77=yes
13906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13907 hardcode_libdir_flag_spec_F77='-L$libdir'
13908 hardcode_shlibpath_var_F77=no
13915 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13916 # support. Future versions do this automatically, but an explicit c++rt0.o
13917 # does not break anything, and helps significantly (at the cost of a little
13920 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13921 hardcode_libdir_flag_spec_F77='-R$libdir'
13922 hardcode_direct_F77=yes
13923 hardcode_shlibpath_var_F77=no
13926 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13928 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13929 hardcode_direct_F77=yes
13930 hardcode_minus_L_F77=yes
13931 hardcode_shlibpath_var_F77=no
13934 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13935 freebsd* | kfreebsd*-gnu)
13936 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13937 hardcode_libdir_flag_spec_F77='-R$libdir'
13938 hardcode_direct_F77=yes
13939 hardcode_shlibpath_var_F77=no
13943 if test "$GCC" = yes; then
13944 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'
13946 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'
13948 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13949 hardcode_libdir_separator_F77=:
13950 hardcode_direct_F77=yes
13952 # hardcode_minus_L: Not really in the search PATH,
13953 # but as the default location of the library.
13954 hardcode_minus_L_F77=yes
13955 export_dynamic_flag_spec_F77='${wl}-E'
13959 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13960 case "$host_cpu" in
13962 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13965 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13969 case "$host_cpu" in
13971 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13974 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13978 if test "$with_gnu_ld" = no; then
13979 case "$host_cpu" in
13981 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13982 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13983 hardcode_libdir_separator_F77=:
13984 hardcode_direct_F77=no
13985 hardcode_shlibpath_var_F77=no
13988 hardcode_libdir_flag_spec_F77='-L$libdir'
13989 hardcode_direct_F77=no
13990 hardcode_shlibpath_var_F77=no
13992 # hardcode_minus_L: Not really in the search PATH,
13993 # but as the default location of the library.
13994 hardcode_minus_L_F77=yes
13997 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13998 hardcode_libdir_separator_F77=:
13999 hardcode_direct_F77=yes
14000 export_dynamic_flag_spec_F77='${wl}-E'
14002 # hardcode_minus_L: Not really in the search PATH,
14003 # but as the default location of the library.
14004 hardcode_minus_L_F77=yes
14010 irix5* | irix6* | nonstopux*)
14011 if test "$GCC" = yes; then
14012 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'
14014 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'
14015 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14017 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14018 hardcode_libdir_separator_F77=:
14019 link_all_deplibs_F77=yes
14023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14024 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14026 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14028 hardcode_libdir_flag_spec_F77='-R$libdir'
14029 hardcode_direct_F77=yes
14030 hardcode_shlibpath_var_F77=no
14034 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14035 hardcode_direct_F77=yes
14036 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14037 hardcode_libdir_separator_F77=:
14038 hardcode_shlibpath_var_F77=no
14042 hardcode_direct_F77=yes
14043 hardcode_shlibpath_var_F77=no
14044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14045 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14046 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14047 export_dynamic_flag_spec_F77='${wl}-E'
14050 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14051 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14052 hardcode_libdir_flag_spec_F77='-R$libdir'
14055 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14056 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14063 hardcode_libdir_flag_spec_F77='-L$libdir'
14064 hardcode_minus_L_F77=yes
14065 allow_undefined_flag_F77=unsupported
14066 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'
14067 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14071 if test "$GCC" = yes; then
14072 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14073 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'
14075 allow_undefined_flag_F77=' -expect_unresolved \*'
14076 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'
14078 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14079 hardcode_libdir_separator_F77=:
14082 osf4* | osf5*) # as osf3* with the addition of -msym flag
14083 if test "$GCC" = yes; then
14084 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14085 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'
14086 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14088 allow_undefined_flag_F77=' -expect_unresolved \*'
14089 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'
14090 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~
14091 $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'
14093 # Both c and cxx compiler support -rpath directly
14094 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14096 hardcode_libdir_separator_F77=:
14100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14101 hardcode_shlibpath_var_F77=no
14102 export_dynamic_flag_spec_F77='${wl}-Bexport'
14103 runpath_var=LD_RUN_PATH
14104 hardcode_runpath_var=yes
14108 no_undefined_flag_F77=' -z text'
14109 if test "$GCC" = yes; then
14110 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14111 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14112 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14114 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14115 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14116 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14118 hardcode_libdir_flag_spec_F77='-R$libdir'
14119 hardcode_shlibpath_var_F77=no
14121 solaris2.[0-5] | solaris2.[0-5].*) ;;
14122 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14123 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14125 link_all_deplibs_F77=yes
14129 if test "x$host_vendor" = xsequent; then
14130 # Use $CC to link under sequent, because it throws in some extra .o
14131 # files that make .init and .fini sections work.
14132 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14134 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14136 hardcode_libdir_flag_spec_F77='-L$libdir'
14137 hardcode_direct_F77=yes
14138 hardcode_minus_L_F77=yes
14139 hardcode_shlibpath_var_F77=no
14143 case $host_vendor in
14145 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14146 hardcode_direct_F77=yes # is this really true???
14149 ## LD is ld it makes a PLAMLIB
14150 ## CC just makes a GrossModule.
14151 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14152 reload_cmds_F77='$CC -r -o $output$reload_objs'
14153 hardcode_direct_F77=no
14156 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14157 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14160 runpath_var='LD_RUN_PATH'
14161 hardcode_shlibpath_var_F77=no
14165 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14166 hardcode_shlibpath_var_F77=no
14167 export_dynamic_flag_spec_F77='-Bexport'
14171 if test -d /usr/nec; then
14172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173 hardcode_shlibpath_var_F77=no
14174 runpath_var=LD_RUN_PATH
14175 hardcode_runpath_var=yes
14181 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14182 hardcode_direct_F77=yes
14183 hardcode_minus_L_F77=no
14184 hardcode_shlibpath_var_F77=no
14185 hardcode_runpath_var=yes
14186 runpath_var=LD_RUN_PATH
14189 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14190 no_undefined_flag_F77='${wl}-z ${wl}text'
14191 if test "$GCC" = yes; then
14192 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14194 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14196 runpath_var='LD_RUN_PATH'
14197 hardcode_shlibpath_var_F77=no
14201 no_undefined_flag_F77=' -z text'
14202 # $CC -shared without GNU ld will not create a library from C++
14203 # object files and a static libstdc++, better avoid it by now
14204 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14205 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14207 hardcode_libdir_flag_spec_F77=
14208 hardcode_shlibpath_var_F77=no
14209 runpath_var='LD_RUN_PATH'
14213 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14214 hardcode_libdir_flag_spec_F77='-L$libdir'
14215 hardcode_shlibpath_var_F77=no
14224 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14225 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14226 test "$ld_shlibs_F77" = no && can_build_shared=no
14228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14229 if test "$GCC" = yes; then
14230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14234 # Do we need to explicitly link libc?
14236 case "x$archive_cmds_need_lc_F77" in
14238 # Assume -lc should be added
14239 archive_cmds_need_lc_F77=yes
14241 if test "$enable_shared" = yes && test "$GCC" = yes; then
14242 case $archive_cmds_F77 in
14244 # FIXME: we may have to deal with multi-command sequences.
14247 # Test whether the compiler implicitly links with -lc since on some
14248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14249 # to ld, don't add -lc before -lgcc.
14250 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14251 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256 (eval $ac_compile) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } 2>conftest.err; then
14262 libobjs=conftest.$ac_objext
14264 wl=$lt_prog_compiler_wl_F77
14270 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14271 allow_undefined_flag_F77=
14272 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14273 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }
14278 archive_cmds_need_lc_F77=no
14280 archive_cmds_need_lc_F77=yes
14282 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14284 cat conftest.err 1>&5
14287 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14288 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14295 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14297 library_names_spec=
14298 libname_spec='lib$name'
14302 postuninstall_cmds=
14306 shlibpath_overrides_runpath=unknown
14308 dynamic_linker="$host_os ld.so"
14309 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14310 if test "$GCC" = yes; then
14311 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14312 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14313 # if the path contains ";" then we assume it to be the separator
14314 # otherwise default to the standard path separator (i.e. ":") - it is
14315 # assumed that no part of a normal pathname contains ";" but that should
14316 # okay in the real world where ";" in dirpaths is itself problematic.
14317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14322 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14324 need_lib_prefix=unknown
14325 hardcode_into_libs=no
14327 # when you set need_version to no, make sure it does not cause -set_version
14328 # flags to be left without arguments
14329 need_version=unknown
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14335 shlibpath_var=LIBPATH
14337 # AIX 3 has no versioning support, so we append a major version to the name.
14338 soname_spec='${libname}${release}${shared_ext}$major'
14345 hardcode_into_libs=yes
14346 if test "$host_cpu" = ia64; then
14347 # AIX 5 supports IA64
14348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14349 shlibpath_var=LD_LIBRARY_PATH
14351 # With GCC up to 2.95.x, collect2 would create an import file
14352 # for dependence libraries. The import file would start with
14353 # the line `#! .'. This would cause the generated library to
14354 # depend on `.', always an invalid library. This was fixed in
14355 # development snapshots of GCC prior to 3.0.
14357 aix4 | aix4.[01] | aix4.[01].*)
14358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14360 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14363 can_build_shared=no
14367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14368 # soname into executable. Probably we can add versioning support to
14369 # collect2, so additional links can be useful in future.
14370 if test "$aix_use_runtimelinking" = yes; then
14371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14372 # instead of lib<name>.a to let people know that these are not
14373 # typical AIX shared libraries.
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14376 # We preserve .a as extension for shared libraries through AIX4.2
14377 # and later when we are not doing run time linking.
14378 library_names_spec='${libname}${release}.a $libname.a'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14381 shlibpath_var=LIBPATH
14386 library_names_spec='$libname.ixlibrary $libname.a'
14387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14388 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'
14392 library_names_spec='${libname}${shared_ext}'
14393 dynamic_linker="$host_os ld.so"
14394 shlibpath_var=LIBRARY_PATH
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 soname_spec='${libname}${release}${shared_ext}$major'
14402 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14403 shlibpath_var=LD_LIBRARY_PATH
14404 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14405 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14406 # the default ld.so.conf also contains /usr/contrib/lib and
14407 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14408 # libtool to hard-code these into programs
14411 cygwin* | mingw* | pw32*)
14412 version_type=windows
14417 case $GCC,$host_os in
14418 yes,cygwin* | yes,mingw* | yes,pw32*)
14419 library_names_spec='$libname.dll.a'
14420 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14421 postinstall_cmds='base_file=`basename \${file}`~
14422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14423 dldir=$destdir/`dirname \$dlpath`~
14424 test -d \$dldir || mkdir -p \$dldir~
14425 $install_prog $dir/$dlname \$dldir/$dlname'
14426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14427 dlpath=$dir/\$dldll~
14429 shlibpath_overrides_runpath=yes
14433 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14434 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14435 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14438 # MinGW DLLs use traditional 'lib' prefix
14439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14441 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14442 # It is most probably a Windows format PATH printed by
14443 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14444 # path with ; separators, and with drive letters. We can handle the
14445 # drive letters (cygwin fileutils understands them), so leave them,
14446 # especially as we might pass files found there to a mingw objdump,
14447 # which wouldn't understand a cygwinified path. Ahh.
14448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14454 # pw32 DLLs use 'pw' prefix rather than 'lib'
14455 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14461 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14464 dynamic_linker='Win32 ld.exe'
14465 # FIXME: first we should search . and the directory the executable is in
14469 darwin* | rhapsody*)
14470 dynamic_linker="$host_os dyld"
14471 version_type=darwin
14474 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14475 soname_spec='${libname}${release}${major}$shared_ext'
14476 shlibpath_overrides_runpath=yes
14477 shlibpath_var=DYLD_LIBRARY_PATH
14478 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14479 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14480 if test "$GCC" = yes; then
14481 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"`
14483 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 shlibpath_var=LD_LIBRARY_PATH
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=no
14509 hardcode_into_libs=yes
14510 dynamic_linker='GNU ld.so'
14514 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14515 version_type=freebsd-$objformat
14516 case $version_type in
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14527 shlibpath_var=LD_LIBRARY_PATH
14530 shlibpath_overrides_runpath=yes
14532 freebsd3.01* | freebsdelf3.01*)
14533 shlibpath_overrides_runpath=yes
14534 hardcode_into_libs=yes
14537 shlibpath_overrides_runpath=no
14538 hardcode_into_libs=yes
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 hardcode_into_libs=yes
14553 hpux9* | hpux10* | hpux11*)
14554 # Give a soname corresponding to the major version so that dld.sl refuses to
14555 # link against other versions.
14559 case "$host_cpu" in
14562 hardcode_into_libs=yes
14563 dynamic_linker="$host_os dld.so"
14564 shlibpath_var=LD_LIBRARY_PATH
14565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567 soname_spec='${libname}${release}${shared_ext}$major'
14568 if test "X$HPUX_IA64_MODE" = X32; then
14569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14577 hardcode_into_libs=yes
14578 dynamic_linker="$host_os dld.sl"
14579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14588 dynamic_linker="$host_os dld.sl"
14589 shlibpath_var=SHLIB_PATH
14590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14596 postinstall_cmds='chmod 555 $lib'
14599 irix5* | irix6* | nonstopux*)
14601 nonstopux*) version_type=nonstopux ;;
14603 if test "$lt_cv_prog_gnu_ld" = yes; then
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14614 irix5* | nonstopux*)
14615 libsuff= shlibsuff=
14618 case $LD in # libtool.m4 will add one of these switches to LD
14619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14620 libsuff= shlibsuff= libmagic=32-bit;;
14621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14622 libsuff=32 shlibsuff=N32 libmagic=N32;;
14623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14625 *) libsuff= shlibsuff= libmagic=never-match;;
14629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14630 shlibpath_overrides_runpath=no
14631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14633 hardcode_into_libs=yes
14636 # No shared lib support for Linux oldld, aout, or coff.
14637 linux*oldld* | linux*aout* | linux*coff*)
14641 # This must be Linux ELF.
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=no
14651 # This implies no fast_install, which is unacceptable.
14652 # Some rework will be needed to allow for fast_install
14653 # before this can be enabled.
14654 hardcode_into_libs=yes
14656 # We used to test for /lib/ld.so.1 and disable shared libraries on
14657 # powerpc, because MkLinux only supported shared libraries with the
14658 # GNU dynamic linker. Since this was broken with cross compilers,
14659 # most powerpc-linux boxes support dynamic linking these days and
14660 # people can always --disable-shared, the test was removed, and we
14661 # assume the GNU/Linux dynamic linker is in use.
14662 dynamic_linker='GNU/Linux ld.so'
14669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14672 dynamic_linker='NetBSD (a.out) ld.so'
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 dynamic_linker='NetBSD ld.elf_so'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=yes
14680 hardcode_into_libs=yes
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=yes
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=yes
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14709 openbsd2.[89] | openbsd2.[89].*)
14710 shlibpath_overrides_runpath=no
14713 shlibpath_overrides_runpath=yes
14717 shlibpath_overrides_runpath=yes
14722 libname_spec='$name'
14725 library_names_spec='$libname${shared_ext} $libname.a'
14726 dynamic_linker='OS/2 ld.exe'
14727 shlibpath_var=LIBPATH
14730 osf3* | osf4* | osf5*)
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14743 soname_spec='${libname}${release}${shared_ext}$major'
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 shlibpath_var=LD_LIBRARY_PATH
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 shlibpath_var=LD_LIBRARY_PATH
14755 shlibpath_overrides_runpath=yes
14756 hardcode_into_libs=yes
14757 # ldd complains unless libraries are executable
14758 postinstall_cmds='chmod +x $lib'
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14764 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 shlibpath_overrides_runpath=yes
14767 if test "$with_gnu_ld" = yes; then
14773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 shlibpath_var=LD_LIBRARY_PATH
14778 case $host_vendor in
14780 shlibpath_overrides_runpath=no
14782 export_dynamic_flag_spec='${wl}-Blargedynsym'
14783 runpath_var=LD_RUN_PATH
14791 shlibpath_overrides_runpath=no
14792 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14798 if test -d /usr/nec ;then
14800 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14801 soname_spec='$libname${shared_ext}.$major'
14802 shlibpath_var=LD_LIBRARY_PATH
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 shlibpath_var=LD_LIBRARY_PATH
14817 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14818 echo "${ECHO_T}$dynamic_linker" >&6; }
14819 test "$dynamic_linker" = no && can_build_shared=no
14821 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14823 hardcode_action_F77=
14824 if test -n "$hardcode_libdir_flag_spec_F77" || \
14825 test -n "$runpath_var F77" || \
14826 test "X$hardcode_automatic_F77"="Xyes" ; then
14828 # We can hardcode non-existant directories.
14829 if test "$hardcode_direct_F77" != no &&
14830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14831 # have to relink, otherwise we might link with an installed library
14832 # when we should be linking with a yet-to-be-installed one
14833 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14834 test "$hardcode_minus_L_F77" != no; then
14835 # Linking always hardcodes the temporary library directory.
14836 hardcode_action_F77=relink
14838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14839 hardcode_action_F77=immediate
14842 # We cannot hardcode anything, or else we can only hardcode existing
14844 hardcode_action_F77=unsupported
14846 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14847 echo "${ECHO_T}$hardcode_action_F77" >&6; }
14849 if test "$hardcode_action_F77" = relink; then
14850 # Fast installation is not supported
14851 enable_fast_install=no
14852 elif test "$shlibpath_overrides_runpath" = yes ||
14853 test "$enable_shared" = no; then
14854 # Fast installation is not necessary
14855 enable_fast_install=needless
14860 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14861 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
14862 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14863 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14864 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14865 { echo "$as_me:$LINENO: result: yes" >&5
14866 echo "${ECHO_T}yes" >&6; }
14868 # FIXME - insert some real tests, host_os isn't really good enough
14871 if test -n "$STRIP" ; then
14872 striplib="$STRIP -x"
14873 { echo "$as_me:$LINENO: result: yes" >&5
14874 echo "${ECHO_T}yes" >&6; }
14876 { echo "$as_me:$LINENO: result: no" >&5
14877 echo "${ECHO_T}no" >&6; }
14881 { echo "$as_me:$LINENO: result: no" >&5
14882 echo "${ECHO_T}no" >&6; }
14889 # The else clause should only fire when bootstrapping the
14890 # libtool distribution, otherwise you forgot to ship ltmain.sh
14891 # with your package, and you will get complaints that there are
14892 # no rules to generate ltmain.sh.
14893 if test -f "$ltmain"; then
14894 # See if we are running on zsh, and set the options which allow our commands through
14895 # without removal of \ escapes.
14896 if test -n "${ZSH_VERSION+set}" ; then
14897 setopt NO_GLOB_SUBST
14899 # Now quote all the things that may contain metacharacters while being
14900 # careful not to overquote the AC_SUBSTed values. We take copies of the
14901 # variables and quote the copies for generation of the libtool script.
14902 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14904 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14905 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14906 deplibs_check_method reload_flag reload_cmds need_locks \
14907 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14908 lt_cv_sys_global_symbol_to_c_name_address \
14909 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14910 old_postinstall_cmds old_postuninstall_cmds \
14914 lt_prog_compiler_wl_F77 \
14915 lt_prog_compiler_pic_F77 \
14916 lt_prog_compiler_static_F77 \
14917 lt_prog_compiler_no_builtin_flag_F77 \
14918 export_dynamic_flag_spec_F77 \
14919 thread_safe_flag_spec_F77 \
14920 whole_archive_flag_spec_F77 \
14921 enable_shared_with_static_runtimes_F77 \
14922 old_archive_cmds_F77 \
14923 old_archive_from_new_cmds_F77 \
14924 predep_objects_F77 \
14925 postdep_objects_F77 \
14928 compiler_lib_search_path_F77 \
14930 archive_expsym_cmds_F77 \
14931 postinstall_cmds_F77 \
14932 postuninstall_cmds_F77 \
14933 old_archive_from_expsyms_cmds_F77 \
14934 allow_undefined_flag_F77 \
14935 no_undefined_flag_F77 \
14936 export_symbols_cmds_F77 \
14937 hardcode_libdir_flag_spec_F77 \
14938 hardcode_libdir_flag_spec_ld_F77 \
14939 hardcode_libdir_separator_F77 \
14940 hardcode_automatic_F77 \
14942 module_expsym_cmds_F77 \
14943 lt_cv_prog_compiler_c_o_F77 \
14944 exclude_expsyms_F77 \
14945 include_expsyms_F77; do
14948 old_archive_cmds_F77 | \
14949 old_archive_from_new_cmds_F77 | \
14950 archive_cmds_F77 | \
14951 archive_expsym_cmds_F77 | \
14952 module_cmds_F77 | \
14953 module_expsym_cmds_F77 | \
14954 old_archive_from_expsyms_cmds_F77 | \
14955 export_symbols_cmds_F77 | \
14956 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14957 postinstall_cmds | postuninstall_cmds | \
14958 old_postinstall_cmds | old_postuninstall_cmds | \
14959 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14960 # Double-quote double-evaled strings.
14961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14970 *'\$0 --fallback-echo"')
14971 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14977 cat <<__EOF__ >> "$cfgfile"
14978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14982 # Shell to use when invoking shell scripts.
14985 # Whether or not to build shared libraries.
14986 build_libtool_libs=$enable_shared
14988 # Whether or not to build static libraries.
14989 build_old_libs=$enable_static
14991 # Whether or not to add -lc for building shared libraries.
14992 build_libtool_need_lc=$archive_cmds_need_lc_F77
14994 # Whether or not to disallow shared libs when runtime libs are static
14995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14997 # Whether or not to optimize for fast installation.
14998 fast_install=$enable_fast_install
15001 host_alias=$host_alias
15004 # An echo program that does not interpret backslashes.
15009 AR_FLAGS=$lt_AR_FLAGS
15014 # A language-specific compiler.
15015 CC=$lt_compiler_F77
15017 # Is the compiler the GNU C compiler?
15023 # The linker used to build libraries.
15026 # Whether we need hard or soft links.
15029 # A BSD-compatible nm program.
15032 # A symbol stripping program
15035 # Used to examine libraries when file_magic_cmd begins "file"
15036 MAGIC_CMD=$MAGIC_CMD
15038 # Used on cygwin: DLL creation program.
15041 # Used on cygwin: object dumper.
15044 # Used on cygwin: assembler.
15047 # The name of the directory that contains temporary libtool files.
15050 # How to create reloadable object files.
15051 reload_flag=$lt_reload_flag
15052 reload_cmds=$lt_reload_cmds
15054 # How to pass a linker flag through the compiler.
15055 wl=$lt_lt_prog_compiler_wl_F77
15057 # Object file suffix (normally "o").
15058 objext="$ac_objext"
15060 # Old archive suffix (normally "a").
15063 # Shared library suffix (normally ".so").
15066 # Executable file suffix (normally "").
15069 # Additional compiler flags for building library objects.
15070 pic_flag=$lt_lt_prog_compiler_pic_F77
15073 # What is the maximum length of a command?
15074 max_cmd_len=$lt_cv_sys_max_cmd_len
15076 # Does compiler simultaneously support -c and -o options?
15077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15079 # Must we lock files when doing compilation ?
15080 need_locks=$lt_need_locks
15082 # Do we need the lib prefix for modules?
15083 need_lib_prefix=$need_lib_prefix
15085 # Do we need a version for libraries?
15086 need_version=$need_version
15088 # Whether dlopen is supported.
15089 dlopen_support=$enable_dlopen
15091 # Whether dlopen of programs is supported.
15092 dlopen_self=$enable_dlopen_self
15094 # Whether dlopen of statically linked programs is supported.
15095 dlopen_self_static=$enable_dlopen_self_static
15097 # Compiler flag to prevent dynamic linking.
15098 link_static_flag=$lt_lt_prog_compiler_static_F77
15100 # Compiler flag to turn off builtin functions.
15101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15103 # Compiler flag to allow reflexive dlopens.
15104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15106 # Compiler flag to generate shared objects directly from archives.
15107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15109 # Compiler flag to generate thread-safe objects.
15110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15112 # Library versioning type.
15113 version_type=$version_type
15115 # Format of library name prefix.
15116 libname_spec=$lt_libname_spec
15118 # List of archive names. First name is the real one, the rest are links.
15119 # The last name is the one that the linker finds with -lNAME.
15120 library_names_spec=$lt_library_names_spec
15122 # The coded name of the library, if different from the real name.
15123 soname_spec=$lt_soname_spec
15125 # Commands used to build and install an old-style archive.
15127 old_archive_cmds=$lt_old_archive_cmds_F77
15128 old_postinstall_cmds=$lt_old_postinstall_cmds
15129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15131 # Create an old-style archive from a shared archive.
15132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15134 # Create a temporary old-style archive to link instead of a shared archive.
15135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15137 # Commands used to build and install a shared archive.
15138 archive_cmds=$lt_archive_cmds_F77
15139 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15140 postinstall_cmds=$lt_postinstall_cmds
15141 postuninstall_cmds=$lt_postuninstall_cmds
15143 # Commands used to build a loadable module (assumed same as above if empty)
15144 module_cmds=$lt_module_cmds_F77
15145 module_expsym_cmds=$lt_module_expsym_cmds_F77
15147 # Commands to strip libraries.
15148 old_striplib=$lt_old_striplib
15149 striplib=$lt_striplib
15151 # Dependencies to place before the objects being linked to create a
15153 predep_objects=$lt_predep_objects_F77
15155 # Dependencies to place after the objects being linked to create a
15157 postdep_objects=$lt_postdep_objects_F77
15159 # Dependencies to place before the objects being linked to create a
15161 predeps=$lt_predeps_F77
15163 # Dependencies to place after the objects being linked to create a
15165 postdeps=$lt_postdeps_F77
15167 # The library search path used internally by the compiler when linking
15168 # a shared library.
15169 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15171 # Method to check whether dependent libraries are shared objects.
15172 deplibs_check_method=$lt_deplibs_check_method
15174 # Command to use when deplibs_check_method == file_magic.
15175 file_magic_cmd=$lt_file_magic_cmd
15177 # Flag that allows shared libraries with undefined symbols to be built.
15178 allow_undefined_flag=$lt_allow_undefined_flag_F77
15180 # Flag that forces no undefined symbols.
15181 no_undefined_flag=$lt_no_undefined_flag_F77
15183 # Commands used to finish a libtool library installation in a directory.
15184 finish_cmds=$lt_finish_cmds
15186 # Same as above, but a single script fragment to be evaled but not shown.
15187 finish_eval=$lt_finish_eval
15189 # Take the output of nm and produce a listing of raw symbols and C names.
15190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15192 # Transform the output of nm in a proper C declaration
15193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15195 # Transform the output of nm in a C name address pair
15196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15198 # This is the shared library runtime path variable.
15199 runpath_var=$runpath_var
15201 # This is the shared library path variable.
15202 shlibpath_var=$shlibpath_var
15204 # Is shlibpath searched before the hard-coded library search path?
15205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15207 # How to hardcode a shared library path into an executable.
15208 hardcode_action=$hardcode_action_F77
15210 # Whether we should hardcode library paths into libraries.
15211 hardcode_into_libs=$hardcode_into_libs
15213 # Flag to hardcode \$libdir into a binary during linking.
15214 # This must work even if \$libdir does not exist.
15215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15217 # If ld is used when linking, flag to hardcode \$libdir into
15218 # a binary during linking. This must work even if \$libdir does
15220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15222 # Whether we need a single -rpath flag with a separated argument.
15223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15226 # resulting binary.
15227 hardcode_direct=$hardcode_direct_F77
15229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15230 # resulting binary.
15231 hardcode_minus_L=$hardcode_minus_L_F77
15233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15234 # the resulting binary.
15235 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15237 # Set to yes if building a shared library automatically hardcodes DIR into the library
15238 # and all subsequent libraries and executables linked against it.
15239 hardcode_automatic=$hardcode_automatic_F77
15241 # Variables whose values should be saved in libtool wrapper scripts and
15242 # restored at relink time.
15243 variables_saved_for_relink="$variables_saved_for_relink"
15245 # Whether libtool must link a program against all its dependency libraries.
15246 link_all_deplibs=$link_all_deplibs_F77
15248 # Compile-time system search path for libraries
15249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15251 # Run-time system search path for libraries
15252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15254 # Fix the shell variable \$srcfile for the compiler.
15255 fix_srcfile_path="$fix_srcfile_path_F77"
15257 # Set to yes if exported symbols are required.
15258 always_export_symbols=$always_export_symbols_F77
15260 # The commands to list exported symbols.
15261 export_symbols_cmds=$lt_export_symbols_cmds_F77
15263 # The commands to extract the exported symbol list from a shared archive.
15264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15266 # Symbols that should not be listed in the preloaded symbols.
15267 exclude_expsyms=$lt_exclude_expsyms_F77
15269 # Symbols that must always be exported.
15270 include_expsyms=$lt_include_expsyms_F77
15272 # ### END LIBTOOL TAG CONFIG: $tagname
15278 # If there is no Makefile yet, we rely on a make rule to execute
15279 # `config.status --recheck' to rerun these tests and create the
15280 # libtool script then.
15281 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15282 if test -f "$ltmain_in"; then
15283 test -f Makefile && make "$ltmain"
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15302 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15305 # Source file extension for Java test sources.
15308 # Object file extension for compiled Java test sources.
15312 # Code to be used in simple compile tests
15313 lt_simple_compile_test_code="class foo {}\n"
15315 # Code to be used in simple link tests
15316 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15320 # If no C compiler was specified, use CC.
15323 # Allow CC to be a program name with arguments.
15327 # Allow CC to be a program name with arguments.
15333 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15334 archive_cmds_need_lc_GCJ=no
15337 ## There is no encapsulation within the following macros, do not change
15338 ## the running order or otherwise move them around unless you know exactly
15339 ## what you are doing...
15341 lt_prog_compiler_no_builtin_flag_GCJ=
15343 if test "$GCC" = yes; then
15344 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15347 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 lt_cv_prog_compiler_rtti_exceptions=no
15353 ac_outfile=conftest.$ac_objext
15354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15355 lt_compiler_flag="-fno-rtti -fno-exceptions"
15356 # Insert the option either (1) after the last *FLAGS variable, or
15357 # (2) before a word containing "conftest.", or (3) at the end.
15358 # Note that $ac_compile itself does not contain backslashes and begins
15359 # with a dollar sign (not a hyphen), so the echo should work correctly.
15360 # The option is referenced via a variable to avoid confusing sed.
15361 lt_compile=`echo "$ac_compile" | $SED \
15362 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15364 -e 's:$: $lt_compiler_flag:'`
15365 (eval echo "\"\$as_me:15365: $lt_compile\"" >&5)
15366 (eval "$lt_compile" 2>conftest.err)
15368 cat conftest.err >&5
15369 echo "$as_me:15369: \$? = $ac_status" >&5
15370 if (exit $ac_status) && test -s "$ac_outfile"; then
15371 # The compiler can only warn and ignore the option if not recognized
15372 # So say no if there are warnings
15373 if test ! -s conftest.err; then
15374 lt_cv_prog_compiler_rtti_exceptions=yes
15380 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15381 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15383 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15384 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15391 lt_prog_compiler_wl_GCJ=
15392 lt_prog_compiler_pic_GCJ=
15393 lt_prog_compiler_static_GCJ=
15395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15398 if test "$GCC" = yes; then
15399 lt_prog_compiler_wl_GCJ='-Wl,'
15400 lt_prog_compiler_static_GCJ='-static'
15404 # All AIX code is PIC.
15405 if test "$host_cpu" = ia64; then
15406 # AIX 5 now supports IA64 processor
15407 lt_prog_compiler_static_GCJ='-Bstatic'
15412 # FIXME: we need at least 68020 code to build shared libraries, but
15413 # adding the `-m68020' flag to GCC prevents building anything better,
15415 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15418 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15419 # PIC is the default for these OSes.
15422 mingw* | pw32* | os2*)
15423 # This hack is so that the source file can tell whether it is being
15424 # built for inclusion in a dll (and should export symbols for example).
15425 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15428 darwin* | rhapsody*)
15429 # PIC is the default on this platform
15430 # Common symbols not allowed in MH_DYLIB files
15431 lt_prog_compiler_pic_GCJ='-fno-common'
15435 # Just because we use GCC doesn't mean we suddenly get shared libraries
15436 # on systems that don't support them.
15437 lt_prog_compiler_can_build_shared_GCJ=no
15442 if test -d /usr/nec; then
15443 lt_prog_compiler_pic_GCJ=-Kconform_pic
15448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15449 # not for PA HP-UX.
15450 case "$host_cpu" in
15455 lt_prog_compiler_pic_GCJ='-fPIC'
15461 lt_prog_compiler_pic_GCJ='-fPIC'
15465 # PORTME Check for flag to pass linker flags through the system compiler.
15468 lt_prog_compiler_wl_GCJ='-Wl,'
15469 if test "$host_cpu" = ia64; then
15470 # AIX 5 now supports IA64 processor
15471 lt_prog_compiler_static_GCJ='-Bstatic'
15473 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15477 mingw* | pw32* | os2*)
15478 # This hack is so that the source file can tell whether it is being
15479 # built for inclusion in a dll (and should export symbols for example).
15480 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15483 hpux9* | hpux10* | hpux11*)
15484 lt_prog_compiler_wl_GCJ='-Wl,'
15485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15486 # not for PA HP-UX.
15487 case "$host_cpu" in
15492 lt_prog_compiler_pic_GCJ='+Z'
15495 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15496 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15499 irix5* | irix6* | nonstopux*)
15500 lt_prog_compiler_wl_GCJ='-Wl,'
15501 # PIC (with -KPIC) is the default.
15502 lt_prog_compiler_static_GCJ='-non_shared'
15506 lt_prog_compiler_pic_GCJ='-KPIC'
15507 lt_prog_compiler_static_GCJ='-Bstatic'
15513 lt_prog_compiler_wl_GCJ='-Wl,'
15514 lt_prog_compiler_pic_GCJ='-KPIC'
15515 lt_prog_compiler_static_GCJ='-static'
15518 lt_prog_compiler_wl_GCJ='-Wl,'
15519 # All Alpha code is PIC.
15520 lt_prog_compiler_static_GCJ='-non_shared'
15525 osf3* | osf4* | osf5*)
15526 lt_prog_compiler_wl_GCJ='-Wl,'
15527 # All OSF/1 code is PIC.
15528 lt_prog_compiler_static_GCJ='-non_shared'
15532 lt_prog_compiler_pic_GCJ='-Kpic'
15533 lt_prog_compiler_static_GCJ='-dn'
15537 lt_prog_compiler_wl_GCJ='-Wl,'
15538 lt_prog_compiler_pic_GCJ='-KPIC'
15539 lt_prog_compiler_static_GCJ='-Bstatic'
15543 lt_prog_compiler_wl_GCJ='-Qoption ld '
15544 lt_prog_compiler_pic_GCJ='-PIC'
15545 lt_prog_compiler_static_GCJ='-Bstatic'
15548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15549 lt_prog_compiler_wl_GCJ='-Wl,'
15550 lt_prog_compiler_pic_GCJ='-KPIC'
15551 lt_prog_compiler_static_GCJ='-Bstatic'
15555 if test -d /usr/nec ;then
15556 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15557 lt_prog_compiler_static_GCJ='-Bstatic'
15562 lt_prog_compiler_pic_GCJ='-pic'
15563 lt_prog_compiler_static_GCJ='-Bstatic'
15567 lt_prog_compiler_can_build_shared_GCJ=no
15572 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15573 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15576 # Check to make sure the PIC flag actually works.
15578 if test -n "$lt_prog_compiler_pic_GCJ"; then
15580 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15581 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15582 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 lt_prog_compiler_pic_works_GCJ=no
15586 ac_outfile=conftest.$ac_objext
15587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15588 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15589 # Insert the option either (1) after the last *FLAGS variable, or
15590 # (2) before a word containing "conftest.", or (3) at the end.
15591 # Note that $ac_compile itself does not contain backslashes and begins
15592 # with a dollar sign (not a hyphen), so the echo should work correctly.
15593 # The option is referenced via a variable to avoid confusing sed.
15594 lt_compile=`echo "$ac_compile" | $SED \
15595 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15597 -e 's:$: $lt_compiler_flag:'`
15598 (eval echo "\"\$as_me:15598: $lt_compile\"" >&5)
15599 (eval "$lt_compile" 2>conftest.err)
15601 cat conftest.err >&5
15602 echo "$as_me:15602: \$? = $ac_status" >&5
15603 if (exit $ac_status) && test -s "$ac_outfile"; then
15604 # The compiler can only warn and ignore the option if not recognized
15605 # So say no if there are warnings
15606 if test ! -s conftest.err; then
15607 lt_prog_compiler_pic_works_GCJ=yes
15613 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15614 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15616 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15617 case $lt_prog_compiler_pic_GCJ in
15619 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15622 lt_prog_compiler_pic_GCJ=
15623 lt_prog_compiler_can_build_shared_GCJ=no
15628 # For platforms which do not support PIC, -DPIC is meaningless:
15630 lt_prog_compiler_pic_GCJ=
15633 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15637 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15638 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15639 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 lt_cv_prog_compiler_c_o_GCJ=no
15643 $rm -r conftest 2>/dev/null
15647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15649 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15650 # that will create temporary files in the current directory regardless of
15651 # the output directory. Thus, making CWD read-only will cause this test
15652 # to fail, enabling locking or at least warning the user not to do parallel
15656 lt_compiler_flag="-o out/conftest2.$ac_objext"
15657 # Insert the option either (1) after the last *FLAGS variable, or
15658 # (2) before a word containing "conftest.", or (3) at the end.
15659 # Note that $ac_compile itself does not contain backslashes and begins
15660 # with a dollar sign (not a hyphen), so the echo should work correctly.
15661 lt_compile=`echo "$ac_compile" | $SED \
15662 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15664 -e 's:$: $lt_compiler_flag:'`
15665 (eval echo "\"\$as_me:15665: $lt_compile\"" >&5)
15666 (eval "$lt_compile" 2>out/conftest.err)
15668 cat out/conftest.err >&5
15669 echo "$as_me:15669: \$? = $ac_status" >&5
15670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15672 # The compiler can only warn and ignore the option if not recognized
15673 # So say no if there are warnings
15674 if test ! -s out/conftest.err; then
15675 lt_cv_prog_compiler_c_o_GCJ=yes
15680 # SGI C++ compiler will create directory out/ii_files/ for
15681 # template instantiation
15682 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15683 $rm out/* && rmdir out
15689 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15690 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15693 hard_links="nottested"
15694 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15695 # do not overwrite the value of need_locks provided by the user
15696 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15697 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15702 ln conftest.a conftest.b 2>&5 || hard_links=no
15703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15704 { echo "$as_me:$LINENO: result: $hard_links" >&5
15705 echo "${ECHO_T}$hard_links" >&6; }
15706 if test "$hard_links" = no; then
15707 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15708 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15715 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15716 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15719 allow_undefined_flag_GCJ=
15720 enable_shared_with_static_runtimes_GCJ=no
15722 archive_expsym_cmds_GCJ=
15723 old_archive_From_new_cmds_GCJ=
15724 old_archive_from_expsyms_cmds_GCJ=
15725 export_dynamic_flag_spec_GCJ=
15726 whole_archive_flag_spec_GCJ=
15727 thread_safe_flag_spec_GCJ=
15728 hardcode_libdir_flag_spec_GCJ=
15729 hardcode_libdir_flag_spec_ld_GCJ=
15730 hardcode_libdir_separator_GCJ=
15731 hardcode_direct_GCJ=no
15732 hardcode_minus_L_GCJ=no
15733 hardcode_shlibpath_var_GCJ=unsupported
15734 link_all_deplibs_GCJ=unknown
15735 hardcode_automatic_GCJ=no
15737 module_expsym_cmds_GCJ=
15738 always_export_symbols_GCJ=no
15739 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15740 # include_expsyms should be a list of space-separated symbols to be *always*
15741 # included in the symbol list
15742 include_expsyms_GCJ=
15743 # exclude_expsyms can be an extended regexp of symbols to exclude
15744 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15745 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15746 # as well as any symbol that contains `d'.
15747 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15748 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15749 # platforms (ab)use it in PIC code, but their linkers get confused if
15750 # the symbol is explicitly referenced. Since portable code cannot
15751 # rely on this symbol name, it's probably fine to never include it in
15752 # preloaded symbol tables.
15753 extract_expsyms_cmds=
15756 cygwin* | mingw* | pw32*)
15757 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15758 # When not using gcc, we currently assume that we are using
15759 # Microsoft Visual C++.
15760 if test "$GCC" != yes; then
15770 if test "$with_gnu_ld" = yes; then
15771 # If archive_cmds runs LD, not CC, wlarc should be empty
15774 # See if GNU ld supports shared libraries.
15776 aix3* | aix4* | aix5*)
15777 # On AIX/PPC, the GNU linker is very broken
15778 if test "$host_cpu" != ia64; then
15782 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15783 *** to be unable to reliably create shared libraries on AIX.
15784 *** Therefore, libtool is disabling shared libraries support. If you
15785 *** really care for shared libraries, you may want to modify your PATH
15786 *** so that a non-GNU linker is found, and then restart.
15793 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)'
15794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15795 hardcode_minus_L_GCJ=yes
15797 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15798 # that the semantics of dynamic libraries on AmigaOS, at least up
15799 # to version 4, is to share data among multiple programs linked
15800 # with the same dynamic library. Since this doesn't match the
15801 # behavior of shared libraries on other platforms, we can't use
15807 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15808 allow_undefined_flag_GCJ=unsupported
15809 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15810 # support --undefined. This deserves some investigation. FIXME
15811 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15817 cygwin* | mingw* | pw32*)
15818 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15819 # as there is no search path for DLLs.
15820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15821 allow_undefined_flag_GCJ=unsupported
15822 always_export_symbols_GCJ=no
15823 enable_shared_with_static_runtimes_GCJ=yes
15824 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15826 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15828 # If the export-symbols file already is a .def file (1st line
15829 # is EXPORTS), use it as is; otherwise, prepend...
15830 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15831 cp $export_symbols $output_objdir/$soname.def;
15833 echo EXPORTS > $output_objdir/$soname.def;
15834 cat $export_symbols >> $output_objdir/$soname.def;
15836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15844 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15847 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15853 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15858 *** create shared libraries on Solaris systems. Therefore, libtool
15859 *** is disabling shared libraries support. We urge you to upgrade GNU
15860 *** binutils to release 2.9.1 or newer. Another option is to modify
15861 *** your PATH or compiler configuration so that the native linker is
15862 *** used, and then restart.
15865 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15866 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15874 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15876 hardcode_direct_GCJ=yes
15877 hardcode_shlibpath_var_GCJ=no
15881 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15882 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15883 archive_cmds_GCJ="$tmp_archive_cmds"
15884 supports_anon_versioning=no
15885 case `$LD -v 2>/dev/null` in
15886 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15889 *\ 2.11.*) ;; # other 2.11 versions
15890 *) supports_anon_versioning=yes ;;
15892 if test $supports_anon_versioning = yes; then
15893 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15895 $echo "local: *; };" >> $output_objdir/$libname.ver~
15896 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15898 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15907 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15908 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15915 if test "$ld_shlibs_GCJ" = yes; then
15916 runpath_var=LD_RUN_PATH
15917 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15918 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15919 # ancient GNU ld didn't support --whole-archive et. al.
15920 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15921 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15923 whole_archive_flag_spec_GCJ=
15927 # PORTME fill in a description of your system's linker (not GNU ld)
15930 allow_undefined_flag_GCJ=unsupported
15931 always_export_symbols_GCJ=yes
15932 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'
15933 # Note: this linker hardcodes the directories in LIBPATH if there
15934 # are no directories specified by -L.
15935 hardcode_minus_L_GCJ=yes
15936 if test "$GCC" = yes && test -z "$link_static_flag"; then
15937 # Neither direct hardcoding nor static linking is supported with a
15939 hardcode_direct_GCJ=unsupported
15944 if test "$host_cpu" = ia64; then
15945 # On IA64, the linker does run time linking by default, so we don't
15946 # have to do anything special.
15947 aix_use_runtimelinking=no
15948 exp_sym_flag='-Bexport'
15951 # If we're using GNU nm, then we don't want the "-C" option.
15952 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15953 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15954 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'
15956 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'
15958 aix_use_runtimelinking=no
15960 # Test if we are trying to use run time linking or normal
15961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15962 # need to do runtime linking.
15963 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15964 for ld_flag in $LDFLAGS; do
15965 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15966 aix_use_runtimelinking=yes
15972 exp_sym_flag='-bexport'
15973 no_entry_flag='-bnoentry'
15976 # When large executables or shared objects are built, AIX ld can
15977 # have problems creating the table of contents. If linking a library
15978 # or program results in "error TOC overflow" add -mminimal-toc to
15979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15982 archive_cmds_GCJ=''
15983 hardcode_direct_GCJ=yes
15984 hardcode_libdir_separator_GCJ=':'
15985 link_all_deplibs_GCJ=yes
15987 if test "$GCC" = yes; then
15988 case $host_os in aix4.012|aix4.012.*)
15989 # We only want to do this on AIX 4.2 and lower, the check
15990 # below for broken collect2 doesn't work under 4.3+
15991 collect2name=`${CC} -print-prog-name=collect2`
15992 if test -f "$collect2name" && \
15993 strings "$collect2name" | grep resolve_lib_name >/dev/null
15995 # We have reworked collect2
15996 hardcode_direct_GCJ=yes
15998 # We have old collect2
15999 hardcode_direct_GCJ=unsupported
16000 # It fails to find uninstalled libraries when the uninstalled
16001 # path is not listed in the libpath. Setting hardcode_minus_L
16002 # to unsupported forces relinking
16003 hardcode_minus_L_GCJ=yes
16004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16005 hardcode_libdir_separator_GCJ=
16008 shared_flag='-shared'
16011 if test "$host_cpu" = ia64; then
16012 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16013 # chokes on -Wl,-G. The following line is correct:
16016 if test "$aix_use_runtimelinking" = yes; then
16017 shared_flag='${wl}-G'
16019 shared_flag='${wl}-bM:SRE'
16024 # It seems that -bexpall does not export symbols beginning with
16025 # underscore (_), so it is better to generate a list of symbols to export.
16026 always_export_symbols_GCJ=yes
16027 if test "$aix_use_runtimelinking" = yes; then
16028 # Warning - without using the other runtime loading flags (-brtl),
16029 # -berok will link without error, but may produce a broken library.
16030 allow_undefined_flag_GCJ='-berok'
16031 # Determine the default libpath from the value encoded in an empty executable.
16032 cat >conftest.$ac_ext <<_ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16047 rm -f conftest.$ac_objext conftest$ac_exeext
16048 if { (ac_try="$ac_link"
16049 case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_link") 2>conftest.er1
16056 grep -v '^ *+' conftest.er1 >conftest.err
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } && {
16061 test -z "$ac_c_werror_flag" ||
16062 test ! -s conftest.err
16063 } && test -s conftest$ac_exeext &&
16064 $as_test_x conftest$ac_exeext; then
16066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16068 # Check for a 64-bit object if we didn't find anything.
16069 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; }
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16079 conftest$ac_exeext conftest.$ac_ext
16080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16082 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16083 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"
16085 if test "$host_cpu" = ia64; then
16086 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16087 allow_undefined_flag_GCJ="-z nodefs"
16088 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"
16090 # Determine the default libpath from the value encoded in an empty executable.
16091 cat >conftest.$ac_ext <<_ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16106 rm -f conftest.$ac_objext conftest$ac_exeext
16107 if { (ac_try="$ac_link"
16108 case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_link") 2>conftest.er1
16115 grep -v '^ *+' conftest.er1 >conftest.err
16117 cat conftest.err >&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } && {
16120 test -z "$ac_c_werror_flag" ||
16121 test ! -s conftest.err
16122 } && test -s conftest$ac_exeext &&
16123 $as_test_x conftest$ac_exeext; then
16125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16127 # Check for a 64-bit object if we didn't find anything.
16128 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; }
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16138 conftest$ac_exeext conftest.$ac_ext
16139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16141 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16142 # Warning - without using the other run time loading flags,
16143 # -berok will link without error, but may produce a broken library.
16144 no_undefined_flag_GCJ=' ${wl}-bernotok'
16145 allow_undefined_flag_GCJ=' ${wl}-berok'
16146 # -bexpall does not export symbols beginning with underscore (_)
16147 always_export_symbols_GCJ=yes
16148 # Exported symbols can be pulled into shared objects from archives
16149 whole_archive_flag_spec_GCJ=' '
16150 archive_cmds_need_lc_GCJ=yes
16151 # This is similar to how AIX traditionally builds it's shared libraries.
16152 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'
16158 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)'
16159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16160 hardcode_minus_L_GCJ=yes
16161 # see comment about different semantics on the GNU ld section
16166 export_dynamic_flag_spec_GCJ=-rdynamic
16169 cygwin* | mingw* | pw32*)
16170 # When not using gcc, we currently assume that we are using
16171 # Microsoft Visual C++.
16172 # hardcode_libdir_flag_spec is actually meaningless, as there is
16173 # no search path for DLLs.
16174 hardcode_libdir_flag_spec_GCJ=' '
16175 allow_undefined_flag_GCJ=unsupported
16176 # Tell ltmain to make .lib files, not .a files.
16178 # Tell ltmain to make .dll files, not .so files.
16180 # FIXME: Setting linknames here is a bad hack.
16181 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16182 # The linker will automatically build a .lib file if we build a DLL.
16183 old_archive_From_new_cmds_GCJ='true'
16184 # FIXME: Should let the user specify the lib program.
16185 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16186 fix_srcfile_path='`cygpath -w "$srcfile"`'
16187 enable_shared_with_static_runtimes_GCJ=yes
16190 darwin* | rhapsody*)
16191 if test "$GXX" = yes ; then
16192 archive_cmds_need_lc_GCJ=no
16194 rhapsody* | darwin1.[012])
16195 allow_undefined_flag_GCJ='-undefined suppress'
16198 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16199 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16201 case ${MACOSX_DEPLOYMENT_TARGET} in
16203 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16206 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16212 lt_int_apple_cc_single_mod=no
16213 output_verbose_link_cmd='echo'
16214 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16215 lt_int_apple_cc_single_mod=yes
16217 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16218 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16220 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'
16222 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16224 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16225 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}'
16227 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}'
16229 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}'
16230 hardcode_direct_GCJ=no
16231 hardcode_automatic_GCJ=yes
16232 hardcode_shlibpath_var_GCJ=unsupported
16233 whole_archive_flag_spec_GCJ='-all_load $convenience'
16234 link_all_deplibs_GCJ=yes
16241 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16243 hardcode_shlibpath_var_GCJ=no
16250 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16251 # support. Future versions do this automatically, but an explicit c++rt0.o
16252 # does not break anything, and helps significantly (at the cost of a little
16255 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16256 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16257 hardcode_direct_GCJ=yes
16258 hardcode_shlibpath_var_GCJ=no
16261 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16263 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16264 hardcode_direct_GCJ=yes
16265 hardcode_minus_L_GCJ=yes
16266 hardcode_shlibpath_var_GCJ=no
16269 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16270 freebsd* | kfreebsd*-gnu)
16271 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16273 hardcode_direct_GCJ=yes
16274 hardcode_shlibpath_var_GCJ=no
16278 if test "$GCC" = yes; then
16279 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'
16281 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'
16283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284 hardcode_libdir_separator_GCJ=:
16285 hardcode_direct_GCJ=yes
16287 # hardcode_minus_L: Not really in the search PATH,
16288 # but as the default location of the library.
16289 hardcode_minus_L_GCJ=yes
16290 export_dynamic_flag_spec_GCJ='${wl}-E'
16294 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16295 case "$host_cpu" in
16297 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16300 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16304 case "$host_cpu" in
16306 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16309 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16313 if test "$with_gnu_ld" = no; then
16314 case "$host_cpu" in
16316 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16317 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16318 hardcode_libdir_separator_GCJ=:
16319 hardcode_direct_GCJ=no
16320 hardcode_shlibpath_var_GCJ=no
16323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324 hardcode_direct_GCJ=no
16325 hardcode_shlibpath_var_GCJ=no
16327 # hardcode_minus_L: Not really in the search PATH,
16328 # but as the default location of the library.
16329 hardcode_minus_L_GCJ=yes
16332 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16333 hardcode_libdir_separator_GCJ=:
16334 hardcode_direct_GCJ=yes
16335 export_dynamic_flag_spec_GCJ='${wl}-E'
16337 # hardcode_minus_L: Not really in the search PATH,
16338 # but as the default location of the library.
16339 hardcode_minus_L_GCJ=yes
16345 irix5* | irix6* | nonstopux*)
16346 if test "$GCC" = yes; then
16347 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'
16349 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'
16350 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16352 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16353 hardcode_libdir_separator_GCJ=:
16354 link_all_deplibs_GCJ=yes
16358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16359 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16361 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16363 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16364 hardcode_direct_GCJ=yes
16365 hardcode_shlibpath_var_GCJ=no
16369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_direct_GCJ=yes
16371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16372 hardcode_libdir_separator_GCJ=:
16373 hardcode_shlibpath_var_GCJ=no
16377 hardcode_direct_GCJ=yes
16378 hardcode_shlibpath_var_GCJ=no
16379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16380 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16382 export_dynamic_flag_spec_GCJ='${wl}-E'
16385 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16386 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16390 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16398 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16399 hardcode_minus_L_GCJ=yes
16400 allow_undefined_flag_GCJ=unsupported
16401 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'
16402 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16406 if test "$GCC" = yes; then
16407 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16408 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'
16410 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16411 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'
16413 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16414 hardcode_libdir_separator_GCJ=:
16417 osf4* | osf5*) # as osf3* with the addition of -msym flag
16418 if test "$GCC" = yes; then
16419 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16420 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'
16421 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16423 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16424 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'
16425 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~
16426 $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'
16428 # Both c and cxx compiler support -rpath directly
16429 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16431 hardcode_libdir_separator_GCJ=:
16435 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_shlibpath_var_GCJ=no
16437 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16438 runpath_var=LD_RUN_PATH
16439 hardcode_runpath_var=yes
16443 no_undefined_flag_GCJ=' -z text'
16444 if test "$GCC" = yes; then
16445 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16447 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16449 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16451 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16453 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16454 hardcode_shlibpath_var_GCJ=no
16456 solaris2.[0-5] | solaris2.[0-5].*) ;;
16457 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16458 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16460 link_all_deplibs_GCJ=yes
16464 if test "x$host_vendor" = xsequent; then
16465 # Use $CC to link under sequent, because it throws in some extra .o
16466 # files that make .init and .fini sections work.
16467 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16469 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16471 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16472 hardcode_direct_GCJ=yes
16473 hardcode_minus_L_GCJ=yes
16474 hardcode_shlibpath_var_GCJ=no
16478 case $host_vendor in
16480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16481 hardcode_direct_GCJ=yes # is this really true???
16484 ## LD is ld it makes a PLAMLIB
16485 ## CC just makes a GrossModule.
16486 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16487 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16488 hardcode_direct_GCJ=no
16491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16492 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16495 runpath_var='LD_RUN_PATH'
16496 hardcode_shlibpath_var_GCJ=no
16500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_shlibpath_var_GCJ=no
16502 export_dynamic_flag_spec_GCJ='-Bexport'
16506 if test -d /usr/nec; then
16507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_shlibpath_var_GCJ=no
16509 runpath_var=LD_RUN_PATH
16510 hardcode_runpath_var=yes
16516 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_direct_GCJ=yes
16518 hardcode_minus_L_GCJ=no
16519 hardcode_shlibpath_var_GCJ=no
16520 hardcode_runpath_var=yes
16521 runpath_var=LD_RUN_PATH
16524 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16525 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16526 if test "$GCC" = yes; then
16527 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16529 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16531 runpath_var='LD_RUN_PATH'
16532 hardcode_shlibpath_var_GCJ=no
16536 no_undefined_flag_GCJ=' -z text'
16537 # $CC -shared without GNU ld will not create a library from C++
16538 # object files and a static libstdc++, better avoid it by now
16539 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16542 hardcode_libdir_flag_spec_GCJ=
16543 hardcode_shlibpath_var_GCJ=no
16544 runpath_var='LD_RUN_PATH'
16548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550 hardcode_shlibpath_var_GCJ=no
16559 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16560 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16561 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16564 if test "$GCC" = yes; then
16565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16569 # Do we need to explicitly link libc?
16571 case "x$archive_cmds_need_lc_GCJ" in
16573 # Assume -lc should be added
16574 archive_cmds_need_lc_GCJ=yes
16576 if test "$enable_shared" = yes && test "$GCC" = yes; then
16577 case $archive_cmds_GCJ in
16579 # FIXME: we may have to deal with multi-command sequences.
16582 # Test whether the compiler implicitly links with -lc since on some
16583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16584 # to ld, don't add -lc before -lgcc.
16585 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16586 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591 (eval $ac_compile) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } 2>conftest.err; then
16597 libobjs=conftest.$ac_objext
16599 wl=$lt_prog_compiler_wl_GCJ
16605 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16606 allow_undefined_flag_GCJ=
16607 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16608 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }
16613 archive_cmds_need_lc_GCJ=no
16615 archive_cmds_need_lc_GCJ=yes
16617 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16619 cat conftest.err 1>&5
16622 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16623 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16630 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16631 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16632 library_names_spec=
16633 libname_spec='lib$name'
16637 postuninstall_cmds=
16641 shlibpath_overrides_runpath=unknown
16643 dynamic_linker="$host_os ld.so"
16644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16645 if test "$GCC" = yes; then
16646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16647 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16648 # if the path contains ";" then we assume it to be the separator
16649 # otherwise default to the standard path separator (i.e. ":") - it is
16650 # assumed that no part of a normal pathname contains ";" but that should
16651 # okay in the real world where ";" in dirpaths is itself problematic.
16652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16659 need_lib_prefix=unknown
16660 hardcode_into_libs=no
16662 # when you set need_version to no, make sure it does not cause -set_version
16663 # flags to be left without arguments
16664 need_version=unknown
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16670 shlibpath_var=LIBPATH
16672 # AIX 3 has no versioning support, so we append a major version to the name.
16673 soname_spec='${libname}${release}${shared_ext}$major'
16680 hardcode_into_libs=yes
16681 if test "$host_cpu" = ia64; then
16682 # AIX 5 supports IA64
16683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16684 shlibpath_var=LD_LIBRARY_PATH
16686 # With GCC up to 2.95.x, collect2 would create an import file
16687 # for dependence libraries. The import file would start with
16688 # the line `#! .'. This would cause the generated library to
16689 # depend on `.', always an invalid library. This was fixed in
16690 # development snapshots of GCC prior to 3.0.
16692 aix4 | aix4.[01] | aix4.[01].*)
16693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16695 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16698 can_build_shared=no
16702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16703 # soname into executable. Probably we can add versioning support to
16704 # collect2, so additional links can be useful in future.
16705 if test "$aix_use_runtimelinking" = yes; then
16706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16707 # instead of lib<name>.a to let people know that these are not
16708 # typical AIX shared libraries.
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711 # We preserve .a as extension for shared libraries through AIX4.2
16712 # and later when we are not doing run time linking.
16713 library_names_spec='${libname}${release}.a $libname.a'
16714 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LIBPATH
16721 library_names_spec='$libname.ixlibrary $libname.a'
16722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16723 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'
16727 library_names_spec='${libname}${shared_ext}'
16728 dynamic_linker="$host_os ld.so"
16729 shlibpath_var=LIBRARY_PATH
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736 soname_spec='${libname}${release}${shared_ext}$major'
16737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16741 # the default ld.so.conf also contains /usr/contrib/lib and
16742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16743 # libtool to hard-code these into programs
16746 cygwin* | mingw* | pw32*)
16747 version_type=windows
16752 case $GCC,$host_os in
16753 yes,cygwin* | yes,mingw* | yes,pw32*)
16754 library_names_spec='$libname.dll.a'
16755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16756 postinstall_cmds='base_file=`basename \${file}`~
16757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16758 dldir=$destdir/`dirname \$dlpath`~
16759 test -d \$dldir || mkdir -p \$dldir~
16760 $install_prog $dir/$dlname \$dldir/$dlname'
16761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16762 dlpath=$dir/\$dldll~
16764 shlibpath_overrides_runpath=yes
16768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16773 # MinGW DLLs use traditional 'lib' prefix
16774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16777 # It is most probably a Windows format PATH printed by
16778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16779 # path with ; separators, and with drive letters. We can handle the
16780 # drive letters (cygwin fileutils understands them), so leave them,
16781 # especially as we might pass files found there to a mingw objdump,
16782 # which wouldn't understand a cygwinified path. Ahh.
16783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16789 # pw32 DLLs use 'pw' prefix rather than 'lib'
16790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16799 dynamic_linker='Win32 ld.exe'
16800 # FIXME: first we should search . and the directory the executable is in
16804 darwin* | rhapsody*)
16805 dynamic_linker="$host_os dyld"
16806 version_type=darwin
16809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16810 soname_spec='${libname}${release}${major}$shared_ext'
16811 shlibpath_overrides_runpath=yes
16812 shlibpath_var=DYLD_LIBRARY_PATH
16813 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16814 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16815 if test "$GCC" = yes; then
16816 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"`
16818 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 shlibpath_var=LD_LIBRARY_PATH
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 shlibpath_overrides_runpath=no
16844 hardcode_into_libs=yes
16845 dynamic_linker='GNU ld.so'
16849 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16850 version_type=freebsd-$objformat
16851 case $version_type in
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16862 shlibpath_var=LD_LIBRARY_PATH
16865 shlibpath_overrides_runpath=yes
16867 freebsd3.01* | freebsdelf3.01*)
16868 shlibpath_overrides_runpath=yes
16869 hardcode_into_libs=yes
16872 shlibpath_overrides_runpath=no
16873 hardcode_into_libs=yes
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 hardcode_into_libs=yes
16888 hpux9* | hpux10* | hpux11*)
16889 # Give a soname corresponding to the major version so that dld.sl refuses to
16890 # link against other versions.
16894 case "$host_cpu" in
16897 hardcode_into_libs=yes
16898 dynamic_linker="$host_os dld.so"
16899 shlibpath_var=LD_LIBRARY_PATH
16900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902 soname_spec='${libname}${release}${shared_ext}$major'
16903 if test "X$HPUX_IA64_MODE" = X32; then
16904 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16906 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16912 hardcode_into_libs=yes
16913 dynamic_linker="$host_os dld.sl"
16914 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16923 dynamic_linker="$host_os dld.sl"
16924 shlibpath_var=SHLIB_PATH
16925 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16930 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16931 postinstall_cmds='chmod 555 $lib'
16934 irix5* | irix6* | nonstopux*)
16936 nonstopux*) version_type=nonstopux ;;
16938 if test "$lt_cv_prog_gnu_ld" = yes; then
16946 soname_spec='${libname}${release}${shared_ext}$major'
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16949 irix5* | nonstopux*)
16950 libsuff= shlibsuff=
16953 case $LD in # libtool.m4 will add one of these switches to LD
16954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16955 libsuff= shlibsuff= libmagic=32-bit;;
16956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16957 libsuff=32 shlibsuff=N32 libmagic=N32;;
16958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16960 *) libsuff= shlibsuff= libmagic=never-match;;
16964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16965 shlibpath_overrides_runpath=no
16966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16968 hardcode_into_libs=yes
16971 # No shared lib support for Linux oldld, aout, or coff.
16972 linux*oldld* | linux*aout* | linux*coff*)
16976 # This must be Linux ELF.
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16984 shlibpath_var=LD_LIBRARY_PATH
16985 shlibpath_overrides_runpath=no
16986 # This implies no fast_install, which is unacceptable.
16987 # Some rework will be needed to allow for fast_install
16988 # before this can be enabled.
16989 hardcode_into_libs=yes
16991 # We used to test for /lib/ld.so.1 and disable shared libraries on
16992 # powerpc, because MkLinux only supported shared libraries with the
16993 # GNU dynamic linker. Since this was broken with cross compilers,
16994 # most powerpc-linux boxes support dynamic linking these days and
16995 # people can always --disable-shared, the test was removed, and we
16996 # assume the GNU/Linux dynamic linker is in use.
16997 dynamic_linker='GNU/Linux ld.so'
17004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17007 dynamic_linker='NetBSD (a.out) ld.so'
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 dynamic_linker='NetBSD ld.elf_so'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 shlibpath_overrides_runpath=yes
17015 hardcode_into_libs=yes
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17021 shlibpath_var=LD_LIBRARY_PATH
17022 shlibpath_overrides_runpath=yes
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec='${libname}${release}${shared_ext}$major'
17031 shlibpath_var=LD_LIBRARY_PATH
17032 shlibpath_overrides_runpath=yes
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17041 shlibpath_var=LD_LIBRARY_PATH
17042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17044 openbsd2.[89] | openbsd2.[89].*)
17045 shlibpath_overrides_runpath=no
17048 shlibpath_overrides_runpath=yes
17052 shlibpath_overrides_runpath=yes
17057 libname_spec='$name'
17060 library_names_spec='$libname${shared_ext} $libname.a'
17061 dynamic_linker='OS/2 ld.exe'
17062 shlibpath_var=LIBPATH
17065 osf3* | osf4* | osf5*)
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 shlibpath_var=LD_LIBRARY_PATH
17072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080 shlibpath_var=LD_LIBRARY_PATH
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 shlibpath_overrides_runpath=yes
17091 hardcode_into_libs=yes
17092 # ldd complains unless libraries are executable
17093 postinstall_cmds='chmod +x $lib'
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17099 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 shlibpath_overrides_runpath=yes
17102 if test "$with_gnu_ld" = yes; then
17108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111 soname_spec='${libname}${release}${shared_ext}$major'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 case $host_vendor in
17115 shlibpath_overrides_runpath=no
17117 export_dynamic_flag_spec='${wl}-Blargedynsym'
17118 runpath_var=LD_RUN_PATH
17126 shlibpath_overrides_runpath=no
17127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17133 if test -d /usr/nec ;then
17135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17136 soname_spec='$libname${shared_ext}.$major'
17137 shlibpath_var=LD_LIBRARY_PATH
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 shlibpath_var=LD_LIBRARY_PATH
17152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17153 echo "${ECHO_T}$dynamic_linker" >&6; }
17154 test "$dynamic_linker" = no && can_build_shared=no
17156 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17158 hardcode_action_GCJ=
17159 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17160 test -n "$runpath_var GCJ" || \
17161 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17163 # We can hardcode non-existant directories.
17164 if test "$hardcode_direct_GCJ" != no &&
17165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17166 # have to relink, otherwise we might link with an installed library
17167 # when we should be linking with a yet-to-be-installed one
17168 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17169 test "$hardcode_minus_L_GCJ" != no; then
17170 # Linking always hardcodes the temporary library directory.
17171 hardcode_action_GCJ=relink
17173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17174 hardcode_action_GCJ=immediate
17177 # We cannot hardcode anything, or else we can only hardcode existing
17179 hardcode_action_GCJ=unsupported
17181 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17182 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17184 if test "$hardcode_action_GCJ" = relink; then
17185 # Fast installation is not supported
17186 enable_fast_install=no
17187 elif test "$shlibpath_overrides_runpath" = yes ||
17188 test "$enable_shared" = no; then
17189 # Fast installation is not necessary
17190 enable_fast_install=needless
17195 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17196 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17197 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17198 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17199 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17200 { echo "$as_me:$LINENO: result: yes" >&5
17201 echo "${ECHO_T}yes" >&6; }
17203 # FIXME - insert some real tests, host_os isn't really good enough
17206 if test -n "$STRIP" ; then
17207 striplib="$STRIP -x"
17208 { echo "$as_me:$LINENO: result: yes" >&5
17209 echo "${ECHO_T}yes" >&6; }
17211 { echo "$as_me:$LINENO: result: no" >&5
17212 echo "${ECHO_T}no" >&6; }
17216 { echo "$as_me:$LINENO: result: no" >&5
17217 echo "${ECHO_T}no" >&6; }
17222 if test "x$enable_dlopen" != xyes; then
17223 enable_dlopen=unknown
17224 enable_dlopen_self=unknown
17225 enable_dlopen_self_static=unknown
17232 lt_cv_dlopen="load_add_on"
17234 lt_cv_dlopen_self=yes
17238 lt_cv_dlopen="LoadLibrary"
17243 lt_cv_dlopen="dlopen"
17248 # if libdl is installed we need to link against it
17249 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17250 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 ac_check_lib_save_LIBS=$LIBS
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17263 /* Override any GCC internal prototype to avoid an error.
17264 Use char because int might match the return type of a GCC
17265 builtin and then its argument prototype would still apply. */
17278 rm -f conftest.$ac_objext conftest$ac_exeext
17279 if { (ac_try="$ac_link"
17280 case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_link") 2>conftest.er1
17287 grep -v '^ *+' conftest.er1 >conftest.err
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } && {
17292 test -z "$ac_c_werror_flag" ||
17293 test ! -s conftest.err
17294 } && test -s conftest$ac_exeext &&
17295 $as_test_x conftest$ac_exeext; then
17296 ac_cv_lib_dl_dlopen=yes
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ac_cv_lib_dl_dlopen=no
17304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17305 conftest$ac_exeext conftest.$ac_ext
17306 LIBS=$ac_check_lib_save_LIBS
17308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17309 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17310 if test $ac_cv_lib_dl_dlopen = yes; then
17311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17314 lt_cv_dlopen="dyld"
17316 lt_cv_dlopen_self=yes
17323 { echo "$as_me:$LINENO: checking for shl_load" >&5
17324 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17325 if test "${ac_cv_func_shl_load+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 cat >conftest.$ac_ext <<_ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17336 #define shl_load innocuous_shl_load
17338 /* System header to define __stub macros and hopefully few prototypes,
17339 which can conflict with char shl_load (); below.
17340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17341 <limits.h> exists even on freestanding compilers. */
17344 # include <limits.h>
17346 # include <assert.h>
17351 /* Override any GCC internal prototype to avoid an error.
17352 Use char because int might match the return type of a GCC
17353 builtin and then its argument prototype would still apply. */
17358 /* The GNU C library defines this for functions which it implements
17359 to always fail with ENOSYS. Some functions are actually named
17360 something starting with __ and the normal name is an alias. */
17361 #if defined __stub_shl_load || defined __stub___shl_load
17368 return shl_load ();
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && {
17387 test -z "$ac_c_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest$ac_exeext &&
17390 $as_test_x conftest$ac_exeext; then
17391 ac_cv_func_shl_load=yes
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ac_cv_func_shl_load=no
17399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17400 conftest$ac_exeext conftest.$ac_ext
17402 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17403 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17404 if test $ac_cv_func_shl_load = yes; then
17405 lt_cv_dlopen="shl_load"
17407 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17408 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17409 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 ac_check_lib_save_LIBS=$LIBS
17414 cat >conftest.$ac_ext <<_ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17421 /* Override any GCC internal prototype to avoid an error.
17422 Use char because int might match the return type of a GCC
17423 builtin and then its argument prototype would still apply. */
17431 return shl_load ();
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } && {
17450 test -z "$ac_c_werror_flag" ||
17451 test ! -s conftest.err
17452 } && test -s conftest$ac_exeext &&
17453 $as_test_x conftest$ac_exeext; then
17454 ac_cv_lib_dld_shl_load=yes
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_cv_lib_dld_shl_load=no
17462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17463 conftest$ac_exeext conftest.$ac_ext
17464 LIBS=$ac_check_lib_save_LIBS
17466 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17467 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17468 if test $ac_cv_lib_dld_shl_load = yes; then
17469 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17471 { echo "$as_me:$LINENO: checking for dlopen" >&5
17472 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17473 if test "${ac_cv_func_dlopen+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17484 #define dlopen innocuous_dlopen
17486 /* System header to define __stub macros and hopefully few prototypes,
17487 which can conflict with char dlopen (); below.
17488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17489 <limits.h> exists even on freestanding compilers. */
17492 # include <limits.h>
17494 # include <assert.h>
17499 /* Override any GCC internal prototype to avoid an error.
17500 Use char because int might match the return type of a GCC
17501 builtin and then its argument prototype would still apply. */
17506 /* The GNU C library defines this for functions which it implements
17507 to always fail with ENOSYS. Some functions are actually named
17508 something starting with __ and the normal name is an alias. */
17509 #if defined __stub_dlopen || defined __stub___dlopen
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_link") 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } && {
17535 test -z "$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17537 } && test -s conftest$ac_exeext &&
17538 $as_test_x conftest$ac_exeext; then
17539 ac_cv_func_dlopen=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_cv_func_dlopen=no
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548 conftest$ac_exeext conftest.$ac_ext
17550 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17551 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17552 if test $ac_cv_func_dlopen = yes; then
17553 lt_cv_dlopen="dlopen"
17555 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 ac_check_lib_save_LIBS=$LIBS
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17569 /* Override any GCC internal prototype to avoid an error.
17570 Use char because int might match the return type of a GCC
17571 builtin and then its argument prototype would still apply. */
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (ac_try="$ac_link"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_link") 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest$ac_exeext &&
17601 $as_test_x conftest$ac_exeext; then
17602 ac_cv_lib_dl_dlopen=yes
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17607 ac_cv_lib_dl_dlopen=no
17610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17611 conftest$ac_exeext conftest.$ac_ext
17612 LIBS=$ac_check_lib_save_LIBS
17614 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17615 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17616 if test $ac_cv_lib_dl_dlopen = yes; then
17617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17619 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17620 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17621 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 ac_check_lib_save_LIBS=$LIBS
17625 LIBS="-lsvld $LIBS"
17626 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17633 /* Override any GCC internal prototype to avoid an error.
17634 Use char because int might match the return type of a GCC
17635 builtin and then its argument prototype would still apply. */
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_link") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } && {
17662 test -z "$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 } && test -s conftest$ac_exeext &&
17665 $as_test_x conftest$ac_exeext; then
17666 ac_cv_lib_svld_dlopen=yes
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ac_cv_lib_svld_dlopen=no
17674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17675 conftest$ac_exeext conftest.$ac_ext
17676 LIBS=$ac_check_lib_save_LIBS
17678 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17679 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17680 if test $ac_cv_lib_svld_dlopen = yes; then
17681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17683 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17684 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17685 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 ac_check_lib_save_LIBS=$LIBS
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17697 /* Override any GCC internal prototype to avoid an error.
17698 Use char because int might match the return type of a GCC
17699 builtin and then its argument prototype would still apply. */
17707 return dld_link ();
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (ac_try="$ac_link"
17714 case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719 (eval "$ac_link") 2>conftest.er1
17721 grep -v '^ *+' conftest.er1 >conftest.err
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } && {
17726 test -z "$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17728 } && test -s conftest$ac_exeext &&
17729 $as_test_x conftest$ac_exeext; then
17730 ac_cv_lib_dld_dld_link=yes
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_lib_dld_dld_link=no
17738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17739 conftest$ac_exeext conftest.$ac_ext
17740 LIBS=$ac_check_lib_save_LIBS
17742 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17743 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17744 if test $ac_cv_lib_dld_dld_link = yes; then
17745 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17766 if test "x$lt_cv_dlopen" != xno; then
17772 case $lt_cv_dlopen in
17774 save_CPPFLAGS="$CPPFLAGS"
17775 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17777 save_LDFLAGS="$LDFLAGS"
17778 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17781 LIBS="$lt_cv_dlopen_libs $LIBS"
17783 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17784 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17785 if test "${lt_cv_dlopen_self+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 if test "$cross_compiling" = yes; then :
17789 lt_cv_dlopen_self=cross
17791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17792 lt_status=$lt_dlunknown
17793 cat > conftest.$ac_ext <<EOF
17794 #line 17794 "configure"
17795 #include "confdefs.h"
17804 # define LT_DLGLOBAL RTLD_GLOBAL
17807 # define LT_DLGLOBAL DL_GLOBAL
17809 # define LT_DLGLOBAL 0
17813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17814 find out it does not work in some platform. */
17815 #ifndef LT_DLLAZY_OR_NOW
17817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17820 # define LT_DLLAZY_OR_NOW DL_LAZY
17823 # define LT_DLLAZY_OR_NOW RTLD_NOW
17826 # define LT_DLLAZY_OR_NOW DL_NOW
17828 # define LT_DLLAZY_OR_NOW 0
17836 extern "C" void exit (int);
17839 void fnord() { int i=42;}
17842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17843 int status = $lt_dlunknown;
17847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17848 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17849 /* dlclose (self); */
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856 (eval $ac_link) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17860 (./conftest; exit; ) 2>/dev/null
17862 case x$lt_status in
17863 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17864 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17865 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17868 # compilation failed
17869 lt_cv_dlopen_self=no
17876 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17877 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17879 if test "x$lt_cv_dlopen_self" = xyes; then
17880 LDFLAGS="$LDFLAGS $link_static_flag"
17881 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17882 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17883 if test "${lt_cv_dlopen_self_static+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 if test "$cross_compiling" = yes; then :
17887 lt_cv_dlopen_self_static=cross
17889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17890 lt_status=$lt_dlunknown
17891 cat > conftest.$ac_ext <<EOF
17892 #line 17892 "configure"
17893 #include "confdefs.h"
17902 # define LT_DLGLOBAL RTLD_GLOBAL
17905 # define LT_DLGLOBAL DL_GLOBAL
17907 # define LT_DLGLOBAL 0
17911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17912 find out it does not work in some platform. */
17913 #ifndef LT_DLLAZY_OR_NOW
17915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17918 # define LT_DLLAZY_OR_NOW DL_LAZY
17921 # define LT_DLLAZY_OR_NOW RTLD_NOW
17924 # define LT_DLLAZY_OR_NOW DL_NOW
17926 # define LT_DLLAZY_OR_NOW 0
17934 extern "C" void exit (int);
17937 void fnord() { int i=42;}
17940 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17941 int status = $lt_dlunknown;
17945 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17946 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17947 /* dlclose (self); */
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954 (eval $ac_link) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17958 (./conftest; exit; ) 2>/dev/null
17960 case x$lt_status in
17961 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17962 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17963 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17966 # compilation failed
17967 lt_cv_dlopen_self_static=no
17974 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17975 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17978 CPPFLAGS="$save_CPPFLAGS"
17979 LDFLAGS="$save_LDFLAGS"
17984 case $lt_cv_dlopen_self in
17985 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17986 *) enable_dlopen_self=unknown ;;
17989 case $lt_cv_dlopen_self_static in
17990 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17991 *) enable_dlopen_self_static=unknown ;;
17996 # The else clause should only fire when bootstrapping the
17997 # libtool distribution, otherwise you forgot to ship ltmain.sh
17998 # with your package, and you will get complaints that there are
17999 # no rules to generate ltmain.sh.
18000 if test -f "$ltmain"; then
18001 # See if we are running on zsh, and set the options which allow our commands through
18002 # without removal of \ escapes.
18003 if test -n "${ZSH_VERSION+set}" ; then
18004 setopt NO_GLOB_SUBST
18006 # Now quote all the things that may contain metacharacters while being
18007 # careful not to overquote the AC_SUBSTed values. We take copies of the
18008 # variables and quote the copies for generation of the libtool script.
18009 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18011 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18012 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18013 deplibs_check_method reload_flag reload_cmds need_locks \
18014 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18015 lt_cv_sys_global_symbol_to_c_name_address \
18016 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18017 old_postinstall_cmds old_postuninstall_cmds \
18021 lt_prog_compiler_wl_GCJ \
18022 lt_prog_compiler_pic_GCJ \
18023 lt_prog_compiler_static_GCJ \
18024 lt_prog_compiler_no_builtin_flag_GCJ \
18025 export_dynamic_flag_spec_GCJ \
18026 thread_safe_flag_spec_GCJ \
18027 whole_archive_flag_spec_GCJ \
18028 enable_shared_with_static_runtimes_GCJ \
18029 old_archive_cmds_GCJ \
18030 old_archive_from_new_cmds_GCJ \
18031 predep_objects_GCJ \
18032 postdep_objects_GCJ \
18035 compiler_lib_search_path_GCJ \
18037 archive_expsym_cmds_GCJ \
18038 postinstall_cmds_GCJ \
18039 postuninstall_cmds_GCJ \
18040 old_archive_from_expsyms_cmds_GCJ \
18041 allow_undefined_flag_GCJ \
18042 no_undefined_flag_GCJ \
18043 export_symbols_cmds_GCJ \
18044 hardcode_libdir_flag_spec_GCJ \
18045 hardcode_libdir_flag_spec_ld_GCJ \
18046 hardcode_libdir_separator_GCJ \
18047 hardcode_automatic_GCJ \
18049 module_expsym_cmds_GCJ \
18050 lt_cv_prog_compiler_c_o_GCJ \
18051 exclude_expsyms_GCJ \
18052 include_expsyms_GCJ; do
18055 old_archive_cmds_GCJ | \
18056 old_archive_from_new_cmds_GCJ | \
18057 archive_cmds_GCJ | \
18058 archive_expsym_cmds_GCJ | \
18059 module_cmds_GCJ | \
18060 module_expsym_cmds_GCJ | \
18061 old_archive_from_expsyms_cmds_GCJ | \
18062 export_symbols_cmds_GCJ | \
18063 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18064 postinstall_cmds | postuninstall_cmds | \
18065 old_postinstall_cmds | old_postuninstall_cmds | \
18066 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18067 # Double-quote double-evaled strings.
18068 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18077 *'\$0 --fallback-echo"')
18078 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18084 cat <<__EOF__ >> "$cfgfile"
18085 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18089 # Shell to use when invoking shell scripts.
18092 # Whether or not to build shared libraries.
18093 build_libtool_libs=$enable_shared
18095 # Whether or not to build static libraries.
18096 build_old_libs=$enable_static
18098 # Whether or not to add -lc for building shared libraries.
18099 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18101 # Whether or not to disallow shared libs when runtime libs are static
18102 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18104 # Whether or not to optimize for fast installation.
18105 fast_install=$enable_fast_install
18108 host_alias=$host_alias
18111 # An echo program that does not interpret backslashes.
18116 AR_FLAGS=$lt_AR_FLAGS
18121 # A language-specific compiler.
18122 CC=$lt_compiler_GCJ
18124 # Is the compiler the GNU C compiler?
18130 # The linker used to build libraries.
18133 # Whether we need hard or soft links.
18136 # A BSD-compatible nm program.
18139 # A symbol stripping program
18142 # Used to examine libraries when file_magic_cmd begins "file"
18143 MAGIC_CMD=$MAGIC_CMD
18145 # Used on cygwin: DLL creation program.
18148 # Used on cygwin: object dumper.
18151 # Used on cygwin: assembler.
18154 # The name of the directory that contains temporary libtool files.
18157 # How to create reloadable object files.
18158 reload_flag=$lt_reload_flag
18159 reload_cmds=$lt_reload_cmds
18161 # How to pass a linker flag through the compiler.
18162 wl=$lt_lt_prog_compiler_wl_GCJ
18164 # Object file suffix (normally "o").
18165 objext="$ac_objext"
18167 # Old archive suffix (normally "a").
18170 # Shared library suffix (normally ".so").
18173 # Executable file suffix (normally "").
18176 # Additional compiler flags for building library objects.
18177 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18180 # What is the maximum length of a command?
18181 max_cmd_len=$lt_cv_sys_max_cmd_len
18183 # Does compiler simultaneously support -c and -o options?
18184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18186 # Must we lock files when doing compilation ?
18187 need_locks=$lt_need_locks
18189 # Do we need the lib prefix for modules?
18190 need_lib_prefix=$need_lib_prefix
18192 # Do we need a version for libraries?
18193 need_version=$need_version
18195 # Whether dlopen is supported.
18196 dlopen_support=$enable_dlopen
18198 # Whether dlopen of programs is supported.
18199 dlopen_self=$enable_dlopen_self
18201 # Whether dlopen of statically linked programs is supported.
18202 dlopen_self_static=$enable_dlopen_self_static
18204 # Compiler flag to prevent dynamic linking.
18205 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18207 # Compiler flag to turn off builtin functions.
18208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18210 # Compiler flag to allow reflexive dlopens.
18211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18213 # Compiler flag to generate shared objects directly from archives.
18214 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18216 # Compiler flag to generate thread-safe objects.
18217 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18219 # Library versioning type.
18220 version_type=$version_type
18222 # Format of library name prefix.
18223 libname_spec=$lt_libname_spec
18225 # List of archive names. First name is the real one, the rest are links.
18226 # The last name is the one that the linker finds with -lNAME.
18227 library_names_spec=$lt_library_names_spec
18229 # The coded name of the library, if different from the real name.
18230 soname_spec=$lt_soname_spec
18232 # Commands used to build and install an old-style archive.
18234 old_archive_cmds=$lt_old_archive_cmds_GCJ
18235 old_postinstall_cmds=$lt_old_postinstall_cmds
18236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18238 # Create an old-style archive from a shared archive.
18239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18241 # Create a temporary old-style archive to link instead of a shared archive.
18242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18244 # Commands used to build and install a shared archive.
18245 archive_cmds=$lt_archive_cmds_GCJ
18246 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18247 postinstall_cmds=$lt_postinstall_cmds
18248 postuninstall_cmds=$lt_postuninstall_cmds
18250 # Commands used to build a loadable module (assumed same as above if empty)
18251 module_cmds=$lt_module_cmds_GCJ
18252 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18254 # Commands to strip libraries.
18255 old_striplib=$lt_old_striplib
18256 striplib=$lt_striplib
18258 # Dependencies to place before the objects being linked to create a
18260 predep_objects=$lt_predep_objects_GCJ
18262 # Dependencies to place after the objects being linked to create a
18264 postdep_objects=$lt_postdep_objects_GCJ
18266 # Dependencies to place before the objects being linked to create a
18268 predeps=$lt_predeps_GCJ
18270 # Dependencies to place after the objects being linked to create a
18272 postdeps=$lt_postdeps_GCJ
18274 # The library search path used internally by the compiler when linking
18275 # a shared library.
18276 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18278 # Method to check whether dependent libraries are shared objects.
18279 deplibs_check_method=$lt_deplibs_check_method
18281 # Command to use when deplibs_check_method == file_magic.
18282 file_magic_cmd=$lt_file_magic_cmd
18284 # Flag that allows shared libraries with undefined symbols to be built.
18285 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18287 # Flag that forces no undefined symbols.
18288 no_undefined_flag=$lt_no_undefined_flag_GCJ
18290 # Commands used to finish a libtool library installation in a directory.
18291 finish_cmds=$lt_finish_cmds
18293 # Same as above, but a single script fragment to be evaled but not shown.
18294 finish_eval=$lt_finish_eval
18296 # Take the output of nm and produce a listing of raw symbols and C names.
18297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18299 # Transform the output of nm in a proper C declaration
18300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18302 # Transform the output of nm in a C name address pair
18303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18305 # This is the shared library runtime path variable.
18306 runpath_var=$runpath_var
18308 # This is the shared library path variable.
18309 shlibpath_var=$shlibpath_var
18311 # Is shlibpath searched before the hard-coded library search path?
18312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18314 # How to hardcode a shared library path into an executable.
18315 hardcode_action=$hardcode_action_GCJ
18317 # Whether we should hardcode library paths into libraries.
18318 hardcode_into_libs=$hardcode_into_libs
18320 # Flag to hardcode \$libdir into a binary during linking.
18321 # This must work even if \$libdir does not exist.
18322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18324 # If ld is used when linking, flag to hardcode \$libdir into
18325 # a binary during linking. This must work even if \$libdir does
18327 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18329 # Whether we need a single -rpath flag with a separated argument.
18330 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18332 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18333 # resulting binary.
18334 hardcode_direct=$hardcode_direct_GCJ
18336 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18337 # resulting binary.
18338 hardcode_minus_L=$hardcode_minus_L_GCJ
18340 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18341 # the resulting binary.
18342 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18344 # Set to yes if building a shared library automatically hardcodes DIR into the library
18345 # and all subsequent libraries and executables linked against it.
18346 hardcode_automatic=$hardcode_automatic_GCJ
18348 # Variables whose values should be saved in libtool wrapper scripts and
18349 # restored at relink time.
18350 variables_saved_for_relink="$variables_saved_for_relink"
18352 # Whether libtool must link a program against all its dependency libraries.
18353 link_all_deplibs=$link_all_deplibs_GCJ
18355 # Compile-time system search path for libraries
18356 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18358 # Run-time system search path for libraries
18359 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18361 # Fix the shell variable \$srcfile for the compiler.
18362 fix_srcfile_path="$fix_srcfile_path_GCJ"
18364 # Set to yes if exported symbols are required.
18365 always_export_symbols=$always_export_symbols_GCJ
18367 # The commands to list exported symbols.
18368 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18370 # The commands to extract the exported symbol list from a shared archive.
18371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18373 # Symbols that should not be listed in the preloaded symbols.
18374 exclude_expsyms=$lt_exclude_expsyms_GCJ
18376 # Symbols that must always be exported.
18377 include_expsyms=$lt_include_expsyms_GCJ
18379 # ### END LIBTOOL TAG CONFIG: $tagname
18385 # If there is no Makefile yet, we rely on a make rule to execute
18386 # `config.status --recheck' to rerun these tests and create the
18387 # libtool script then.
18388 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18389 if test -f "$ltmain_in"; then
18390 test -f Makefile && make "$ltmain"
18396 ac_cpp='$CPP $CPPFLAGS'
18397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18411 # Source file extension for RC test sources.
18414 # Object file extension for compiled RC test sources.
18418 # Code to be used in simple compile tests
18419 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18421 # Code to be used in simple link tests
18422 lt_simple_link_test_code="$lt_simple_compile_test_code"
18424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18426 # If no C compiler was specified, use CC.
18429 # Allow CC to be a program name with arguments.
18433 # Allow CC to be a program name with arguments.
18438 lt_cv_prog_compiler_c_o_RC=yes
18440 # The else clause should only fire when bootstrapping the
18441 # libtool distribution, otherwise you forgot to ship ltmain.sh
18442 # with your package, and you will get complaints that there are
18443 # no rules to generate ltmain.sh.
18444 if test -f "$ltmain"; then
18445 # See if we are running on zsh, and set the options which allow our commands through
18446 # without removal of \ escapes.
18447 if test -n "${ZSH_VERSION+set}" ; then
18448 setopt NO_GLOB_SUBST
18450 # Now quote all the things that may contain metacharacters while being
18451 # careful not to overquote the AC_SUBSTed values. We take copies of the
18452 # variables and quote the copies for generation of the libtool script.
18453 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18457 deplibs_check_method reload_flag reload_cmds need_locks \
18458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18459 lt_cv_sys_global_symbol_to_c_name_address \
18460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18461 old_postinstall_cmds old_postuninstall_cmds \
18465 lt_prog_compiler_wl_RC \
18466 lt_prog_compiler_pic_RC \
18467 lt_prog_compiler_static_RC \
18468 lt_prog_compiler_no_builtin_flag_RC \
18469 export_dynamic_flag_spec_RC \
18470 thread_safe_flag_spec_RC \
18471 whole_archive_flag_spec_RC \
18472 enable_shared_with_static_runtimes_RC \
18473 old_archive_cmds_RC \
18474 old_archive_from_new_cmds_RC \
18475 predep_objects_RC \
18476 postdep_objects_RC \
18479 compiler_lib_search_path_RC \
18481 archive_expsym_cmds_RC \
18482 postinstall_cmds_RC \
18483 postuninstall_cmds_RC \
18484 old_archive_from_expsyms_cmds_RC \
18485 allow_undefined_flag_RC \
18486 no_undefined_flag_RC \
18487 export_symbols_cmds_RC \
18488 hardcode_libdir_flag_spec_RC \
18489 hardcode_libdir_flag_spec_ld_RC \
18490 hardcode_libdir_separator_RC \
18491 hardcode_automatic_RC \
18493 module_expsym_cmds_RC \
18494 lt_cv_prog_compiler_c_o_RC \
18495 exclude_expsyms_RC \
18496 include_expsyms_RC; do
18499 old_archive_cmds_RC | \
18500 old_archive_from_new_cmds_RC | \
18501 archive_cmds_RC | \
18502 archive_expsym_cmds_RC | \
18504 module_expsym_cmds_RC | \
18505 old_archive_from_expsyms_cmds_RC | \
18506 export_symbols_cmds_RC | \
18507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18508 postinstall_cmds | postuninstall_cmds | \
18509 old_postinstall_cmds | old_postuninstall_cmds | \
18510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18511 # Double-quote double-evaled strings.
18512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18521 *'\$0 --fallback-echo"')
18522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18528 cat <<__EOF__ >> "$cfgfile"
18529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18533 # Shell to use when invoking shell scripts.
18536 # Whether or not to build shared libraries.
18537 build_libtool_libs=$enable_shared
18539 # Whether or not to build static libraries.
18540 build_old_libs=$enable_static
18542 # Whether or not to add -lc for building shared libraries.
18543 build_libtool_need_lc=$archive_cmds_need_lc_RC
18545 # Whether or not to disallow shared libs when runtime libs are static
18546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18548 # Whether or not to optimize for fast installation.
18549 fast_install=$enable_fast_install
18552 host_alias=$host_alias
18555 # An echo program that does not interpret backslashes.
18560 AR_FLAGS=$lt_AR_FLAGS
18565 # A language-specific compiler.
18568 # Is the compiler the GNU C compiler?
18574 # The linker used to build libraries.
18577 # Whether we need hard or soft links.
18580 # A BSD-compatible nm program.
18583 # A symbol stripping program
18586 # Used to examine libraries when file_magic_cmd begins "file"
18587 MAGIC_CMD=$MAGIC_CMD
18589 # Used on cygwin: DLL creation program.
18592 # Used on cygwin: object dumper.
18595 # Used on cygwin: assembler.
18598 # The name of the directory that contains temporary libtool files.
18601 # How to create reloadable object files.
18602 reload_flag=$lt_reload_flag
18603 reload_cmds=$lt_reload_cmds
18605 # How to pass a linker flag through the compiler.
18606 wl=$lt_lt_prog_compiler_wl_RC
18608 # Object file suffix (normally "o").
18609 objext="$ac_objext"
18611 # Old archive suffix (normally "a").
18614 # Shared library suffix (normally ".so").
18617 # Executable file suffix (normally "").
18620 # Additional compiler flags for building library objects.
18621 pic_flag=$lt_lt_prog_compiler_pic_RC
18624 # What is the maximum length of a command?
18625 max_cmd_len=$lt_cv_sys_max_cmd_len
18627 # Does compiler simultaneously support -c and -o options?
18628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18630 # Must we lock files when doing compilation ?
18631 need_locks=$lt_need_locks
18633 # Do we need the lib prefix for modules?
18634 need_lib_prefix=$need_lib_prefix
18636 # Do we need a version for libraries?
18637 need_version=$need_version
18639 # Whether dlopen is supported.
18640 dlopen_support=$enable_dlopen
18642 # Whether dlopen of programs is supported.
18643 dlopen_self=$enable_dlopen_self
18645 # Whether dlopen of statically linked programs is supported.
18646 dlopen_self_static=$enable_dlopen_self_static
18648 # Compiler flag to prevent dynamic linking.
18649 link_static_flag=$lt_lt_prog_compiler_static_RC
18651 # Compiler flag to turn off builtin functions.
18652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18654 # Compiler flag to allow reflexive dlopens.
18655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18657 # Compiler flag to generate shared objects directly from archives.
18658 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18660 # Compiler flag to generate thread-safe objects.
18661 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18663 # Library versioning type.
18664 version_type=$version_type
18666 # Format of library name prefix.
18667 libname_spec=$lt_libname_spec
18669 # List of archive names. First name is the real one, the rest are links.
18670 # The last name is the one that the linker finds with -lNAME.
18671 library_names_spec=$lt_library_names_spec
18673 # The coded name of the library, if different from the real name.
18674 soname_spec=$lt_soname_spec
18676 # Commands used to build and install an old-style archive.
18678 old_archive_cmds=$lt_old_archive_cmds_RC
18679 old_postinstall_cmds=$lt_old_postinstall_cmds
18680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18682 # Create an old-style archive from a shared archive.
18683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18685 # Create a temporary old-style archive to link instead of a shared archive.
18686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18688 # Commands used to build and install a shared archive.
18689 archive_cmds=$lt_archive_cmds_RC
18690 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18691 postinstall_cmds=$lt_postinstall_cmds
18692 postuninstall_cmds=$lt_postuninstall_cmds
18694 # Commands used to build a loadable module (assumed same as above if empty)
18695 module_cmds=$lt_module_cmds_RC
18696 module_expsym_cmds=$lt_module_expsym_cmds_RC
18698 # Commands to strip libraries.
18699 old_striplib=$lt_old_striplib
18700 striplib=$lt_striplib
18702 # Dependencies to place before the objects being linked to create a
18704 predep_objects=$lt_predep_objects_RC
18706 # Dependencies to place after the objects being linked to create a
18708 postdep_objects=$lt_postdep_objects_RC
18710 # Dependencies to place before the objects being linked to create a
18712 predeps=$lt_predeps_RC
18714 # Dependencies to place after the objects being linked to create a
18716 postdeps=$lt_postdeps_RC
18718 # The library search path used internally by the compiler when linking
18719 # a shared library.
18720 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18722 # Method to check whether dependent libraries are shared objects.
18723 deplibs_check_method=$lt_deplibs_check_method
18725 # Command to use when deplibs_check_method == file_magic.
18726 file_magic_cmd=$lt_file_magic_cmd
18728 # Flag that allows shared libraries with undefined symbols to be built.
18729 allow_undefined_flag=$lt_allow_undefined_flag_RC
18731 # Flag that forces no undefined symbols.
18732 no_undefined_flag=$lt_no_undefined_flag_RC
18734 # Commands used to finish a libtool library installation in a directory.
18735 finish_cmds=$lt_finish_cmds
18737 # Same as above, but a single script fragment to be evaled but not shown.
18738 finish_eval=$lt_finish_eval
18740 # Take the output of nm and produce a listing of raw symbols and C names.
18741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18743 # Transform the output of nm in a proper C declaration
18744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18746 # Transform the output of nm in a C name address pair
18747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18749 # This is the shared library runtime path variable.
18750 runpath_var=$runpath_var
18752 # This is the shared library path variable.
18753 shlibpath_var=$shlibpath_var
18755 # Is shlibpath searched before the hard-coded library search path?
18756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18758 # How to hardcode a shared library path into an executable.
18759 hardcode_action=$hardcode_action_RC
18761 # Whether we should hardcode library paths into libraries.
18762 hardcode_into_libs=$hardcode_into_libs
18764 # Flag to hardcode \$libdir into a binary during linking.
18765 # This must work even if \$libdir does not exist.
18766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18768 # If ld is used when linking, flag to hardcode \$libdir into
18769 # a binary during linking. This must work even if \$libdir does
18771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18773 # Whether we need a single -rpath flag with a separated argument.
18774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18777 # resulting binary.
18778 hardcode_direct=$hardcode_direct_RC
18780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18781 # resulting binary.
18782 hardcode_minus_L=$hardcode_minus_L_RC
18784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18785 # the resulting binary.
18786 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18788 # Set to yes if building a shared library automatically hardcodes DIR into the library
18789 # and all subsequent libraries and executables linked against it.
18790 hardcode_automatic=$hardcode_automatic_RC
18792 # Variables whose values should be saved in libtool wrapper scripts and
18793 # restored at relink time.
18794 variables_saved_for_relink="$variables_saved_for_relink"
18796 # Whether libtool must link a program against all its dependency libraries.
18797 link_all_deplibs=$link_all_deplibs_RC
18799 # Compile-time system search path for libraries
18800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18802 # Run-time system search path for libraries
18803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18805 # Fix the shell variable \$srcfile for the compiler.
18806 fix_srcfile_path="$fix_srcfile_path_RC"
18808 # Set to yes if exported symbols are required.
18809 always_export_symbols=$always_export_symbols_RC
18811 # The commands to list exported symbols.
18812 export_symbols_cmds=$lt_export_symbols_cmds_RC
18814 # The commands to extract the exported symbol list from a shared archive.
18815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18817 # Symbols that should not be listed in the preloaded symbols.
18818 exclude_expsyms=$lt_exclude_expsyms_RC
18820 # Symbols that must always be exported.
18821 include_expsyms=$lt_include_expsyms_RC
18823 # ### END LIBTOOL TAG CONFIG: $tagname
18829 # If there is no Makefile yet, we rely on a make rule to execute
18830 # `config.status --recheck' to rerun these tests and create the
18831 # libtool script then.
18832 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18833 if test -f "$ltmain_in"; then
18834 test -f Makefile && make "$ltmain"
18840 ac_cpp='$CPP $CPPFLAGS'
18841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18850 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18851 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18852 { (exit 1); exit 1; }; }
18856 # Append the new tag name to the list of available tags.
18857 if test -n "$tagname" ; then
18858 available_tags="$available_tags $tagname"
18864 # Now substitute the updated list of available tags.
18865 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18866 mv "${ofile}T" "$ofile"
18870 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18871 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18872 { (exit 1); exit 1; }; }
18878 # This can be used to rebuild libtool when needed
18879 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18881 # Always use our own libtool.
18882 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18884 # Prevent multiple expansion
18905 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
18906 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
18908 # Settings for optional paths
18910 # Check whether --with-site_includes was given.
18911 if test "${with_site_includes+set}" = set; then
18912 withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
18914 SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
18916 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^ *//'`
18919 if test -f /sw/include/db3/db.h; then
18920 CFLAGS="-I/sw/include/db3 $CFLAGS"
18921 elif test -f /sw/include/db4/db.h; then
18922 CFLAGS="-I/sw/include/db4 $CFLAGS"
18929 # Check whether --with-site_libraries was given.
18930 if test "${with_site_libraries+set}" = set; then
18931 withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
18933 SITE_LIBS="$SITE_LIBS -L$dir"
18935 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^ *//'`
18939 if test -f /sw/include/db3/db.h; then
18940 LIBS="-L/sw/lib -ldb-3 $LIBS"
18941 elif test -f /sw/include/db4/db.h; then
18942 LIBS="-L/sw/lib -ldb-4 $LIBS"
18950 # Checks for libraries.
18952 # Checks for header files.
18954 # Checks for typedefs, structures, and compiler characteristics.
18955 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18956 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18957 if test "${ac_cv_c_const+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18970 /* FIXME: Include the comments suggested by Paul. */
18971 #ifndef __cplusplus
18972 /* Ultrix mips cc rejects this. */
18973 typedef int charset[2];
18975 /* SunOS 4.1.1 cc rejects this. */
18976 char const *const *pcpcc;
18978 /* NEC SVR4.0.2 mips cc rejects this. */
18979 struct point {int x, y;};
18980 static struct point const zero = {0,0};
18981 /* AIX XL C 1.02.0.0 rejects this.
18982 It does not let you subtract one const X* pointer from another in
18983 an arm of an if-expression whose if-part is not a constant
18985 const char *g = "string";
18986 pcpcc = &g + (g ? g-g : 0);
18987 /* HPUX 7.0 cc rejects these. */
18989 ppc = (char**) pcpcc;
18990 pcpcc = (char const *const *) ppc;
18991 { /* SCO 3.2v4 cc rejects this. */
18993 char const *s = 0 ? (char *) 0 : (char const *) 0;
18998 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18999 int x[] = {25, 17};
19000 const int *foo = &x[0];
19003 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19004 typedef const int *iptr;
19008 { /* AIX XL C 1.02.0.0 rejects this saying
19009 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19010 struct s { int j; const int *ap[3]; };
19011 struct s *b; b->j = 5;
19013 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19014 const int foo = 10;
19015 if (!foo) return 0;
19017 return !cs[0] && !zero.x;
19024 rm -f conftest.$ac_objext
19025 if { (ac_try="$ac_compile"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_compile") 2>conftest.er1
19033 grep -v '^ *+' conftest.er1 >conftest.err
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } && {
19038 test -z "$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19040 } && test -s conftest.$ac_objext; then
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19051 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19052 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19053 if test $ac_cv_c_const = no; then
19055 cat >>confdefs.h <<\_ACEOF
19061 { echo "$as_me:$LINENO: checking for inline" >&5
19062 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19063 if test "${ac_cv_c_inline+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 for ac_kw in inline __inline__ __inline; do
19068 cat >conftest.$ac_ext <<_ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 #ifndef __cplusplus
19076 static $ac_kw foo_t static_foo () {return 0; }
19077 $ac_kw foo_t foo () {return 0; }
19081 rm -f conftest.$ac_objext
19082 if { (ac_try="$ac_compile"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_compile") 2>conftest.er1
19090 grep -v '^ *+' conftest.er1 >conftest.err
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest.$ac_objext; then
19098 ac_cv_c_inline=$ac_kw
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 test "$ac_cv_c_inline" != no && break
19111 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19112 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19115 case $ac_cv_c_inline in
19118 case $ac_cv_c_inline in
19120 *) ac_val=$ac_cv_c_inline;;
19122 cat >>confdefs.h <<_ACEOF
19123 #ifndef __cplusplus
19124 #define inline $ac_val
19131 # Checks for library functions.
19132 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19133 # for constant arguments. Useless!
19134 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19135 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19136 if test "${ac_cv_working_alloca_h+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 #include <alloca.h>
19149 char *p = (char *) alloca (2 * sizeof (int));
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (ac_try="$ac_link"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162 (eval "$ac_link") 2>conftest.er1
19164 grep -v '^ *+' conftest.er1 >conftest.err
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest$ac_exeext &&
19172 $as_test_x conftest$ac_exeext; then
19173 ac_cv_working_alloca_h=yes
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19178 ac_cv_working_alloca_h=no
19181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19182 conftest$ac_exeext conftest.$ac_ext
19184 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19185 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19186 if test $ac_cv_working_alloca_h = yes; then
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_ALLOCA_H 1
19194 { echo "$as_me:$LINENO: checking for alloca" >&5
19195 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19196 if test "${ac_cv_func_alloca_works+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 cat >conftest.$ac_ext <<_ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19206 # define alloca __builtin_alloca
19209 # include <malloc.h>
19210 # define alloca _alloca
19212 # ifdef HAVE_ALLOCA_H
19213 # include <alloca.h>
19218 # ifndef alloca /* predefined by HP cc +Olibcalls */
19229 char *p = (char *) alloca (1);
19235 rm -f conftest.$ac_objext conftest$ac_exeext
19236 if { (ac_try="$ac_link"
19237 case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_link") 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } && {
19249 test -z "$ac_c_werror_flag" ||
19250 test ! -s conftest.err
19251 } && test -s conftest$ac_exeext &&
19252 $as_test_x conftest$ac_exeext; then
19253 ac_cv_func_alloca_works=yes
19255 echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19258 ac_cv_func_alloca_works=no
19261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19262 conftest$ac_exeext conftest.$ac_ext
19264 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19265 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19267 if test $ac_cv_func_alloca_works = yes; then
19269 cat >>confdefs.h <<\_ACEOF
19270 #define HAVE_ALLOCA 1
19274 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19275 # that cause trouble. Some versions do not even contain alloca or
19276 # contain a buggy version. If you still want to use their alloca,
19277 # use ar to extract alloca.o from them instead of compiling alloca.c.
19279 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19281 cat >>confdefs.h <<\_ACEOF
19286 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19287 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19288 if test "${ac_cv_os_cray+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 #if defined CRAY && ! defined CRAY2
19304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19305 $EGREP "webecray" >/dev/null 2>&1; then
19313 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19314 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19315 if test $ac_cv_os_cray = yes; then
19316 for ac_func in _getb67 GETB67 getb67; do
19317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19331 #define $ac_func innocuous_$ac_func
19333 /* System header to define __stub macros and hopefully few prototypes,
19334 which can conflict with char $ac_func (); below.
19335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336 <limits.h> exists even on freestanding compilers. */
19339 # include <limits.h>
19341 # include <assert.h>
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19353 /* The GNU C library defines this for functions which it implements
19354 to always fail with ENOSYS. Some functions are actually named
19355 something starting with __ and the normal name is an alias. */
19356 #if defined __stub_$ac_func || defined __stub___$ac_func
19363 return $ac_func ();
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_link") 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_c_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest$ac_exeext &&
19385 $as_test_x conftest$ac_exeext; then
19386 eval "$as_ac_var=yes"
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 eval "$as_ac_var=no"
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19397 ac_res=`eval echo '${'$as_ac_var'}'`
19398 { echo "$as_me:$LINENO: result: $ac_res" >&5
19399 echo "${ECHO_T}$ac_res" >&6; }
19400 if test `eval echo '${'$as_ac_var'}'` = yes; then
19402 cat >>confdefs.h <<_ACEOF
19403 #define CRAY_STACKSEG_END $ac_func
19412 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19413 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19414 if test "${ac_cv_c_stack_direction+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 if test "$cross_compiling" = yes; then
19418 ac_cv_c_stack_direction=0
19420 cat >conftest.$ac_ext <<_ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 $ac_includes_default
19428 find_stack_direction ()
19430 static char *addr = 0;
19435 return find_stack_direction ();
19438 return (&dummy > addr) ? 1 : -1;
19444 return find_stack_direction () < 0;
19447 rm -f conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_c_stack_direction=1
19469 echo "$as_me: program exited with status $ac_status" >&5
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 ( exit $ac_status )
19474 ac_cv_c_stack_direction=-1
19476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19481 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19482 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19484 cat >>confdefs.h <<_ACEOF
19485 #define STACK_DIRECTION $ac_cv_c_stack_direction
19492 cat >>confdefs.h <<\_ACEOF
19493 #define _GNU_SOURCE 1
19498 { echo "$as_me:$LINENO: checking for AIX" >&5
19499 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19512 $EGREP "yes" >/dev/null 2>&1; then
19513 { echo "$as_me:$LINENO: result: yes" >&5
19514 echo "${ECHO_T}yes" >&6; }
19515 cat >>confdefs.h <<\_ACEOF
19516 #define _ALL_SOURCE 1
19520 { echo "$as_me:$LINENO: result: no" >&5
19521 echo "${ECHO_T}no" >&6; }
19526 if test "${ac_cv_header_minix_config_h+set}" = set; then
19527 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
19528 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
19529 if test "${ac_cv_header_minix_config_h+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19533 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
19535 # Is the header compilable?
19536 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
19537 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
19538 cat >conftest.$ac_ext <<_ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19544 $ac_includes_default
19545 #include <minix/config.h>
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1 >conftest.err
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_header_compiler=yes
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_header_compiler=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 echo "${ECHO_T}$ac_header_compiler" >&6; }
19576 # Is the header present?
19577 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
19578 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <minix/config.h>
19587 if { (ac_try="$ac_cpp conftest.$ac_ext"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19595 grep -v '^ *+' conftest.er1 >conftest.err
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } >/dev/null && {
19600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19601 test ! -s conftest.err
19603 ac_header_preproc=yes
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 ac_header_preproc=no
19611 rm -f conftest.err conftest.$ac_ext
19612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19613 echo "${ECHO_T}$ac_header_preproc" >&6; }
19615 # So? What about this header?
19616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19618 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
19619 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19620 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
19621 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
19622 ac_header_preproc=yes
19625 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
19626 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
19628 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
19630 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
19632 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
19634 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
19636 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
19638 ## -------------------------------- ##
19639 ## Report this to chise-en@m17n.org ##
19640 ## -------------------------------- ##
19642 ) | sed "s/^/$as_me: WARNING: /" >&2
19645 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
19646 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
19647 if test "${ac_cv_header_minix_config_h+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 ac_cv_header_minix_config_h=$ac_header_preproc
19652 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19653 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
19656 if test $ac_cv_header_minix_config_h = yes; then
19663 if test "$MINIX" = yes; then
19665 cat >>confdefs.h <<\_ACEOF
19666 #define _POSIX_SOURCE 1
19670 cat >>confdefs.h <<\_ACEOF
19671 #define _POSIX_1_SOURCE 2
19675 cat >>confdefs.h <<\_ACEOF
19691 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
19692 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
19693 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19703 # define __EXTENSIONS__ 1
19704 $ac_includes_default
19713 rm -f conftest.$ac_objext
19714 if { (ac_try="$ac_compile"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_compile") 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest.$ac_objext; then
19730 ac_cv_safe_to_define___extensions__=yes
19732 echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19735 ac_cv_safe_to_define___extensions__=no
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
19741 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
19742 test $ac_cv_safe_to_define___extensions__ = yes &&
19743 cat >>confdefs.h <<\_ACEOF
19744 #define __EXTENSIONS__ 1
19747 cat >>confdefs.h <<\_ACEOF
19748 #define _POSIX_PTHREAD_SEMANTICS 1
19751 cat >>confdefs.h <<\_ACEOF
19752 #define _TANDEM_SOURCE 1
19756 { echo "$as_me:$LINENO: checking for working strnlen" >&5
19757 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
19758 if test "${ac_cv_func_strnlen_working+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 if test "$cross_compiling" = yes; then
19762 ac_cv_func_strnlen_working=no
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 $ac_includes_default
19776 #define S_LEN (sizeof S - 1)
19778 /* At least one implementation is buggy: that of AIX 4.3 would
19779 give strnlen (S, 1) == 3. */
19782 for (i = 0; i < S_LEN + 1; ++i)
19784 int expected = i <= S_LEN ? i : S_LEN;
19785 if (strnlen (S, i) != expected)
19794 rm -f conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19805 { (case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_try") 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_cv_func_strnlen_working=yes
19816 echo "$as_me: program exited with status $ac_status" >&5
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ( exit $ac_status )
19821 ac_cv_func_strnlen_working=no
19823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19828 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
19829 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
19830 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
19831 *" strnlen.$ac_objext "* ) ;;
19832 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
19839 for ac_func in strnlen
19841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19855 #define $ac_func innocuous_$ac_func
19857 /* System header to define __stub macros and hopefully few prototypes,
19858 which can conflict with char $ac_func (); below.
19859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19860 <limits.h> exists even on freestanding compilers. */
19863 # include <limits.h>
19865 # include <assert.h>
19870 /* Override any GCC internal prototype to avoid an error.
19871 Use char because int might match the return type of a GCC
19872 builtin and then its argument prototype would still apply. */
19877 /* The GNU C library defines this for functions which it implements
19878 to always fail with ENOSYS. Some functions are actually named
19879 something starting with __ and the normal name is an alias. */
19880 #if defined __stub_$ac_func || defined __stub___$ac_func
19887 return $ac_func ();
19892 rm -f conftest.$ac_objext conftest$ac_exeext
19893 if { (ac_try="$ac_link"
19894 case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_link") 2>conftest.er1
19901 grep -v '^ *+' conftest.er1 >conftest.err
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest$ac_exeext &&
19909 $as_test_x conftest$ac_exeext; then
19910 eval "$as_ac_var=yes"
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 eval "$as_ac_var=no"
19918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19919 conftest$ac_exeext conftest.$ac_ext
19921 ac_res=`eval echo '${'$as_ac_var'}'`
19922 { echo "$as_me:$LINENO: result: $ac_res" >&5
19923 echo "${ECHO_T}$ac_res" >&6; }
19924 if test `eval echo '${'$as_ac_var'}'` = yes; then
19925 cat >>confdefs.h <<_ACEOF
19926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19933 ac_config_files="$ac_config_files Makefile"
19935 cat >confcache <<\_ACEOF
19936 # This file is a shell script that caches the results of configure
19937 # tests run on this system so they can be shared between configure
19938 # scripts and configure runs, see configure's option --config-cache.
19939 # It is not useful on other systems. If it contains results you don't
19940 # want to keep, you may remove or edit it.
19942 # config.status only pays attention to the cache file if you give it
19943 # the --recheck option to rerun configure.
19945 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19946 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19947 # following values.
19951 # The following way of writing the cache mishandles newlines in values,
19952 # but we know of no workaround that is simple, portable, and efficient.
19953 # So, we kill variables containing newlines.
19954 # Ultrix sh set writes to stderr and can't be redirected directly,
19955 # and sets the high bit in the cache file unless we assign to the vars.
19957 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19958 eval ac_val=\$$ac_var
19962 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19963 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19966 _ | IFS | as_nl) ;; #(
19967 *) $as_unset $ac_var ;;
19973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19974 *${as_nl}ac_space=\ *)
19975 # `set' does not quote correctly, so add quotes (double-quote
19976 # substitution turns \\\\ into \\, and sed turns \\ into \).
19979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19982 # `set' quotes correctly as required by POSIX, so do not add quotes.
19983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19996 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19997 if test -w "$cache_file"; then
19998 test "x$cache_file" != "x/dev/null" &&
19999 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20000 echo "$as_me: updating cache $cache_file" >&6;}
20001 cat confcache >$cache_file
20003 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20004 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20010 # Let make expand exec_prefix.
20011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20013 DEFS=-DHAVE_CONFIG_H
20017 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20018 # 1. Remove the extension, and $U if already installed.
20019 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20020 ac_i=`echo "$ac_i" | sed "$ac_script"`
20021 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20022 # will be set to the directory where LIBOBJS objects are built.
20023 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20024 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20026 LIBOBJS=$ac_libobjs
20028 LTLIBOBJS=$ac_ltlibobjs
20032 : ${CONFIG_STATUS=./config.status}
20033 ac_clean_files_save=$ac_clean_files
20034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20035 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20036 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20037 cat >$CONFIG_STATUS <<_ACEOF
20039 # Generated by $as_me.
20040 # Run this file to recreate the current configuration.
20041 # Compiler output produced by configure, useful for debugging
20042 # configure, is in config.log if it exists.
20045 ac_cs_recheck=false
20047 SHELL=\${CONFIG_SHELL-$SHELL}
20050 cat >>$CONFIG_STATUS <<\_ACEOF
20051 ## --------------------- ##
20052 ## M4sh Initialization. ##
20053 ## --------------------- ##
20055 # Be more Bourne compatible
20056 DUALCASE=1; export DUALCASE # for MKS sh
20057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20060 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20061 # is contrary to our usage. Disable this feature.
20062 alias -g '${1+"$@"}'='"$@"'
20063 setopt NO_GLOB_SUBST
20065 case `(set -o) 2>/dev/null` in
20066 *posix*) set -o posix ;;
20075 # Avoid depending upon Character Ranges.
20076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20079 as_cr_digits='0123456789'
20080 as_cr_alnum=$as_cr_Letters$as_cr_digits
20082 # The user is always right.
20083 if test "${PATH_SEPARATOR+set}" != set; then
20084 echo "#! /bin/sh" >conf$$.sh
20085 echo "exit 0" >>conf$$.sh
20087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20095 # Support unset when possible.
20096 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20104 # We need space, tab and new line, in precisely that order. Quoting is
20105 # there to prevent editors from complaining about space-tab.
20106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20107 # splitting by setting IFS to empty value.)
20112 # Find who we are. Look in the path if we contain no directory separator.
20114 *[\\/]* ) as_myself=$0 ;;
20115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20116 for as_dir in $PATH
20119 test -z "$as_dir" && as_dir=.
20120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20126 # We did not find ourselves, most probably we were run as `sh COMMAND'
20127 # in which case we are not to be found in the path.
20128 if test "x$as_myself" = x; then
20131 if test ! -f "$as_myself"; then
20132 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20133 { (exit 1); exit 1; }
20136 # Work around bugs in pre-3.0 UWIN ksh.
20137 for as_var in ENV MAIL MAILPATH
20138 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20146 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20147 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20148 LC_TELEPHONE LC_TIME
20150 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20151 eval $as_var=C; export $as_var
20153 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20157 # Required to use basename.
20158 if expr a : '\(a\)' >/dev/null 2>&1 &&
20159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20166 as_basename=basename
20172 # Name of the executable.
20173 as_me=`$as_basename -- "$0" ||
20174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20175 X"$0" : 'X\(//\)$' \| \
20176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20178 sed '/^.*\/\([^/][^/]*\)\/*$/{
20197 as_lineno_1=$LINENO
20198 as_lineno_2=$LINENO
20199 test "x$as_lineno_1" != "x$as_lineno_2" &&
20200 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20203 # uniformly replaced by the line number. The first 'sed' inserts a
20204 # line-number line after each line using $LINENO; the second 'sed'
20205 # does the real work. The second script uses 'N' to pair each
20206 # line-number line with the line containing $LINENO, and appends
20207 # trailing '-' during substitution so that $LINENO is not a special
20208 # case at line end.
20209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20210 # scripts with optimization help from Paolo Bonzini. Blame Lee
20211 # E. McMahon (1931-1989) for sed's syntax. :-)
20223 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20226 ' >$as_me.lineno &&
20227 chmod +x "$as_me.lineno" ||
20228 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20229 { (exit 1); exit 1; }; }
20231 # Don't try to exec as it changes $[0], causing all sort of problems
20232 # (the dirname of $[0] is not the place where we might find the
20233 # original and so on. Autoconf is especially sensitive to this).
20234 . "./$as_me.lineno"
20235 # Exit status is that of the last command.
20240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20246 ECHO_C= ECHO_N= ECHO_T=
20247 case `echo -n x` in
20249 case `echo 'x\c'` in
20250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20257 if expr a : '\(a\)' >/dev/null 2>&1 &&
20258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20264 rm -f conf$$ conf$$.exe conf$$.file
20265 if test -d conf$$.dir; then
20266 rm -f conf$$.dir/conf$$.file
20272 if ln -s conf$$.file conf$$ 2>/dev/null; then
20274 # ... but there are two gotchas:
20275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20277 # In both cases, we have to default to `cp -p'.
20278 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20280 elif ln conf$$.file conf$$ 2>/dev/null; then
20285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20286 rmdir conf$$.dir 2>/dev/null
20288 if mkdir -p . 2>/dev/null; then
20291 test -d ./-p && rmdir ./-p
20295 if test -x / >/dev/null 2>&1; then
20296 as_test_x='test -x'
20298 if ls -dL / >/dev/null 2>&1; then
20305 if test -d "$1"; then
20311 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20312 ???[sx]*):;;*)false;;esac;fi
20316 as_executable_p=$as_test_x
20318 # Sed expression to map a string onto a valid CPP name.
20319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20321 # Sed expression to map a string onto a valid variable name.
20322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20327 # Save the log message, to keep $[0] and so on meaningful, and to
20328 # report actual input values of CONFIG_FILES etc. instead of their
20329 # values after options handling.
20331 This file was extended by concord $as_me 0.0.2, which was
20332 generated by GNU Autoconf 2.61. Invocation command line was
20334 CONFIG_FILES = $CONFIG_FILES
20335 CONFIG_HEADERS = $CONFIG_HEADERS
20336 CONFIG_LINKS = $CONFIG_LINKS
20337 CONFIG_COMMANDS = $CONFIG_COMMANDS
20340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20345 cat >>$CONFIG_STATUS <<_ACEOF
20346 # Files that config.status was made for.
20347 config_files="$ac_config_files"
20348 config_headers="$ac_config_headers"
20352 cat >>$CONFIG_STATUS <<\_ACEOF
20354 \`$as_me' instantiates files from templates according to the
20355 current configuration.
20357 Usage: $0 [OPTIONS] [FILE]...
20359 -h, --help print this help, then exit
20360 -V, --version print version number and configuration settings, then exit
20361 -q, --quiet do not print progress messages
20362 -d, --debug don't remove temporary files
20363 --recheck update $as_me by reconfiguring in the same conditions
20364 --file=FILE[:TEMPLATE]
20365 instantiate the configuration file FILE
20366 --header=FILE[:TEMPLATE]
20367 instantiate the configuration header FILE
20369 Configuration files:
20372 Configuration headers:
20375 Report bugs to <bug-autoconf@gnu.org>."
20378 cat >>$CONFIG_STATUS <<_ACEOF
20380 concord config.status 0.0.2
20381 configured by $0, generated by GNU Autoconf 2.61,
20382 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20384 Copyright (C) 2006 Free Software Foundation, Inc.
20385 This config.status script is free software; the Free Software Foundation
20386 gives unlimited permission to copy, distribute and modify it."
20392 cat >>$CONFIG_STATUS <<\_ACEOF
20393 # If no file are specified by the user, then we need to provide default
20394 # value. By we need to know if files were specified by the user.
20400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20401 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20412 # Handling of the options.
20413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20416 echo "$ac_cs_version"; exit ;;
20417 --debug | --debu | --deb | --de | --d | -d )
20419 --file | --fil | --fi | --f )
20421 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20422 ac_need_defaults=false;;
20423 --header | --heade | --head | --hea )
20425 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20426 ac_need_defaults=false;;
20428 # Conflict between --help and --header
20429 { echo "$as_me: error: ambiguous option: $1
20430 Try \`$0 --help' for more information." >&2
20431 { (exit 1); exit 1; }; };;
20432 --help | --hel | -h )
20433 echo "$ac_cs_usage"; exit ;;
20434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20438 # This is an error.
20439 -*) { echo "$as_me: error: unrecognized option: $1
20440 Try \`$0 --help' for more information." >&2
20441 { (exit 1); exit 1; }; } ;;
20443 *) ac_config_targets="$ac_config_targets $1"
20444 ac_need_defaults=false ;;
20450 ac_configure_extra_args=
20452 if $ac_cs_silent; then
20454 ac_configure_extra_args="$ac_configure_extra_args --silent"
20458 cat >>$CONFIG_STATUS <<_ACEOF
20459 if \$ac_cs_recheck; then
20460 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20461 CONFIG_SHELL=$SHELL
20462 export CONFIG_SHELL
20463 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20467 cat >>$CONFIG_STATUS <<\_ACEOF
20471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20472 ## Running $as_me. ##
20478 cat >>$CONFIG_STATUS <<_ACEOF
20481 cat >>$CONFIG_STATUS <<\_ACEOF
20483 # Handling of arguments.
20484 for ac_config_target in $ac_config_targets
20486 case $ac_config_target in
20487 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20492 { (exit 1); exit 1; }; };;
20497 # If the user did not use the arguments to specify the items to instantiate,
20498 # then the envvar interface is used. Set only those that are not.
20499 # We use the long form for the default assignment because of an extremely
20500 # bizarre bug on SunOS 4.1.3.
20501 if $ac_need_defaults; then
20502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20506 # Have a temporary directory for convenience. Make it in the build tree
20507 # simply because there is no reason against having it here, and in addition,
20508 # creating and moving files from /tmp can sometimes cause problems.
20509 # Hook for its removal unless debugging.
20510 # Note that there is a small window in which the directory will not be cleaned:
20511 # after its creation but before its name has been assigned to `$tmp'.
20515 trap 'exit_status=$?
20516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20518 trap '{ (exit 1); exit 1; }' 1 2 13 15
20520 # Create a (secure) tmp directory for tmp files.
20523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20524 test -n "$tmp" && test -d "$tmp"
20527 tmp=./conf$$-$RANDOM
20528 (umask 077 && mkdir "$tmp")
20531 echo "$me: cannot create a temporary directory in ." >&2
20532 { (exit 1); exit 1; }
20536 # Set up the sed scripts for CONFIG_FILES section.
20539 # No need to generate the scripts if there are no CONFIG_FILES.
20540 # This happens for instance when ./config.status config.h
20541 if test -n "$CONFIG_FILES"; then
20548 for ac_last_try in false false false false false :; do
20549 cat >conf$$subs.sed <<_ACEOF
20550 SHELL!$SHELL$ac_delim
20551 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20552 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20553 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20554 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20555 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20556 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20557 exec_prefix!$exec_prefix$ac_delim
20558 prefix!$prefix$ac_delim
20559 program_transform_name!$program_transform_name$ac_delim
20560 bindir!$bindir$ac_delim
20561 sbindir!$sbindir$ac_delim
20562 libexecdir!$libexecdir$ac_delim
20563 datarootdir!$datarootdir$ac_delim
20564 datadir!$datadir$ac_delim
20565 sysconfdir!$sysconfdir$ac_delim
20566 sharedstatedir!$sharedstatedir$ac_delim
20567 localstatedir!$localstatedir$ac_delim
20568 includedir!$includedir$ac_delim
20569 oldincludedir!$oldincludedir$ac_delim
20570 docdir!$docdir$ac_delim
20571 infodir!$infodir$ac_delim
20572 htmldir!$htmldir$ac_delim
20573 dvidir!$dvidir$ac_delim
20574 pdfdir!$pdfdir$ac_delim
20575 psdir!$psdir$ac_delim
20576 libdir!$libdir$ac_delim
20577 localedir!$localedir$ac_delim
20578 mandir!$mandir$ac_delim
20579 DEFS!$DEFS$ac_delim
20580 ECHO_C!$ECHO_C$ac_delim
20581 ECHO_N!$ECHO_N$ac_delim
20582 ECHO_T!$ECHO_T$ac_delim
20583 LIBS!$LIBS$ac_delim
20584 build_alias!$build_alias$ac_delim
20585 host_alias!$host_alias$ac_delim
20586 target_alias!$target_alias$ac_delim
20587 build!$build$ac_delim
20588 build_cpu!$build_cpu$ac_delim
20589 build_vendor!$build_vendor$ac_delim
20590 build_os!$build_os$ac_delim
20591 host!$host$ac_delim
20592 host_cpu!$host_cpu$ac_delim
20593 host_vendor!$host_vendor$ac_delim
20594 host_os!$host_os$ac_delim
20595 target!$target$ac_delim
20596 target_cpu!$target_cpu$ac_delim
20597 target_vendor!$target_vendor$ac_delim
20598 target_os!$target_os$ac_delim
20600 CFLAGS!$CFLAGS$ac_delim
20601 LDFLAGS!$LDFLAGS$ac_delim
20602 CPPFLAGS!$CPPFLAGS$ac_delim
20603 ac_ct_CC!$ac_ct_CC$ac_delim
20604 EXEEXT!$EXEEXT$ac_delim
20605 OBJEXT!$OBJEXT$ac_delim
20606 GREP!$GREP$ac_delim
20607 EGREP!$EGREP$ac_delim
20608 LN_S!$LN_S$ac_delim
20609 ECHO!$ECHO$ac_delim
20611 RANLIB!$RANLIB$ac_delim
20612 STRIP!$STRIP$ac_delim
20615 CXXFLAGS!$CXXFLAGS$ac_delim
20616 ac_ct_CXX!$ac_ct_CXX$ac_delim
20617 CXXCPP!$CXXCPP$ac_delim
20619 FFLAGS!$FFLAGS$ac_delim
20620 ac_ct_F77!$ac_ct_F77$ac_delim
20621 LIBTOOL!$LIBTOOL$ac_delim
20622 ALLOCA!$ALLOCA$ac_delim
20623 LIBOBJS!$LIBOBJS$ac_delim
20624 LTLIBOBJS!$LTLIBOBJS$ac_delim
20627 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
20629 elif $ac_last_try; then
20630 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20631 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20632 { (exit 1); exit 1; }; }
20634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20638 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20639 if test -n "$ac_eof"; then
20640 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20641 ac_eof=`expr $ac_eof + 1`
20644 cat >>$CONFIG_STATUS <<_ACEOF
20645 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20649 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20650 s/^/s,@/; s/!/@,|#_!!_#|/
20653 s/'"$ac_delim"'$/,g/; t
20655 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20656 ' >>$CONFIG_STATUS <conf$$subs.sed
20657 rm -f conf$$subs.sed
20658 cat >>$CONFIG_STATUS <<_ACEOF
20665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20667 # trailing colons and then remove the whole line if VPATH becomes empty
20668 # (actually we leave an empty line to preserve line numbers).
20669 if test "x$srcdir" = x.; then
20670 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20671 s/:*\$(srcdir):*/:/
20672 s/:*\${srcdir}:*/:/
20674 s/^\([^=]*=[ ]*\):*/\1/
20680 cat >>$CONFIG_STATUS <<\_ACEOF
20681 fi # test -n "$CONFIG_FILES"
20684 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
20687 :[FHLC]) ac_mode=$ac_tag; continue;;
20689 case $ac_mode$ac_tag in
20691 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20692 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20693 { (exit 1); exit 1; }; };;
20694 :[FH]-) ac_tag=-:-;;
20695 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20712 -) ac_f="$tmp/stdin";;
20713 *) # Look for the file first in the build tree, then in the source tree
20714 # (if the path is not absolute). The absolute path cannot be DOS-style,
20715 # because $ac_f cannot contain `:'.
20719 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20721 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20722 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20723 { (exit 1); exit 1; }; };;
20725 ac_file_inputs="$ac_file_inputs $ac_f"
20728 # Let's still pretend it is `configure' which instantiates (i.e., don't
20729 # use $as_me), people would be surprised to read:
20730 # /* config.h. Generated by config.status. */
20731 configure_input="Generated from "`IFS=:
20732 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20733 if test x"$ac_file" != x-; then
20734 configure_input="$ac_file. $configure_input"
20735 { echo "$as_me:$LINENO: creating $ac_file" >&5
20736 echo "$as_me: creating $ac_file" >&6;}
20740 *:-:* | *:-) cat >"$tmp/stdin";;
20745 ac_dir=`$as_dirname -- "$ac_file" ||
20746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20747 X"$ac_file" : 'X\(//\)[^/]' \| \
20748 X"$ac_file" : 'X\(//\)$' \| \
20749 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20755 /^X\(\/\/\)[^/].*/{
20770 -*) as_dir=./$as_dir;;
20772 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20776 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20777 *) as_qdir=$as_dir;;
20779 as_dirs="'$as_qdir' $as_dirs"
20780 as_dir=`$as_dirname -- "$as_dir" ||
20781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20782 X"$as_dir" : 'X\(//\)[^/]' \| \
20783 X"$as_dir" : 'X\(//\)$' \| \
20784 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20790 /^X\(\/\/\)[^/].*/{
20803 test -d "$as_dir" && break
20805 test -z "$as_dirs" || eval "mkdir $as_dirs"
20806 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20807 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20808 { (exit 1); exit 1; }; }; }
20812 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20814 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20815 # A ".." for each directory in $ac_dir_suffix.
20816 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20817 case $ac_top_builddir_sub in
20818 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20819 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20822 ac_abs_top_builddir=$ac_pwd
20823 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20824 # for backward compatibility:
20825 ac_top_builddir=$ac_top_build_prefix
20828 .) # We are building in place.
20830 ac_top_srcdir=$ac_top_builddir_sub
20831 ac_abs_top_srcdir=$ac_pwd ;;
20832 [\\/]* | ?:[\\/]* ) # Absolute name.
20833 ac_srcdir=$srcdir$ac_dir_suffix;
20834 ac_top_srcdir=$srcdir
20835 ac_abs_top_srcdir=$srcdir ;;
20836 *) # Relative name.
20837 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20838 ac_top_srcdir=$ac_top_build_prefix$srcdir
20839 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20841 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20852 cat >>$CONFIG_STATUS <<\_ACEOF
20853 # If the template does not know about datarootdir, expand it.
20854 # FIXME: This hack should be removed a few years after 2.60.
20855 ac_datarootdir_hack=; ac_datarootdir_seen=
20857 case `sed -n '/datarootdir/ {
20866 ' $ac_file_inputs` in
20867 *datarootdir*) ac_datarootdir_seen=yes;;
20868 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20869 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20870 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20872 cat >>$CONFIG_STATUS <<_ACEOF
20873 ac_datarootdir_hack='
20874 s&@datadir@&$datadir&g
20875 s&@docdir@&$docdir&g
20876 s&@infodir@&$infodir&g
20877 s&@localedir@&$localedir&g
20878 s&@mandir@&$mandir&g
20879 s&\\\${datarootdir}&$datarootdir&g' ;;
20883 # Neutralize VPATH when `$srcdir' = `.'.
20884 # Shell code in configure.ac might set extrasub.
20885 # FIXME: do we really want to maintain this feature?
20886 cat >>$CONFIG_STATUS <<_ACEOF
20890 cat >>$CONFIG_STATUS <<\_ACEOF
20892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20893 s&@configure_input@&$configure_input&;t t
20894 s&@top_builddir@&$ac_top_builddir_sub&;t t
20895 s&@srcdir@&$ac_srcdir&;t t
20896 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20897 s&@top_srcdir@&$ac_top_srcdir&;t t
20898 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20899 s&@builddir@&$ac_builddir&;t t
20900 s&@abs_builddir@&$ac_abs_builddir&;t t
20901 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20902 $ac_datarootdir_hack
20903 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
20905 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20906 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20907 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20908 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20909 which seems to be undefined. Please make sure it is defined." >&5
20910 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20911 which seems to be undefined. Please make sure it is defined." >&2;}
20915 -) cat "$tmp/out"; rm -f "$tmp/out";;
20916 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20925 # Transform confdefs.h into a sed script `conftest.defines', that
20926 # substitutes the proper values into config.h.in to produce config.h.
20927 rm -f conftest.defines conftest.tail
20928 # First, append a space to every undef/define line, to ease matching.
20929 echo 's/$/ /' >conftest.defines
20930 # Then, protect against being on the right side of a sed subst, or in
20931 # an unquoted here document, in config.status. If some macros were
20932 # called several times there might be several #defines for the same
20933 # symbol, which is useless. But do not sort them, since the last
20934 # AC_DEFINE must be honored.
20935 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20936 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20937 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20938 # PARAMS is the parameter list in the macro definition--in most cases, it's
20939 # just an empty string.
20940 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20941 ac_dB='\\)[ (].*,\\1define\\2'
20949 s/^[ ]*#[ ]*define[ ][ ]*//
20954 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20955 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20956 ' >>conftest.defines
20958 # Remove the space that was appended to ease matching.
20959 # Then replace #undef with comments. This is necessary, for
20960 # example, in the case of _POSIX_SOURCE, which is predefined and required
20961 # on some systems where configure will not decide to define it.
20962 # (The regexp can be short, since the line contains either #define or #undef.)
20964 s,^[ #]*u.*,/* & */,' >>conftest.defines
20966 # Break up conftest.defines:
20967 ac_max_sed_lines=50
20969 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20970 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20971 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20973 ac_in='$ac_file_inputs'
20974 ac_out='"$tmp/out1"'
20975 ac_nxt='"$tmp/out2"'
20979 # Write a here document:
20980 cat >>$CONFIG_STATUS <<_ACEOF
20981 # First, check the format of the line:
20982 cat >"\$tmp/defines.sed" <<\\CEOF
20983 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20984 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20988 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20990 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20991 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20992 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20993 grep . conftest.tail >/dev/null || break
20994 rm -f conftest.defines
20995 mv conftest.tail conftest.defines
20997 rm -f conftest.defines conftest.tail
20999 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21000 cat >>$CONFIG_STATUS <<\_ACEOF
21001 if test x"$ac_file" != x-; then
21002 echo "/* $configure_input */" >"$tmp/config.h"
21003 cat "$ac_result" >>"$tmp/config.h"
21004 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21005 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21006 echo "$as_me: $ac_file is unchanged" >&6;}
21009 mv "$tmp/config.h" $ac_file
21012 echo "/* $configure_input */"
21024 { (exit 0); exit 0; }
21026 chmod +x $CONFIG_STATUS
21027 ac_clean_files=$ac_clean_files_save
21030 # configure is writing to config.log, and then calls config.status.
21031 # config.status does its own redirection, appending to config.log.
21032 # Unfortunately, on DOS this fails, as config.log is still kept open
21033 # by configure, so config.status won't be able to write to it; its
21034 # output is simply discarded. So we exec the FD to /dev/null,
21035 # effectively closing config.log, so it can be properly (re)opened and
21036 # appended to by config.status. When coming back to configure, we
21037 # need to make the FD available again.
21038 if test "$no_create" != yes; then
21040 ac_config_status_args=
21041 test "$silent" = yes &&
21042 ac_config_status_args="$ac_config_status_args --quiet"
21044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21047 # would make configure fail if this is the last instruction.
21048 $ac_cs_success || { (exit 1); exit 1; }