2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for ldapcpplib 0.0.5.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='ldapcpplib'
728 PACKAGE_TARNAME='ldapcpplib'
729 PACKAGE_VERSION='0.0.5'
730 PACKAGE_STRING='ldapcpplib 0.0.5'
733 ac_unique_file="src/LDAPConnection.h"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
821 INSTALL_STRIP_PROGRAM
875 ac_precious_vars='build_alias
892 # Initialize some variables set by options.
894 ac_init_version=false
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
904 program_transform_name=s,x,x,
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
950 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
996 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997 { (exit 1); exit 1; }; }
998 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
999 eval enable_$ac_feature=no ;;
1001 -docdir | --docdir | --docdi | --doc | --do)
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1011 -enable-* | --enable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=\$ac_optarg ;;
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 htmldir=$ac_optarg ;;
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1063 -libdir | --libdir | --libdi | --libd)
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1154 -psdir | --psdir | --psdi | --psd | --ps)
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1182 -site=* | --site=* | --sit=*)
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1209 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215 eval with_$ac_package=\$ac_optarg ;;
1217 -without-* | --without-*)
1218 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224 eval with_$ac_package=no ;;
1227 # Obsolete; use --with-x.
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1244 -*) { echo "$as_me: error: unrecognized option: $ac_option
1245 Try \`$0 --help' for more information." >&2
1246 { (exit 1); exit 1; }; }
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1254 { (exit 1); exit 1; }; }
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1259 # FIXME: should be removed in autoconf 3.0.
1260 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 { echo "$as_me: error: missing argument to $ac_option" >&2
1272 { (exit 1); exit 1; }; }
1275 # Be sure to have absolute directory names.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287 { (exit 1); exit 1; }; }
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 { echo "$as_me: error: Working directory cannot be determined" >&2
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { echo "$as_me: error: pwd does not report name of working directory" >&2
1321 { (exit 1); exit 1; }; }
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$0" ||
1329 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$0" : 'X\(//\)[^/]' \| \
1331 X"$0" : 'X\(//\)$' \| \
1332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361 { (exit 1); exit 1; }; }
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1366 { (exit 1); exit 1; }; }
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures ldapcpplib 0.0.5 to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of ldapcpplib 0.0.5:";;
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --disable-dependency-tracking speeds up one-time build
1470 --enable-dependency-tracking do not reject slow dependency extractors
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1484 --with-tags[=TAGS] include additional configurations [automatic]
1485 --with-libldap=DIR Path to the libldap library /usr/local/lib
1486 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1488 Some influential environment variables:
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CC C compiler command
1497 CFLAGS C compiler flags
1499 CXXCPP C++ preprocessor
1500 F77 Fortran 77 compiler command
1501 FFLAGS Fortran 77 compiler flags
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1533 .) # We are building in place.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1566 ldapcpplib configure 0.0.5
1567 generated by GNU Autoconf 2.61
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by ldapcpplib $as_me 0.0.5, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_must_keep_next=false
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 -* ) ac_must_keep_next=true ;;
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1744 if test -n "$ac_subst_files"; then
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1762 if test -s confdefs.h; then
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1853 # Check that the precious variables saved in the cache have kept the same
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 am__api_version='1.10'
1937 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1967 # Find a good install program. We prefer a C program (faster),
1968 # so one script is as good as another. But avoid the broken or
1969 # incompatible versions:
1970 # SysV /etc/install, /usr/sbin/install
1971 # SunOS /usr/etc/install
1972 # IRIX /sbin/install
1974 # AmigaOS /C/install, which installs bootblocks on floppy discs
1975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1978 # OS/2's system install, which has a completely different semantic
1979 # ./install, which can be erroneously created by make from ./install.sh.
1980 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1981 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1982 if test -z "$INSTALL"; then
1983 if test "${ac_cv_path_install+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 # Account for people who put trailing slashes in PATH elements.
1993 ./ | .// | /cC/* | \
1994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1995 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1998 # OSF1 and SCO ODT 3.0 have their own names for install.
1999 # Don't use installbsd from OSF since it installs stuff as root
2001 for ac_prog in ginstall scoinst install; do
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2004 if test $ac_prog = install &&
2005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006 # AIX install. It has an incompatible calling convention.
2008 elif test $ac_prog = install &&
2009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010 # program-specific install script used by HP pwplus--don't use.
2013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2026 if test "${ac_cv_path_install+set}" = set; then
2027 INSTALL=$ac_cv_path_install
2029 # As a last resort, use the slow shell script. Don't cache a
2030 # value for INSTALL within a source directory, because that will
2031 # break other packages using the cache if that directory is
2032 # removed, or if the value is a relative name.
2033 INSTALL=$ac_install_sh
2036 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2037 echo "${ECHO_T}$INSTALL" >&6; }
2039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2040 # It thinks the first close brace ends the variable substitution.
2041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2047 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2048 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2051 echo timestamp > conftest.file
2052 # Do `set' in a subshell so we don't clobber the current shell's
2053 # arguments. Must try -L first in case configure is actually a
2054 # symlink; some systems play weird games with the mod time of symlinks
2055 # (eg FreeBSD returns the mod time of the symlink's containing
2058 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2059 if test "$*" = "X"; then
2061 set X `ls -t $srcdir/configure conftest.file`
2064 if test "$*" != "X $srcdir/configure conftest.file" \
2065 && test "$*" != "X conftest.file $srcdir/configure"; then
2067 # If neither matched, then we have a broken ls. This can happen
2068 # if, for instance, CONFIG_SHELL is bash and it inherits a
2069 # broken ls alias from the environment. This has actually
2070 # happened. Such a system could not be considered "sane".
2071 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2072 alias in your environment" >&5
2073 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2074 alias in your environment" >&2;}
2075 { (exit 1); exit 1; }; }
2078 test "$2" = conftest.file
2084 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2085 Check your system clock" >&5
2086 echo "$as_me: error: newly created file is older than distributed files!
2087 Check your system clock" >&2;}
2088 { (exit 1); exit 1; }; }
2090 { echo "$as_me:$LINENO: result: yes" >&5
2091 echo "${ECHO_T}yes" >&6; }
2092 test "$program_prefix" != NONE &&
2093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2094 # Use a double $ so make ignores it.
2095 test "$program_suffix" != NONE &&
2096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2097 # Double any \ or $. echo might interpret backslashes.
2098 # By default was `s,x,x', remove it if useless.
2099 cat <<\_ACEOF >conftest.sed
2100 s/[\\$]/&&/g;s/;s,x,x,$//
2102 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2105 # expand $ac_aux_dir to an absolute path
2106 am_aux_dir=`cd $ac_aux_dir && pwd`
2108 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2109 # Use eval to expand $SHELL
2110 if eval "$MISSING --run true"; then
2111 am_missing_run="$MISSING --run "
2114 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2115 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2118 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2119 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2120 if test -z "$MKDIR_P"; then
2121 if test "${ac_cv_path_mkdir+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2128 test -z "$as_dir" && as_dir=.
2129 for ac_prog in mkdir gmkdir; do
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2132 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2133 'mkdir (GNU coreutils) '* | \
2134 'mkdir (coreutils) '* | \
2135 'mkdir (fileutils) '4.1*)
2136 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2146 if test "${ac_cv_path_mkdir+set}" = set; then
2147 MKDIR_P="$ac_cv_path_mkdir -p"
2149 # As a last resort, use the slow shell script. Don't cache a
2150 # value for MKDIR_P within a source directory, because that will
2151 # break other packages using the cache if that directory is
2152 # removed, or if the value is a relative name.
2153 test -d ./--version && rmdir ./--version
2154 MKDIR_P="$ac_install_sh -d"
2157 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2158 echo "${ECHO_T}$MKDIR_P" >&6; }
2162 [\\/$]* | ?:[\\/]*) ;;
2163 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2166 for ac_prog in gawk mawk nawk awk
2168 # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; 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_AWK+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$AWK"; then
2176 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 if test -n "$AWK"; then
2197 { echo "$as_me:$LINENO: result: $AWK" >&5
2198 echo "${ECHO_T}$AWK" >&6; }
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2205 test -n "$AWK" && break
2208 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2209 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2210 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 cat >conftest.make <<\_ACEOF
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2233 { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2245 rmdir .tst 2>/dev/null
2247 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2248 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2249 # is not polluted with repeated "-I."
2250 am__isrc=' -I$(srcdir)'
2251 # test to see if srcdir already configured
2252 if test -f $srcdir/config.status; then
2253 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2254 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2255 { (exit 1); exit 1; }; }
2259 # test whether we have cygpath
2260 if test -z "$CYGPATH_W"; then
2261 if (cygpath --version) >/dev/null 2>/dev/null; then
2262 CYGPATH_W='cygpath -w'
2269 # Define the identity of the package.
2270 PACKAGE='ldapcpplib'
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE "$PACKAGE"
2279 cat >>confdefs.h <<_ACEOF
2280 #define VERSION "$VERSION"
2283 # Some tools Automake needs.
2285 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2288 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2291 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2294 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2297 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2299 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2301 # Installed binaries are usually stripped using `strip' when the user
2302 # run `make install-strip'. However `strip' might not be the right
2303 # tool to use in cross-compilation environments, therefore Automake
2304 # will honor the `STRIP' environment variable to overrule this program.
2305 if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}strip; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_STRIP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 STRIP=$ac_cv_prog_STRIP
2335 if test -n "$STRIP"; then
2336 { echo "$as_me:$LINENO: result: $STRIP" >&5
2337 echo "${ECHO_T}$STRIP" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2345 if test -z "$ac_cv_prog_STRIP"; then
2347 # Extract the first word of "strip", so it can be a program name with args.
2348 set dummy strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375 if test -n "$ac_ct_STRIP"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2383 if test "x$ac_ct_STRIP" = x; then
2386 case $cross_compiling:$ac_tool_warned in
2388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
2391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394 ac_tool_warned=yes ;;
2399 STRIP="$ac_cv_prog_STRIP"
2403 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2405 # We need awk for the "check" target. The system "awk" is bad on
2407 # Always define AMTAR for backward compatibility.
2409 AMTAR=${AMTAR-"${am_missing_run}tar"}
2411 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2417 ac_config_headers="$ac_config_headers src/config.h"
2421 # Find a good install program. We prefer a C program (faster),
2422 # so one script is as good as another. But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2435 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2436 if test -z "$INSTALL"; then
2437 if test "${ac_cv_path_install+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 # Account for people who put trailing slashes in PATH elements.
2447 ./ | .// | /cC/* | \
2448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2449 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2452 # OSF1 and SCO ODT 3.0 have their own names for install.
2453 # Don't use installbsd from OSF since it installs stuff as root
2455 for ac_prog in ginstall scoinst install; do
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2458 if test $ac_prog = install &&
2459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460 # AIX install. It has an incompatible calling convention.
2462 elif test $ac_prog = install &&
2463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2464 # program-specific install script used by HP pwplus--don't use.
2467 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2480 if test "${ac_cv_path_install+set}" = set; then
2481 INSTALL=$ac_cv_path_install
2483 # As a last resort, use the slow shell script. Don't cache a
2484 # value for INSTALL within a source directory, because that will
2485 # break other packages using the cache if that directory is
2486 # removed, or if the value is a relative name.
2487 INSTALL=$ac_install_sh
2490 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2491 echo "${ECHO_T}$INSTALL" >&6; }
2493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2494 # It thinks the first close brace ends the variable substitution.
2495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2497 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2499 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2502 ac_cpp='$CXXCPP $CPPFLAGS'
2503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2506 if test -z "$CXX"; then
2507 if test -n "$CCC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_CXX+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$CXX"; then
2521 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 if test -n "$CXX"; then
2542 { echo "$as_me:$LINENO: result: $CXX" >&5
2543 echo "${ECHO_T}$CXX" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2550 test -n "$CXX" && break
2553 if test -z "$CXX"; then
2555 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 if test -n "$ac_ct_CXX"; then
2565 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_ac_ct_CXX="$ac_prog"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2585 if test -n "$ac_ct_CXX"; then
2586 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2587 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2594 test -n "$ac_ct_CXX" && break
2597 if test "x$ac_ct_CXX" = x; then
2600 case $cross_compiling:$ac_tool_warned in
2602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2603 whose name does not start with the host triplet. If you think this
2604 configuration is useful to you, please write to autoconf@gnu.org." >&5
2605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2608 ac_tool_warned=yes ;;
2616 # Provide some information about the compiler.
2617 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2618 ac_compiler=`set X $ac_compile; echo $2`
2619 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }
2629 { (ac_try="$ac_compiler -v >&5"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_compiler -v >&5") 2>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }
2639 { (ac_try="$ac_compiler -V >&5"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compiler -V >&5") 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2665 ac_clean_files_save=$ac_clean_files
2666 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2667 # Try to create an executable without -o first, disregard a.out.
2668 # It will help us diagnose broken compilers, and finding out an intuition
2670 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2671 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2672 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2674 # List of possible output files, starting from the most likely.
2675 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2676 # only as a last resort. b.out is created by i960 compilers.
2677 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2679 # The IRIX 6 linker writes into existing files which may not be
2680 # executable, retaining their permissions. Remove them first so a
2681 # subsequent execution test works.
2683 for ac_file in $ac_files
2686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2687 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2692 if { (ac_try="$ac_link_default"
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_link_default") 2>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; then
2702 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2703 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2704 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2705 # so that the user can short-circuit this test for compilers unknown to
2707 for ac_file in $ac_files ''
2709 test -f "$ac_file" || continue
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2714 # We found the default executable, but exeext='' is most
2718 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2720 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2722 # We set ac_cv_exeext here because the later test for it is not
2723 # safe: cross compilers may not add the suffix if given an `-o'
2724 # argument, so we may need to know it at that point already.
2725 # Even if this section looks crufty: it has the advantage of
2732 test "$ac_cv_exeext" = no && ac_cv_exeext=
2738 { echo "$as_me:$LINENO: result: $ac_file" >&5
2739 echo "${ECHO_T}$ac_file" >&6; }
2740 if test -z "$ac_file"; then
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2744 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: C++ compiler cannot create executables
2747 See \`config.log' for more details." >&2;}
2748 { (exit 77); exit 77; }; }
2751 ac_exeext=$ac_cv_exeext
2753 # Check that the compiler produces executables we can run. If not, either
2754 # the compiler is broken, or we cross compile.
2755 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2756 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2757 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2758 # If not cross compiling, check that we can run a simple program.
2759 if test "$cross_compiling" != yes; then
2760 if { ac_try='./$ac_file'
2761 { (case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_try") 2>&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2772 if test "$cross_compiling" = maybe; then
2775 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2776 If you meant to cross compile, use \`--host'.
2777 See \`config.log' for more details." >&5
2778 echo "$as_me: error: cannot run C++ compiled programs.
2779 If you meant to cross compile, use \`--host'.
2780 See \`config.log' for more details." >&2;}
2781 { (exit 1); exit 1; }; }
2785 { echo "$as_me:$LINENO: result: yes" >&5
2786 echo "${ECHO_T}yes" >&6; }
2788 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2789 ac_clean_files=$ac_clean_files_save
2790 # Check that the compiler produces executables we can run. If not, either
2791 # the compiler is broken, or we cross compile.
2792 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2793 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2794 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2795 echo "${ECHO_T}$cross_compiling" >&6; }
2797 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2798 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2799 if { (ac_try="$ac_link"
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_link") 2>&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; then
2809 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2810 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2811 # work properly (i.e., refer to `conftest.exe'), while it won't with
2813 for ac_file in conftest.exe conftest conftest.*; do
2814 test -f "$ac_file" || continue
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2817 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2830 rm -f conftest$ac_cv_exeext
2831 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2832 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2834 rm -f conftest.$ac_ext
2835 EXEEXT=$ac_cv_exeext
2837 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2838 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2839 if test "${ac_cv_objext+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2857 rm -f conftest.o conftest.obj
2858 if { (ac_try="$ac_compile"
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_compile") 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; then
2868 for ac_file in conftest.o conftest.obj conftest.*; do
2869 test -f "$ac_file" || continue;
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2880 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2883 See \`config.log' for more details." >&2;}
2884 { (exit 1); exit 1; }; }
2887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2889 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2890 echo "${ECHO_T}$ac_cv_objext" >&6; }
2891 OBJEXT=$ac_cv_objext
2893 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2894 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2895 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 cat >conftest.$ac_ext <<_ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2916 rm -f conftest.$ac_objext
2917 if { (ac_try="$ac_compile"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compile") 2>conftest.er1
2925 grep -v '^ *+' conftest.er1 >conftest.err
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } && {
2930 test -z "$ac_cxx_werror_flag" ||
2931 test ! -s conftest.err
2932 } && test -s conftest.$ac_objext; then
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2945 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2946 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2947 GXX=`test $ac_compiler_gnu = yes && echo yes`
2948 ac_test_CXXFLAGS=${CXXFLAGS+set}
2949 ac_save_CXXFLAGS=$CXXFLAGS
2950 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2951 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2952 if test "${ac_cv_prog_cxx_g+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2956 ac_cxx_werror_flag=yes
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } && {
2988 test -z "$ac_cxx_werror_flag" ||
2989 test ! -s conftest.err
2990 } && test -s conftest.$ac_objext; then
2991 ac_cv_prog_cxx_g=yes
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } && {
3026 test -z "$ac_cxx_werror_flag" ||
3027 test ! -s conftest.err
3028 } && test -s conftest.$ac_objext; then
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } && {
3065 test -z "$ac_cxx_werror_flag" ||
3066 test ! -s conftest.err
3067 } && test -s conftest.$ac_objext; then
3068 ac_cv_prog_cxx_g=yes
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3085 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3087 if test "$ac_test_CXXFLAGS" = set; then
3088 CXXFLAGS=$ac_save_CXXFLAGS
3089 elif test $ac_cv_prog_cxx_g = yes; then
3090 if test "$GXX" = yes; then
3096 if test "$GXX" = yes; then
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107 DEPDIR="${am__leading_dot}deps"
3109 ac_config_commands="$ac_config_commands depfiles"
3112 am_make=${MAKE-make}
3113 cat > confinc << 'END'
3118 # If we don't find an include directive, just comment out the code.
3119 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3120 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3124 # First try GNU make style include.
3125 echo "include confinc" > confmf
3126 # We grep out `Entering directory' and `Leaving directory'
3127 # messages which can occur if `w' ends up in MAKEFLAGS.
3128 # In particular we don't look at `^make:' because GNU make might
3129 # be invoked under some other name (usually "gmake"), in which
3130 # case it prints its new name instead of `make'.
3131 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3136 # Now try BSD make style include.
3137 if test "$am__include" = "#"; then
3138 echo '.include "confinc"' > confmf
3139 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3140 am__include=.include
3147 { echo "$as_me:$LINENO: result: $_am_result" >&5
3148 echo "${ECHO_T}$_am_result" >&6; }
3149 rm -f confinc confmf
3151 # Check whether --enable-dependency-tracking was given.
3152 if test "${enable_dependency_tracking+set}" = set; then
3153 enableval=$enable_dependency_tracking;
3156 if test "x$enable_dependency_tracking" != xno; then
3157 am_depcomp="$ac_aux_dir/depcomp"
3160 if test "x$enable_dependency_tracking" != xno; then
3170 depcc="$CXX" am_compiler_list=
3172 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3173 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3174 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3178 # We make a subdir and do the tests there. Otherwise we can end up
3179 # making bogus files that we don't know about and never remove. For
3180 # instance it was reported that on HP-UX the gcc test will end up
3181 # making a dummy file named `D' -- because `-MD' means `put the output
3184 # Copy depcomp to subdir because otherwise we won't find it if we're
3185 # using a relative directory.
3186 cp "$am_depcomp" conftest.dir
3188 # We will build objects and dependencies in a subdirectory because
3189 # it helps to detect inapplicable dependency modes. For instance
3190 # both Tru64's cc and ICC support -MD to output dependencies as a
3191 # side effect of compilation, but ICC will put the dependencies in
3192 # the current directory while Tru64 will put them in the object
3196 am_cv_CXX_dependencies_compiler_type=none
3197 if test "$am_compiler_list" = ""; then
3198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3200 for depmode in $am_compiler_list; do
3201 # Setup a source with many dependencies, because some compilers
3202 # like to wrap large dependency lists on column 80 (with \), and
3203 # we should not choose a depcomp mode which is confused by this.
3205 # We need to recreate these files for each test, as the compiler may
3206 # overwrite some of them when testing with obscure command lines.
3207 # This happens at least with the AIX C compiler.
3209 for i in 1 2 3 4 5 6; do
3210 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3211 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3212 # Solaris 8's {/usr,}/bin/sh.
3213 touch sub/conftst$i.h
3215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3219 # after this tag, mechanisms are not by side-effect, so they'll
3220 # only be used when explicitly requested
3221 if test "x$enable_dependency_tracking" = xyes; then
3229 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230 # mode. It turns out that the SunPro C++ compiler does not properly
3231 # handle `-M -o', and we need to detect this.
3232 if depmode=$depmode \
3233 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236 >/dev/null 2>conftest.err &&
3237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3239 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3241 # icc doesn't choke on unknown options, it will just issue warnings
3242 # or remarks (even with -Werror). So we grep stderr for any message
3243 # that says an option was ignored or not supported.
3244 # When given -MP, icc 7.0 and 7.1 complain thusly:
3245 # icc: Command line warning: ignoring option '-M'; no argument required
3246 # The diagnosis changed in icc 8.0:
3247 # icc: Command line remark: option '-MP' not supported
3248 if (grep 'ignoring option' conftest.err ||
3249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3250 am_cv_CXX_dependencies_compiler_type=$depmode
3259 am_cv_CXX_dependencies_compiler_type=none
3263 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3264 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3265 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3268 test "x$enable_dependency_tracking" != xno \
3269 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3270 am__fastdepCXX_TRUE=
3271 am__fastdepCXX_FALSE='#'
3273 am__fastdepCXX_TRUE='#'
3274 am__fastdepCXX_FALSE=
3278 # Check whether --enable-shared was given.
3279 if test "${enable_shared+set}" = set; then
3280 enableval=$enable_shared; p=${PACKAGE-default}
3282 yes) enable_shared=yes ;;
3283 no) enable_shared=no ;;
3286 # Look at the argument we got. We use all the common list separators.
3287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3288 for pkg in $enableval; do
3290 if test "X$pkg" = "X$p"; then
3302 # Check whether --enable-static was given.
3303 if test "${enable_static+set}" = set; then
3304 enableval=$enable_static; p=${PACKAGE-default}
3306 yes) enable_static=yes ;;
3307 no) enable_static=no ;;
3310 # Look at the argument we got. We use all the common list separators.
3311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3312 for pkg in $enableval; do
3314 if test "X$pkg" = "X$p"; then
3326 # Check whether --enable-fast-install was given.
3327 if test "${enable_fast_install+set}" = set; then
3328 enableval=$enable_fast_install; p=${PACKAGE-default}
3330 yes) enable_fast_install=yes ;;
3331 no) enable_fast_install=no ;;
3333 enable_fast_install=no
3334 # Look at the argument we got. We use all the common list separators.
3335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3336 for pkg in $enableval; do
3338 if test "X$pkg" = "X$p"; then
3339 enable_fast_install=yes
3346 enable_fast_install=yes
3350 # Make sure we can run config.sub.
3351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3352 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3353 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3354 { (exit 1); exit 1; }; }
3356 { echo "$as_me:$LINENO: checking build system type" >&5
3357 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3358 if test "${ac_cv_build+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 ac_build_alias=$build_alias
3362 test "x$ac_build_alias" = x &&
3363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3364 test "x$ac_build_alias" = x &&
3365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3366 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3367 { (exit 1); exit 1; }; }
3368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3369 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3370 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3371 { (exit 1); exit 1; }; }
3374 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3375 echo "${ECHO_T}$ac_cv_build" >&6; }
3376 case $ac_cv_build in
3378 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3379 echo "$as_me: error: invalid value of canonical build" >&2;}
3380 { (exit 1); exit 1; }; };;
3383 ac_save_IFS=$IFS; IFS='-'
3389 # Remember, the first character of IFS is used to create $*,
3390 # except with old shells:
3393 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3396 { echo "$as_me:$LINENO: checking host system type" >&5
3397 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3398 if test "${ac_cv_host+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 if test "x$host_alias" = x; then
3402 ac_cv_host=$ac_cv_build
3404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3405 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3406 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3407 { (exit 1); exit 1; }; }
3411 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3412 echo "${ECHO_T}$ac_cv_host" >&6; }
3415 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3416 echo "$as_me: error: invalid value of canonical host" >&2;}
3417 { (exit 1); exit 1; }; };;
3420 ac_save_IFS=$IFS; IFS='-'
3426 # Remember, the first character of IFS is used to create $*,
3427 # except with old shells:
3430 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_CC+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test -n "$CC"; then
3468 { echo "$as_me:$LINENO: result: $CC" >&5
3469 echo "${ECHO_T}$CC" >&6; }
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3477 if test -z "$ac_cv_prog_CC"; then
3479 # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc; ac_word=$2
3481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_CC="gcc"
3497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3509 echo "${ECHO_T}$ac_ct_CC" >&6; }
3511 { echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6; }
3515 if test "x$ac_ct_CC" = x; then
3518 case $cross_compiling:$ac_tool_warned in
3520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3521 whose name does not start with the host triplet. If you think this
3522 configuration is useful to you, please write to autoconf@gnu.org." >&5
3523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3524 whose name does not start with the host triplet. If you think this
3525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3526 ac_tool_warned=yes ;;
3534 if test -z "$CC"; then
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}cc; ac_word=$2
3538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3540 if test "${ac_cv_prog_CC+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_CC="${ac_tool_prefix}cc"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 if test -n "$CC"; then
3565 { echo "$as_me:$LINENO: result: $CC" >&5
3566 echo "${ECHO_T}$CC" >&6; }
3568 { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3575 if test -z "$CC"; then
3576 # Extract the first word of "cc", so it can be a program name with args.
3577 set dummy cc; ac_word=$2
3578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3580 if test "${ac_cv_prog_CC+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3595 ac_prog_rejected=yes
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 if test $ac_prog_rejected = yes; then
3607 # We found a bogon in the path, so make sure we never use it.
3608 set dummy $ac_cv_prog_CC
3610 if test $# != 0; then
3611 # We chose a different compiler from the bogus one.
3612 # However, it has the same basename, so the bogon will be chosen
3613 # first if we set CC to just the basename; use the full file name.
3615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3621 if test -n "$CC"; then
3622 { echo "$as_me:$LINENO: result: $CC" >&5
3623 echo "${ECHO_T}$CC" >&6; }
3625 { echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6; }
3631 if test -z "$CC"; then
3632 if test -n "$ac_tool_prefix"; then
3633 for ac_prog in cl.exe
3635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3639 if test "${ac_cv_prog_CC+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 if test -n "$CC"; then
3664 { echo "$as_me:$LINENO: result: $CC" >&5
3665 echo "${ECHO_T}$CC" >&6; }
3667 { echo "$as_me:$LINENO: result: no" >&5
3668 echo "${ECHO_T}no" >&6; }
3672 test -n "$CC" && break
3675 if test -z "$CC"; then
3677 for ac_prog in cl.exe
3679 # Extract the first word of "$ac_prog", so it can be a program name with args.
3680 set dummy $ac_prog; ac_word=$2
3681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 if test -n "$ac_ct_CC"; then
3687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_ac_ct_CC="$ac_prog"
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3707 if test -n "$ac_ct_CC"; then
3708 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3709 echo "${ECHO_T}$ac_ct_CC" >&6; }
3711 { echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6; }
3716 test -n "$ac_ct_CC" && break
3719 if test "x$ac_ct_CC" = x; then
3722 case $cross_compiling:$ac_tool_warned in
3724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3725 whose name does not start with the host triplet. If you think this
3726 configuration is useful to you, please write to autoconf@gnu.org." >&5
3727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3728 whose name does not start with the host triplet. If you think this
3729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3730 ac_tool_warned=yes ;;
3739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3740 See \`config.log' for more details." >&5
3741 echo "$as_me: error: no acceptable C compiler found in \$PATH
3742 See \`config.log' for more details." >&2;}
3743 { (exit 1); exit 1; }; }
3745 # Provide some information about the compiler.
3746 echo "$as_me:$LINENO: checking for C compiler version" >&5
3747 ac_compiler=`set X $ac_compile; echo $2`
3748 { (ac_try="$ac_compiler --version >&5"
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754 (eval "$ac_compiler --version >&5") 2>&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }
3758 { (ac_try="$ac_compiler -v >&5"
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3764 (eval "$ac_compiler -v >&5") 2>&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }
3768 { (ac_try="$ac_compiler -V >&5"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_compiler -V >&5") 2>&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }
3779 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3780 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3781 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } && {
3816 test -z "$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 } && test -s conftest.$ac_objext; then
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3832 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3833 GCC=`test $ac_compiler_gnu = yes && echo yes`
3834 ac_test_CFLAGS=${CFLAGS+set}
3835 ac_save_CFLAGS=$CFLAGS
3836 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3837 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3838 if test "${ac_cv_prog_cc_g+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 ac_save_c_werror_flag=$ac_c_werror_flag
3842 ac_c_werror_flag=yes
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3860 rm -f conftest.$ac_objext
3861 if { (ac_try="$ac_compile"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_compile") 2>conftest.er1
3869 grep -v '^ *+' conftest.er1 >conftest.err
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } && {
3874 test -z "$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 } && test -s conftest.$ac_objext; then
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3898 rm -f conftest.$ac_objext
3899 if { (ac_try="$ac_compile"
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_compile") 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest.$ac_objext; then
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3920 ac_c_werror_flag=$ac_save_c_werror_flag
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3971 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3972 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3973 if test "$ac_test_CFLAGS" = set; then
3974 CFLAGS=$ac_save_CFLAGS
3975 elif test $ac_cv_prog_cc_g = yes; then
3976 if test "$GCC" = yes; then
3982 if test "$GCC" = yes; then
3988 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3989 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3990 if test "${ac_cv_prog_cc_c89+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 ac_cv_prog_cc_c89=no
3995 cat >conftest.$ac_ext <<_ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4003 #include <sys/types.h>
4004 #include <sys/stat.h>
4005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4006 struct buf { int x; };
4007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4008 static char *e (p, i)
4014 static char *f (char * (*g) (char **, int), char **p, ...)
4019 s = g (p, va_arg (v,int));
4024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4025 function prototypes and stuff, but not '\xHH' hex character constants.
4026 These don't provoke an error unfortunately, instead are silently treated
4027 as 'x'. The following induces an error, until -std is added to get
4028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4029 array size at least. It's necessary to write '\x00'==0 to get something
4030 that's true only with -std. */
4031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4034 inside strings and character constants. */
4036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4038 int test (int i, double x);
4039 struct s1 {int (*f) (int a);};
4040 struct s2 {int (*f) (double a);};
4041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4055 CC="$ac_save_CC $ac_arg"
4056 rm -f conftest.$ac_objext
4057 if { (ac_try="$ac_compile"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_compile") 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest.$ac_objext; then
4073 ac_cv_prog_cc_c89=$ac_arg
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4081 rm -f core conftest.err conftest.$ac_objext
4082 test "x$ac_cv_prog_cc_c89" != "xno" && break
4084 rm -f conftest.$ac_ext
4089 case "x$ac_cv_prog_cc_c89" in
4091 { echo "$as_me:$LINENO: result: none needed" >&5
4092 echo "${ECHO_T}none needed" >&6; } ;;
4094 { echo "$as_me:$LINENO: result: unsupported" >&5
4095 echo "${ECHO_T}unsupported" >&6; } ;;
4097 CC="$CC $ac_cv_prog_cc_c89"
4098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4099 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 depcc="$CC" am_compiler_list=
4111 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4112 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4113 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4117 # We make a subdir and do the tests there. Otherwise we can end up
4118 # making bogus files that we don't know about and never remove. For
4119 # instance it was reported that on HP-UX the gcc test will end up
4120 # making a dummy file named `D' -- because `-MD' means `put the output
4123 # Copy depcomp to subdir because otherwise we won't find it if we're
4124 # using a relative directory.
4125 cp "$am_depcomp" conftest.dir
4127 # We will build objects and dependencies in a subdirectory because
4128 # it helps to detect inapplicable dependency modes. For instance
4129 # both Tru64's cc and ICC support -MD to output dependencies as a
4130 # side effect of compilation, but ICC will put the dependencies in
4131 # the current directory while Tru64 will put them in the object
4135 am_cv_CC_dependencies_compiler_type=none
4136 if test "$am_compiler_list" = ""; then
4137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4139 for depmode in $am_compiler_list; do
4140 # Setup a source with many dependencies, because some compilers
4141 # like to wrap large dependency lists on column 80 (with \), and
4142 # we should not choose a depcomp mode which is confused by this.
4144 # We need to recreate these files for each test, as the compiler may
4145 # overwrite some of them when testing with obscure command lines.
4146 # This happens at least with the AIX C compiler.
4148 for i in 1 2 3 4 5 6; do
4149 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4150 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4151 # Solaris 8's {/usr,}/bin/sh.
4152 touch sub/conftst$i.h
4154 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4158 # after this tag, mechanisms are not by side-effect, so they'll
4159 # only be used when explicitly requested
4160 if test "x$enable_dependency_tracking" = xyes; then
4168 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4169 # mode. It turns out that the SunPro C++ compiler does not properly
4170 # handle `-M -o', and we need to detect this.
4171 if depmode=$depmode \
4172 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4174 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4175 >/dev/null 2>conftest.err &&
4176 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4177 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4178 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4180 # icc doesn't choke on unknown options, it will just issue warnings
4181 # or remarks (even with -Werror). So we grep stderr for any message
4182 # that says an option was ignored or not supported.
4183 # When given -MP, icc 7.0 and 7.1 complain thusly:
4184 # icc: Command line warning: ignoring option '-M'; no argument required
4185 # The diagnosis changed in icc 8.0:
4186 # icc: Command line remark: option '-MP' not supported
4187 if (grep 'ignoring option' conftest.err ||
4188 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4189 am_cv_CC_dependencies_compiler_type=$depmode
4198 am_cv_CC_dependencies_compiler_type=none
4202 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4203 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4204 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4207 test "x$enable_dependency_tracking" != xno \
4208 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4210 am__fastdepCC_FALSE='#'
4212 am__fastdepCC_TRUE='#'
4213 am__fastdepCC_FALSE=
4217 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4218 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4219 if test "${lt_cv_path_SED+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 # Loop through the user's path and test for sed and gsed.
4223 # Then use that list of sed's as ones to test for truncation.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for lt_ac_prog in sed gsed; do
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4232 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4240 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4241 # along with /bin/sed that truncates output.
4242 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4243 test ! -f $lt_ac_sed && continue
4244 cat /dev/null > conftest.in
4246 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4247 # Check for GNU sed and select it if it is found.
4248 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4249 lt_cv_path_SED=$lt_ac_sed
4253 cat conftest.in conftest.in >conftest.tmp
4254 mv conftest.tmp conftest.in
4255 cp conftest.in conftest.nl
4257 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4258 cmp -s conftest.out conftest.nl || break
4259 # 10000 chars as input seems more than enough
4260 test $lt_ac_count -gt 10 && break
4261 lt_ac_count=`expr $lt_ac_count + 1`
4262 if test $lt_ac_count -gt $lt_ac_max; then
4263 lt_ac_max=$lt_ac_count
4264 lt_cv_path_SED=$lt_ac_sed
4273 { echo "$as_me:$LINENO: result: $SED" >&5
4274 echo "${ECHO_T}$SED" >&6; }
4276 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4277 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4278 if test "${ac_cv_path_GREP+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 # Extract the first word of "grep ggrep" to use in msg output
4282 if test -z "$GREP"; then
4283 set dummy grep ggrep; ac_prog_name=$2
4284 if test "${ac_cv_path_GREP+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 ac_path_GREP_found=false
4288 # Loop through the user's path and test for each of PROGNAME-LIST
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4293 test -z "$as_dir" && as_dir=.
4294 for ac_prog in grep ggrep; do
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4298 # Check for GNU ac_path_GREP and select it if it is found.
4299 # Check for GNU $ac_path_GREP
4300 case `"$ac_path_GREP" --version 2>&1` in
4302 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4305 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 echo 'GREP' >> "conftest.nl"
4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314 ac_count=`expr $ac_count + 1`
4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_GREP="$ac_path_GREP"
4318 ac_path_GREP_max=$ac_count
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4327 $ac_path_GREP_found && break 3
4337 GREP="$ac_cv_path_GREP"
4338 if test -z "$GREP"; then
4339 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4340 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4341 { (exit 1); exit 1; }; }
4345 ac_cv_path_GREP=$GREP
4350 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4351 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4352 GREP="$ac_cv_path_GREP"
4355 { echo "$as_me:$LINENO: checking for egrep" >&5
4356 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_EGREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4361 then ac_cv_path_EGREP="$GREP -E"
4363 # Extract the first word of "egrep" to use in msg output
4364 if test -z "$EGREP"; then
4365 set dummy egrep; ac_prog_name=$2
4366 if test "${ac_cv_path_EGREP+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 ac_path_EGREP_found=false
4370 # Loop through the user's path and test for each of PROGNAME-LIST
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375 test -z "$as_dir" && as_dir=.
4376 for ac_prog in egrep; do
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4379 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4380 # Check for GNU ac_path_EGREP and select it if it is found.
4381 # Check for GNU $ac_path_EGREP
4382 case `"$ac_path_EGREP" --version 2>&1` in
4384 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4387 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4390 cat "conftest.in" "conftest.in" >"conftest.tmp"
4391 mv "conftest.tmp" "conftest.in"
4392 cp "conftest.in" "conftest.nl"
4393 echo 'EGREP' >> "conftest.nl"
4394 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4396 ac_count=`expr $ac_count + 1`
4397 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4398 # Best one so far, save it but keep looking for a better one
4399 ac_cv_path_EGREP="$ac_path_EGREP"
4400 ac_path_EGREP_max=$ac_count
4402 # 10*(2^10) chars as input seems more than enough
4403 test $ac_count -gt 10 && break
4405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 $ac_path_EGREP_found && break 3
4419 EGREP="$ac_cv_path_EGREP"
4420 if test -z "$EGREP"; then
4421 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4422 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4423 { (exit 1); exit 1; }; }
4427 ac_cv_path_EGREP=$EGREP
4433 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4434 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4435 EGREP="$ac_cv_path_EGREP"
4439 # Check whether --with-gnu-ld was given.
4440 if test "${with_gnu_ld+set}" = set; then
4441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4447 if test "$GCC" = yes; then
4448 # Check if gcc -print-prog-name=ld gives a path.
4449 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4450 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4453 # gcc leaves a trailing carriage return which upsets mingw
4454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4459 # Accept absolute paths.
4461 re_direlt='/[^/][^/]*/\.\./'
4462 # Canonicalize the pathname of ld
4463 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4465 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4467 test -z "$LD" && LD="$ac_prog"
4470 # If it fails, then pretend we aren't using GCC.
4474 # If it is relative, then search for the first ld in PATH.
4478 elif test "$with_gnu_ld" = yes; then
4479 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4480 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4482 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4483 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4485 if test "${lt_cv_path_LD+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 if test -z "$LD"; then
4489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4490 for ac_dir in $PATH; do
4492 test -z "$ac_dir" && ac_dir=.
4493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4494 lt_cv_path_LD="$ac_dir/$ac_prog"
4495 # Check to see if the program is GNU ld. I'd rather use --version,
4496 # but apparently some variants of GNU ld only accept -v.
4497 # Break only if it was the GNU/non-GNU ld that we prefer.
4498 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4499 *GNU* | *'with BFD'*)
4500 test "$with_gnu_ld" != no && break
4503 test "$with_gnu_ld" != yes && break
4510 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4515 if test -n "$LD"; then
4516 { echo "$as_me:$LINENO: result: $LD" >&5
4517 echo "${ECHO_T}$LD" >&6; }
4519 { echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6; }
4522 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4523 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
4525 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4526 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4527 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4531 case `$LD -v 2>&1 </dev/null` in
4532 *GNU* | *'with BFD'*)
4533 lt_cv_prog_gnu_ld=yes
4536 lt_cv_prog_gnu_ld=no
4540 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4541 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4542 with_gnu_ld=$lt_cv_prog_gnu_ld
4545 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4546 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4547 if test "${lt_cv_ld_reload_flag+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 lt_cv_ld_reload_flag='-r'
4552 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4553 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4554 reload_flag=$lt_cv_ld_reload_flag
4555 case $reload_flag in
4557 *) reload_flag=" $reload_flag" ;;
4559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4562 if test "$GCC" = yes; then
4563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4570 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4571 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4572 if test "${lt_cv_path_NM+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 if test -n "$NM"; then
4576 # Let the user override the test.
4579 lt_nm_to_check="${ac_tool_prefix}nm"
4580 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4581 lt_nm_to_check="$lt_nm_to_check nm"
4583 for lt_tmp_nm in $lt_nm_to_check; do
4584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4585 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4587 test -z "$ac_dir" && ac_dir=.
4588 tmp_nm="$ac_dir/$lt_tmp_nm"
4589 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4590 # Check to see if the nm accepts a BSD-compat flag.
4591 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4592 # nm: unknown option "B" ignored
4593 # Tru64's nm complains that /dev/null is an invalid object file
4594 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4595 */dev/null* | *'Invalid file or object type'*)
4596 lt_cv_path_NM="$tmp_nm -B"
4600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4602 lt_cv_path_NM="$tmp_nm -p"
4606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4607 continue # so that we can try to find one that supports BSD flags
4616 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4619 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4620 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4623 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4624 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4626 if test "$LN_S" = "ln -s"; then
4627 { echo "$as_me:$LINENO: result: yes" >&5
4628 echo "${ECHO_T}yes" >&6; }
4630 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4631 echo "${ECHO_T}no, using $LN_S" >&6; }
4634 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4635 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4636 if test "${lt_cv_deplibs_check_method+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 lt_cv_file_magic_cmd='$MAGIC_CMD'
4640 lt_cv_file_magic_test_file=
4641 lt_cv_deplibs_check_method='unknown'
4642 # Need to set the preceding variable on all platforms that support
4643 # interlibrary dependencies.
4644 # 'none' -- dependencies not supported.
4645 # `unknown' -- same as none, but documents that we really don't know.
4646 # 'pass_all' -- all dependencies passed with no checks.
4647 # 'test_compile' -- check by making test program.
4648 # 'file_magic [[regex]]' -- check by looking for files in library path
4649 # which responds to the $file_magic_cmd with a given extended regex.
4650 # If you have `file' or equivalent on your system and you're not sure
4651 # whether `pass_all' will *always* work, you probably want this one.
4655 lt_cv_deplibs_check_method=pass_all
4659 lt_cv_deplibs_check_method=pass_all
4663 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4664 lt_cv_file_magic_cmd='/usr/bin/file -L'
4665 lt_cv_file_magic_test_file=/shlib/libc.so
4669 # func_win32_libid is a shell function defined in ltmain.sh
4670 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4671 lt_cv_file_magic_cmd='func_win32_libid'
4675 # Base MSYS/MinGW do not provide the 'file' command needed by
4676 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4677 # unless we find 'file', for example because we are cross-compiling.
4678 if ( file / ) >/dev/null 2>&1; then
4679 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4680 lt_cv_file_magic_cmd='func_win32_libid'
4682 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4683 lt_cv_file_magic_cmd='$OBJDUMP -f'
4687 darwin* | rhapsody*)
4688 lt_cv_deplibs_check_method=pass_all
4691 freebsd* | dragonfly*)
4692 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4695 # Not sure whether the presence of OpenBSD here was a mistake.
4696 # Let's accept both of them until this is cleared up.
4697 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4698 lt_cv_file_magic_cmd=/usr/bin/file
4699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4703 lt_cv_deplibs_check_method=pass_all
4708 lt_cv_deplibs_check_method=pass_all
4711 hpux10.20* | hpux11*)
4712 lt_cv_file_magic_cmd=/usr/bin/file
4715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4716 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4719 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]'
4720 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4723 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4724 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4730 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4734 irix5* | irix6* | nonstopux*)
4736 *-32|*"-32 ") libmagic=32-bit;;
4737 *-n32|*"-n32 ") libmagic=N32;;
4738 *-64|*"-64 ") libmagic=64-bit;;
4739 *) libmagic=never-match;;
4741 lt_cv_deplibs_check_method=pass_all
4744 # This must be Linux ELF.
4745 linux* | k*bsd*-gnu)
4746 lt_cv_deplibs_check_method=pass_all
4750 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4759 lt_cv_file_magic_cmd=/usr/bin/file
4760 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4764 lt_cv_deplibs_check_method=unknown
4768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4775 osf3* | osf4* | osf5*)
4776 lt_cv_deplibs_check_method=pass_all
4780 lt_cv_deplibs_check_method=pass_all
4784 lt_cv_deplibs_check_method=pass_all
4788 case $host_vendor in
4790 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]'
4791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4794 lt_cv_deplibs_check_method=pass_all
4797 lt_cv_file_magic_cmd='/bin/file'
4798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4801 lt_cv_file_magic_cmd='/bin/file'
4802 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4803 lt_cv_file_magic_test_file=/lib/libc.so
4806 lt_cv_deplibs_check_method=pass_all
4809 lt_cv_deplibs_check_method=pass_all
4814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4815 lt_cv_deplibs_check_method=pass_all
4820 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4821 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4822 file_magic_cmd=$lt_cv_file_magic_cmd
4823 deplibs_check_method=$lt_cv_deplibs_check_method
4824 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4829 # If no C compiler was specified, use CC.
4832 # If no C compiler flags were specified, use CFLAGS.
4833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4835 # Allow CC to be a program name with arguments.
4839 # Check whether --enable-libtool-lock was given.
4840 if test "${enable_libtool_lock+set}" = set; then
4841 enableval=$enable_libtool_lock;
4844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4846 # Some flags need to be propagated to the compiler or linker for good
4850 # Find out which ABI we are using.
4851 echo 'int i;' > conftest.$ac_ext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; then
4857 case `/usr/bin/file conftest.$ac_objext` in
4869 # Find out which ABI we are using.
4870 echo '#line 4870 "configure"' > conftest.$ac_ext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; then
4876 if test "$lt_cv_prog_gnu_ld" = yes; then
4877 case `/usr/bin/file conftest.$ac_objext` in
4879 LD="${LD-ld} -melf32bsmip"
4882 LD="${LD-ld} -melf32bmipn32"
4885 LD="${LD-ld} -melf64bmip"
4889 case `/usr/bin/file conftest.$ac_objext` in
4905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4906 s390*-*linux*|sparc*-*linux*)
4907 # Find out which ABI we are using.
4908 echo 'int i;' > conftest.$ac_ext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; then
4914 case `/usr/bin/file conftest.o` in
4917 x86_64-*kfreebsd*-gnu)
4918 LD="${LD-ld} -m elf_i386_fbsd"
4921 LD="${LD-ld} -m elf_i386"
4923 ppc64-*linux*|powerpc64-*linux*)
4924 LD="${LD-ld} -m elf32ppclinux"
4927 LD="${LD-ld} -m elf_s390"
4930 LD="${LD-ld} -m elf32_sparc"
4936 x86_64-*kfreebsd*-gnu)
4937 LD="${LD-ld} -m elf_x86_64_fbsd"
4940 LD="${LD-ld} -m elf_x86_64"
4942 ppc*-*linux*|powerpc*-*linux*)
4943 LD="${LD-ld} -m elf64ppc"
4946 LD="${LD-ld} -m elf64_s390"
4949 LD="${LD-ld} -m elf64_sparc"
4959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4960 SAVE_CFLAGS="$CFLAGS"
4961 CFLAGS="$CFLAGS -belf"
4962 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4963 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4964 if test "${lt_cv_cc_needs_belf+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4988 rm -f conftest.$ac_objext conftest$ac_exeext
4989 if { (ac_try="$ac_link"
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_link") 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest$ac_exeext &&
5005 $as_test_x conftest$ac_exeext; then
5006 lt_cv_cc_needs_belf=yes
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5011 lt_cv_cc_needs_belf=no
5014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5015 conftest$ac_exeext conftest.$ac_ext
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5024 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5025 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5027 CFLAGS="$SAVE_CFLAGS"
5031 # Find out which ABI we are using.
5032 echo 'int i;' > conftest.$ac_ext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; then
5038 case `/usr/bin/file conftest.o` in
5040 case $lt_cv_prog_gnu_ld in
5041 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5042 *) LD="${LD-ld} -64" ;;
5053 need_locks="$enable_libtool_lock"
5057 ac_cpp='$CPP $CPPFLAGS'
5058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5062 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5063 # On Suns, sometimes $CPP names a directory.
5064 if test -n "$CPP" && test -d "$CPP"; then
5067 if test -z "$CPP"; then
5068 if test "${ac_cv_prog_CPP+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 # Double quotes because CPP needs to be expanded
5072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5075 for ac_c_preproc_warn_flag in '' yes
5077 # Use a header file that comes with gcc, so configuring glibc
5078 # with a fresh cross-compiler works.
5079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080 # <limits.h> exists even on freestanding compilers.
5081 # On the NeXT, cc -E runs the code through the compiler's parser,
5082 # not just through cpp. "Syntax error" is here to catch this case.
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5090 # include <limits.h>
5092 # include <assert.h>
5096 if { (ac_try="$ac_cpp conftest.$ac_ext"
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null && {
5109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 # Broken: fails on valid input.
5121 rm -f conftest.err conftest.$ac_ext
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat >conftest.$ac_ext <<_ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #include <ac_nonexistent.h>
5133 if { (ac_try="$ac_cpp conftest.$ac_ext"
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } >/dev/null && {
5146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5149 # Broken: success on invalid input.
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 # Passes both tests.
5160 rm -f conftest.err conftest.$ac_ext
5163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5164 rm -f conftest.err conftest.$ac_ext
5165 if $ac_preproc_ok; then
5177 { echo "$as_me:$LINENO: result: $CPP" >&5
5178 echo "${ECHO_T}$CPP" >&6; }
5180 for ac_c_preproc_warn_flag in '' yes
5182 # Use a header file that comes with gcc, so configuring glibc
5183 # with a fresh cross-compiler works.
5184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5185 # <limits.h> exists even on freestanding compilers.
5186 # On the NeXT, cc -E runs the code through the compiler's parser,
5187 # not just through cpp. "Syntax error" is here to catch this case.
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5195 # include <limits.h>
5197 # include <assert.h>
5201 if { (ac_try="$ac_cpp conftest.$ac_ext"
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5209 grep -v '^ *+' conftest.er1 >conftest.err
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } >/dev/null && {
5214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 # Broken: fails on valid input.
5226 rm -f conftest.err conftest.$ac_ext
5228 # OK, works on sane cases. Now check whether nonexistent headers
5229 # can be detected and how.
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #include <ac_nonexistent.h>
5238 if { (ac_try="$ac_cpp conftest.$ac_ext"
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5246 grep -v '^ *+' conftest.er1 >conftest.err
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null && {
5251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5254 # Broken: success on invalid input.
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 # Passes both tests.
5265 rm -f conftest.err conftest.$ac_ext
5268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5269 rm -f conftest.err conftest.$ac_ext
5270 if $ac_preproc_ok; then
5273 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5274 See \`config.log' for more details." >&5
5275 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5276 See \`config.log' for more details." >&2;}
5277 { (exit 1); exit 1; }; }
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5288 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5289 if test "${ac_cv_header_stdc+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5311 rm -f conftest.$ac_objext
5312 if { (ac_try="$ac_compile"
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_compile") 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest.$ac_objext; then
5328 ac_cv_header_stdc=yes
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 ac_cv_header_stdc=no
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 if test $ac_cv_header_stdc = yes; then
5339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "memchr" >/dev/null 2>&1; then
5353 ac_cv_header_stdc=no
5359 if test $ac_cv_header_stdc = yes; then
5360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5371 $EGREP "free" >/dev/null 2>&1; then
5374 ac_cv_header_stdc=no
5380 if test $ac_cv_header_stdc = yes; then
5381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5382 if test "$cross_compiling" = yes; then
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5393 #if ((' ' & 0x0FF) == 0x020)
5394 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5395 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5397 # define ISLOWER(c) \
5398 (('a' <= (c) && (c) <= 'i') \
5399 || ('j' <= (c) && (c) <= 'r') \
5400 || ('s' <= (c) && (c) <= 'z'))
5401 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5404 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5409 for (i = 0; i < 256; i++)
5410 if (XOR (islower (i), ISLOWER (i))
5411 || toupper (i) != TOUPPER (i))
5416 rm -f conftest$ac_exeext
5417 if { (ac_try="$ac_link"
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_link") 2>&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5427 { (case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_try") 2>&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5438 echo "$as_me: program exited with status $ac_status" >&5
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5443 ac_cv_header_stdc=no
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5451 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5452 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5453 if test $ac_cv_header_stdc = yes; then
5455 cat >>confdefs.h <<\_ACEOF
5456 #define STDC_HEADERS 1
5461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5471 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5472 inttypes.h stdint.h unistd.h
5474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 cat >conftest.$ac_ext <<_ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 $ac_includes_default
5488 #include <$ac_header>
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5499 grep -v '^ *+' conftest.er1 >conftest.err
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && {
5504 test -z "$ac_c_werror_flag" ||
5505 test ! -s conftest.err
5506 } && test -s conftest.$ac_objext; then
5507 eval "$as_ac_Header=yes"
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 eval "$as_ac_Header=no"
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 ac_res=`eval echo '${'$as_ac_Header'}'`
5518 { echo "$as_me:$LINENO: result: $ac_res" >&5
5519 echo "${ECHO_T}$ac_res" >&6; }
5520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5521 cat >>confdefs.h <<_ACEOF
5522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5531 for ac_header in dlfcn.h
5533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 ac_res=`eval echo '${'$as_ac_Header'}'`
5541 { echo "$as_me:$LINENO: result: $ac_res" >&5
5542 echo "${ECHO_T}$ac_res" >&6; }
5544 # Is the header compilable?
5545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 $ac_includes_default
5554 #include <$ac_header>
5556 rm -f conftest.$ac_objext
5557 if { (ac_try="$ac_compile"
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compile") 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_c_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
5573 ac_header_compiler=yes
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5578 ac_header_compiler=no
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5583 echo "${ECHO_T}$ac_header_compiler" >&6; }
5585 # Is the header present?
5586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 #include <$ac_header>
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null && {
5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5612 ac_header_preproc=yes
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 ac_header_preproc=no
5620 rm -f conftest.err conftest.$ac_ext
5621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5622 echo "${ECHO_T}$ac_header_preproc" >&6; }
5624 # So? What about this header?
5625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5631 ac_header_preproc=yes
5634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 eval "$as_ac_Header=\$ac_header_preproc"
5656 ac_res=`eval echo '${'$as_ac_Header'}'`
5657 { echo "$as_me:$LINENO: result: $ac_res" >&5
5658 echo "${ECHO_T}$ac_res" >&6; }
5661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5662 cat >>confdefs.h <<_ACEOF
5663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5672 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5673 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5674 (test "X$CXX" != "Xg++"))) ; then
5676 ac_cpp='$CXXCPP $CPPFLAGS'
5677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5680 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5681 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5682 if test -z "$CXXCPP"; then
5683 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 # Double quotes because CXXCPP needs to be expanded
5687 for CXXCPP in "$CXX -E" "/lib/cpp"
5690 for ac_cxx_preproc_warn_flag in '' yes
5692 # Use a header file that comes with gcc, so configuring glibc
5693 # with a fresh cross-compiler works.
5694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5695 # <limits.h> exists even on freestanding compilers.
5696 # On the NeXT, cc -E runs the code through the compiler's parser,
5697 # not just through cpp. "Syntax error" is here to catch this case.
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5705 # include <limits.h>
5707 # include <assert.h>
5711 if { (ac_try="$ac_cpp conftest.$ac_ext"
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } >/dev/null && {
5724 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 # Broken: fails on valid input.
5736 rm -f conftest.err conftest.$ac_ext
5738 # OK, works on sane cases. Now check whether nonexistent headers
5739 # can be detected and how.
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 #include <ac_nonexistent.h>
5748 if { (ac_try="$ac_cpp conftest.$ac_ext"
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } >/dev/null && {
5761 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5762 test ! -s conftest.err
5764 # Broken: success on invalid input.
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 # Passes both tests.
5775 rm -f conftest.err conftest.$ac_ext
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.err conftest.$ac_ext
5780 if $ac_preproc_ok; then
5785 ac_cv_prog_CXXCPP=$CXXCPP
5788 CXXCPP=$ac_cv_prog_CXXCPP
5790 ac_cv_prog_CXXCPP=$CXXCPP
5792 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5793 echo "${ECHO_T}$CXXCPP" >&6; }
5795 for ac_cxx_preproc_warn_flag in '' yes
5797 # Use a header file that comes with gcc, so configuring glibc
5798 # with a fresh cross-compiler works.
5799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5800 # <limits.h> exists even on freestanding compilers.
5801 # On the NeXT, cc -E runs the code through the compiler's parser,
5802 # not just through cpp. "Syntax error" is here to catch this case.
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5810 # include <limits.h>
5812 # include <assert.h>
5816 if { (ac_try="$ac_cpp conftest.$ac_ext"
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5824 grep -v '^ *+' conftest.er1 >conftest.err
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } >/dev/null && {
5829 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5830 test ! -s conftest.err
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 # Broken: fails on valid input.
5841 rm -f conftest.err conftest.$ac_ext
5843 # OK, works on sane cases. Now check whether nonexistent headers
5844 # can be detected and how.
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 #include <ac_nonexistent.h>
5853 if { (ac_try="$ac_cpp conftest.$ac_ext"
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5861 grep -v '^ *+' conftest.er1 >conftest.err
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } >/dev/null && {
5866 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5867 test ! -s conftest.err
5869 # Broken: success on invalid input.
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 # Passes both tests.
5880 rm -f conftest.err conftest.$ac_ext
5883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5884 rm -f conftest.err conftest.$ac_ext
5885 if $ac_preproc_ok; then
5888 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5889 See \`config.log' for more details." >&5
5890 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5891 See \`config.log' for more details." >&2;}
5892 { (exit 1); exit 1; }; }
5896 ac_cpp='$CXXCPP $CPPFLAGS'
5897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5905 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5906 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5907 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5908 if test -n "$ac_tool_prefix"; then
5909 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
5911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5915 if test "${ac_cv_prog_F77+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 if test -n "$F77"; then
5919 ac_cv_prog_F77="$F77" # Let the user override the test.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 if test -n "$F77"; then
5940 { echo "$as_me:$LINENO: result: $F77" >&5
5941 echo "${ECHO_T}$F77" >&6; }
5943 { echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6; }
5948 test -n "$F77" && break
5951 if test -z "$F77"; then
5953 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
5955 # Extract the first word of "$ac_prog", so it can be a program name with args.
5956 set dummy $ac_prog; ac_word=$2
5957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 if test -n "$ac_ct_F77"; then
5963 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_ac_ct_F77="$ac_prog"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5983 if test -n "$ac_ct_F77"; then
5984 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5985 echo "${ECHO_T}$ac_ct_F77" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5992 test -n "$ac_ct_F77" && break
5995 if test "x$ac_ct_F77" = x; then
5998 case $cross_compiling:$ac_tool_warned in
6000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6001 whose name does not start with the host triplet. If you think this
6002 configuration is useful to you, please write to autoconf@gnu.org." >&5
6003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6004 whose name does not start with the host triplet. If you think this
6005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6006 ac_tool_warned=yes ;;
6013 # Provide some information about the compiler.
6014 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6015 ac_compiler=`set X $ac_compile; echo $2`
6016 { (ac_try="$ac_compiler --version >&5"
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compiler --version >&5") 2>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }
6026 { (ac_try="$ac_compiler -v >&5"
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_compiler -v >&5") 2>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }
6036 { (ac_try="$ac_compiler -V >&5"
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compiler -V >&5") 2>&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }
6048 # If we don't use `.F' as extension, the preprocessor is not run on the
6049 # input file. (Note that this only needs to work for GNU compilers.)
6052 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6053 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6054 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 cat >conftest.$ac_ext <<_ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compile") 2>conftest.er1
6074 grep -v '^ *+' conftest.er1 >conftest.err
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_f77_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6094 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6095 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6097 ac_test_FFLAGS=${FFLAGS+set}
6098 ac_save_FFLAGS=$FFLAGS
6100 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6101 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6102 if test "${ac_cv_prog_f77_g+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 cat >conftest.$ac_ext <<_ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_compile") 2>conftest.er1
6120 grep -v '^ *+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_f77_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest.$ac_objext; then
6128 ac_cv_prog_f77_g=yes
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6140 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6141 if test "$ac_test_FFLAGS" = set; then
6142 FFLAGS=$ac_save_FFLAGS
6143 elif test $ac_cv_prog_f77_g = yes; then
6144 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6150 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6157 G77=`test $ac_compiler_gnu = yes && echo yes`
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
6166 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6168 # find the maximum length of command line arguments
6169 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6170 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6171 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 # On DJGPP, this test can blow up pretty badly due to problems in libc
6180 # (any single argument exceeding 2000 bytes causes a buffer overrun
6181 # during glob expansion). Even if it were fixed, the result of this
6182 # check would be larger than it should be.
6183 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6187 # Under GNU Hurd, this test is not required because there is
6188 # no limit to the length of command line arguments.
6189 # Libtool will interpret -1 as no limit whatsoever
6190 lt_cv_sys_max_cmd_len=-1;
6194 # On Win9x/ME, this test blows up -- it succeeds, but takes
6195 # about 5 minutes as the teststring grows exponentially.
6196 # Worse, since 9x/ME are not pre-emptively multitasking,
6197 # you end up with a "frozen" computer, even though with patience
6198 # the test eventually succeeds (with a max line length of 256k).
6199 # Instead, let's just punt: use the minimum linelength reported by
6200 # all of the supported platforms: 8192 (on NT/2K/XP).
6201 lt_cv_sys_max_cmd_len=8192;
6205 # On AmigaOS with pdksh, this test takes hours, literally.
6206 # So we just punt and use a minimum line length of 8192.
6207 lt_cv_sys_max_cmd_len=8192;
6210 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6211 # This has been around since 386BSD, at least. Likely further.
6212 if test -x /sbin/sysctl; then
6213 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6214 elif test -x /usr/sbin/sysctl; then
6215 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6217 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6219 # And add a safety zone
6220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6225 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6226 lt_cv_sys_max_cmd_len=196608
6230 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6231 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6232 # nice to cause kernel panics so lets avoid the loop below.
6233 # First set a reasonable default.
6234 lt_cv_sys_max_cmd_len=16384
6236 if test -x /sbin/sysconfig; then
6237 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6238 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6243 lt_cv_sys_max_cmd_len=102400
6245 sysv5* | sco5v6* | sysv4.2uw2*)
6246 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6247 if test -n "$kargmax"; then
6248 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6250 lt_cv_sys_max_cmd_len=32768
6254 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6255 if test -n "$lt_cv_sys_max_cmd_len"; then
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6259 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6260 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6261 = "XX$teststring") >/dev/null 2>&1 &&
6262 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6263 lt_cv_sys_max_cmd_len=$new_result &&
6264 test $i != 17 # 1/2 MB should be enough
6267 teststring=$teststring$teststring
6270 # Add a significant safety factor because C++ compilers can tack on massive
6271 # amounts of additional arguments before passing them to the linker.
6272 # It appears as though 1/2 is a usable value.
6273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6280 if test -n $lt_cv_sys_max_cmd_len ; then
6281 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6282 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6284 { echo "$as_me:$LINENO: result: none" >&5
6285 echo "${ECHO_T}none" >&6; }
6292 # Check for command to grab the raw symbol name followed by C symbol from nm.
6293 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6294 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6295 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 # These are sane defaults that work on at least a few old systems.
6300 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6302 # Character class describing NM global symbol codes.
6303 symcode='[BCDEGRST]'
6305 # Regexp to match symbols that can be accessed directly from C.
6306 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6308 # Transform an extracted symbol line into a proper C declaration
6309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6311 # Transform an extracted symbol line into symbol name and symbol address
6312 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'"
6314 # Define system-specific variables.
6319 cygwin* | mingw* | pw32*)
6320 symcode='[ABCDGISTW]'
6322 hpux*) # Its linker distinguishes data from code symbols
6323 if test "$host_cpu" = ia64; then
6324 symcode='[ABCDEGRST]'
6326 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6327 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'"
6329 linux* | k*bsd*-gnu)
6330 if test "$host_cpu" = ia64; then
6331 symcode='[ABCDGIRSTW]'
6332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6333 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'"
6337 symcode='[BCDEGRST]'
6340 symcode='[BCDEGQRST]'
6351 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6359 # Handle CRLF in mingw tool chain
6363 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6367 # If we're using GNU nm, then use its standard symbol codes.
6368 case `$NM -V 2>&1` in
6369 *GNU* | *'with BFD'*)
6370 symcode='[ABCDGIRSTW]' ;;
6373 # Try without a prefix undercore, then with it.
6374 for ac_symprfx in "" "_"; do
6376 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6377 symxfrm="\\1 $ac_symprfx\\2 \\2"
6379 # Write the raw and C identifiers.
6380 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6382 # Check to see that the pipe works correctly.
6386 cat > conftest.$ac_ext <<EOF
6391 void nm_test_func(){}
6395 int main(){nm_test_var='a';nm_test_func();return(0);}
6398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399 (eval $ac_compile) 2>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; then
6403 # Now try to grab the symbols.
6405 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6406 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && test -s "$nlist"; then
6410 # Try sorting and uniquifying the output.
6411 if sort "$nlist" | uniq > "$nlist"T; then
6412 mv -f "$nlist"T "$nlist"
6417 # Make sure that we snagged all the symbols we need.
6418 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6419 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6420 cat <<EOF > conftest.$ac_ext
6426 # Now generate the symbol file.
6427 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6429 cat <<EOF >> conftest.$ac_ext
6430 #if defined (__STDC__) && __STDC__
6431 # define lt_ptr_t void *
6433 # define lt_ptr_t char *
6437 /* The mapping between symbol names and symbols. */
6442 lt_preloaded_symbols[] =
6445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6446 cat <<\EOF >> conftest.$ac_ext
6454 # Now try linking the two files.
6455 mv conftest.$ac_objext conftstm.$ac_objext
6456 lt_save_LIBS="$LIBS"
6457 lt_save_CFLAGS="$CFLAGS"
6458 LIBS="conftstm.$ac_objext"
6459 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6467 LIBS="$lt_save_LIBS"
6468 CFLAGS="$lt_save_CFLAGS"
6470 echo "cannot find nm_test_func in $nlist" >&5
6473 echo "cannot find nm_test_var in $nlist" >&5
6476 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6479 echo "$progname: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6482 rm -f conftest* conftst*
6484 # Do not use the global_symbol_pipe unless it works.
6485 if test "$pipe_works" = yes; then
6488 lt_cv_sys_global_symbol_pipe=
6494 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6495 lt_cv_sys_global_symbol_to_cdecl=
6497 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6498 { echo "$as_me:$LINENO: result: failed" >&5
6499 echo "${ECHO_T}failed" >&6; }
6501 { echo "$as_me:$LINENO: result: ok" >&5
6502 echo "${ECHO_T}ok" >&6; }
6505 { echo "$as_me:$LINENO: checking for objdir" >&5
6506 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6507 if test "${lt_cv_objdir+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 rm -f .libs 2>/dev/null
6511 mkdir .libs 2>/dev/null
6512 if test -d .libs; then
6515 # MS-DOS does not allow filenames that begin with a dot.
6518 rmdir .libs 2>/dev/null
6520 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6521 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6522 objdir=$lt_cv_objdir
6530 # AIX sometimes has problems with the GCC collect2 program. For some
6531 # reason, if we set the COLLECT_NAMES environment variable, the problems
6532 # vanish in a puff of smoke.
6533 if test "X${COLLECT_NAMES+set}" != Xset; then
6535 export COLLECT_NAMES
6540 # Sed substitution that helps us do robust quoting. It backslashifies
6541 # metacharacters that are still active within double-quoted strings.
6542 Xsed='sed -e 1s/^X//'
6543 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6545 # Same as above, but do not quote variable references.
6546 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6548 # Sed substitution to delay expansion of an escaped shell variable in a
6549 # double_quote_subst'ed string.
6550 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6552 # Sed substitution to avoid accidental globbing in evaled expressions
6553 no_glob_subst='s/\*/\\\*/g'
6559 default_ofile=libtool
6560 can_build_shared=yes
6562 # All known linkers require a `.a' archive for static linking (except MSVC,
6563 # which needs '.lib').
6565 ltmain="$ac_aux_dir/ltmain.sh"
6566 ofile="$default_ofile"
6567 with_gnu_ld="$lt_cv_prog_gnu_ld"
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_AR+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$AR"; then
6578 ac_cv_prog_AR="$AR" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_AR="${ac_tool_prefix}ar"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 if test -n "$AR"; then
6599 { echo "$as_me:$LINENO: result: $AR" >&5
6600 echo "${ECHO_T}$AR" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6608 if test -z "$ac_cv_prog_AR"; then
6610 # Extract the first word of "ar", so it can be a program name with args.
6611 set dummy ar; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 if test -n "$ac_ct_AR"; then
6618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_ac_ct_AR="ar"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638 if test -n "$ac_ct_AR"; then
6639 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6640 echo "${ECHO_T}$ac_ct_AR" >&6; }
6642 { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6646 if test "x$ac_ct_AR" = x; then
6649 case $cross_compiling:$ac_tool_warned in
6651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet. If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned=yes ;;
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_RANLIB+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 if test -n "$RANLIB"; then
6674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 RANLIB=$ac_cv_prog_RANLIB
6694 if test -n "$RANLIB"; then
6695 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6696 echo "${ECHO_T}$RANLIB" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6704 if test -z "$ac_cv_prog_RANLIB"; then
6705 ac_ct_RANLIB=$RANLIB
6706 # Extract the first word of "ranlib", so it can be a program name with args.
6707 set dummy ranlib; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 if test -n "$ac_ct_RANLIB"; then
6714 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_ac_ct_RANLIB="ranlib"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6734 if test -n "$ac_ct_RANLIB"; then
6735 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6736 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6742 if test "x$ac_ct_RANLIB" = x; then
6745 case $cross_compiling:$ac_tool_warned in
6747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6748 whose name does not start with the host triplet. If you think this
6749 configuration is useful to you, please write to autoconf@gnu.org." >&5
6750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6751 whose name does not start with the host triplet. If you think this
6752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6753 ac_tool_warned=yes ;;
6755 RANLIB=$ac_ct_RANLIB
6758 RANLIB="$ac_cv_prog_RANLIB"
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}strip; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_prog_STRIP+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 if test -n "$STRIP"; then
6770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 STRIP=$ac_cv_prog_STRIP
6790 if test -n "$STRIP"; then
6791 { echo "$as_me:$LINENO: result: $STRIP" >&5
6792 echo "${ECHO_T}$STRIP" >&6; }
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6800 if test -z "$ac_cv_prog_STRIP"; then
6802 # Extract the first word of "strip", so it can be a program name with args.
6803 set dummy strip; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 if test -n "$ac_ct_STRIP"; then
6810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_prog_ac_ct_STRIP="strip"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6830 if test -n "$ac_ct_STRIP"; then
6831 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6832 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6838 if test "x$ac_ct_STRIP" = x; then
6841 case $cross_compiling:$ac_tool_warned in
6843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6844 whose name does not start with the host triplet. If you think this
6845 configuration is useful to you, please write to autoconf@gnu.org." >&5
6846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6847 whose name does not start with the host triplet. If you think this
6848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6849 ac_tool_warned=yes ;;
6854 STRIP="$ac_cv_prog_STRIP"
6859 old_CFLAGS="$CFLAGS"
6861 # Set sane defaults for various variables
6862 test -z "$AR" && AR=ar
6863 test -z "$AR_FLAGS" && AR_FLAGS=cru
6864 test -z "$AS" && AS=as
6865 test -z "$CC" && CC=cc
6866 test -z "$LTCC" && LTCC=$CC
6867 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6868 test -z "$DLLTOOL" && DLLTOOL=dlltool
6869 test -z "$LD" && LD=ld
6870 test -z "$LN_S" && LN_S="ln -s"
6871 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6872 test -z "$NM" && NM=nm
6873 test -z "$SED" && SED=sed
6874 test -z "$OBJDUMP" && OBJDUMP=objdump
6875 test -z "$RANLIB" && RANLIB=:
6876 test -z "$STRIP" && STRIP=:
6877 test -z "$ac_objext" && ac_objext=o
6879 # Determine commands to create old-style static archives.
6880 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6881 old_postinstall_cmds='chmod 644 $oldlib'
6882 old_postuninstall_cmds=
6884 if test -n "$RANLIB"; then
6887 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6893 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6896 for cc_temp in $compiler""; do
6898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6904 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6907 # Only perform the check for file, if the check method requires it
6908 case $deplibs_check_method in
6910 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6911 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6912 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6913 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6921 lt_save_MAGIC_CMD="$MAGIC_CMD"
6922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6923 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6924 for ac_dir in $ac_dummy; do
6926 test -z "$ac_dir" && ac_dir=.
6927 if test -f $ac_dir/${ac_tool_prefix}file; then
6928 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6929 if test -n "$file_magic_test_file"; then
6930 case $deplibs_check_method in
6932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6935 $EGREP "$file_magic_regex" > /dev/null; then
6940 *** Warning: the command libtool uses to detect shared libraries,
6941 *** $file_magic_cmd, produces output that libtool cannot recognize.
6942 *** The result is that libtool may fail to recognize shared libraries
6943 *** as such. This will affect the creation of libtool libraries that
6944 *** depend on shared libraries, but programs linked with such libtool
6945 *** libraries will work regardless of this problem. Nevertheless, you
6946 *** may want to report the problem to your system manager and/or to
6947 *** bug-libtool@gnu.org
6957 MAGIC_CMD="$lt_save_MAGIC_CMD"
6962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6963 if test -n "$MAGIC_CMD"; then
6964 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6965 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6967 { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6971 if test -z "$lt_cv_path_MAGIC_CMD"; then
6972 if test -n "$ac_tool_prefix"; then
6973 { echo "$as_me:$LINENO: checking for file" >&5
6974 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6975 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6983 lt_save_MAGIC_CMD="$MAGIC_CMD"
6984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6985 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6986 for ac_dir in $ac_dummy; do
6988 test -z "$ac_dir" && ac_dir=.
6989 if test -f $ac_dir/file; then
6990 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6991 if test -n "$file_magic_test_file"; then
6992 case $deplibs_check_method in
6994 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6997 $EGREP "$file_magic_regex" > /dev/null; then
7002 *** Warning: the command libtool uses to detect shared libraries,
7003 *** $file_magic_cmd, produces output that libtool cannot recognize.
7004 *** The result is that libtool may fail to recognize shared libraries
7005 *** as such. This will affect the creation of libtool libraries that
7006 *** depend on shared libraries, but programs linked with such libtool
7007 *** libraries will work regardless of this problem. Nevertheless, you
7008 *** may want to report the problem to your system manager and/or to
7009 *** bug-libtool@gnu.org
7019 MAGIC_CMD="$lt_save_MAGIC_CMD"
7024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7025 if test -n "$MAGIC_CMD"; then
7026 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7027 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7045 # Check whether --enable-libtool-lock was given.
7046 if test "${enable_libtool_lock+set}" = set; then
7047 enableval=$enable_libtool_lock;
7050 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7053 # Check whether --with-pic was given.
7054 if test "${with_pic+set}" = set; then
7055 withval=$with_pic; pic_mode="$withval"
7060 test -z "$pic_mode" && pic_mode=default
7062 # Use C for the default configuration in the libtool script
7066 ac_cpp='$CPP $CPPFLAGS'
7067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7072 # Source file extension for C test sources.
7075 # Object file extension for compiled C test sources.
7079 # Code to be used in simple compile tests
7080 lt_simple_compile_test_code="int some_variable = 0;"
7082 # Code to be used in simple link tests
7083 lt_simple_link_test_code='int main(){return(0);}'
7086 # If no C compiler was specified, use CC.
7089 # If no C compiler flags were specified, use CFLAGS.
7090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7092 # Allow CC to be a program name with arguments.
7096 # save warnings/boilerplate of simple test code
7097 ac_outfile=conftest.$ac_objext
7098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7100 _lt_compiler_boilerplate=`cat conftest.err`
7103 ac_outfile=conftest.$ac_objext
7104 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7106 _lt_linker_boilerplate=`cat conftest.err`
7111 lt_prog_compiler_no_builtin_flag=
7113 if test "$GCC" = yes; then
7114 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7117 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7118 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 lt_cv_prog_compiler_rtti_exceptions=no
7123 ac_outfile=conftest.$ac_objext
7124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7125 lt_compiler_flag="-fno-rtti -fno-exceptions"
7126 # Insert the option either (1) after the last *FLAGS variable, or
7127 # (2) before a word containing "conftest.", or (3) at the end.
7128 # Note that $ac_compile itself does not contain backslashes and begins
7129 # with a dollar sign (not a hyphen), so the echo should work correctly.
7130 # The option is referenced via a variable to avoid confusing sed.
7131 lt_compile=`echo "$ac_compile" | $SED \
7132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7134 -e 's:$: $lt_compiler_flag:'`
7135 (eval echo "\"\$as_me:7135: $lt_compile\"" >&5)
7136 (eval "$lt_compile" 2>conftest.err)
7138 cat conftest.err >&5
7139 echo "$as_me:7139: \$? = $ac_status" >&5
7140 if (exit $ac_status) && test -s "$ac_outfile"; then
7141 # The compiler can only warn and ignore the option if not recognized
7142 # So say no if there are warnings other than the usual output.
7143 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7146 lt_cv_prog_compiler_rtti_exceptions=yes
7152 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7153 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7163 lt_prog_compiler_wl=
7164 lt_prog_compiler_pic=
7165 lt_prog_compiler_static=
7167 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7168 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7170 if test "$GCC" = yes; then
7171 lt_prog_compiler_wl='-Wl,'
7172 lt_prog_compiler_static='-static'
7176 # All AIX code is PIC.
7177 if test "$host_cpu" = ia64; then
7178 # AIX 5 now supports IA64 processor
7179 lt_prog_compiler_static='-Bstatic'
7184 # FIXME: we need at least 68020 code to build shared libraries, but
7185 # adding the `-m68020' flag to GCC prevents building anything better,
7187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7190 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7191 # PIC is the default for these OSes.
7194 mingw* | cygwin* | pw32* | os2*)
7195 # This hack is so that the source file can tell whether it is being
7196 # built for inclusion in a dll (and should export symbols for example).
7197 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7198 # (--disable-auto-import) libraries
7199 lt_prog_compiler_pic='-DDLL_EXPORT'
7202 darwin* | rhapsody*)
7203 # PIC is the default on this platform
7204 # Common symbols not allowed in MH_DYLIB files
7205 lt_prog_compiler_pic='-fno-common'
7209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7210 # Instead, we relocate shared libraries at runtime.
7214 # Just because we use GCC doesn't mean we suddenly get shared libraries
7215 # on systems that don't support them.
7216 lt_prog_compiler_can_build_shared=no
7221 if test -d /usr/nec; then
7222 lt_prog_compiler_pic=-Kconform_pic
7227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7234 lt_prog_compiler_pic='-fPIC'
7240 lt_prog_compiler_pic='-fPIC'
7244 # PORTME Check for flag to pass linker flags through the system compiler.
7247 lt_prog_compiler_wl='-Wl,'
7248 if test "$host_cpu" = ia64; then
7249 # AIX 5 now supports IA64 processor
7250 lt_prog_compiler_static='-Bstatic'
7252 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7256 # PIC is the default on this platform
7257 # Common symbols not allowed in MH_DYLIB files
7258 case $cc_basename in
7260 lt_prog_compiler_pic='-qnocommon'
7261 lt_prog_compiler_wl='-Wl,'
7266 mingw* | cygwin* | pw32* | os2*)
7267 # This hack is so that the source file can tell whether it is being
7268 # built for inclusion in a dll (and should export symbols for example).
7269 lt_prog_compiler_pic='-DDLL_EXPORT'
7272 hpux9* | hpux10* | hpux11*)
7273 lt_prog_compiler_wl='-Wl,'
7274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7281 lt_prog_compiler_pic='+Z'
7284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7285 lt_prog_compiler_static='${wl}-a ${wl}archive'
7288 irix5* | irix6* | nonstopux*)
7289 lt_prog_compiler_wl='-Wl,'
7290 # PIC (with -KPIC) is the default.
7291 lt_prog_compiler_static='-non_shared'
7295 lt_prog_compiler_pic='-KPIC'
7296 lt_prog_compiler_static='-Bstatic'
7299 linux* | k*bsd*-gnu)
7300 case $cc_basename in
7302 lt_prog_compiler_wl='-Wl,'
7303 lt_prog_compiler_pic='-KPIC'
7304 lt_prog_compiler_static='-static'
7306 pgcc* | pgf77* | pgf90* | pgf95*)
7307 # Portland Group compilers (*not* the Pentium gcc compiler,
7308 # which looks to be a dead project)
7309 lt_prog_compiler_wl='-Wl,'
7310 lt_prog_compiler_pic='-fpic'
7311 lt_prog_compiler_static='-Bstatic'
7314 lt_prog_compiler_wl='-Wl,'
7315 # All Alpha code is PIC.
7316 lt_prog_compiler_static='-non_shared'
7319 case `$CC -V 2>&1 | sed 5q` in
7322 lt_prog_compiler_pic='-KPIC'
7323 lt_prog_compiler_static='-Bstatic'
7324 lt_prog_compiler_wl='-Wl,'
7327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7328 lt_prog_compiler_pic='-KPIC'
7329 lt_prog_compiler_static='-Bstatic'
7330 lt_prog_compiler_wl=''
7337 osf3* | osf4* | osf5*)
7338 lt_prog_compiler_wl='-Wl,'
7339 # All OSF/1 code is PIC.
7340 lt_prog_compiler_static='-non_shared'
7344 lt_prog_compiler_static='-non_shared'
7348 lt_prog_compiler_pic='-KPIC'
7349 lt_prog_compiler_static='-Bstatic'
7350 case $cc_basename in
7352 lt_prog_compiler_wl='-Qoption ld ';;
7354 lt_prog_compiler_wl='-Wl,';;
7359 lt_prog_compiler_wl='-Qoption ld '
7360 lt_prog_compiler_pic='-PIC'
7361 lt_prog_compiler_static='-Bstatic'
7364 sysv4 | sysv4.2uw2* | sysv4.3*)
7365 lt_prog_compiler_wl='-Wl,'
7366 lt_prog_compiler_pic='-KPIC'
7367 lt_prog_compiler_static='-Bstatic'
7371 if test -d /usr/nec ;then
7372 lt_prog_compiler_pic='-Kconform_pic'
7373 lt_prog_compiler_static='-Bstatic'
7377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7378 lt_prog_compiler_wl='-Wl,'
7379 lt_prog_compiler_pic='-KPIC'
7380 lt_prog_compiler_static='-Bstatic'
7384 lt_prog_compiler_wl='-Wl,'
7385 lt_prog_compiler_can_build_shared=no
7389 lt_prog_compiler_pic='-pic'
7390 lt_prog_compiler_static='-Bstatic'
7394 lt_prog_compiler_can_build_shared=no
7399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7400 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7403 # Check to make sure the PIC flag actually works.
7405 if test -n "$lt_prog_compiler_pic"; then
7407 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7409 if test "${lt_prog_compiler_pic_works+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 lt_prog_compiler_pic_works=no
7413 ac_outfile=conftest.$ac_objext
7414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7415 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7416 # Insert the option either (1) after the last *FLAGS variable, or
7417 # (2) before a word containing "conftest.", or (3) at the end.
7418 # Note that $ac_compile itself does not contain backslashes and begins
7419 # with a dollar sign (not a hyphen), so the echo should work correctly.
7420 # The option is referenced via a variable to avoid confusing sed.
7421 lt_compile=`echo "$ac_compile" | $SED \
7422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7424 -e 's:$: $lt_compiler_flag:'`
7425 (eval echo "\"\$as_me:7425: $lt_compile\"" >&5)
7426 (eval "$lt_compile" 2>conftest.err)
7428 cat conftest.err >&5
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 if (exit $ac_status) && test -s "$ac_outfile"; then
7431 # The compiler can only warn and ignore the option if not recognized
7432 # So say no if there are warnings other than the usual output.
7433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7436 lt_prog_compiler_pic_works=yes
7442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7443 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7445 if test x"$lt_prog_compiler_pic_works" = xyes; then
7446 case $lt_prog_compiler_pic in
7448 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7451 lt_prog_compiler_pic=
7452 lt_prog_compiler_can_build_shared=no
7457 # For platforms which do not support PIC, -DPIC is meaningless:
7459 lt_prog_compiler_pic=
7462 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7467 # Check to make sure the static flag actually works.
7469 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7471 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7472 if test "${lt_prog_compiler_static_works+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 lt_prog_compiler_static_works=no
7476 save_LDFLAGS="$LDFLAGS"
7477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7480 # The linker can only warn and ignore the option if not recognized
7481 # So say no if there are warnings
7482 if test -s conftest.err; then
7483 # Append any errors to the config.log.
7484 cat conftest.err 1>&5
7485 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7487 if diff conftest.exp conftest.er2 >/dev/null; then
7488 lt_prog_compiler_static_works=yes
7491 lt_prog_compiler_static_works=yes
7495 LDFLAGS="$save_LDFLAGS"
7498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7499 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7501 if test x"$lt_prog_compiler_static_works" = xyes; then
7504 lt_prog_compiler_static=
7508 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7510 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 lt_cv_prog_compiler_c_o=no
7514 $rm -r conftest 2>/dev/null
7518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7520 lt_compiler_flag="-o out/conftest2.$ac_objext"
7521 # Insert the option either (1) after the last *FLAGS variable, or
7522 # (2) before a word containing "conftest.", or (3) at the end.
7523 # Note that $ac_compile itself does not contain backslashes and begins
7524 # with a dollar sign (not a hyphen), so the echo should work correctly.
7525 lt_compile=`echo "$ac_compile" | $SED \
7526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7528 -e 's:$: $lt_compiler_flag:'`
7529 (eval echo "\"\$as_me:7529: $lt_compile\"" >&5)
7530 (eval "$lt_compile" 2>out/conftest.err)
7532 cat out/conftest.err >&5
7533 echo "$as_me:7533: \$? = $ac_status" >&5
7534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7536 # The compiler can only warn and ignore the option if not recognized
7537 # So say no if there are warnings
7538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7541 lt_cv_prog_compiler_c_o=yes
7546 # SGI C++ compiler will create directory out/ii_files/ for
7547 # template instantiation
7548 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7549 $rm out/* && rmdir out
7555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7559 hard_links="nottested"
7560 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7561 # do not overwrite the value of need_locks provided by the user
7562 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7568 ln conftest.a conftest.b 2>&5 || hard_links=no
7569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7570 { echo "$as_me:$LINENO: result: $hard_links" >&5
7571 echo "${ECHO_T}$hard_links" >&6; }
7572 if test "$hard_links" = no; then
7573 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7581 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7585 allow_undefined_flag=
7586 enable_shared_with_static_runtimes=no
7588 archive_expsym_cmds=
7589 old_archive_From_new_cmds=
7590 old_archive_from_expsyms_cmds=
7591 export_dynamic_flag_spec=
7592 whole_archive_flag_spec=
7593 thread_safe_flag_spec=
7594 hardcode_libdir_flag_spec=
7595 hardcode_libdir_flag_spec_ld=
7596 hardcode_libdir_separator=
7599 hardcode_shlibpath_var=unsupported
7600 link_all_deplibs=unknown
7601 hardcode_automatic=no
7604 always_export_symbols=no
7605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7606 # include_expsyms should be a list of space-separated symbols to be *always*
7607 # included in the symbol list
7609 # exclude_expsyms can be an extended regexp of symbols to exclude
7610 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7611 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7612 # as well as any symbol that contains `d'.
7613 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7615 # platforms (ab)use it in PIC code, but their linkers get confused if
7616 # the symbol is explicitly referenced. Since portable code cannot
7617 # rely on this symbol name, it's probably fine to never include it in
7618 # preloaded symbol tables.
7619 extract_expsyms_cmds=
7620 # Just being paranoid about ensuring that cc_basename is set.
7621 for cc_temp in $compiler""; do
7623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7629 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7632 cygwin* | mingw* | pw32*)
7633 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7634 # When not using gcc, we currently assume that we are using
7635 # Microsoft Visual C++.
7636 if test "$GCC" != yes; then
7641 # we just hope/assume this is gcc and not c89 (= MSVC++)
7650 if test "$with_gnu_ld" = yes; then
7651 # If archive_cmds runs LD, not CC, wlarc should be empty
7654 # Set some defaults for GNU ld with shared library support. These
7655 # are reset later if shared libraries are not supported. Putting them
7656 # here allows them to be overridden if necessary.
7657 runpath_var=LD_RUN_PATH
7658 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7659 export_dynamic_flag_spec='${wl}--export-dynamic'
7660 # ancient GNU ld didn't support --whole-archive et. al.
7661 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7662 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7664 whole_archive_flag_spec=
7666 supports_anon_versioning=no
7667 case `$LD -v 2>/dev/null` in
7668 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7669 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7670 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7671 *\ 2.11.*) ;; # other 2.11 versions
7672 *) supports_anon_versioning=yes ;;
7675 # See if GNU ld supports shared libraries.
7677 aix3* | aix4* | aix5*)
7678 # On AIX/PPC, the GNU linker is very broken
7679 if test "$host_cpu" != ia64; then
7683 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7684 *** to be unable to reliably create shared libraries on AIX.
7685 *** Therefore, libtool is disabling shared libraries support. If you
7686 *** really care for shared libraries, you may want to modify your PATH
7687 *** so that a non-GNU linker is found, and then restart.
7694 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)'
7695 hardcode_libdir_flag_spec='-L$libdir'
7696 hardcode_minus_L=yes
7698 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7699 # that the semantics of dynamic libraries on AmigaOS, at least up
7700 # to version 4, is to share data among multiple programs linked
7701 # with the same dynamic library. Since this doesn't match the
7702 # behavior of shared libraries on other platforms, we can't use
7708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7709 allow_undefined_flag=unsupported
7710 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7711 # support --undefined. This deserves some investigation. FIXME
7712 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7718 cygwin* | mingw* | pw32*)
7719 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7720 # as there is no search path for DLLs.
7721 hardcode_libdir_flag_spec='-L$libdir'
7722 allow_undefined_flag=unsupported
7723 always_export_symbols=no
7724 enable_shared_with_static_runtimes=yes
7725 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7727 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7729 # If the export-symbols file already is a .def file (1st line
7730 # is EXPORTS), use it as is; otherwise, prepend...
7731 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7732 cp $export_symbols $output_objdir/$soname.def;
7734 echo EXPORTS > $output_objdir/$soname.def;
7735 cat $export_symbols >> $output_objdir/$soname.def;
7737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7745 hardcode_shlibpath_var=no
7746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7747 export_dynamic_flag_spec='${wl}-E'
7748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7749 # Instead, shared libraries are loaded at an image base (0x10000000 by
7750 # default) and relocated if they conflict, which is a slow very memory
7751 # consuming and fragmenting process. To avoid this, we pick a random,
7752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7753 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7755 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7758 gnu* | linux* | k*bsd*-gnu)
7759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7761 case $cc_basename,$host_cpu in
7762 pgcc*) # Portland Group C compiler
7763 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7764 tmp_addflag=' $pic_flag'
7766 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7767 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7768 tmp_addflag=' $pic_flag -Mnomain' ;;
7769 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7770 tmp_addflag=' -i_dynamic' ;;
7771 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7772 tmp_addflag=' -i_dynamic -nofor_main' ;;
7773 ifc* | ifort*) # Intel Fortran compiler
7774 tmp_addflag=' -nofor_main' ;;
7776 case `$CC -V 2>&1 | sed 5q` in
7777 *Sun\ C*) # Sun C 5.9
7778 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7779 tmp_sharedflag='-G' ;;
7780 *Sun\ F*) # Sun Fortran 8.3
7781 tmp_sharedflag='-G' ;;
7783 tmp_sharedflag='-shared' ;;
7785 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7787 if test $supports_anon_versioning = yes; then
7788 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7790 $echo "local: *; };" >> $output_objdir/$libname.ver~
7791 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7799 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7800 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7809 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7813 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7814 *** create shared libraries on Solaris systems. Therefore, libtool
7815 *** is disabling shared libraries support. We urge you to upgrade GNU
7816 *** binutils to release 2.9.1 or newer. Another option is to modify
7817 *** your PATH or compiler configuration so that the native linker is
7818 *** used, and then restart.
7821 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7830 case `$LD -v 2>&1` in
7831 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7835 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7836 *** reliably create shared libraries on SCO systems. Therefore, libtool
7837 *** is disabling shared libraries support. We urge you to upgrade GNU
7838 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7839 *** your PATH or compiler configuration so that the native linker is
7840 *** used, and then restart.
7845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7846 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7857 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7860 hardcode_shlibpath_var=no
7864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7873 if test "$ld_shlibs" = no; then
7875 hardcode_libdir_flag_spec=
7876 export_dynamic_flag_spec=
7877 whole_archive_flag_spec=
7880 # PORTME fill in a description of your system's linker (not GNU ld)
7883 allow_undefined_flag=unsupported
7884 always_export_symbols=yes
7885 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'
7886 # Note: this linker hardcodes the directories in LIBPATH if there
7887 # are no directories specified by -L.
7888 hardcode_minus_L=yes
7889 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7890 # Neither direct hardcoding nor static linking is supported with a
7892 hardcode_direct=unsupported
7897 if test "$host_cpu" = ia64; then
7898 # On IA64, the linker does run time linking by default, so we don't
7899 # have to do anything special.
7900 aix_use_runtimelinking=no
7901 exp_sym_flag='-Bexport'
7904 # If we're using GNU nm, then we don't want the "-C" option.
7905 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7906 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7907 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'
7909 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'
7911 aix_use_runtimelinking=no
7913 # Test if we are trying to use run time linking or normal
7914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7915 # need to do runtime linking.
7916 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7917 for ld_flag in $LDFLAGS; do
7918 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7919 aix_use_runtimelinking=yes
7926 exp_sym_flag='-bexport'
7927 no_entry_flag='-bnoentry'
7930 # When large executables or shared objects are built, AIX ld can
7931 # have problems creating the table of contents. If linking a library
7932 # or program results in "error TOC overflow" add -mminimal-toc to
7933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7938 hardcode_libdir_separator=':'
7939 link_all_deplibs=yes
7941 if test "$GCC" = yes; then
7942 case $host_os in aix4.[012]|aix4.[012].*)
7943 # We only want to do this on AIX 4.2 and lower, the check
7944 # below for broken collect2 doesn't work under 4.3+
7945 collect2name=`${CC} -print-prog-name=collect2`
7946 if test -f "$collect2name" && \
7947 strings "$collect2name" | grep resolve_lib_name >/dev/null
7949 # We have reworked collect2
7952 # We have old collect2
7953 hardcode_direct=unsupported
7954 # It fails to find uninstalled libraries when the uninstalled
7955 # path is not listed in the libpath. Setting hardcode_minus_L
7956 # to unsupported forces relinking
7957 hardcode_minus_L=yes
7958 hardcode_libdir_flag_spec='-L$libdir'
7959 hardcode_libdir_separator=
7963 shared_flag='-shared'
7964 if test "$aix_use_runtimelinking" = yes; then
7965 shared_flag="$shared_flag "'${wl}-G'
7969 if test "$host_cpu" = ia64; then
7970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7971 # chokes on -Wl,-G. The following line is correct:
7974 if test "$aix_use_runtimelinking" = yes; then
7975 shared_flag='${wl}-G'
7977 shared_flag='${wl}-bM:SRE'
7982 # It seems that -bexpall does not export symbols beginning with
7983 # underscore (_), so it is better to generate a list of symbols to export.
7984 always_export_symbols=yes
7985 if test "$aix_use_runtimelinking" = yes; then
7986 # Warning - without using the other runtime loading flags (-brtl),
7987 # -berok will link without error, but may produce a broken library.
7988 allow_undefined_flag='-berok'
7989 # Determine the default libpath from the value encoded in an empty executable.
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (ac_try="$ac_link"
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_link") 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest$ac_exeext &&
8022 $as_test_x conftest$ac_exeext; then
8024 lt_aix_libpath_sed='
8025 /Import File Strings/,/^$/ {
8031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8032 # Check for a 64-bit object if we didn't find anything.
8033 if test -z "$aix_libpath"; then
8034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8044 conftest$ac_exeext conftest.$ac_ext
8045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8047 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8048 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8050 if test "$host_cpu" = ia64; then
8051 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8052 allow_undefined_flag="-z nodefs"
8053 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8055 # Determine the default libpath from the value encoded in an empty executable.
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8071 rm -f conftest.$ac_objext conftest$ac_exeext
8072 if { (ac_try="$ac_link"
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_link") 2>conftest.er1
8080 grep -v '^ *+' conftest.er1 >conftest.err
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && {
8085 test -z "$ac_c_werror_flag" ||
8086 test ! -s conftest.err
8087 } && test -s conftest$ac_exeext &&
8088 $as_test_x conftest$ac_exeext; then
8090 lt_aix_libpath_sed='
8091 /Import File Strings/,/^$/ {
8097 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8098 # Check for a 64-bit object if we didn't find anything.
8099 if test -z "$aix_libpath"; then
8100 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8110 conftest$ac_exeext conftest.$ac_ext
8111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8113 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8114 # Warning - without using the other run time loading flags,
8115 # -berok will link without error, but may produce a broken library.
8116 no_undefined_flag=' ${wl}-bernotok'
8117 allow_undefined_flag=' ${wl}-berok'
8118 # Exported symbols can be pulled into shared objects from archives
8119 whole_archive_flag_spec='$convenience'
8120 archive_cmds_need_lc=yes
8121 # This is similar to how AIX traditionally builds its shared libraries.
8122 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8128 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)'
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 hardcode_minus_L=yes
8131 # see comment about different semantics on the GNU ld section
8136 export_dynamic_flag_spec=-rdynamic
8139 cygwin* | mingw* | pw32*)
8140 # When not using gcc, we currently assume that we are using
8141 # Microsoft Visual C++.
8142 # hardcode_libdir_flag_spec is actually meaningless, as there is
8143 # no search path for DLLs.
8144 hardcode_libdir_flag_spec=' '
8145 allow_undefined_flag=unsupported
8146 # Tell ltmain to make .lib files, not .a files.
8148 # Tell ltmain to make .dll files, not .so files.
8150 # FIXME: Setting linknames here is a bad hack.
8151 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8152 # The linker will automatically build a .lib file if we build a DLL.
8153 old_archive_From_new_cmds='true'
8154 # FIXME: Should let the user specify the lib program.
8155 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8156 fix_srcfile_path='`cygpath -w "$srcfile"`'
8157 enable_shared_with_static_runtimes=yes
8160 darwin* | rhapsody*)
8162 rhapsody* | darwin1.[012])
8163 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8166 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8167 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8169 case ${MACOSX_DEPLOYMENT_TARGET} in
8171 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8174 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8180 archive_cmds_need_lc=no
8182 hardcode_automatic=yes
8183 hardcode_shlibpath_var=unsupported
8184 whole_archive_flag_spec=''
8185 link_all_deplibs=yes
8186 if test "$GCC" = yes ; then
8187 output_verbose_link_cmd='echo'
8188 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8189 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8190 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8191 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}'
8192 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}'
8194 case $cc_basename in
8196 output_verbose_link_cmd='echo'
8197 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8198 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8200 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8201 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}'
8211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8212 hardcode_libdir_flag_spec='-L$libdir'
8213 hardcode_shlibpath_var=no
8220 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8221 # support. Future versions do this automatically, but an explicit c++rt0.o
8222 # does not break anything, and helps significantly (at the cost of a little
8225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8226 hardcode_libdir_flag_spec='-R$libdir'
8228 hardcode_shlibpath_var=no
8231 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8235 hardcode_minus_L=yes
8236 hardcode_shlibpath_var=no
8239 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8240 freebsd* | dragonfly*)
8241 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8242 hardcode_libdir_flag_spec='-R$libdir'
8244 hardcode_shlibpath_var=no
8248 if test "$GCC" = yes; then
8249 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'
8251 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'
8253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8254 hardcode_libdir_separator=:
8257 # hardcode_minus_L: Not really in the search PATH,
8258 # but as the default location of the library.
8259 hardcode_minus_L=yes
8260 export_dynamic_flag_spec='${wl}-E'
8264 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8265 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8267 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8269 if test "$with_gnu_ld" = no; then
8270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8271 hardcode_libdir_separator=:
8274 export_dynamic_flag_spec='${wl}-E'
8276 # hardcode_minus_L: Not really in the search PATH,
8277 # but as the default location of the library.
8278 hardcode_minus_L=yes
8283 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8286 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8289 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8292 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8298 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8304 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8308 if test "$with_gnu_ld" = no; then
8309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8310 hardcode_libdir_separator=:
8314 hardcode_libdir_flag_spec_ld='+b $libdir'
8316 hardcode_shlibpath_var=no
8320 export_dynamic_flag_spec='${wl}-E'
8322 # hardcode_minus_L: Not really in the search PATH,
8323 # but as the default location of the library.
8324 hardcode_minus_L=yes
8330 irix5* | irix6* | nonstopux*)
8331 if test "$GCC" = yes; then
8332 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'
8334 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'
8335 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338 hardcode_libdir_separator=:
8339 link_all_deplibs=yes
8343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8346 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8348 hardcode_libdir_flag_spec='-R$libdir'
8350 hardcode_shlibpath_var=no
8354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357 hardcode_libdir_separator=:
8358 hardcode_shlibpath_var=no
8362 if test -f /usr/libexec/ld.so; then
8364 hardcode_shlibpath_var=no
8365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8367 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8369 export_dynamic_flag_spec='${wl}-E'
8372 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8374 hardcode_libdir_flag_spec='-R$libdir'
8377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8378 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8388 hardcode_libdir_flag_spec='-L$libdir'
8389 hardcode_minus_L=yes
8390 allow_undefined_flag=unsupported
8391 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'
8392 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8396 if test "$GCC" = yes; then
8397 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8398 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'
8400 allow_undefined_flag=' -expect_unresolved \*'
8401 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'
8403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8404 hardcode_libdir_separator=:
8407 osf4* | osf5*) # as osf3* with the addition of -msym flag
8408 if test "$GCC" = yes; then
8409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8410 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'
8411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8413 allow_undefined_flag=' -expect_unresolved \*'
8414 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'
8415 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8416 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8418 # Both c and cxx compiler support -rpath directly
8419 hardcode_libdir_flag_spec='-rpath $libdir'
8421 hardcode_libdir_separator=:
8425 no_undefined_flag=' -z text'
8426 if test "$GCC" = yes; then
8428 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8434 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8437 hardcode_libdir_flag_spec='-R$libdir'
8438 hardcode_shlibpath_var=no
8440 solaris2.[0-5] | solaris2.[0-5].*) ;;
8442 # The compiler driver will combine and reorder linker options,
8443 # but understands `-z linker_flag'. GCC discards it without `$wl',
8444 # but is careful enough not to reorder.
8445 # Supported since Solaris 2.6 (maybe 2.5.1?)
8446 if test "$GCC" = yes; then
8447 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8449 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8453 link_all_deplibs=yes
8457 if test "x$host_vendor" = xsequent; then
8458 # Use $CC to link under sequent, because it throws in some extra .o
8459 # files that make .init and .fini sections work.
8460 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8462 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8464 hardcode_libdir_flag_spec='-L$libdir'
8466 hardcode_minus_L=yes
8467 hardcode_shlibpath_var=no
8471 case $host_vendor in
8473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474 hardcode_direct=yes # is this really true???
8477 ## LD is ld it makes a PLAMLIB
8478 ## CC just makes a GrossModule.
8479 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8480 reload_cmds='$CC -r -o $output$reload_objs'
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8488 runpath_var='LD_RUN_PATH'
8489 hardcode_shlibpath_var=no
8493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8494 hardcode_shlibpath_var=no
8495 export_dynamic_flag_spec='-Bexport'
8499 if test -d /usr/nec; then
8500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501 hardcode_shlibpath_var=no
8502 runpath_var=LD_RUN_PATH
8503 hardcode_runpath_var=yes
8508 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8509 no_undefined_flag='${wl}-z,text'
8510 archive_cmds_need_lc=no
8511 hardcode_shlibpath_var=no
8512 runpath_var='LD_RUN_PATH'
8514 if test "$GCC" = yes; then
8515 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8516 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8518 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8519 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 sysv5* | sco3.2v5* | sco5v6*)
8524 # Note: We can NOT use -z defs as we might desire, because we do not
8525 # link with -lc, and that would cause any symbols used from libc to
8526 # always be unresolved, which means just about no library would
8527 # ever link correctly. If we're not using GNU ld we use -z text
8528 # though, which does catch some bad symbols but isn't as heavy-handed
8530 no_undefined_flag='${wl}-z,text'
8531 allow_undefined_flag='${wl}-z,nodefs'
8532 archive_cmds_need_lc=no
8533 hardcode_shlibpath_var=no
8534 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8535 hardcode_libdir_separator=':'
8536 link_all_deplibs=yes
8537 export_dynamic_flag_spec='${wl}-Bexport'
8538 runpath_var='LD_RUN_PATH'
8540 if test "$GCC" = yes; then
8541 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8542 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8544 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8545 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8551 hardcode_libdir_flag_spec='-L$libdir'
8552 hardcode_shlibpath_var=no
8561 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8562 echo "${ECHO_T}$ld_shlibs" >&6; }
8563 test "$ld_shlibs" = no && can_build_shared=no
8566 # Do we need to explicitly link libc?
8568 case "x$archive_cmds_need_lc" in
8570 # Assume -lc should be added
8571 archive_cmds_need_lc=yes
8573 if test "$enable_shared" = yes && test "$GCC" = yes; then
8574 case $archive_cmds in
8576 # FIXME: we may have to deal with multi-command sequences.
8579 # Test whether the compiler implicitly links with -lc since on some
8580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8581 # to ld, don't add -lc before -lgcc.
8582 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8583 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } 2>conftest.err; then
8594 libobjs=conftest.$ac_objext
8596 wl=$lt_prog_compiler_wl
8597 pic_flag=$lt_prog_compiler_pic
8603 lt_save_allow_undefined_flag=$allow_undefined_flag
8604 allow_undefined_flag=
8605 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8606 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }
8611 archive_cmds_need_lc=no
8613 archive_cmds_need_lc=yes
8615 allow_undefined_flag=$lt_save_allow_undefined_flag
8617 cat conftest.err 1>&5
8620 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8621 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8628 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8629 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8631 libname_spec='lib$name'
8639 shlibpath_overrides_runpath=unknown
8641 dynamic_linker="$host_os ld.so"
8642 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8644 if test "$GCC" = yes; then
8646 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8647 *) lt_awk_arg="/^libraries:/" ;;
8649 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8650 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8651 # if the path contains ";" then we assume it to be the separator
8652 # otherwise default to the standard path separator (i.e. ":") - it is
8653 # assumed that no part of a normal pathname contains ";" but that should
8654 # okay in the real world where ";" in dirpaths is itself problematic.
8655 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8657 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8659 # Ok, now we have the path, separated by spaces, we can step through it
8660 # and add multilib dir if necessary.
8661 lt_tmp_lt_search_path_spec=
8662 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8663 for lt_sys_path in $lt_search_path_spec; do
8664 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8665 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8667 test -d "$lt_sys_path" && \
8668 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8671 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8672 BEGIN {RS=" "; FS="/|\n";} {
8675 for (lt_i = NF; lt_i > 0; lt_i--) {
8676 if ($lt_i != "" && $lt_i != ".") {
8677 if ($lt_i == "..") {
8680 if (lt_count == 0) {
8681 lt_foo="/" $lt_i lt_foo;
8688 if (lt_foo != "") { lt_freq[lt_foo]++; }
8689 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8691 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8695 need_lib_prefix=unknown
8696 hardcode_into_libs=no
8698 # when you set need_version to no, make sure it does not cause -set_version
8699 # flags to be left without arguments
8700 need_version=unknown
8705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8706 shlibpath_var=LIBPATH
8708 # AIX 3 has no versioning support, so we append a major version to the name.
8709 soname_spec='${libname}${release}${shared_ext}$major'
8716 hardcode_into_libs=yes
8717 if test "$host_cpu" = ia64; then
8718 # AIX 5 supports IA64
8719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8720 shlibpath_var=LD_LIBRARY_PATH
8722 # With GCC up to 2.95.x, collect2 would create an import file
8723 # for dependence libraries. The import file would start with
8724 # the line `#! .'. This would cause the generated library to
8725 # depend on `.', always an invalid library. This was fixed in
8726 # development snapshots of GCC prior to 3.0.
8728 aix4 | aix4.[01] | aix4.[01].*)
8729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8731 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8739 # soname into executable. Probably we can add versioning support to
8740 # collect2, so additional links can be useful in future.
8741 if test "$aix_use_runtimelinking" = yes; then
8742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8743 # instead of lib<name>.a to let people know that these are not
8744 # typical AIX shared libraries.
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747 # We preserve .a as extension for shared libraries through AIX4.2
8748 # and later when we are not doing run time linking.
8749 library_names_spec='${libname}${release}.a $libname.a'
8750 soname_spec='${libname}${release}${shared_ext}$major'
8752 shlibpath_var=LIBPATH
8757 library_names_spec='$libname.ixlibrary $libname.a'
8758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8759 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'
8763 library_names_spec='${libname}${shared_ext}'
8764 dynamic_linker="$host_os ld.so"
8765 shlibpath_var=LIBRARY_PATH
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8774 shlibpath_var=LD_LIBRARY_PATH
8775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8777 # the default ld.so.conf also contains /usr/contrib/lib and
8778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8779 # libtool to hard-code these into programs
8782 cygwin* | mingw* | pw32*)
8783 version_type=windows
8788 case $GCC,$host_os in
8789 yes,cygwin* | yes,mingw* | yes,pw32*)
8790 library_names_spec='$libname.dll.a'
8791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8792 postinstall_cmds='base_file=`basename \${file}`~
8793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8794 dldir=$destdir/`dirname \$dlpath`~
8795 test -d \$dldir || mkdir -p \$dldir~
8796 $install_prog $dir/$dlname \$dldir/$dlname~
8797 chmod a+x \$dldir/$dlname'
8798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8799 dlpath=$dir/\$dldll~
8801 shlibpath_overrides_runpath=yes
8805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8806 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8807 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8810 # MinGW DLLs use traditional 'lib' prefix
8811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8813 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8814 # It is most probably a Windows format PATH printed by
8815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8816 # path with ; separators, and with drive letters. We can handle the
8817 # drive letters (cygwin fileutils understands them), so leave them,
8818 # especially as we might pass files found there to a mingw objdump,
8819 # which wouldn't understand a cygwinified path. Ahh.
8820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8826 # pw32 DLLs use 'pw' prefix rather than 'lib'
8827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8836 dynamic_linker='Win32 ld.exe'
8837 # FIXME: first we should search . and the directory the executable is in
8841 darwin* | rhapsody*)
8842 dynamic_linker="$host_os dyld"
8846 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8847 soname_spec='${libname}${release}${major}$shared_ext'
8848 shlibpath_overrides_runpath=yes
8849 shlibpath_var=DYLD_LIBRARY_PATH
8850 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8852 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8853 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 shlibpath_var=LD_LIBRARY_PATH
8869 freebsd* | dragonfly*)
8870 # DragonFly does not have aout. When/if they implement a new
8871 # versioning mechanism, adjust this.
8872 if test -x /usr/bin/objformat; then
8873 objformat=`/usr/bin/objformat`
8876 freebsd[123]*) objformat=aout ;;
8880 version_type=freebsd-$objformat
8881 case $version_type in
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8892 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=yes
8897 freebsd3.[01]* | freebsdelf3.[01]*)
8898 shlibpath_overrides_runpath=yes
8899 hardcode_into_libs=yes
8901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8903 shlibpath_overrides_runpath=no
8904 hardcode_into_libs=yes
8906 *) # from 4.6 on, and DragonFly
8907 shlibpath_overrides_runpath=yes
8908 hardcode_into_libs=yes
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 hardcode_into_libs=yes
8923 hpux9* | hpux10* | hpux11*)
8924 # Give a soname corresponding to the major version so that dld.sl refuses to
8925 # link against other versions.
8932 hardcode_into_libs=yes
8933 dynamic_linker="$host_os dld.so"
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 if test "X$HPUX_IA64_MODE" = X32; then
8939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8947 hardcode_into_libs=yes
8948 dynamic_linker="$host_os dld.sl"
8949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8958 dynamic_linker="$host_os dld.sl"
8959 shlibpath_var=SHLIB_PATH
8960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8966 postinstall_cmds='chmod 555 $lib'
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8976 shlibpath_var=LD_LIBRARY_PATH
8977 shlibpath_overrides_runpath=no
8978 hardcode_into_libs=yes
8981 irix5* | irix6* | nonstopux*)
8983 nonstopux*) version_type=nonstopux ;;
8985 if test "$lt_cv_prog_gnu_ld" = yes; then
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8996 irix5* | nonstopux*)
9000 case $LD in # libtool.m4 will add one of these switches to LD
9001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9002 libsuff= shlibsuff= libmagic=32-bit;;
9003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9004 libsuff=32 shlibsuff=N32 libmagic=N32;;
9005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9007 *) libsuff= shlibsuff= libmagic=never-match;;
9011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9012 shlibpath_overrides_runpath=no
9013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9015 hardcode_into_libs=yes
9018 # No shared lib support for Linux oldld, aout, or coff.
9019 linux*oldld* | linux*aout* | linux*coff*)
9023 # This must be Linux ELF.
9024 linux* | k*bsd*-gnu)
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=no
9033 # This implies no fast_install, which is unacceptable.
9034 # Some rework will be needed to allow for fast_install
9035 # before this can be enabled.
9036 hardcode_into_libs=yes
9038 # Append ld.so.conf contents to the search path
9039 if test -f /etc/ld.so.conf; then
9040 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9044 # We used to test for /lib/ld.so.1 and disable shared libraries on
9045 # powerpc, because MkLinux only supported shared libraries with the
9046 # GNU dynamic linker. Since this was broken with cross compilers,
9047 # most powerpc-linux boxes support dynamic linking these days and
9048 # people can always --disable-shared, the test was removed, and we
9049 # assume the GNU/Linux dynamic linker is in use.
9050 dynamic_linker='GNU/Linux ld.so'
9057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9060 dynamic_linker='NetBSD (a.out) ld.so'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 dynamic_linker='NetBSD ld.elf_so'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes
9068 hardcode_into_libs=yes
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=yes
9090 sys_lib_dlsearch_path_spec="/usr/lib"
9092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9094 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9095 *) need_version=no ;;
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9102 openbsd2.[89] | openbsd2.[89].*)
9103 shlibpath_overrides_runpath=no
9106 shlibpath_overrides_runpath=yes
9110 shlibpath_overrides_runpath=yes
9115 libname_spec='$name'
9118 library_names_spec='$libname${shared_ext} $libname.a'
9119 dynamic_linker='OS/2 ld.exe'
9120 shlibpath_var=LIBPATH
9123 osf3* | osf4* | osf5*)
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9146 hardcode_into_libs=yes
9147 # ldd complains unless libraries are executable
9148 postinstall_cmds='chmod +x $lib'
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9154 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=yes
9157 if test "$with_gnu_ld" = yes; then
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 case $host_vendor in
9170 shlibpath_overrides_runpath=no
9172 export_dynamic_flag_spec='${wl}-Blargedynsym'
9173 runpath_var=LD_RUN_PATH
9181 shlibpath_overrides_runpath=no
9182 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9188 if test -d /usr/nec ;then
9190 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9191 soname_spec='$libname${shared_ext}.$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9197 version_type=freebsd-elf
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 hardcode_into_libs=yes
9204 if test "$with_gnu_ld" = yes; then
9205 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9206 shlibpath_overrides_runpath=no
9208 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9209 shlibpath_overrides_runpath=yes
9212 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9216 sys_lib_dlsearch_path_spec='/usr/lib'
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9230 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9231 echo "${ECHO_T}$dynamic_linker" >&6; }
9232 test "$dynamic_linker" = no && can_build_shared=no
9234 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9235 if test "$GCC" = yes; then
9236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9239 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9240 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9242 if test -n "$hardcode_libdir_flag_spec" || \
9243 test -n "$runpath_var" || \
9244 test "X$hardcode_automatic" = "Xyes" ; then
9246 # We can hardcode non-existant directories.
9247 if test "$hardcode_direct" != no &&
9248 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9249 # have to relink, otherwise we might link with an installed library
9250 # when we should be linking with a yet-to-be-installed one
9251 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9252 test "$hardcode_minus_L" != no; then
9253 # Linking always hardcodes the temporary library directory.
9254 hardcode_action=relink
9256 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9257 hardcode_action=immediate
9260 # We cannot hardcode anything, or else we can only hardcode existing
9262 hardcode_action=unsupported
9264 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9265 echo "${ECHO_T}$hardcode_action" >&6; }
9267 if test "$hardcode_action" = relink; then
9268 # Fast installation is not supported
9269 enable_fast_install=no
9270 elif test "$shlibpath_overrides_runpath" = yes ||
9271 test "$enable_shared" = no; then
9272 # Fast installation is not necessary
9273 enable_fast_install=needless
9278 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9279 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9280 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9281 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9282 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9283 { echo "$as_me:$LINENO: result: yes" >&5
9284 echo "${ECHO_T}yes" >&6; }
9286 # FIXME - insert some real tests, host_os isn't really good enough
9289 if test -n "$STRIP" ; then
9290 striplib="$STRIP -x"
9291 old_striplib="$STRIP -S"
9292 { echo "$as_me:$LINENO: result: yes" >&5
9293 echo "${ECHO_T}yes" >&6; }
9295 { echo "$as_me:$LINENO: result: no" >&5
9296 echo "${ECHO_T}no" >&6; }
9300 { echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6; }
9306 if test "x$enable_dlopen" != xyes; then
9307 enable_dlopen=unknown
9308 enable_dlopen_self=unknown
9309 enable_dlopen_self_static=unknown
9316 lt_cv_dlopen="load_add_on"
9318 lt_cv_dlopen_self=yes
9322 lt_cv_dlopen="LoadLibrary"
9327 lt_cv_dlopen="dlopen"
9332 # if libdl is installed we need to link against it
9333 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9334 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9335 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 ac_check_lib_save_LIBS=$LIBS
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9347 /* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_link") 2>conftest.er1
9371 grep -v '^ *+' conftest.er1 >conftest.err
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } && {
9376 test -z "$ac_c_werror_flag" ||
9377 test ! -s conftest.err
9378 } && test -s conftest$ac_exeext &&
9379 $as_test_x conftest$ac_exeext; then
9380 ac_cv_lib_dl_dlopen=yes
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9385 ac_cv_lib_dl_dlopen=no
9388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9389 conftest$ac_exeext conftest.$ac_ext
9390 LIBS=$ac_check_lib_save_LIBS
9392 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9393 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9394 if test $ac_cv_lib_dl_dlopen = yes; then
9395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9400 lt_cv_dlopen_self=yes
9407 { echo "$as_me:$LINENO: checking for shl_load" >&5
9408 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9409 if test "${ac_cv_func_shl_load+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 cat >conftest.$ac_ext <<_ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9420 #define shl_load innocuous_shl_load
9422 /* System header to define __stub macros and hopefully few prototypes,
9423 which can conflict with char shl_load (); below.
9424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9425 <limits.h> exists even on freestanding compilers. */
9428 # include <limits.h>
9430 # include <assert.h>
9435 /* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined __stub_shl_load || defined __stub___shl_load
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (ac_try="$ac_link"
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_link") 2>conftest.er1
9466 grep -v '^ *+' conftest.er1 >conftest.err
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && {
9471 test -z "$ac_c_werror_flag" ||
9472 test ! -s conftest.err
9473 } && test -s conftest$ac_exeext &&
9474 $as_test_x conftest$ac_exeext; then
9475 ac_cv_func_shl_load=yes
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9480 ac_cv_func_shl_load=no
9483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484 conftest$ac_exeext conftest.$ac_ext
9486 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9487 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9488 if test $ac_cv_func_shl_load = yes; then
9489 lt_cv_dlopen="shl_load"
9491 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9492 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9493 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 ac_check_lib_save_LIBS=$LIBS
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (ac_try="$ac_link"
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_link") 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && {
9534 test -z "$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9536 } && test -s conftest$ac_exeext &&
9537 $as_test_x conftest$ac_exeext; then
9538 ac_cv_lib_dld_shl_load=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_lib_dld_shl_load=no
9546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9547 conftest$ac_exeext conftest.$ac_ext
9548 LIBS=$ac_check_lib_save_LIBS
9550 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9551 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9552 if test $ac_cv_lib_dld_shl_load = yes; then
9553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9555 { echo "$as_me:$LINENO: checking for dlopen" >&5
9556 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9557 if test "${ac_cv_func_dlopen+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9568 #define dlopen innocuous_dlopen
9570 /* System header to define __stub macros and hopefully few prototypes,
9571 which can conflict with char dlopen (); below.
9572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573 <limits.h> exists even on freestanding compilers. */
9576 # include <limits.h>
9578 # include <assert.h>
9583 /* Override any GCC internal prototype to avoid an error.
9584 Use char because int might match the return type of a GCC
9585 builtin and then its argument prototype would still apply. */
9590 /* The GNU C library defines this for functions which it implements
9591 to always fail with ENOSYS. Some functions are actually named
9592 something starting with __ and the normal name is an alias. */
9593 #if defined __stub_dlopen || defined __stub___dlopen
9605 rm -f conftest.$ac_objext conftest$ac_exeext
9606 if { (ac_try="$ac_link"
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_link") 2>conftest.er1
9614 grep -v '^ *+' conftest.er1 >conftest.err
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest$ac_exeext &&
9622 $as_test_x conftest$ac_exeext; then
9623 ac_cv_func_dlopen=yes
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_cv_func_dlopen=no
9631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9632 conftest$ac_exeext conftest.$ac_ext
9634 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9635 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9636 if test $ac_cv_func_dlopen = yes; then
9637 lt_cv_dlopen="dlopen"
9639 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9640 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 ac_check_lib_save_LIBS=$LIBS
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9653 /* Override any GCC internal prototype to avoid an error.
9654 Use char because int might match the return type of a GCC
9655 builtin and then its argument prototype would still apply. */
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (ac_try="$ac_link"
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_link") 2>conftest.er1
9677 grep -v '^ *+' conftest.er1 >conftest.err
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest$ac_exeext &&
9685 $as_test_x conftest$ac_exeext; then
9686 ac_cv_lib_dl_dlopen=yes
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_cv_lib_dl_dlopen=no
9694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9695 conftest$ac_exeext conftest.$ac_ext
9696 LIBS=$ac_check_lib_save_LIBS
9698 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9699 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9700 if test $ac_cv_lib_dl_dlopen = yes; then
9701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9703 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9704 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9705 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 ac_check_lib_save_LIBS=$LIBS
9710 cat >conftest.$ac_ext <<_ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } && {
9746 test -z "$ac_c_werror_flag" ||
9747 test ! -s conftest.err
9748 } && test -s conftest$ac_exeext &&
9749 $as_test_x conftest$ac_exeext; then
9750 ac_cv_lib_svld_dlopen=yes
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_cv_lib_svld_dlopen=no
9758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9759 conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9762 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9764 if test $ac_cv_lib_svld_dlopen = yes; then
9765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9767 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9768 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9769 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 ac_check_lib_save_LIBS=$LIBS
9774 cat >conftest.$ac_ext <<_ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_link") 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest$ac_exeext &&
9813 $as_test_x conftest$ac_exeext; then
9814 ac_cv_lib_dld_dld_link=yes
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_cv_lib_dld_dld_link=no
9822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9823 conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9827 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9828 if test $ac_cv_lib_dld_dld_link = yes; then
9829 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9850 if test "x$lt_cv_dlopen" != xno; then
9856 case $lt_cv_dlopen in
9858 save_CPPFLAGS="$CPPFLAGS"
9859 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9861 save_LDFLAGS="$LDFLAGS"
9862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9865 LIBS="$lt_cv_dlopen_libs $LIBS"
9867 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9868 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9869 if test "${lt_cv_dlopen_self+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 if test "$cross_compiling" = yes; then :
9873 lt_cv_dlopen_self=cross
9875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9876 lt_status=$lt_dlunknown
9877 cat > conftest.$ac_ext <<EOF
9878 #line 9878 "configure"
9879 #include "confdefs.h"
9888 # define LT_DLGLOBAL RTLD_GLOBAL
9891 # define LT_DLGLOBAL DL_GLOBAL
9893 # define LT_DLGLOBAL 0
9897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9898 find out it does not work in some platform. */
9899 #ifndef LT_DLLAZY_OR_NOW
9901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9904 # define LT_DLLAZY_OR_NOW DL_LAZY
9907 # define LT_DLLAZY_OR_NOW RTLD_NOW
9910 # define LT_DLLAZY_OR_NOW DL_NOW
9912 # define LT_DLLAZY_OR_NOW 0
9920 extern "C" void exit (int);
9923 void fnord() { int i=42;}
9926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9927 int status = $lt_dlunknown;
9931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9933 /* dlclose (self); */
9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9946 (./conftest; exit; ) >&5 2>/dev/null
9949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9951 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9954 # compilation failed
9955 lt_cv_dlopen_self=no
9962 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9963 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9965 if test "x$lt_cv_dlopen_self" = xyes; then
9966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9967 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9968 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9969 if test "${lt_cv_dlopen_self_static+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 if test "$cross_compiling" = yes; then :
9973 lt_cv_dlopen_self_static=cross
9975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9976 lt_status=$lt_dlunknown
9977 cat > conftest.$ac_ext <<EOF
9978 #line 9978 "configure"
9979 #include "confdefs.h"
9988 # define LT_DLGLOBAL RTLD_GLOBAL
9991 # define LT_DLGLOBAL DL_GLOBAL
9993 # define LT_DLGLOBAL 0
9997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9998 find out it does not work in some platform. */
9999 #ifndef LT_DLLAZY_OR_NOW
10001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10004 # define LT_DLLAZY_OR_NOW DL_LAZY
10007 # define LT_DLLAZY_OR_NOW RTLD_NOW
10010 # define LT_DLLAZY_OR_NOW DL_NOW
10012 # define LT_DLLAZY_OR_NOW 0
10020 extern "C" void exit (int);
10023 void fnord() { int i=42;}
10026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10027 int status = $lt_dlunknown;
10031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10033 /* dlclose (self); */
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042 (eval $ac_link) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10046 (./conftest; exit; ) >&5 2>/dev/null
10048 case x$lt_status in
10049 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10050 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10051 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10054 # compilation failed
10055 lt_cv_dlopen_self_static=no
10062 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10063 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10066 CPPFLAGS="$save_CPPFLAGS"
10067 LDFLAGS="$save_LDFLAGS"
10072 case $lt_cv_dlopen_self in
10073 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10074 *) enable_dlopen_self=unknown ;;
10077 case $lt_cv_dlopen_self_static in
10078 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10079 *) enable_dlopen_self_static=unknown ;;
10084 # Report which library types will actually be built
10085 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10086 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10087 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10088 echo "${ECHO_T}$can_build_shared" >&6; }
10090 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10091 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10092 test "$can_build_shared" = "no" && enable_shared=no
10094 # On AIX, shared libraries and static libraries use the same namespace, and
10095 # are all built from PIC.
10098 test "$enable_shared" = yes && enable_static=no
10099 if test -n "$RANLIB"; then
10100 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10101 postinstall_cmds='$RANLIB $lib'
10106 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10107 test "$enable_shared" = yes && enable_static=no
10111 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10112 echo "${ECHO_T}$enable_shared" >&6; }
10114 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10115 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10116 # Make sure either enable_shared or enable_static is yes.
10117 test "$enable_shared" = yes || enable_static=yes
10118 { echo "$as_me:$LINENO: result: $enable_static" >&5
10119 echo "${ECHO_T}$enable_static" >&6; }
10121 # The else clause should only fire when bootstrapping the
10122 # libtool distribution, otherwise you forgot to ship ltmain.sh
10123 # with your package, and you will get complaints that there are
10124 # no rules to generate ltmain.sh.
10125 if test -f "$ltmain"; then
10126 # See if we are running on zsh, and set the options which allow our commands through
10127 # without removal of \ escapes.
10128 if test -n "${ZSH_VERSION+set}" ; then
10129 setopt NO_GLOB_SUBST
10131 # Now quote all the things that may contain metacharacters while being
10132 # careful not to overquote the AC_SUBSTed values. We take copies of the
10133 # variables and quote the copies for generation of the libtool script.
10134 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10136 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10137 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10138 deplibs_check_method reload_flag reload_cmds need_locks \
10139 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10140 lt_cv_sys_global_symbol_to_c_name_address \
10141 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10142 old_postinstall_cmds old_postuninstall_cmds \
10146 lt_prog_compiler_wl \
10147 lt_prog_compiler_pic \
10148 lt_prog_compiler_static \
10149 lt_prog_compiler_no_builtin_flag \
10150 export_dynamic_flag_spec \
10151 thread_safe_flag_spec \
10152 whole_archive_flag_spec \
10153 enable_shared_with_static_runtimes \
10155 old_archive_from_new_cmds \
10160 compiler_lib_search_path \
10162 archive_expsym_cmds \
10164 postuninstall_cmds \
10165 old_archive_from_expsyms_cmds \
10166 allow_undefined_flag \
10167 no_undefined_flag \
10168 export_symbols_cmds \
10169 hardcode_libdir_flag_spec \
10170 hardcode_libdir_flag_spec_ld \
10171 hardcode_libdir_separator \
10172 hardcode_automatic \
10174 module_expsym_cmds \
10175 lt_cv_prog_compiler_c_o \
10178 include_expsyms; do
10181 old_archive_cmds | \
10182 old_archive_from_new_cmds | \
10184 archive_expsym_cmds | \
10186 module_expsym_cmds | \
10187 old_archive_from_expsyms_cmds | \
10188 export_symbols_cmds | \
10189 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10190 postinstall_cmds | postuninstall_cmds | \
10191 old_postinstall_cmds | old_postuninstall_cmds | \
10192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10193 # Double-quote double-evaled strings.
10194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10203 *'\$0 --fallback-echo"')
10204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10208 cfgfile="${ofile}T"
10209 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10211 { echo "$as_me:$LINENO: creating $ofile" >&5
10212 echo "$as_me: creating $ofile" >&6;}
10214 cat <<__EOF__ >> "$cfgfile"
10217 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10218 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10219 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10221 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10222 # Free Software Foundation, Inc.
10224 # This file is part of GNU Libtool:
10225 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10227 # This program is free software; you can redistribute it and/or modify
10228 # it under the terms of the GNU General Public License as published by
10229 # the Free Software Foundation; either version 2 of the License, or
10230 # (at your option) any later version.
10232 # This program is distributed in the hope that it will be useful, but
10233 # WITHOUT ANY WARRANTY; without even the implied warranty of
10234 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10235 # General Public License for more details.
10237 # You should have received a copy of the GNU General Public License
10238 # along with this program; if not, write to the Free Software
10239 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10241 # As a special exception to the GNU General Public License, if you
10242 # distribute this file as part of a program that contains a
10243 # configuration script generated by Autoconf, you may include it under
10244 # the same distribution terms that you use for the rest of that program.
10246 # A sed program that does not truncate output.
10249 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10250 Xsed="$SED -e 1s/^X//"
10252 # The HP-UX ksh and POSIX shell print the target directory to stdout
10253 # if CDPATH is set.
10254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10256 # The names of the tagged configurations supported by this script.
10259 # ### BEGIN LIBTOOL CONFIG
10261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10263 # Shell to use when invoking shell scripts.
10266 # Whether or not to build shared libraries.
10267 build_libtool_libs=$enable_shared
10269 # Whether or not to build static libraries.
10270 build_old_libs=$enable_static
10272 # Whether or not to add -lc for building shared libraries.
10273 build_libtool_need_lc=$archive_cmds_need_lc
10275 # Whether or not to disallow shared libs when runtime libs are static
10276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10278 # Whether or not to optimize for fast installation.
10279 fast_install=$enable_fast_install
10282 host_alias=$host_alias
10286 # The build system.
10287 build_alias=$build_alias
10291 # An echo program that does not interpret backslashes.
10296 AR_FLAGS=$lt_AR_FLAGS
10301 # LTCC compiler flags.
10302 LTCFLAGS=$lt_LTCFLAGS
10304 # A language-specific compiler.
10307 # Is the compiler the GNU C compiler?
10313 # The linker used to build libraries.
10316 # Whether we need hard or soft links.
10319 # A BSD-compatible nm program.
10322 # A symbol stripping program
10325 # Used to examine libraries when file_magic_cmd begins "file"
10326 MAGIC_CMD=$MAGIC_CMD
10328 # Used on cygwin: DLL creation program.
10331 # Used on cygwin: object dumper.
10334 # Used on cygwin: assembler.
10337 # The name of the directory that contains temporary libtool files.
10340 # How to create reloadable object files.
10341 reload_flag=$lt_reload_flag
10342 reload_cmds=$lt_reload_cmds
10344 # How to pass a linker flag through the compiler.
10345 wl=$lt_lt_prog_compiler_wl
10347 # Object file suffix (normally "o").
10348 objext="$ac_objext"
10350 # Old archive suffix (normally "a").
10353 # Shared library suffix (normally ".so").
10354 shrext_cmds='$shrext_cmds'
10356 # Executable file suffix (normally "").
10359 # Additional compiler flags for building library objects.
10360 pic_flag=$lt_lt_prog_compiler_pic
10363 # What is the maximum length of a command?
10364 max_cmd_len=$lt_cv_sys_max_cmd_len
10366 # Does compiler simultaneously support -c and -o options?
10367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10369 # Must we lock files when doing compilation?
10370 need_locks=$lt_need_locks
10372 # Do we need the lib prefix for modules?
10373 need_lib_prefix=$need_lib_prefix
10375 # Do we need a version for libraries?
10376 need_version=$need_version
10378 # Whether dlopen is supported.
10379 dlopen_support=$enable_dlopen
10381 # Whether dlopen of programs is supported.
10382 dlopen_self=$enable_dlopen_self
10384 # Whether dlopen of statically linked programs is supported.
10385 dlopen_self_static=$enable_dlopen_self_static
10387 # Compiler flag to prevent dynamic linking.
10388 link_static_flag=$lt_lt_prog_compiler_static
10390 # Compiler flag to turn off builtin functions.
10391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10393 # Compiler flag to allow reflexive dlopens.
10394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10396 # Compiler flag to generate shared objects directly from archives.
10397 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10399 # Compiler flag to generate thread-safe objects.
10400 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10402 # Library versioning type.
10403 version_type=$version_type
10405 # Format of library name prefix.
10406 libname_spec=$lt_libname_spec
10408 # List of archive names. First name is the real one, the rest are links.
10409 # The last name is the one that the linker finds with -lNAME.
10410 library_names_spec=$lt_library_names_spec
10412 # The coded name of the library, if different from the real name.
10413 soname_spec=$lt_soname_spec
10415 # Commands used to build and install an old-style archive.
10417 old_archive_cmds=$lt_old_archive_cmds
10418 old_postinstall_cmds=$lt_old_postinstall_cmds
10419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10421 # Create an old-style archive from a shared archive.
10422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10424 # Create a temporary old-style archive to link instead of a shared archive.
10425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10427 # Commands used to build and install a shared archive.
10428 archive_cmds=$lt_archive_cmds
10429 archive_expsym_cmds=$lt_archive_expsym_cmds
10430 postinstall_cmds=$lt_postinstall_cmds
10431 postuninstall_cmds=$lt_postuninstall_cmds
10433 # Commands used to build a loadable module (assumed same as above if empty)
10434 module_cmds=$lt_module_cmds
10435 module_expsym_cmds=$lt_module_expsym_cmds
10437 # Commands to strip libraries.
10438 old_striplib=$lt_old_striplib
10439 striplib=$lt_striplib
10441 # Dependencies to place before the objects being linked to create a
10443 predep_objects=$lt_predep_objects
10445 # Dependencies to place after the objects being linked to create a
10447 postdep_objects=$lt_postdep_objects
10449 # Dependencies to place before the objects being linked to create a
10451 predeps=$lt_predeps
10453 # Dependencies to place after the objects being linked to create a
10455 postdeps=$lt_postdeps
10457 # The library search path used internally by the compiler when linking
10458 # a shared library.
10459 compiler_lib_search_path=$lt_compiler_lib_search_path
10461 # Method to check whether dependent libraries are shared objects.
10462 deplibs_check_method=$lt_deplibs_check_method
10464 # Command to use when deplibs_check_method == file_magic.
10465 file_magic_cmd=$lt_file_magic_cmd
10467 # Flag that allows shared libraries with undefined symbols to be built.
10468 allow_undefined_flag=$lt_allow_undefined_flag
10470 # Flag that forces no undefined symbols.
10471 no_undefined_flag=$lt_no_undefined_flag
10473 # Commands used to finish a libtool library installation in a directory.
10474 finish_cmds=$lt_finish_cmds
10476 # Same as above, but a single script fragment to be evaled but not shown.
10477 finish_eval=$lt_finish_eval
10479 # Take the output of nm and produce a listing of raw symbols and C names.
10480 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10482 # Transform the output of nm in a proper C declaration
10483 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10485 # Transform the output of nm in a C name address pair
10486 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10488 # This is the shared library runtime path variable.
10489 runpath_var=$runpath_var
10491 # This is the shared library path variable.
10492 shlibpath_var=$shlibpath_var
10494 # Is shlibpath searched before the hard-coded library search path?
10495 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10497 # How to hardcode a shared library path into an executable.
10498 hardcode_action=$hardcode_action
10500 # Whether we should hardcode library paths into libraries.
10501 hardcode_into_libs=$hardcode_into_libs
10503 # Flag to hardcode \$libdir into a binary during linking.
10504 # This must work even if \$libdir does not exist.
10505 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10507 # If ld is used when linking, flag to hardcode \$libdir into
10508 # a binary during linking. This must work even if \$libdir does
10510 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10512 # Whether we need a single -rpath flag with a separated argument.
10513 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10515 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10516 # resulting binary.
10517 hardcode_direct=$hardcode_direct
10519 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10520 # resulting binary.
10521 hardcode_minus_L=$hardcode_minus_L
10523 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10524 # the resulting binary.
10525 hardcode_shlibpath_var=$hardcode_shlibpath_var
10527 # Set to yes if building a shared library automatically hardcodes DIR into the library
10528 # and all subsequent libraries and executables linked against it.
10529 hardcode_automatic=$hardcode_automatic
10531 # Variables whose values should be saved in libtool wrapper scripts and
10532 # restored at relink time.
10533 variables_saved_for_relink="$variables_saved_for_relink"
10535 # Whether libtool must link a program against all its dependency libraries.
10536 link_all_deplibs=$link_all_deplibs
10538 # Compile-time system search path for libraries
10539 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10541 # Run-time system search path for libraries
10542 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10544 # Fix the shell variable \$srcfile for the compiler.
10545 fix_srcfile_path=$lt_fix_srcfile_path
10547 # Set to yes if exported symbols are required.
10548 always_export_symbols=$always_export_symbols
10550 # The commands to list exported symbols.
10551 export_symbols_cmds=$lt_export_symbols_cmds
10553 # The commands to extract the exported symbol list from a shared archive.
10554 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10556 # Symbols that should not be listed in the preloaded symbols.
10557 exclude_expsyms=$lt_exclude_expsyms
10559 # Symbols that must always be exported.
10560 include_expsyms=$lt_include_expsyms
10562 # ### END LIBTOOL CONFIG
10569 cat <<\EOF >> "$cfgfile"
10571 # AIX sometimes has problems with the GCC collect2 program. For some
10572 # reason, if we set the COLLECT_NAMES environment variable, the problems
10573 # vanish in a puff of smoke.
10574 if test "X${COLLECT_NAMES+set}" != Xset; then
10576 export COLLECT_NAMES
10582 # We use sed instead of cat because bash on DJGPP gets confused if
10583 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10584 # text mode, it properly converts lines to CR/LF. This bash problem
10585 # is reportedly fixed, but why not run on old versions too?
10586 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10588 mv -f "$cfgfile" "$ofile" || \
10589 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10593 # If there is no Makefile yet, we rely on a make rule to execute
10594 # `config.status --recheck' to rerun these tests and create the
10595 # libtool script then.
10596 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10597 if test -f "$ltmain_in"; then
10598 test -f Makefile && make "$ltmain"
10604 ac_cpp='$CPP $CPPFLAGS'
10605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10612 # Check whether --with-tags was given.
10613 if test "${with_tags+set}" = set; then
10614 withval=$with_tags; tagnames="$withval"
10618 if test -f "$ltmain" && test -n "$tagnames"; then
10619 if test ! -f "${ofile}"; then
10620 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10621 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10624 if test -z "$LTCC"; then
10625 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10626 if test -z "$LTCC"; then
10627 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10628 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10631 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10634 if test -z "$LTCFLAGS"; then
10635 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10638 # Extract list of available tagged configurations in $ofile.
10639 # Note that this assumes the entire list is on one line.
10640 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10643 for tagname in $tagnames; do
10645 # Check whether tagname contains only valid characters
10646 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10648 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10649 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10650 { (exit 1); exit 1; }; }
10654 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10656 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10657 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10658 { (exit 1); exit 1; }; }
10661 # Update the list of available tags.
10662 if test -n "$tagname"; then
10663 echo appending configuration tag \"$tagname\" to $ofile
10667 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10668 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10669 (test "X$CXX" != "Xg++"))) ; then
10671 ac_cpp='$CXXCPP $CPPFLAGS'
10672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10679 archive_cmds_need_lc_CXX=no
10680 allow_undefined_flag_CXX=
10681 always_export_symbols_CXX=no
10682 archive_expsym_cmds_CXX=
10683 export_dynamic_flag_spec_CXX=
10684 hardcode_direct_CXX=no
10685 hardcode_libdir_flag_spec_CXX=
10686 hardcode_libdir_flag_spec_ld_CXX=
10687 hardcode_libdir_separator_CXX=
10688 hardcode_minus_L_CXX=no
10689 hardcode_shlibpath_var_CXX=unsupported
10690 hardcode_automatic_CXX=no
10692 module_expsym_cmds_CXX=
10693 link_all_deplibs_CXX=unknown
10694 old_archive_cmds_CXX=$old_archive_cmds
10695 no_undefined_flag_CXX=
10696 whole_archive_flag_spec_CXX=
10697 enable_shared_with_static_runtimes_CXX=no
10699 # Dependencies to place before and after the object being linked:
10700 predep_objects_CXX=
10701 postdep_objects_CXX=
10704 compiler_lib_search_path_CXX=
10706 # Source file extension for C++ test sources.
10709 # Object file extension for compiled C++ test sources.
10713 # Code to be used in simple compile tests
10714 lt_simple_compile_test_code="int some_variable = 0;"
10716 # Code to be used in simple link tests
10717 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10719 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10721 # If no C compiler was specified, use CC.
10724 # If no C compiler flags were specified, use CFLAGS.
10725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10727 # Allow CC to be a program name with arguments.
10731 # save warnings/boilerplate of simple test code
10732 ac_outfile=conftest.$ac_objext
10733 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10734 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10735 _lt_compiler_boilerplate=`cat conftest.err`
10738 ac_outfile=conftest.$ac_objext
10739 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10740 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10741 _lt_linker_boilerplate=`cat conftest.err`
10745 # Allow CC to be a program name with arguments.
10750 lt_save_with_gnu_ld=$with_gnu_ld
10751 lt_save_path_LD=$lt_cv_path_LD
10752 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10753 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10755 $as_unset lt_cv_prog_gnu_ld
10757 if test -n "${lt_cv_path_LDCXX+set}"; then
10758 lt_cv_path_LD=$lt_cv_path_LDCXX
10760 $as_unset lt_cv_path_LD
10762 test -z "${LDCXX+set}" || LD=$LDCXX
10766 for cc_temp in $compiler""; do
10768 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10769 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10774 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10777 # We don't want -fno-exception wen compiling C++ code, so set the
10778 # no_builtin_flag separately
10779 if test "$GXX" = yes; then
10780 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10782 lt_prog_compiler_no_builtin_flag_CXX=
10785 if test "$GXX" = yes; then
10786 # Set up default GNU C++ configuration
10789 # Check whether --with-gnu-ld was given.
10790 if test "${with_gnu_ld+set}" = set; then
10791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10797 if test "$GCC" = yes; then
10798 # Check if gcc -print-prog-name=ld gives a path.
10799 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10800 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10803 # gcc leaves a trailing carriage return which upsets mingw
10804 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10806 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10809 # Accept absolute paths.
10811 re_direlt='/[^/][^/]*/\.\./'
10812 # Canonicalize the pathname of ld
10813 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10814 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10815 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10817 test -z "$LD" && LD="$ac_prog"
10820 # If it fails, then pretend we aren't using GCC.
10824 # If it is relative, then search for the first ld in PATH.
10825 with_gnu_ld=unknown
10828 elif test "$with_gnu_ld" = yes; then
10829 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10830 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10832 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10833 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10835 if test "${lt_cv_path_LD+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 if test -z "$LD"; then
10839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10840 for ac_dir in $PATH; do
10842 test -z "$ac_dir" && ac_dir=.
10843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10844 lt_cv_path_LD="$ac_dir/$ac_prog"
10845 # Check to see if the program is GNU ld. I'd rather use --version,
10846 # but apparently some variants of GNU ld only accept -v.
10847 # Break only if it was the GNU/non-GNU ld that we prefer.
10848 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10849 *GNU* | *'with BFD'*)
10850 test "$with_gnu_ld" != no && break
10853 test "$with_gnu_ld" != yes && break
10860 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10864 LD="$lt_cv_path_LD"
10865 if test -n "$LD"; then
10866 { echo "$as_me:$LINENO: result: $LD" >&5
10867 echo "${ECHO_T}$LD" >&6; }
10869 { echo "$as_me:$LINENO: result: no" >&5
10870 echo "${ECHO_T}no" >&6; }
10872 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10873 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10874 { (exit 1); exit 1; }; }
10875 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10876 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10877 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10881 case `$LD -v 2>&1 </dev/null` in
10882 *GNU* | *'with BFD'*)
10883 lt_cv_prog_gnu_ld=yes
10886 lt_cv_prog_gnu_ld=no
10890 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10891 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10892 with_gnu_ld=$lt_cv_prog_gnu_ld
10896 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10897 # archiving commands below assume that GNU ld is being used.
10898 if test "$with_gnu_ld" = yes; then
10899 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10900 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'
10902 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10903 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10905 # If archive_cmds runs LD, not CC, wlarc should be empty
10906 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10907 # investigate it a little bit more. (MM)
10910 # ancient GNU ld didn't support --whole-archive et. al.
10911 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10912 grep 'no-whole-archive' > /dev/null; then
10913 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10915 whole_archive_flag_spec_CXX=
10921 # A generic and very simple default shared library creation
10922 # command for GNU C++ for the case where it uses the native
10923 # linker, instead of GNU ld. If possible, this setting should
10924 # overridden to take advantage of the native linker features on
10925 # the platform it is being used on.
10926 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10929 # Commands to make compiler produce verbose output that lists
10930 # what "hidden" libraries, object files and flags are used when
10931 # linking a shared library.
10932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10940 # PORTME: fill in a description of your system's C++ link characteristics
10941 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10942 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10946 # FIXME: insert proper C++ library support
10950 if test "$host_cpu" = ia64; then
10951 # On IA64, the linker does run time linking by default, so we don't
10952 # have to do anything special.
10953 aix_use_runtimelinking=no
10954 exp_sym_flag='-Bexport'
10957 aix_use_runtimelinking=no
10959 # Test if we are trying to use run time linking or normal
10960 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10961 # need to do runtime linking.
10962 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10963 for ld_flag in $LDFLAGS; do
10966 aix_use_runtimelinking=yes
10974 exp_sym_flag='-bexport'
10975 no_entry_flag='-bnoentry'
10978 # When large executables or shared objects are built, AIX ld can
10979 # have problems creating the table of contents. If linking a library
10980 # or program results in "error TOC overflow" add -mminimal-toc to
10981 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10982 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10984 archive_cmds_CXX=''
10985 hardcode_direct_CXX=yes
10986 hardcode_libdir_separator_CXX=':'
10987 link_all_deplibs_CXX=yes
10989 if test "$GXX" = yes; then
10990 case $host_os in aix4.[012]|aix4.[012].*)
10991 # We only want to do this on AIX 4.2 and lower, the check
10992 # below for broken collect2 doesn't work under 4.3+
10993 collect2name=`${CC} -print-prog-name=collect2`
10994 if test -f "$collect2name" && \
10995 strings "$collect2name" | grep resolve_lib_name >/dev/null
10997 # We have reworked collect2
11000 # We have old collect2
11001 hardcode_direct_CXX=unsupported
11002 # It fails to find uninstalled libraries when the uninstalled
11003 # path is not listed in the libpath. Setting hardcode_minus_L
11004 # to unsupported forces relinking
11005 hardcode_minus_L_CXX=yes
11006 hardcode_libdir_flag_spec_CXX='-L$libdir'
11007 hardcode_libdir_separator_CXX=
11011 shared_flag='-shared'
11012 if test "$aix_use_runtimelinking" = yes; then
11013 shared_flag="$shared_flag "'${wl}-G'
11017 if test "$host_cpu" = ia64; then
11018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11019 # chokes on -Wl,-G. The following line is correct:
11022 if test "$aix_use_runtimelinking" = yes; then
11023 shared_flag='${wl}-G'
11025 shared_flag='${wl}-bM:SRE'
11030 # It seems that -bexpall does not export symbols beginning with
11031 # underscore (_), so it is better to generate a list of symbols to export.
11032 always_export_symbols_CXX=yes
11033 if test "$aix_use_runtimelinking" = yes; then
11034 # Warning - without using the other runtime loading flags (-brtl),
11035 # -berok will link without error, but may produce a broken library.
11036 allow_undefined_flag_CXX='-berok'
11037 # Determine the default libpath from the value encoded in an empty executable.
11038 cat >conftest.$ac_ext <<_ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (ac_try="$ac_link"
11055 case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_link") 2>conftest.er1
11062 grep -v '^ *+' conftest.er1 >conftest.err
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_cxx_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest$ac_exeext &&
11070 $as_test_x conftest$ac_exeext; then
11072 lt_aix_libpath_sed='
11073 /Import File Strings/,/^$/ {
11079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11080 # Check for a 64-bit object if we didn't find anything.
11081 if test -z "$aix_libpath"; then
11082 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092 conftest$ac_exeext conftest.$ac_ext
11093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11095 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11097 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11099 if test "$host_cpu" = ia64; then
11100 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11101 allow_undefined_flag_CXX="-z nodefs"
11102 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11104 # Determine the default libpath from the value encoded in an empty executable.
11105 cat >conftest.$ac_ext <<_ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_link") 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && {
11134 test -z "$ac_cxx_werror_flag" ||
11135 test ! -s conftest.err
11136 } && test -s conftest$ac_exeext &&
11137 $as_test_x conftest$ac_exeext; then
11139 lt_aix_libpath_sed='
11140 /Import File Strings/,/^$/ {
11146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11147 # Check for a 64-bit object if we didn't find anything.
11148 if test -z "$aix_libpath"; then
11149 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11159 conftest$ac_exeext conftest.$ac_ext
11160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11162 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11163 # Warning - without using the other run time loading flags,
11164 # -berok will link without error, but may produce a broken library.
11165 no_undefined_flag_CXX=' ${wl}-bernotok'
11166 allow_undefined_flag_CXX=' ${wl}-berok'
11167 # Exported symbols can be pulled into shared objects from archives
11168 whole_archive_flag_spec_CXX='$convenience'
11169 archive_cmds_need_lc_CXX=yes
11170 # This is similar to how AIX traditionally builds its shared libraries.
11171 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11178 allow_undefined_flag_CXX=unsupported
11179 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11180 # support --undefined. This deserves some investigation. FIXME
11181 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11188 case $cc_basename in
11190 # FIXME: insert proper C++ library support
11196 cygwin* | mingw* | pw32*)
11197 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11198 # as there is no search path for DLLs.
11199 hardcode_libdir_flag_spec_CXX='-L$libdir'
11200 allow_undefined_flag_CXX=unsupported
11201 always_export_symbols_CXX=no
11202 enable_shared_with_static_runtimes_CXX=yes
11204 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11206 # If the export-symbols file already is a .def file (1st line
11207 # is EXPORTS), use it as is; otherwise, prepend...
11208 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11209 cp $export_symbols $output_objdir/$soname.def;
11211 echo EXPORTS > $output_objdir/$soname.def;
11212 cat $export_symbols >> $output_objdir/$soname.def;
11214 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11219 darwin* | rhapsody*)
11221 rhapsody* | darwin1.[012])
11222 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11225 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11226 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11228 case ${MACOSX_DEPLOYMENT_TARGET} in
11230 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11233 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11239 archive_cmds_need_lc_CXX=no
11240 hardcode_direct_CXX=no
11241 hardcode_automatic_CXX=yes
11242 hardcode_shlibpath_var_CXX=unsupported
11243 whole_archive_flag_spec_CXX=''
11244 link_all_deplibs_CXX=yes
11246 if test "$GXX" = yes ; then
11247 lt_int_apple_cc_single_mod=no
11248 output_verbose_link_cmd='echo'
11249 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11250 lt_int_apple_cc_single_mod=yes
11252 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11253 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11255 archive_cmds_CXX='$CC -r -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'
11257 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11259 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11260 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}'
11262 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
11264 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}'
11266 case $cc_basename in
11268 output_verbose_link_cmd='echo'
11269 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11270 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11272 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11273 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}'
11283 case $cc_basename in
11285 # FIXME: insert proper C++ library support
11289 # Green Hills C++ Compiler
11290 # FIXME: insert proper C++ library support
11294 # FIXME: insert proper C++ library support
11300 # C++ shared libraries reported to be fairly broken before switch to ELF
11304 archive_cmds_need_lc_CXX=no
11306 freebsd* | dragonfly*)
11307 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11314 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11315 hardcode_libdir_separator_CXX=:
11316 export_dynamic_flag_spec_CXX='${wl}-E'
11317 hardcode_direct_CXX=yes
11318 hardcode_minus_L_CXX=yes # Not in the search PATH,
11319 # but as the default
11320 # location of the library.
11322 case $cc_basename in
11324 # FIXME: insert proper C++ library support
11328 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'
11329 # Commands to make compiler produce verbose output that lists
11330 # what "hidden" libraries, object files and flags are used when
11331 # linking a shared library.
11333 # There doesn't appear to be a way to prevent this compiler from
11334 # explicitly linking system object files so we need to strip them
11335 # from the output so that they don't get included in the library
11337 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'
11340 if test "$GXX" = yes; then
11341 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'
11343 # FIXME: insert proper C++ library support
11350 if test $with_gnu_ld = no; then
11351 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11352 hardcode_libdir_separator_CXX=:
11357 export_dynamic_flag_spec_CXX='${wl}-E'
11363 hardcode_direct_CXX=no
11364 hardcode_shlibpath_var_CXX=no
11367 hardcode_direct_CXX=yes
11368 hardcode_minus_L_CXX=yes # Not in the search PATH,
11369 # but as the default
11370 # location of the library.
11374 case $cc_basename in
11376 # FIXME: insert proper C++ library support
11382 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11385 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11388 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11391 # Commands to make compiler produce verbose output that lists
11392 # what "hidden" libraries, object files and flags are used when
11393 # linking a shared library.
11395 # There doesn't appear to be a way to prevent this compiler from
11396 # explicitly linking system object files so we need to strip them
11397 # from the output so that they don't get included in the library
11399 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'
11402 if test "$GXX" = yes; then
11403 if test $with_gnu_ld = no; then
11406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11409 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11412 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'
11417 # FIXME: insert proper C++ library support
11424 hardcode_direct_CXX=no
11425 hardcode_shlibpath_var_CXX=no
11426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11427 export_dynamic_flag_spec_CXX='${wl}-E'
11428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11429 # Instead, shared libraries are loaded at an image base (0x10000000 by
11430 # default) and relocated if they conflict, which is a slow very memory
11431 # consuming and fragmenting process. To avoid this, we pick a random,
11432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11434 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11435 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11438 case $cc_basename in
11441 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 ${output_objdir}/so_locations -o $lib'
11443 # Archives containing C++ object files must be created using
11444 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11445 # necessary to make sure instantiated templates are included
11447 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11450 if test "$GXX" = yes; then
11451 if test "$with_gnu_ld" = no; then
11452 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}${output_objdir}/so_locations -o $lib'
11454 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'
11457 link_all_deplibs_CXX=yes
11460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11461 hardcode_libdir_separator_CXX=:
11463 linux* | k*bsd*-gnu)
11464 case $cc_basename in
11466 # Kuck and Associates, Inc. (KAI) C++ Compiler
11468 # KCC will only create a shared library if the output file
11469 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11470 # to its proper name (with version) after linking.
11471 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'
11472 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'
11473 # Commands to make compiler produce verbose output that lists
11474 # what "hidden" libraries, object files and flags are used when
11475 # linking a shared library.
11477 # There doesn't appear to be a way to prevent this compiler from
11478 # explicitly linking system object files so we need to strip them
11479 # from the output so that they don't get included in the library
11481 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'
11483 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11484 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486 # Archives containing C++ object files must be created using
11487 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11488 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11493 # version 8.0 and above of icpc choke on multiply defined symbols
11494 # if we add $predep_objects and $postdep_objects, however 7.1 and
11495 # earlier do not add the objects themselves.
11496 case `$CC -V 2>&1` in
11498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11499 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'
11501 *) # Version 8.0 or newer
11504 ia64*) tmp_idyn=' -i_dynamic';;
11506 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11507 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11510 archive_cmds_need_lc_CXX=no
11511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11513 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11516 # Portland Group C++ compiler
11517 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11518 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11520 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11522 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11526 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11527 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'
11529 runpath_var=LD_RUN_PATH
11530 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11531 hardcode_libdir_separator_CXX=:
11533 # Commands to make compiler produce verbose output that lists
11534 # what "hidden" libraries, object files and flags are used when
11535 # linking a shared library.
11537 # There doesn't appear to be a way to prevent this compiler from
11538 # explicitly linking system object files so we need to strip them
11539 # from the output so that they don't get included in the library
11541 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'
11544 case `$CC -V 2>&1 | sed 5q` in
11547 no_undefined_flag_CXX=' -zdefs'
11548 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11549 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11550 hardcode_libdir_flag_spec_CXX='-R$libdir'
11551 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11553 # Not sure whether something based on
11554 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11556 output_verbose_link_cmd='echo'
11558 # Archives containing C++ object files must be created using
11559 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11560 # necessary to make sure instantiated templates are included
11562 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11569 # FIXME: insert proper C++ library support
11573 # FIXME: insert proper C++ library support
11577 case $cc_basename in
11579 # FIXME: insert proper C++ library support
11583 # FIXME: insert proper C++ library support
11589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11590 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11592 hardcode_libdir_flag_spec_CXX='-R$libdir'
11593 hardcode_direct_CXX=yes
11594 hardcode_shlibpath_var_CXX=no
11596 # Workaround some broken pre-1.5 toolchains
11597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11600 # C++ shared libraries are fairly broken
11604 if test -f /usr/libexec/ld.so; then
11605 hardcode_direct_CXX=yes
11606 hardcode_shlibpath_var_CXX=no
11607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11610 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11611 export_dynamic_flag_spec_CXX='${wl}-E'
11612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11614 output_verbose_link_cmd='echo'
11620 case $cc_basename in
11622 # Kuck and Associates, Inc. (KAI) C++ Compiler
11624 # KCC will only create a shared library if the output file
11625 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11626 # to its proper name (with version) after linking.
11627 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'
11629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11630 hardcode_libdir_separator_CXX=:
11632 # Archives containing C++ object files must be created using
11633 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11634 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11638 # Rational C++ 2.4.1
11639 # FIXME: insert proper C++ library support
11643 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11644 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 ${output_objdir}/so_locations -o $lib'
11646 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11647 hardcode_libdir_separator_CXX=:
11649 # Commands to make compiler produce verbose output that lists
11650 # what "hidden" libraries, object files and flags are used when
11651 # linking a shared library.
11653 # There doesn't appear to be a way to prevent this compiler from
11654 # explicitly linking system object files so we need to strip them
11655 # from the output so that they don't get included in the library
11657 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'
11660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11661 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11662 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}${output_objdir}/so_locations -o $lib'
11664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11665 hardcode_libdir_separator_CXX=:
11667 # Commands to make compiler produce verbose output that lists
11668 # what "hidden" libraries, object files and flags are used when
11669 # linking a shared library.
11670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11673 # FIXME: insert proper C++ library support
11680 case $cc_basename in
11682 # Kuck and Associates, Inc. (KAI) C++ Compiler
11684 # KCC will only create a shared library if the output file
11685 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11686 # to its proper name (with version) after linking.
11687 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'
11689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11690 hardcode_libdir_separator_CXX=:
11692 # Archives containing C++ object files must be created using
11693 # the KAI C++ compiler.
11694 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11697 # Rational C++ 2.4.1
11698 # FIXME: insert proper C++ library support
11702 allow_undefined_flag_CXX=' -expect_unresolved \*'
11703 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 ${output_objdir}/so_locations -o $lib'
11704 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11705 echo "-hidden">> $lib.exp~
11706 $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 ${output_objdir}/so_locations -o $lib~
11709 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11710 hardcode_libdir_separator_CXX=:
11712 # Commands to make compiler produce verbose output that lists
11713 # what "hidden" libraries, object files and flags are used when
11714 # linking a shared library.
11716 # There doesn't appear to be a way to prevent this compiler from
11717 # explicitly linking system object files so we need to strip them
11718 # from the output so that they don't get included in the library
11720 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'
11723 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11724 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11725 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}${output_objdir}/so_locations -o $lib'
11727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11728 hardcode_libdir_separator_CXX=:
11730 # Commands to make compiler produce verbose output that lists
11731 # what "hidden" libraries, object files and flags are used when
11732 # linking a shared library.
11733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11736 # FIXME: insert proper C++ library support
11743 # FIXME: insert proper C++ library support
11747 case $cc_basename in
11750 # FIXME: insert proper C++ library support
11755 # FIXME: insert proper C++ library support
11759 # FIXME: insert proper C++ library support
11765 case $cc_basename in
11767 # Sun C++ 4.2, 5.x and Centerline C++
11768 archive_cmds_need_lc_CXX=yes
11769 no_undefined_flag_CXX=' -zdefs'
11770 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11771 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11772 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11774 hardcode_libdir_flag_spec_CXX='-R$libdir'
11775 hardcode_shlibpath_var_CXX=no
11777 solaris2.[0-5] | solaris2.[0-5].*) ;;
11779 # The compiler driver will combine and reorder linker options,
11780 # but understands `-z linker_flag'.
11781 # Supported since Solaris 2.6 (maybe 2.5.1?)
11782 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11785 link_all_deplibs_CXX=yes
11787 output_verbose_link_cmd='echo'
11789 # Archives containing C++ object files must be created using
11790 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11791 # necessary to make sure instantiated templates are included
11793 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11796 # Green Hills C++ Compiler
11797 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11799 # The C++ compiler must be used to create the archive.
11800 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11803 # GNU C++ compiler with Solaris linker
11804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11805 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11806 if $CC --version | grep -v '^2\.7' > /dev/null; then
11807 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11808 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11809 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11811 # Commands to make compiler produce verbose output that lists
11812 # what "hidden" libraries, object files and flags are used when
11813 # linking a shared library.
11814 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11816 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11818 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11819 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11820 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11822 # Commands to make compiler produce verbose output that lists
11823 # what "hidden" libraries, object files and flags are used when
11824 # linking a shared library.
11825 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11828 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11830 solaris2.[0-5] | solaris2.[0-5].*) ;;
11832 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11840 no_undefined_flag_CXX='${wl}-z,text'
11841 archive_cmds_need_lc_CXX=no
11842 hardcode_shlibpath_var_CXX=no
11843 runpath_var='LD_RUN_PATH'
11845 case $cc_basename in
11847 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11848 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11851 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11852 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11856 sysv5* | sco3.2v5* | sco5v6*)
11857 # Note: We can NOT use -z defs as we might desire, because we do not
11858 # link with -lc, and that would cause any symbols used from libc to
11859 # always be unresolved, which means just about no library would
11860 # ever link correctly. If we're not using GNU ld we use -z text
11861 # though, which does catch some bad symbols but isn't as heavy-handed
11863 # For security reasons, it is highly recommended that you always
11864 # use absolute paths for naming shared libraries, and exclude the
11865 # DT_RUNPATH tag from executables and libraries. But doing so
11866 # requires that you compile everything twice, which is a pain.
11867 # So that behaviour is only enabled if SCOABSPATH is set to a
11868 # non-empty value in the environment. Most likely only useful for
11869 # creating official distributions of packages.
11870 # This is a hack until libtool officially supports absolute path
11871 # names for shared libraries.
11872 no_undefined_flag_CXX='${wl}-z,text'
11873 allow_undefined_flag_CXX='${wl}-z,nodefs'
11874 archive_cmds_need_lc_CXX=no
11875 hardcode_shlibpath_var_CXX=no
11876 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11877 hardcode_libdir_separator_CXX=':'
11878 link_all_deplibs_CXX=yes
11879 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11880 runpath_var='LD_RUN_PATH'
11882 case $cc_basename in
11884 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11888 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11889 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11894 case $cc_basename in
11896 # NonStop-UX NCC 3.20
11897 # FIXME: insert proper C++ library support
11901 # FIXME: insert proper C++ library support
11907 # FIXME: insert proper C++ library support
11911 # FIXME: insert proper C++ library support
11915 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11916 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11917 test "$ld_shlibs_CXX" = no && can_build_shared=no
11923 cat > conftest.$ac_ext <<EOF
11927 Foo (void) { a = 0; }
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; then
11938 # Parse the compiler output and extract the necessary
11939 # objects, libraries and library flags.
11941 # Sentinel used to keep track of whether or not we are before
11942 # the conftest object file.
11943 pre_test_object_deps_done=no
11945 # The `*' in the case matches for architectures that use `case' in
11946 # $output_verbose_cmd can trigger glob expansion during the loop
11947 # eval without this substitution.
11948 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11950 for p in `eval $output_verbose_link_cmd`; do
11954 # Some compilers place space between "-{L,R}" and the path.
11955 # Remove the space.
11956 if test $p = "-L" \
11957 || test $p = "-R"; then
11964 if test "$pre_test_object_deps_done" = no; then
11967 # Internal compiler library paths should come after those
11968 # provided the user. The postdeps already come after the
11969 # user supplied libs so there is no need to process them.
11970 if test -z "$compiler_lib_search_path_CXX"; then
11971 compiler_lib_search_path_CXX="${prev}${p}"
11973 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11976 # The "-l" case would never come before the object being
11977 # linked, so don't bother handling this case.
11980 if test -z "$postdeps_CXX"; then
11981 postdeps_CXX="${prev}${p}"
11983 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11989 # This assumes that the test object file only shows up
11990 # once in the compiler output.
11991 if test "$p" = "conftest.$objext"; then
11992 pre_test_object_deps_done=yes
11996 if test "$pre_test_object_deps_done" = no; then
11997 if test -z "$predep_objects_CXX"; then
11998 predep_objects_CXX="$p"
12000 predep_objects_CXX="$predep_objects_CXX $p"
12003 if test -z "$postdep_objects_CXX"; then
12004 postdep_objects_CXX="$p"
12006 postdep_objects_CXX="$postdep_objects_CXX $p"
12011 *) ;; # Ignore the rest.
12019 echo "libtool.m4: error: problem compiling CXX test program"
12022 $rm -f confest.$objext
12024 # PORTME: override above test on systems where it is broken
12027 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12028 # hack all around it, let's just trust "g++" to DTRT.
12029 predep_objects_CXX=
12030 postdep_objects_CXX=
12035 case `$CC -V 2>&1 | sed 5q` in
12039 # The more standards-conforming stlport4 library is
12040 # incompatible with the Cstd library. Avoid specifying
12041 # it if it's in CXXFLAGS. Ignore libCrun as
12042 # -library=stlport4 depends on it.
12043 case " $CXX $CXXFLAGS " in
12044 *" -library=stlport4 "*)
12045 solaris_use_stlport4=yes
12048 if test "$solaris_use_stlport4" != yes; then
12049 postdeps_CXX='-library=Cstd -library=Crun'
12056 case $cc_basename in
12058 # The more standards-conforming stlport4 library is
12059 # incompatible with the Cstd library. Avoid specifying
12060 # it if it's in CXXFLAGS. Ignore libCrun as
12061 # -library=stlport4 depends on it.
12062 case " $CXX $CXXFLAGS " in
12063 *" -library=stlport4 "*)
12064 solaris_use_stlport4=yes
12068 # Adding this requires a known-good setup of shared libraries for
12069 # Sun compiler versions before 5.6, else PIC objects from an old
12070 # archive will be linked into the output, leading to subtle bugs.
12071 if test "$solaris_use_stlport4" != yes; then
12072 postdeps_CXX='-library=Cstd -library=Crun'
12080 case " $postdeps_CXX " in
12081 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12084 lt_prog_compiler_wl_CXX=
12085 lt_prog_compiler_pic_CXX=
12086 lt_prog_compiler_static_CXX=
12088 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12089 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12091 # C++ specific cases for pic, static, wl, etc.
12092 if test "$GXX" = yes; then
12093 lt_prog_compiler_wl_CXX='-Wl,'
12094 lt_prog_compiler_static_CXX='-static'
12098 # All AIX code is PIC.
12099 if test "$host_cpu" = ia64; then
12100 # AIX 5 now supports IA64 processor
12101 lt_prog_compiler_static_CXX='-Bstatic'
12105 # FIXME: we need at least 68020 code to build shared libraries, but
12106 # adding the `-m68020' flag to GCC prevents building anything better,
12108 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12110 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12111 # PIC is the default for these OSes.
12113 mingw* | cygwin* | os2* | pw32*)
12114 # This hack is so that the source file can tell whether it is being
12115 # built for inclusion in a dll (and should export symbols for example).
12116 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12117 # (--disable-auto-import) libraries
12118 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12120 darwin* | rhapsody*)
12121 # PIC is the default on this platform
12122 # Common symbols not allowed in MH_DYLIB files
12123 lt_prog_compiler_pic_CXX='-fno-common'
12126 # DJGPP does not support shared libraries at all
12127 lt_prog_compiler_pic_CXX=
12130 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12131 # Instead, we relocate shared libraries at runtime.
12134 if test -d /usr/nec; then
12135 lt_prog_compiler_pic_CXX=-Kconform_pic
12139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12140 # not for PA HP-UX.
12145 lt_prog_compiler_pic_CXX='-fPIC'
12150 lt_prog_compiler_pic_CXX='-fPIC'
12156 # All AIX code is PIC.
12157 if test "$host_cpu" = ia64; then
12158 # AIX 5 now supports IA64 processor
12159 lt_prog_compiler_static_CXX='-Bstatic'
12161 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12165 case $cc_basename in
12167 # Green Hills C++ Compiler
12168 # _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"
12173 # PIC is the default on this platform
12174 # Common symbols not allowed in MH_DYLIB files
12175 case $cc_basename in
12177 lt_prog_compiler_pic_CXX='-qnocommon'
12178 lt_prog_compiler_wl_CXX='-Wl,'
12183 case $cc_basename in
12185 lt_prog_compiler_pic_CXX='-KPIC'
12188 # Green Hills C++ Compiler
12189 lt_prog_compiler_pic_CXX='-pic'
12195 freebsd* | dragonfly*)
12196 # FreeBSD uses GNU C++
12198 hpux9* | hpux10* | hpux11*)
12199 case $cc_basename in
12201 lt_prog_compiler_wl_CXX='-Wl,'
12202 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12203 if test "$host_cpu" != ia64; then
12204 lt_prog_compiler_pic_CXX='+Z'
12208 lt_prog_compiler_wl_CXX='-Wl,'
12209 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12215 lt_prog_compiler_pic_CXX='+Z'
12224 # This is c89, which is MS Visual C++ (no shared libs)
12225 # Anyone wants to do a port?
12227 irix5* | irix6* | nonstopux*)
12228 case $cc_basename in
12230 lt_prog_compiler_wl_CXX='-Wl,'
12231 lt_prog_compiler_static_CXX='-non_shared'
12232 # CC pic flag -KPIC is the default.
12238 linux* | k*bsd*-gnu)
12239 case $cc_basename in
12242 lt_prog_compiler_wl_CXX='--backend -Wl,'
12243 lt_prog_compiler_pic_CXX='-fPIC'
12247 lt_prog_compiler_wl_CXX='-Wl,'
12248 lt_prog_compiler_pic_CXX='-KPIC'
12249 lt_prog_compiler_static_CXX='-static'
12252 # Portland Group C++ compiler.
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_pic_CXX='-fpic'
12255 lt_prog_compiler_static_CXX='-Bstatic'
12259 # Make sure the PIC flag is empty. It appears that all Alpha
12260 # Linux and Compaq Tru64 Unix objects are PIC.
12261 lt_prog_compiler_pic_CXX=
12262 lt_prog_compiler_static_CXX='-non_shared'
12265 case `$CC -V 2>&1 | sed 5q` in
12268 lt_prog_compiler_pic_CXX='-KPIC'
12269 lt_prog_compiler_static_CXX='-Bstatic'
12270 lt_prog_compiler_wl_CXX='-Qoption ld '
12281 case $cc_basename in
12283 lt_prog_compiler_pic_CXX='-W c,exportall'
12291 osf3* | osf4* | osf5*)
12292 case $cc_basename in
12294 lt_prog_compiler_wl_CXX='--backend -Wl,'
12297 # Rational C++ 2.4.1
12298 lt_prog_compiler_pic_CXX='-pic'
12301 # Digital/Compaq C++
12302 lt_prog_compiler_wl_CXX='-Wl,'
12303 # Make sure the PIC flag is empty. It appears that all Alpha
12304 # Linux and Compaq Tru64 Unix objects are PIC.
12305 lt_prog_compiler_pic_CXX=
12306 lt_prog_compiler_static_CXX='-non_shared'
12315 case $cc_basename in
12317 # Sun C++ 4.2, 5.x and Centerline C++
12318 lt_prog_compiler_pic_CXX='-KPIC'
12319 lt_prog_compiler_static_CXX='-Bstatic'
12320 lt_prog_compiler_wl_CXX='-Qoption ld '
12323 # Green Hills C++ Compiler
12324 lt_prog_compiler_pic_CXX='-PIC'
12331 case $cc_basename in
12334 lt_prog_compiler_pic_CXX='-pic'
12335 lt_prog_compiler_static_CXX='-Bstatic'
12339 lt_prog_compiler_pic_CXX='-pic'
12346 case $cc_basename in
12348 # NonStop-UX NCC 3.20
12349 lt_prog_compiler_pic_CXX='-KPIC'
12355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12356 case $cc_basename in
12358 lt_prog_compiler_wl_CXX='-Wl,'
12359 lt_prog_compiler_pic_CXX='-KPIC'
12360 lt_prog_compiler_static_CXX='-Bstatic'
12367 lt_prog_compiler_can_build_shared_CXX=no
12372 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12373 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12376 # Check to make sure the PIC flag actually works.
12378 if test -n "$lt_prog_compiler_pic_CXX"; then
12380 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12381 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12382 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 lt_prog_compiler_pic_works_CXX=no
12386 ac_outfile=conftest.$ac_objext
12387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12388 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12389 # Insert the option either (1) after the last *FLAGS variable, or
12390 # (2) before a word containing "conftest.", or (3) at the end.
12391 # Note that $ac_compile itself does not contain backslashes and begins
12392 # with a dollar sign (not a hyphen), so the echo should work correctly.
12393 # The option is referenced via a variable to avoid confusing sed.
12394 lt_compile=`echo "$ac_compile" | $SED \
12395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12397 -e 's:$: $lt_compiler_flag:'`
12398 (eval echo "\"\$as_me:12398: $lt_compile\"" >&5)
12399 (eval "$lt_compile" 2>conftest.err)
12401 cat conftest.err >&5
12402 echo "$as_me:12402: \$? = $ac_status" >&5
12403 if (exit $ac_status) && test -s "$ac_outfile"; then
12404 # The compiler can only warn and ignore the option if not recognized
12405 # So say no if there are warnings other than the usual output.
12406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12409 lt_prog_compiler_pic_works_CXX=yes
12415 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12416 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12418 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12419 case $lt_prog_compiler_pic_CXX in
12421 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12424 lt_prog_compiler_pic_CXX=
12425 lt_prog_compiler_can_build_shared_CXX=no
12430 # For platforms which do not support PIC, -DPIC is meaningless:
12432 lt_prog_compiler_pic_CXX=
12435 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12440 # Check to make sure the static flag actually works.
12442 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12443 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12444 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12445 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 lt_prog_compiler_static_works_CXX=no
12449 save_LDFLAGS="$LDFLAGS"
12450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12453 # The linker can only warn and ignore the option if not recognized
12454 # So say no if there are warnings
12455 if test -s conftest.err; then
12456 # Append any errors to the config.log.
12457 cat conftest.err 1>&5
12458 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12460 if diff conftest.exp conftest.er2 >/dev/null; then
12461 lt_prog_compiler_static_works_CXX=yes
12464 lt_prog_compiler_static_works_CXX=yes
12468 LDFLAGS="$save_LDFLAGS"
12471 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12472 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12474 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12477 lt_prog_compiler_static_CXX=
12481 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12482 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12483 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 lt_cv_prog_compiler_c_o_CXX=no
12487 $rm -r conftest 2>/dev/null
12491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12493 lt_compiler_flag="-o out/conftest2.$ac_objext"
12494 # Insert the option either (1) after the last *FLAGS variable, or
12495 # (2) before a word containing "conftest.", or (3) at the end.
12496 # Note that $ac_compile itself does not contain backslashes and begins
12497 # with a dollar sign (not a hyphen), so the echo should work correctly.
12498 lt_compile=`echo "$ac_compile" | $SED \
12499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12501 -e 's:$: $lt_compiler_flag:'`
12502 (eval echo "\"\$as_me:12502: $lt_compile\"" >&5)
12503 (eval "$lt_compile" 2>out/conftest.err)
12505 cat out/conftest.err >&5
12506 echo "$as_me:12506: \$? = $ac_status" >&5
12507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12509 # The compiler can only warn and ignore the option if not recognized
12510 # So say no if there are warnings
12511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12514 lt_cv_prog_compiler_c_o_CXX=yes
12519 # SGI C++ compiler will create directory out/ii_files/ for
12520 # template instantiation
12521 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12522 $rm out/* && rmdir out
12528 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12529 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12532 hard_links="nottested"
12533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12534 # do not overwrite the value of need_locks provided by the user
12535 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12536 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12541 ln conftest.a conftest.b 2>&5 || hard_links=no
12542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12543 { echo "$as_me:$LINENO: result: $hard_links" >&5
12544 echo "${ECHO_T}$hard_links" >&6; }
12545 if test "$hard_links" = no; then
12546 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12547 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12554 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12560 # If we're using GNU nm, then we don't want the "-C" option.
12561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12563 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'
12565 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'
12569 export_symbols_cmds_CXX="$ltdll_cmds"
12572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12579 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12580 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12581 test "$ld_shlibs_CXX" = no && can_build_shared=no
12584 # Do we need to explicitly link libc?
12586 case "x$archive_cmds_need_lc_CXX" in
12588 # Assume -lc should be added
12589 archive_cmds_need_lc_CXX=yes
12591 if test "$enable_shared" = yes && test "$GCC" = yes; then
12592 case $archive_cmds_CXX in
12594 # FIXME: we may have to deal with multi-command sequences.
12597 # Test whether the compiler implicitly links with -lc since on some
12598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12599 # to ld, don't add -lc before -lgcc.
12600 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12601 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } 2>conftest.err; then
12612 libobjs=conftest.$ac_objext
12614 wl=$lt_prog_compiler_wl_CXX
12615 pic_flag=$lt_prog_compiler_pic_CXX
12621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12622 allow_undefined_flag_CXX=
12623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12624 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }
12629 archive_cmds_need_lc_CXX=no
12631 archive_cmds_need_lc_CXX=yes
12633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12635 cat conftest.err 1>&5
12638 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12639 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12646 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12648 library_names_spec=
12649 libname_spec='lib$name'
12653 postuninstall_cmds=
12657 shlibpath_overrides_runpath=unknown
12659 dynamic_linker="$host_os ld.so"
12660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12662 need_lib_prefix=unknown
12663 hardcode_into_libs=no
12665 # when you set need_version to no, make sure it does not cause -set_version
12666 # flags to be left without arguments
12667 need_version=unknown
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12673 shlibpath_var=LIBPATH
12675 # AIX 3 has no versioning support, so we append a major version to the name.
12676 soname_spec='${libname}${release}${shared_ext}$major'
12683 hardcode_into_libs=yes
12684 if test "$host_cpu" = ia64; then
12685 # AIX 5 supports IA64
12686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12687 shlibpath_var=LD_LIBRARY_PATH
12689 # With GCC up to 2.95.x, collect2 would create an import file
12690 # for dependence libraries. The import file would start with
12691 # the line `#! .'. This would cause the generated library to
12692 # depend on `.', always an invalid library. This was fixed in
12693 # development snapshots of GCC prior to 3.0.
12695 aix4 | aix4.[01] | aix4.[01].*)
12696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12698 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12701 can_build_shared=no
12705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12706 # soname into executable. Probably we can add versioning support to
12707 # collect2, so additional links can be useful in future.
12708 if test "$aix_use_runtimelinking" = yes; then
12709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12710 # instead of lib<name>.a to let people know that these are not
12711 # typical AIX shared libraries.
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714 # We preserve .a as extension for shared libraries through AIX4.2
12715 # and later when we are not doing run time linking.
12716 library_names_spec='${libname}${release}.a $libname.a'
12717 soname_spec='${libname}${release}${shared_ext}$major'
12719 shlibpath_var=LIBPATH
12724 library_names_spec='$libname.ixlibrary $libname.a'
12725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12726 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'
12730 library_names_spec='${libname}${shared_ext}'
12731 dynamic_linker="$host_os ld.so"
12732 shlibpath_var=LIBRARY_PATH
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12744 # the default ld.so.conf also contains /usr/contrib/lib and
12745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12746 # libtool to hard-code these into programs
12749 cygwin* | mingw* | pw32*)
12750 version_type=windows
12755 case $GCC,$host_os in
12756 yes,cygwin* | yes,mingw* | yes,pw32*)
12757 library_names_spec='$libname.dll.a'
12758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12759 postinstall_cmds='base_file=`basename \${file}`~
12760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12761 dldir=$destdir/`dirname \$dlpath`~
12762 test -d \$dldir || mkdir -p \$dldir~
12763 $install_prog $dir/$dlname \$dldir/$dlname~
12764 chmod a+x \$dldir/$dlname'
12765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12766 dlpath=$dir/\$dldll~
12768 shlibpath_overrides_runpath=yes
12772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12774 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12777 # MinGW DLLs use traditional 'lib' prefix
12778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12780 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12781 # It is most probably a Windows format PATH printed by
12782 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12783 # path with ; separators, and with drive letters. We can handle the
12784 # drive letters (cygwin fileutils understands them), so leave them,
12785 # especially as we might pass files found there to a mingw objdump,
12786 # which wouldn't understand a cygwinified path. Ahh.
12787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12793 # pw32 DLLs use 'pw' prefix rather than 'lib'
12794 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12800 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12803 dynamic_linker='Win32 ld.exe'
12804 # FIXME: first we should search . and the directory the executable is in
12808 darwin* | rhapsody*)
12809 dynamic_linker="$host_os dyld"
12810 version_type=darwin
12813 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12814 soname_spec='${libname}${release}${major}$shared_ext'
12815 shlibpath_overrides_runpath=yes
12816 shlibpath_var=DYLD_LIBRARY_PATH
12817 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 shlibpath_var=LD_LIBRARY_PATH
12835 freebsd* | dragonfly*)
12836 # DragonFly does not have aout. When/if they implement a new
12837 # versioning mechanism, adjust this.
12838 if test -x /usr/bin/objformat; then
12839 objformat=`/usr/bin/objformat`
12842 freebsd[123]*) objformat=aout ;;
12843 *) objformat=elf ;;
12846 version_type=freebsd-$objformat
12847 case $version_type in
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12858 shlibpath_var=LD_LIBRARY_PATH
12861 shlibpath_overrides_runpath=yes
12863 freebsd3.[01]* | freebsdelf3.[01]*)
12864 shlibpath_overrides_runpath=yes
12865 hardcode_into_libs=yes
12867 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12868 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12869 shlibpath_overrides_runpath=no
12870 hardcode_into_libs=yes
12872 *) # from 4.6 on, and DragonFly
12873 shlibpath_overrides_runpath=yes
12874 hardcode_into_libs=yes
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 shlibpath_var=LD_LIBRARY_PATH
12886 hardcode_into_libs=yes
12889 hpux9* | hpux10* | hpux11*)
12890 # Give a soname corresponding to the major version so that dld.sl refuses to
12891 # link against other versions.
12898 hardcode_into_libs=yes
12899 dynamic_linker="$host_os dld.so"
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 if test "X$HPUX_IA64_MODE" = X32; then
12905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12913 hardcode_into_libs=yes
12914 dynamic_linker="$host_os dld.sl"
12915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918 soname_spec='${libname}${release}${shared_ext}$major'
12919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12924 dynamic_linker="$host_os dld.sl"
12925 shlibpath_var=SHLIB_PATH
12926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12928 soname_spec='${libname}${release}${shared_ext}$major'
12931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12932 postinstall_cmds='chmod 555 $lib'
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12940 soname_spec='${libname}${release}${shared_ext}$major'
12941 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 shlibpath_overrides_runpath=no
12944 hardcode_into_libs=yes
12947 irix5* | irix6* | nonstopux*)
12949 nonstopux*) version_type=nonstopux ;;
12951 if test "$lt_cv_prog_gnu_ld" = yes; then
12959 soname_spec='${libname}${release}${shared_ext}$major'
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12962 irix5* | nonstopux*)
12963 libsuff= shlibsuff=
12966 case $LD in # libtool.m4 will add one of these switches to LD
12967 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12968 libsuff= shlibsuff= libmagic=32-bit;;
12969 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12970 libsuff=32 shlibsuff=N32 libmagic=N32;;
12971 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12972 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12973 *) libsuff= shlibsuff= libmagic=never-match;;
12977 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12978 shlibpath_overrides_runpath=no
12979 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12980 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12981 hardcode_into_libs=yes
12984 # No shared lib support for Linux oldld, aout, or coff.
12985 linux*oldld* | linux*aout* | linux*coff*)
12989 # This must be Linux ELF.
12990 linux* | k*bsd*-gnu)
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995 soname_spec='${libname}${release}${shared_ext}$major'
12996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12997 shlibpath_var=LD_LIBRARY_PATH
12998 shlibpath_overrides_runpath=no
12999 # This implies no fast_install, which is unacceptable.
13000 # Some rework will be needed to allow for fast_install
13001 # before this can be enabled.
13002 hardcode_into_libs=yes
13004 # Append ld.so.conf contents to the search path
13005 if test -f /etc/ld.so.conf; then
13006 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13010 # We used to test for /lib/ld.so.1 and disable shared libraries on
13011 # powerpc, because MkLinux only supported shared libraries with the
13012 # GNU dynamic linker. Since this was broken with cross compilers,
13013 # most powerpc-linux boxes support dynamic linking these days and
13014 # people can always --disable-shared, the test was removed, and we
13015 # assume the GNU/Linux dynamic linker is in use.
13016 dynamic_linker='GNU/Linux ld.so'
13023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13026 dynamic_linker='NetBSD (a.out) ld.so'
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13029 soname_spec='${libname}${release}${shared_ext}$major'
13030 dynamic_linker='NetBSD ld.elf_so'
13032 shlibpath_var=LD_LIBRARY_PATH
13033 shlibpath_overrides_runpath=yes
13034 hardcode_into_libs=yes
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 shlibpath_overrides_runpath=yes
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes
13056 sys_lib_dlsearch_path_spec="/usr/lib"
13058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13061 *) need_version=no ;;
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13065 shlibpath_var=LD_LIBRARY_PATH
13066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13068 openbsd2.[89] | openbsd2.[89].*)
13069 shlibpath_overrides_runpath=no
13072 shlibpath_overrides_runpath=yes
13076 shlibpath_overrides_runpath=yes
13081 libname_spec='$name'
13084 library_names_spec='$libname${shared_ext} $libname.a'
13085 dynamic_linker='OS/2 ld.exe'
13086 shlibpath_var=LIBPATH
13089 osf3* | osf4* | osf5*)
13093 soname_spec='${libname}${release}${shared_ext}$major'
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095 shlibpath_var=LD_LIBRARY_PATH
13096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 shlibpath_overrides_runpath=yes
13112 hardcode_into_libs=yes
13113 # ldd complains unless libraries are executable
13114 postinstall_cmds='chmod +x $lib'
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 shlibpath_overrides_runpath=yes
13123 if test "$with_gnu_ld" = yes; then
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 case $host_vendor in
13136 shlibpath_overrides_runpath=no
13138 export_dynamic_flag_spec='${wl}-Blargedynsym'
13139 runpath_var=LD_RUN_PATH
13147 shlibpath_overrides_runpath=no
13148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13154 if test -d /usr/nec ;then
13156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13157 soname_spec='$libname${shared_ext}.$major'
13158 shlibpath_var=LD_LIBRARY_PATH
13162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13163 version_type=freebsd-elf
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13168 shlibpath_var=LD_LIBRARY_PATH
13169 hardcode_into_libs=yes
13170 if test "$with_gnu_ld" = yes; then
13171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13172 shlibpath_overrides_runpath=no
13174 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13175 shlibpath_overrides_runpath=yes
13178 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13182 sys_lib_dlsearch_path_spec='/usr/lib'
13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188 soname_spec='${libname}${release}${shared_ext}$major'
13189 shlibpath_var=LD_LIBRARY_PATH
13196 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13197 echo "${ECHO_T}$dynamic_linker" >&6; }
13198 test "$dynamic_linker" = no && can_build_shared=no
13200 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13201 if test "$GCC" = yes; then
13202 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13205 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13206 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13207 hardcode_action_CXX=
13208 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13209 test -n "$runpath_var_CXX" || \
13210 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13212 # We can hardcode non-existant directories.
13213 if test "$hardcode_direct_CXX" != no &&
13214 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13215 # have to relink, otherwise we might link with an installed library
13216 # when we should be linking with a yet-to-be-installed one
13217 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13218 test "$hardcode_minus_L_CXX" != no; then
13219 # Linking always hardcodes the temporary library directory.
13220 hardcode_action_CXX=relink
13222 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13223 hardcode_action_CXX=immediate
13226 # We cannot hardcode anything, or else we can only hardcode existing
13228 hardcode_action_CXX=unsupported
13230 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13231 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13233 if test "$hardcode_action_CXX" = relink; then
13234 # Fast installation is not supported
13235 enable_fast_install=no
13236 elif test "$shlibpath_overrides_runpath" = yes ||
13237 test "$enable_shared" = no; then
13238 # Fast installation is not necessary
13239 enable_fast_install=needless
13243 # The else clause should only fire when bootstrapping the
13244 # libtool distribution, otherwise you forgot to ship ltmain.sh
13245 # with your package, and you will get complaints that there are
13246 # no rules to generate ltmain.sh.
13247 if test -f "$ltmain"; then
13248 # See if we are running on zsh, and set the options which allow our commands through
13249 # without removal of \ escapes.
13250 if test -n "${ZSH_VERSION+set}" ; then
13251 setopt NO_GLOB_SUBST
13253 # Now quote all the things that may contain metacharacters while being
13254 # careful not to overquote the AC_SUBSTed values. We take copies of the
13255 # variables and quote the copies for generation of the libtool script.
13256 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13258 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13259 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13260 deplibs_check_method reload_flag reload_cmds need_locks \
13261 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13262 lt_cv_sys_global_symbol_to_c_name_address \
13263 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13264 old_postinstall_cmds old_postuninstall_cmds \
13268 lt_prog_compiler_wl_CXX \
13269 lt_prog_compiler_pic_CXX \
13270 lt_prog_compiler_static_CXX \
13271 lt_prog_compiler_no_builtin_flag_CXX \
13272 export_dynamic_flag_spec_CXX \
13273 thread_safe_flag_spec_CXX \
13274 whole_archive_flag_spec_CXX \
13275 enable_shared_with_static_runtimes_CXX \
13276 old_archive_cmds_CXX \
13277 old_archive_from_new_cmds_CXX \
13278 predep_objects_CXX \
13279 postdep_objects_CXX \
13282 compiler_lib_search_path_CXX \
13284 archive_expsym_cmds_CXX \
13285 postinstall_cmds_CXX \
13286 postuninstall_cmds_CXX \
13287 old_archive_from_expsyms_cmds_CXX \
13288 allow_undefined_flag_CXX \
13289 no_undefined_flag_CXX \
13290 export_symbols_cmds_CXX \
13291 hardcode_libdir_flag_spec_CXX \
13292 hardcode_libdir_flag_spec_ld_CXX \
13293 hardcode_libdir_separator_CXX \
13294 hardcode_automatic_CXX \
13296 module_expsym_cmds_CXX \
13297 lt_cv_prog_compiler_c_o_CXX \
13298 fix_srcfile_path_CXX \
13299 exclude_expsyms_CXX \
13300 include_expsyms_CXX; do
13303 old_archive_cmds_CXX | \
13304 old_archive_from_new_cmds_CXX | \
13305 archive_cmds_CXX | \
13306 archive_expsym_cmds_CXX | \
13307 module_cmds_CXX | \
13308 module_expsym_cmds_CXX | \
13309 old_archive_from_expsyms_cmds_CXX | \
13310 export_symbols_cmds_CXX | \
13311 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13312 postinstall_cmds | postuninstall_cmds | \
13313 old_postinstall_cmds | old_postuninstall_cmds | \
13314 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13315 # Double-quote double-evaled strings.
13316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13325 *'\$0 --fallback-echo"')
13326 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13332 cat <<__EOF__ >> "$cfgfile"
13333 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13337 # Shell to use when invoking shell scripts.
13340 # Whether or not to build shared libraries.
13341 build_libtool_libs=$enable_shared
13343 # Whether or not to build static libraries.
13344 build_old_libs=$enable_static
13346 # Whether or not to add -lc for building shared libraries.
13347 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13349 # Whether or not to disallow shared libs when runtime libs are static
13350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13352 # Whether or not to optimize for fast installation.
13353 fast_install=$enable_fast_install
13356 host_alias=$host_alias
13360 # The build system.
13361 build_alias=$build_alias
13365 # An echo program that does not interpret backslashes.
13370 AR_FLAGS=$lt_AR_FLAGS
13375 # LTCC compiler flags.
13376 LTCFLAGS=$lt_LTCFLAGS
13378 # A language-specific compiler.
13379 CC=$lt_compiler_CXX
13381 # Is the compiler the GNU C compiler?
13387 # The linker used to build libraries.
13390 # Whether we need hard or soft links.
13393 # A BSD-compatible nm program.
13396 # A symbol stripping program
13399 # Used to examine libraries when file_magic_cmd begins "file"
13400 MAGIC_CMD=$MAGIC_CMD
13402 # Used on cygwin: DLL creation program.
13405 # Used on cygwin: object dumper.
13408 # Used on cygwin: assembler.
13411 # The name of the directory that contains temporary libtool files.
13414 # How to create reloadable object files.
13415 reload_flag=$lt_reload_flag
13416 reload_cmds=$lt_reload_cmds
13418 # How to pass a linker flag through the compiler.
13419 wl=$lt_lt_prog_compiler_wl_CXX
13421 # Object file suffix (normally "o").
13422 objext="$ac_objext"
13424 # Old archive suffix (normally "a").
13427 # Shared library suffix (normally ".so").
13428 shrext_cmds='$shrext_cmds'
13430 # Executable file suffix (normally "").
13433 # Additional compiler flags for building library objects.
13434 pic_flag=$lt_lt_prog_compiler_pic_CXX
13437 # What is the maximum length of a command?
13438 max_cmd_len=$lt_cv_sys_max_cmd_len
13440 # Does compiler simultaneously support -c and -o options?
13441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13443 # Must we lock files when doing compilation?
13444 need_locks=$lt_need_locks
13446 # Do we need the lib prefix for modules?
13447 need_lib_prefix=$need_lib_prefix
13449 # Do we need a version for libraries?
13450 need_version=$need_version
13452 # Whether dlopen is supported.
13453 dlopen_support=$enable_dlopen
13455 # Whether dlopen of programs is supported.
13456 dlopen_self=$enable_dlopen_self
13458 # Whether dlopen of statically linked programs is supported.
13459 dlopen_self_static=$enable_dlopen_self_static
13461 # Compiler flag to prevent dynamic linking.
13462 link_static_flag=$lt_lt_prog_compiler_static_CXX
13464 # Compiler flag to turn off builtin functions.
13465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13467 # Compiler flag to allow reflexive dlopens.
13468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13470 # Compiler flag to generate shared objects directly from archives.
13471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13473 # Compiler flag to generate thread-safe objects.
13474 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13476 # Library versioning type.
13477 version_type=$version_type
13479 # Format of library name prefix.
13480 libname_spec=$lt_libname_spec
13482 # List of archive names. First name is the real one, the rest are links.
13483 # The last name is the one that the linker finds with -lNAME.
13484 library_names_spec=$lt_library_names_spec
13486 # The coded name of the library, if different from the real name.
13487 soname_spec=$lt_soname_spec
13489 # Commands used to build and install an old-style archive.
13491 old_archive_cmds=$lt_old_archive_cmds_CXX
13492 old_postinstall_cmds=$lt_old_postinstall_cmds
13493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13495 # Create an old-style archive from a shared archive.
13496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13498 # Create a temporary old-style archive to link instead of a shared archive.
13499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13501 # Commands used to build and install a shared archive.
13502 archive_cmds=$lt_archive_cmds_CXX
13503 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13504 postinstall_cmds=$lt_postinstall_cmds
13505 postuninstall_cmds=$lt_postuninstall_cmds
13507 # Commands used to build a loadable module (assumed same as above if empty)
13508 module_cmds=$lt_module_cmds_CXX
13509 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13511 # Commands to strip libraries.
13512 old_striplib=$lt_old_striplib
13513 striplib=$lt_striplib
13515 # Dependencies to place before the objects being linked to create a
13517 predep_objects=$lt_predep_objects_CXX
13519 # Dependencies to place after the objects being linked to create a
13521 postdep_objects=$lt_postdep_objects_CXX
13523 # Dependencies to place before the objects being linked to create a
13525 predeps=$lt_predeps_CXX
13527 # Dependencies to place after the objects being linked to create a
13529 postdeps=$lt_postdeps_CXX
13531 # The library search path used internally by the compiler when linking
13532 # a shared library.
13533 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13535 # Method to check whether dependent libraries are shared objects.
13536 deplibs_check_method=$lt_deplibs_check_method
13538 # Command to use when deplibs_check_method == file_magic.
13539 file_magic_cmd=$lt_file_magic_cmd
13541 # Flag that allows shared libraries with undefined symbols to be built.
13542 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13544 # Flag that forces no undefined symbols.
13545 no_undefined_flag=$lt_no_undefined_flag_CXX
13547 # Commands used to finish a libtool library installation in a directory.
13548 finish_cmds=$lt_finish_cmds
13550 # Same as above, but a single script fragment to be evaled but not shown.
13551 finish_eval=$lt_finish_eval
13553 # Take the output of nm and produce a listing of raw symbols and C names.
13554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13556 # Transform the output of nm in a proper C declaration
13557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13559 # Transform the output of nm in a C name address pair
13560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13562 # This is the shared library runtime path variable.
13563 runpath_var=$runpath_var
13565 # This is the shared library path variable.
13566 shlibpath_var=$shlibpath_var
13568 # Is shlibpath searched before the hard-coded library search path?
13569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13571 # How to hardcode a shared library path into an executable.
13572 hardcode_action=$hardcode_action_CXX
13574 # Whether we should hardcode library paths into libraries.
13575 hardcode_into_libs=$hardcode_into_libs
13577 # Flag to hardcode \$libdir into a binary during linking.
13578 # This must work even if \$libdir does not exist.
13579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13581 # If ld is used when linking, flag to hardcode \$libdir into
13582 # a binary during linking. This must work even if \$libdir does
13584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13586 # Whether we need a single -rpath flag with a separated argument.
13587 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13589 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13590 # resulting binary.
13591 hardcode_direct=$hardcode_direct_CXX
13593 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13594 # resulting binary.
13595 hardcode_minus_L=$hardcode_minus_L_CXX
13597 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13598 # the resulting binary.
13599 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13601 # Set to yes if building a shared library automatically hardcodes DIR into the library
13602 # and all subsequent libraries and executables linked against it.
13603 hardcode_automatic=$hardcode_automatic_CXX
13605 # Variables whose values should be saved in libtool wrapper scripts and
13606 # restored at relink time.
13607 variables_saved_for_relink="$variables_saved_for_relink"
13609 # Whether libtool must link a program against all its dependency libraries.
13610 link_all_deplibs=$link_all_deplibs_CXX
13612 # Compile-time system search path for libraries
13613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13615 # Run-time system search path for libraries
13616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13618 # Fix the shell variable \$srcfile for the compiler.
13619 fix_srcfile_path=$lt_fix_srcfile_path
13621 # Set to yes if exported symbols are required.
13622 always_export_symbols=$always_export_symbols_CXX
13624 # The commands to list exported symbols.
13625 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13627 # The commands to extract the exported symbol list from a shared archive.
13628 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13630 # Symbols that should not be listed in the preloaded symbols.
13631 exclude_expsyms=$lt_exclude_expsyms_CXX
13633 # Symbols that must always be exported.
13634 include_expsyms=$lt_include_expsyms_CXX
13636 # ### END LIBTOOL TAG CONFIG: $tagname
13642 # If there is no Makefile yet, we rely on a make rule to execute
13643 # `config.status --recheck' to rerun these tests and create the
13644 # libtool script then.
13645 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13646 if test -f "$ltmain_in"; then
13647 test -f Makefile && make "$ltmain"
13653 ac_cpp='$CPP $CPPFLAGS'
13654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13662 with_gnu_ldcxx=$with_gnu_ld
13663 with_gnu_ld=$lt_save_with_gnu_ld
13664 lt_cv_path_LDCXX=$lt_cv_path_LD
13665 lt_cv_path_LD=$lt_save_path_LD
13666 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13667 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13675 if test -n "$F77" && test "X$F77" != "Xno"; then
13678 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13679 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13680 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13683 archive_cmds_need_lc_F77=no
13684 allow_undefined_flag_F77=
13685 always_export_symbols_F77=no
13686 archive_expsym_cmds_F77=
13687 export_dynamic_flag_spec_F77=
13688 hardcode_direct_F77=no
13689 hardcode_libdir_flag_spec_F77=
13690 hardcode_libdir_flag_spec_ld_F77=
13691 hardcode_libdir_separator_F77=
13692 hardcode_minus_L_F77=no
13693 hardcode_automatic_F77=no
13695 module_expsym_cmds_F77=
13696 link_all_deplibs_F77=unknown
13697 old_archive_cmds_F77=$old_archive_cmds
13698 no_undefined_flag_F77=
13699 whole_archive_flag_spec_F77=
13700 enable_shared_with_static_runtimes_F77=no
13702 # Source file extension for f77 test sources.
13705 # Object file extension for compiled f77 test sources.
13709 # Code to be used in simple compile tests
13710 lt_simple_compile_test_code="\
13716 # Code to be used in simple link tests
13717 lt_simple_link_test_code="\
13722 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13724 # If no C compiler was specified, use CC.
13727 # If no C compiler flags were specified, use CFLAGS.
13728 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13730 # Allow CC to be a program name with arguments.
13734 # save warnings/boilerplate of simple test code
13735 ac_outfile=conftest.$ac_objext
13736 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13737 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13738 _lt_compiler_boilerplate=`cat conftest.err`
13741 ac_outfile=conftest.$ac_objext
13742 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13743 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13744 _lt_linker_boilerplate=`cat conftest.err`
13748 # Allow CC to be a program name with arguments.
13753 for cc_temp in $compiler""; do
13755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13761 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13764 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13765 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13766 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13767 echo "${ECHO_T}$can_build_shared" >&6; }
13769 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13770 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13771 test "$can_build_shared" = "no" && enable_shared=no
13773 # On AIX, shared libraries and static libraries use the same namespace, and
13774 # are all built from PIC.
13777 test "$enable_shared" = yes && enable_static=no
13778 if test -n "$RANLIB"; then
13779 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13780 postinstall_cmds='$RANLIB $lib'
13784 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13785 test "$enable_shared" = yes && enable_static=no
13789 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13790 echo "${ECHO_T}$enable_shared" >&6; }
13792 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13793 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13794 # Make sure either enable_shared or enable_static is yes.
13795 test "$enable_shared" = yes || enable_static=yes
13796 { echo "$as_me:$LINENO: result: $enable_static" >&5
13797 echo "${ECHO_T}$enable_static" >&6; }
13802 lt_prog_compiler_wl_F77=
13803 lt_prog_compiler_pic_F77=
13804 lt_prog_compiler_static_F77=
13806 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13807 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13809 if test "$GCC" = yes; then
13810 lt_prog_compiler_wl_F77='-Wl,'
13811 lt_prog_compiler_static_F77='-static'
13815 # All AIX code is PIC.
13816 if test "$host_cpu" = ia64; then
13817 # AIX 5 now supports IA64 processor
13818 lt_prog_compiler_static_F77='-Bstatic'
13823 # FIXME: we need at least 68020 code to build shared libraries, but
13824 # adding the `-m68020' flag to GCC prevents building anything better,
13826 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13829 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13830 # PIC is the default for these OSes.
13833 mingw* | cygwin* | pw32* | os2*)
13834 # This hack is so that the source file can tell whether it is being
13835 # built for inclusion in a dll (and should export symbols for example).
13836 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13837 # (--disable-auto-import) libraries
13838 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13841 darwin* | rhapsody*)
13842 # PIC is the default on this platform
13843 # Common symbols not allowed in MH_DYLIB files
13844 lt_prog_compiler_pic_F77='-fno-common'
13848 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13849 # Instead, we relocate shared libraries at runtime.
13853 # Just because we use GCC doesn't mean we suddenly get shared libraries
13854 # on systems that don't support them.
13855 lt_prog_compiler_can_build_shared_F77=no
13860 if test -d /usr/nec; then
13861 lt_prog_compiler_pic_F77=-Kconform_pic
13866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13867 # not for PA HP-UX.
13873 lt_prog_compiler_pic_F77='-fPIC'
13879 lt_prog_compiler_pic_F77='-fPIC'
13883 # PORTME Check for flag to pass linker flags through the system compiler.
13886 lt_prog_compiler_wl_F77='-Wl,'
13887 if test "$host_cpu" = ia64; then
13888 # AIX 5 now supports IA64 processor
13889 lt_prog_compiler_static_F77='-Bstatic'
13891 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13895 # PIC is the default on this platform
13896 # Common symbols not allowed in MH_DYLIB files
13897 case $cc_basename in
13899 lt_prog_compiler_pic_F77='-qnocommon'
13900 lt_prog_compiler_wl_F77='-Wl,'
13905 mingw* | cygwin* | pw32* | os2*)
13906 # This hack is so that the source file can tell whether it is being
13907 # built for inclusion in a dll (and should export symbols for example).
13908 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13911 hpux9* | hpux10* | hpux11*)
13912 lt_prog_compiler_wl_F77='-Wl,'
13913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13914 # not for PA HP-UX.
13920 lt_prog_compiler_pic_F77='+Z'
13923 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13924 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13927 irix5* | irix6* | nonstopux*)
13928 lt_prog_compiler_wl_F77='-Wl,'
13929 # PIC (with -KPIC) is the default.
13930 lt_prog_compiler_static_F77='-non_shared'
13934 lt_prog_compiler_pic_F77='-KPIC'
13935 lt_prog_compiler_static_F77='-Bstatic'
13938 linux* | k*bsd*-gnu)
13939 case $cc_basename in
13941 lt_prog_compiler_wl_F77='-Wl,'
13942 lt_prog_compiler_pic_F77='-KPIC'
13943 lt_prog_compiler_static_F77='-static'
13945 pgcc* | pgf77* | pgf90* | pgf95*)
13946 # Portland Group compilers (*not* the Pentium gcc compiler,
13947 # which looks to be a dead project)
13948 lt_prog_compiler_wl_F77='-Wl,'
13949 lt_prog_compiler_pic_F77='-fpic'
13950 lt_prog_compiler_static_F77='-Bstatic'
13953 lt_prog_compiler_wl_F77='-Wl,'
13954 # All Alpha code is PIC.
13955 lt_prog_compiler_static_F77='-non_shared'
13958 case `$CC -V 2>&1 | sed 5q` in
13961 lt_prog_compiler_pic_F77='-KPIC'
13962 lt_prog_compiler_static_F77='-Bstatic'
13963 lt_prog_compiler_wl_F77='-Wl,'
13966 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13967 lt_prog_compiler_pic_F77='-KPIC'
13968 lt_prog_compiler_static_F77='-Bstatic'
13969 lt_prog_compiler_wl_F77=''
13976 osf3* | osf4* | osf5*)
13977 lt_prog_compiler_wl_F77='-Wl,'
13978 # All OSF/1 code is PIC.
13979 lt_prog_compiler_static_F77='-non_shared'
13983 lt_prog_compiler_static_F77='-non_shared'
13987 lt_prog_compiler_pic_F77='-KPIC'
13988 lt_prog_compiler_static_F77='-Bstatic'
13989 case $cc_basename in
13990 f77* | f90* | f95*)
13991 lt_prog_compiler_wl_F77='-Qoption ld ';;
13993 lt_prog_compiler_wl_F77='-Wl,';;
13998 lt_prog_compiler_wl_F77='-Qoption ld '
13999 lt_prog_compiler_pic_F77='-PIC'
14000 lt_prog_compiler_static_F77='-Bstatic'
14003 sysv4 | sysv4.2uw2* | sysv4.3*)
14004 lt_prog_compiler_wl_F77='-Wl,'
14005 lt_prog_compiler_pic_F77='-KPIC'
14006 lt_prog_compiler_static_F77='-Bstatic'
14010 if test -d /usr/nec ;then
14011 lt_prog_compiler_pic_F77='-Kconform_pic'
14012 lt_prog_compiler_static_F77='-Bstatic'
14016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14017 lt_prog_compiler_wl_F77='-Wl,'
14018 lt_prog_compiler_pic_F77='-KPIC'
14019 lt_prog_compiler_static_F77='-Bstatic'
14023 lt_prog_compiler_wl_F77='-Wl,'
14024 lt_prog_compiler_can_build_shared_F77=no
14028 lt_prog_compiler_pic_F77='-pic'
14029 lt_prog_compiler_static_F77='-Bstatic'
14033 lt_prog_compiler_can_build_shared_F77=no
14038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14039 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14042 # Check to make sure the PIC flag actually works.
14044 if test -n "$lt_prog_compiler_pic_F77"; then
14046 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14048 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 lt_prog_compiler_pic_works_F77=no
14052 ac_outfile=conftest.$ac_objext
14053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14054 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14055 # Insert the option either (1) after the last *FLAGS variable, or
14056 # (2) before a word containing "conftest.", or (3) at the end.
14057 # Note that $ac_compile itself does not contain backslashes and begins
14058 # with a dollar sign (not a hyphen), so the echo should work correctly.
14059 # The option is referenced via a variable to avoid confusing sed.
14060 lt_compile=`echo "$ac_compile" | $SED \
14061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14063 -e 's:$: $lt_compiler_flag:'`
14064 (eval echo "\"\$as_me:14064: $lt_compile\"" >&5)
14065 (eval "$lt_compile" 2>conftest.err)
14067 cat conftest.err >&5
14068 echo "$as_me:14068: \$? = $ac_status" >&5
14069 if (exit $ac_status) && test -s "$ac_outfile"; then
14070 # The compiler can only warn and ignore the option if not recognized
14071 # So say no if there are warnings other than the usual output.
14072 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14075 lt_prog_compiler_pic_works_F77=yes
14081 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14082 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14084 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14085 case $lt_prog_compiler_pic_F77 in
14087 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14090 lt_prog_compiler_pic_F77=
14091 lt_prog_compiler_can_build_shared_F77=no
14096 # For platforms which do not support PIC, -DPIC is meaningless:
14098 lt_prog_compiler_pic_F77=
14101 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14106 # Check to make sure the static flag actually works.
14108 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14109 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14110 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14111 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 lt_prog_compiler_static_works_F77=no
14115 save_LDFLAGS="$LDFLAGS"
14116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14117 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14119 # The linker can only warn and ignore the option if not recognized
14120 # So say no if there are warnings
14121 if test -s conftest.err; then
14122 # Append any errors to the config.log.
14123 cat conftest.err 1>&5
14124 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14126 if diff conftest.exp conftest.er2 >/dev/null; then
14127 lt_prog_compiler_static_works_F77=yes
14130 lt_prog_compiler_static_works_F77=yes
14134 LDFLAGS="$save_LDFLAGS"
14137 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14138 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14140 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14143 lt_prog_compiler_static_F77=
14147 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14148 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14149 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 lt_cv_prog_compiler_c_o_F77=no
14153 $rm -r conftest 2>/dev/null
14157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14159 lt_compiler_flag="-o out/conftest2.$ac_objext"
14160 # Insert the option either (1) after the last *FLAGS variable, or
14161 # (2) before a word containing "conftest.", or (3) at the end.
14162 # Note that $ac_compile itself does not contain backslashes and begins
14163 # with a dollar sign (not a hyphen), so the echo should work correctly.
14164 lt_compile=`echo "$ac_compile" | $SED \
14165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14167 -e 's:$: $lt_compiler_flag:'`
14168 (eval echo "\"\$as_me:14168: $lt_compile\"" >&5)
14169 (eval "$lt_compile" 2>out/conftest.err)
14171 cat out/conftest.err >&5
14172 echo "$as_me:14172: \$? = $ac_status" >&5
14173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14175 # The compiler can only warn and ignore the option if not recognized
14176 # So say no if there are warnings
14177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14180 lt_cv_prog_compiler_c_o_F77=yes
14185 # SGI C++ compiler will create directory out/ii_files/ for
14186 # template instantiation
14187 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14188 $rm out/* && rmdir out
14194 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14195 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14198 hard_links="nottested"
14199 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14200 # do not overwrite the value of need_locks provided by the user
14201 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14202 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14207 ln conftest.a conftest.b 2>&5 || hard_links=no
14208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14209 { echo "$as_me:$LINENO: result: $hard_links" >&5
14210 echo "${ECHO_T}$hard_links" >&6; }
14211 if test "$hard_links" = no; then
14212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14213 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14220 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14224 allow_undefined_flag_F77=
14225 enable_shared_with_static_runtimes_F77=no
14227 archive_expsym_cmds_F77=
14228 old_archive_From_new_cmds_F77=
14229 old_archive_from_expsyms_cmds_F77=
14230 export_dynamic_flag_spec_F77=
14231 whole_archive_flag_spec_F77=
14232 thread_safe_flag_spec_F77=
14233 hardcode_libdir_flag_spec_F77=
14234 hardcode_libdir_flag_spec_ld_F77=
14235 hardcode_libdir_separator_F77=
14236 hardcode_direct_F77=no
14237 hardcode_minus_L_F77=no
14238 hardcode_shlibpath_var_F77=unsupported
14239 link_all_deplibs_F77=unknown
14240 hardcode_automatic_F77=no
14242 module_expsym_cmds_F77=
14243 always_export_symbols_F77=no
14244 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14245 # include_expsyms should be a list of space-separated symbols to be *always*
14246 # included in the symbol list
14247 include_expsyms_F77=
14248 # exclude_expsyms can be an extended regexp of symbols to exclude
14249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14251 # as well as any symbol that contains `d'.
14252 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14254 # platforms (ab)use it in PIC code, but their linkers get confused if
14255 # the symbol is explicitly referenced. Since portable code cannot
14256 # rely on this symbol name, it's probably fine to never include it in
14257 # preloaded symbol tables.
14258 extract_expsyms_cmds=
14259 # Just being paranoid about ensuring that cc_basename is set.
14260 for cc_temp in $compiler""; do
14262 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14263 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14268 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14271 cygwin* | mingw* | pw32*)
14272 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14273 # When not using gcc, we currently assume that we are using
14274 # Microsoft Visual C++.
14275 if test "$GCC" != yes; then
14280 # we just hope/assume this is gcc and not c89 (= MSVC++)
14289 if test "$with_gnu_ld" = yes; then
14290 # If archive_cmds runs LD, not CC, wlarc should be empty
14293 # Set some defaults for GNU ld with shared library support. These
14294 # are reset later if shared libraries are not supported. Putting them
14295 # here allows them to be overridden if necessary.
14296 runpath_var=LD_RUN_PATH
14297 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14298 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14299 # ancient GNU ld didn't support --whole-archive et. al.
14300 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14301 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14303 whole_archive_flag_spec_F77=
14305 supports_anon_versioning=no
14306 case `$LD -v 2>/dev/null` in
14307 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14308 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14309 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14310 *\ 2.11.*) ;; # other 2.11 versions
14311 *) supports_anon_versioning=yes ;;
14314 # See if GNU ld supports shared libraries.
14316 aix3* | aix4* | aix5*)
14317 # On AIX/PPC, the GNU linker is very broken
14318 if test "$host_cpu" != ia64; then
14322 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14323 *** to be unable to reliably create shared libraries on AIX.
14324 *** Therefore, libtool is disabling shared libraries support. If you
14325 *** really care for shared libraries, you may want to modify your PATH
14326 *** so that a non-GNU linker is found, and then restart.
14333 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)'
14334 hardcode_libdir_flag_spec_F77='-L$libdir'
14335 hardcode_minus_L_F77=yes
14337 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14338 # that the semantics of dynamic libraries on AmigaOS, at least up
14339 # to version 4, is to share data among multiple programs linked
14340 # with the same dynamic library. Since this doesn't match the
14341 # behavior of shared libraries on other platforms, we can't use
14347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14348 allow_undefined_flag_F77=unsupported
14349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14350 # support --undefined. This deserves some investigation. FIXME
14351 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14357 cygwin* | mingw* | pw32*)
14358 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14359 # as there is no search path for DLLs.
14360 hardcode_libdir_flag_spec_F77='-L$libdir'
14361 allow_undefined_flag_F77=unsupported
14362 always_export_symbols_F77=no
14363 enable_shared_with_static_runtimes_F77=yes
14364 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14366 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14367 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14368 # If the export-symbols file already is a .def file (1st line
14369 # is EXPORTS), use it as is; otherwise, prepend...
14370 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14371 cp $export_symbols $output_objdir/$soname.def;
14373 echo EXPORTS > $output_objdir/$soname.def;
14374 cat $export_symbols >> $output_objdir/$soname.def;
14376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14383 hardcode_direct_F77=no
14384 hardcode_shlibpath_var_F77=no
14385 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14386 export_dynamic_flag_spec_F77='${wl}-E'
14387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14388 # Instead, shared libraries are loaded at an image base (0x10000000 by
14389 # default) and relocated if they conflict, which is a slow very memory
14390 # consuming and fragmenting process. To avoid this, we pick a random,
14391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14392 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14393 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14394 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14397 gnu* | linux* | k*bsd*-gnu)
14398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14400 case $cc_basename,$host_cpu in
14401 pgcc*) # Portland Group C compiler
14402 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14403 tmp_addflag=' $pic_flag'
14405 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14406 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14407 tmp_addflag=' $pic_flag -Mnomain' ;;
14408 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14409 tmp_addflag=' -i_dynamic' ;;
14410 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14411 tmp_addflag=' -i_dynamic -nofor_main' ;;
14412 ifc* | ifort*) # Intel Fortran compiler
14413 tmp_addflag=' -nofor_main' ;;
14415 case `$CC -V 2>&1 | sed 5q` in
14416 *Sun\ C*) # Sun C 5.9
14417 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14418 tmp_sharedflag='-G' ;;
14419 *Sun\ F*) # Sun Fortran 8.3
14420 tmp_sharedflag='-G' ;;
14422 tmp_sharedflag='-shared' ;;
14424 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14426 if test $supports_anon_versioning = yes; then
14427 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14428 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14429 $echo "local: *; };" >> $output_objdir/$libname.ver~
14430 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14439 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14442 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14443 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14448 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14452 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14453 *** create shared libraries on Solaris systems. Therefore, libtool
14454 *** is disabling shared libraries support. We urge you to upgrade GNU
14455 *** binutils to release 2.9.1 or newer. Another option is to modify
14456 *** your PATH or compiler configuration so that the native linker is
14457 *** used, and then restart.
14460 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14461 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14469 case `$LD -v 2>&1` in
14470 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14474 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14475 *** reliably create shared libraries on SCO systems. Therefore, libtool
14476 *** is disabling shared libraries support. We urge you to upgrade GNU
14477 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14478 *** your PATH or compiler configuration so that the native linker is
14479 *** used, and then restart.
14484 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14485 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14486 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14487 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14496 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14498 hardcode_direct_F77=yes
14499 hardcode_shlibpath_var_F77=no
14503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14504 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14505 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14512 if test "$ld_shlibs_F77" = no; then
14514 hardcode_libdir_flag_spec_F77=
14515 export_dynamic_flag_spec_F77=
14516 whole_archive_flag_spec_F77=
14519 # PORTME fill in a description of your system's linker (not GNU ld)
14522 allow_undefined_flag_F77=unsupported
14523 always_export_symbols_F77=yes
14524 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'
14525 # Note: this linker hardcodes the directories in LIBPATH if there
14526 # are no directories specified by -L.
14527 hardcode_minus_L_F77=yes
14528 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14529 # Neither direct hardcoding nor static linking is supported with a
14531 hardcode_direct_F77=unsupported
14536 if test "$host_cpu" = ia64; then
14537 # On IA64, the linker does run time linking by default, so we don't
14538 # have to do anything special.
14539 aix_use_runtimelinking=no
14540 exp_sym_flag='-Bexport'
14543 # If we're using GNU nm, then we don't want the "-C" option.
14544 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14545 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14546 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'
14548 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'
14550 aix_use_runtimelinking=no
14552 # Test if we are trying to use run time linking or normal
14553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14554 # need to do runtime linking.
14555 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14556 for ld_flag in $LDFLAGS; do
14557 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14558 aix_use_runtimelinking=yes
14565 exp_sym_flag='-bexport'
14566 no_entry_flag='-bnoentry'
14569 # When large executables or shared objects are built, AIX ld can
14570 # have problems creating the table of contents. If linking a library
14571 # or program results in "error TOC overflow" add -mminimal-toc to
14572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14575 archive_cmds_F77=''
14576 hardcode_direct_F77=yes
14577 hardcode_libdir_separator_F77=':'
14578 link_all_deplibs_F77=yes
14580 if test "$GCC" = yes; then
14581 case $host_os in aix4.[012]|aix4.[012].*)
14582 # We only want to do this on AIX 4.2 and lower, the check
14583 # below for broken collect2 doesn't work under 4.3+
14584 collect2name=`${CC} -print-prog-name=collect2`
14585 if test -f "$collect2name" && \
14586 strings "$collect2name" | grep resolve_lib_name >/dev/null
14588 # We have reworked collect2
14591 # We have old collect2
14592 hardcode_direct_F77=unsupported
14593 # It fails to find uninstalled libraries when the uninstalled
14594 # path is not listed in the libpath. Setting hardcode_minus_L
14595 # to unsupported forces relinking
14596 hardcode_minus_L_F77=yes
14597 hardcode_libdir_flag_spec_F77='-L$libdir'
14598 hardcode_libdir_separator_F77=
14602 shared_flag='-shared'
14603 if test "$aix_use_runtimelinking" = yes; then
14604 shared_flag="$shared_flag "'${wl}-G'
14608 if test "$host_cpu" = ia64; then
14609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14610 # chokes on -Wl,-G. The following line is correct:
14613 if test "$aix_use_runtimelinking" = yes; then
14614 shared_flag='${wl}-G'
14616 shared_flag='${wl}-bM:SRE'
14621 # It seems that -bexpall does not export symbols beginning with
14622 # underscore (_), so it is better to generate a list of symbols to export.
14623 always_export_symbols_F77=yes
14624 if test "$aix_use_runtimelinking" = yes; then
14625 # Warning - without using the other runtime loading flags (-brtl),
14626 # -berok will link without error, but may produce a broken library.
14627 allow_undefined_flag_F77='-berok'
14628 # Determine the default libpath from the value encoded in an empty executable.
14629 cat >conftest.$ac_ext <<_ACEOF
14634 rm -f conftest.$ac_objext conftest$ac_exeext
14635 if { (ac_try="$ac_link"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_link") 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && {
14648 test -z "$ac_f77_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest$ac_exeext &&
14651 $as_test_x conftest$ac_exeext; then
14653 lt_aix_libpath_sed='
14654 /Import File Strings/,/^$/ {
14660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14661 # Check for a 64-bit object if we didn't find anything.
14662 if test -z "$aix_libpath"; then
14663 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14673 conftest$ac_exeext conftest.$ac_ext
14674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14676 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14677 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14679 if test "$host_cpu" = ia64; then
14680 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14681 allow_undefined_flag_F77="-z nodefs"
14682 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14684 # Determine the default libpath from the value encoded in an empty executable.
14685 cat >conftest.$ac_ext <<_ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (ac_try="$ac_link"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_link") 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_f77_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext &&
14707 $as_test_x conftest$ac_exeext; then
14709 lt_aix_libpath_sed='
14710 /Import File Strings/,/^$/ {
14716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14717 # Check for a 64-bit object if we didn't find anything.
14718 if test -z "$aix_libpath"; then
14719 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14729 conftest$ac_exeext conftest.$ac_ext
14730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14732 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14733 # Warning - without using the other run time loading flags,
14734 # -berok will link without error, but may produce a broken library.
14735 no_undefined_flag_F77=' ${wl}-bernotok'
14736 allow_undefined_flag_F77=' ${wl}-berok'
14737 # Exported symbols can be pulled into shared objects from archives
14738 whole_archive_flag_spec_F77='$convenience'
14739 archive_cmds_need_lc_F77=yes
14740 # This is similar to how AIX traditionally builds its shared libraries.
14741 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14747 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)'
14748 hardcode_libdir_flag_spec_F77='-L$libdir'
14749 hardcode_minus_L_F77=yes
14750 # see comment about different semantics on the GNU ld section
14755 export_dynamic_flag_spec_F77=-rdynamic
14758 cygwin* | mingw* | pw32*)
14759 # When not using gcc, we currently assume that we are using
14760 # Microsoft Visual C++.
14761 # hardcode_libdir_flag_spec is actually meaningless, as there is
14762 # no search path for DLLs.
14763 hardcode_libdir_flag_spec_F77=' '
14764 allow_undefined_flag_F77=unsupported
14765 # Tell ltmain to make .lib files, not .a files.
14767 # Tell ltmain to make .dll files, not .so files.
14769 # FIXME: Setting linknames here is a bad hack.
14770 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14771 # The linker will automatically build a .lib file if we build a DLL.
14772 old_archive_From_new_cmds_F77='true'
14773 # FIXME: Should let the user specify the lib program.
14774 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14775 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14776 enable_shared_with_static_runtimes_F77=yes
14779 darwin* | rhapsody*)
14781 rhapsody* | darwin1.[012])
14782 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14786 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14788 case ${MACOSX_DEPLOYMENT_TARGET} in
14790 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14793 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14799 archive_cmds_need_lc_F77=no
14800 hardcode_direct_F77=no
14801 hardcode_automatic_F77=yes
14802 hardcode_shlibpath_var_F77=unsupported
14803 whole_archive_flag_spec_F77=''
14804 link_all_deplibs_F77=yes
14805 if test "$GCC" = yes ; then
14806 output_verbose_link_cmd='echo'
14807 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14808 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14810 archive_expsym_cmds_F77='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}'
14811 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}'
14813 case $cc_basename in
14815 output_verbose_link_cmd='echo'
14816 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14817 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14819 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14820 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}'
14830 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14831 hardcode_libdir_flag_spec_F77='-L$libdir'
14832 hardcode_shlibpath_var_F77=no
14839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14840 # support. Future versions do this automatically, but an explicit c++rt0.o
14841 # does not break anything, and helps significantly (at the cost of a little
14844 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14845 hardcode_libdir_flag_spec_F77='-R$libdir'
14846 hardcode_direct_F77=yes
14847 hardcode_shlibpath_var_F77=no
14850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14853 hardcode_direct_F77=yes
14854 hardcode_minus_L_F77=yes
14855 hardcode_shlibpath_var_F77=no
14858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14859 freebsd* | dragonfly*)
14860 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14861 hardcode_libdir_flag_spec_F77='-R$libdir'
14862 hardcode_direct_F77=yes
14863 hardcode_shlibpath_var_F77=no
14867 if test "$GCC" = yes; then
14868 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'
14870 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'
14872 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14873 hardcode_libdir_separator_F77=:
14874 hardcode_direct_F77=yes
14876 # hardcode_minus_L: Not really in the search PATH,
14877 # but as the default location of the library.
14878 hardcode_minus_L_F77=yes
14879 export_dynamic_flag_spec_F77='${wl}-E'
14883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14884 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14888 if test "$with_gnu_ld" = no; then
14889 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14890 hardcode_libdir_separator_F77=:
14892 hardcode_direct_F77=yes
14893 export_dynamic_flag_spec_F77='${wl}-E'
14895 # hardcode_minus_L: Not really in the search PATH,
14896 # but as the default location of the library.
14897 hardcode_minus_L_F77=yes
14902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14905 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14908 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14911 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14917 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14920 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14923 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14927 if test "$with_gnu_ld" = no; then
14928 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14929 hardcode_libdir_separator_F77=:
14933 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14934 hardcode_direct_F77=no
14935 hardcode_shlibpath_var_F77=no
14938 hardcode_direct_F77=yes
14939 export_dynamic_flag_spec_F77='${wl}-E'
14941 # hardcode_minus_L: Not really in the search PATH,
14942 # but as the default location of the library.
14943 hardcode_minus_L_F77=yes
14949 irix5* | irix6* | nonstopux*)
14950 if test "$GCC" = yes; then
14951 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'
14953 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'
14954 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14956 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14957 hardcode_libdir_separator_F77=:
14958 link_all_deplibs_F77=yes
14962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14963 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14965 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14967 hardcode_libdir_flag_spec_F77='-R$libdir'
14968 hardcode_direct_F77=yes
14969 hardcode_shlibpath_var_F77=no
14973 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14974 hardcode_direct_F77=yes
14975 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14976 hardcode_libdir_separator_F77=:
14977 hardcode_shlibpath_var_F77=no
14981 if test -f /usr/libexec/ld.so; then
14982 hardcode_direct_F77=yes
14983 hardcode_shlibpath_var_F77=no
14984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14985 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14986 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14987 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14988 export_dynamic_flag_spec_F77='${wl}-E'
14991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14992 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_libdir_flag_spec_F77='-R$libdir'
14996 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14997 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15007 hardcode_libdir_flag_spec_F77='-L$libdir'
15008 hardcode_minus_L_F77=yes
15009 allow_undefined_flag_F77=unsupported
15010 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'
15011 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15015 if test "$GCC" = yes; then
15016 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15017 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'
15019 allow_undefined_flag_F77=' -expect_unresolved \*'
15020 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'
15022 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15023 hardcode_libdir_separator_F77=:
15026 osf4* | osf5*) # as osf3* with the addition of -msym flag
15027 if test "$GCC" = yes; then
15028 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15029 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'
15030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15032 allow_undefined_flag_F77=' -expect_unresolved \*'
15033 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'
15034 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~
15035 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15037 # Both c and cxx compiler support -rpath directly
15038 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15040 hardcode_libdir_separator_F77=:
15044 no_undefined_flag_F77=' -z text'
15045 if test "$GCC" = yes; then
15047 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15048 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15049 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15052 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15053 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15054 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15056 hardcode_libdir_flag_spec_F77='-R$libdir'
15057 hardcode_shlibpath_var_F77=no
15059 solaris2.[0-5] | solaris2.[0-5].*) ;;
15061 # The compiler driver will combine and reorder linker options,
15062 # but understands `-z linker_flag'. GCC discards it without `$wl',
15063 # but is careful enough not to reorder.
15064 # Supported since Solaris 2.6 (maybe 2.5.1?)
15065 if test "$GCC" = yes; then
15066 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15068 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15072 link_all_deplibs_F77=yes
15076 if test "x$host_vendor" = xsequent; then
15077 # Use $CC to link under sequent, because it throws in some extra .o
15078 # files that make .init and .fini sections work.
15079 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15081 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_libdir_flag_spec_F77='-L$libdir'
15084 hardcode_direct_F77=yes
15085 hardcode_minus_L_F77=yes
15086 hardcode_shlibpath_var_F77=no
15090 case $host_vendor in
15092 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15093 hardcode_direct_F77=yes # is this really true???
15096 ## LD is ld it makes a PLAMLIB
15097 ## CC just makes a GrossModule.
15098 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15099 reload_cmds_F77='$CC -r -o $output$reload_objs'
15100 hardcode_direct_F77=no
15103 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15107 runpath_var='LD_RUN_PATH'
15108 hardcode_shlibpath_var_F77=no
15112 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113 hardcode_shlibpath_var_F77=no
15114 export_dynamic_flag_spec_F77='-Bexport'
15118 if test -d /usr/nec; then
15119 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120 hardcode_shlibpath_var_F77=no
15121 runpath_var=LD_RUN_PATH
15122 hardcode_runpath_var=yes
15127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15128 no_undefined_flag_F77='${wl}-z,text'
15129 archive_cmds_need_lc_F77=no
15130 hardcode_shlibpath_var_F77=no
15131 runpath_var='LD_RUN_PATH'
15133 if test "$GCC" = yes; then
15134 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15135 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15137 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15138 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15142 sysv5* | sco3.2v5* | sco5v6*)
15143 # Note: We can NOT use -z defs as we might desire, because we do not
15144 # link with -lc, and that would cause any symbols used from libc to
15145 # always be unresolved, which means just about no library would
15146 # ever link correctly. If we're not using GNU ld we use -z text
15147 # though, which does catch some bad symbols but isn't as heavy-handed
15149 no_undefined_flag_F77='${wl}-z,text'
15150 allow_undefined_flag_F77='${wl}-z,nodefs'
15151 archive_cmds_need_lc_F77=no
15152 hardcode_shlibpath_var_F77=no
15153 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15154 hardcode_libdir_separator_F77=':'
15155 link_all_deplibs_F77=yes
15156 export_dynamic_flag_spec_F77='${wl}-Bexport'
15157 runpath_var='LD_RUN_PATH'
15159 if test "$GCC" = yes; then
15160 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15161 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15163 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15164 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15170 hardcode_libdir_flag_spec_F77='-L$libdir'
15171 hardcode_shlibpath_var_F77=no
15180 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15181 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15182 test "$ld_shlibs_F77" = no && can_build_shared=no
15185 # Do we need to explicitly link libc?
15187 case "x$archive_cmds_need_lc_F77" in
15189 # Assume -lc should be added
15190 archive_cmds_need_lc_F77=yes
15192 if test "$enable_shared" = yes && test "$GCC" = yes; then
15193 case $archive_cmds_F77 in
15195 # FIXME: we may have to deal with multi-command sequences.
15198 # Test whether the compiler implicitly links with -lc since on some
15199 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15200 # to ld, don't add -lc before -lgcc.
15201 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15202 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } 2>conftest.err; then
15213 libobjs=conftest.$ac_objext
15215 wl=$lt_prog_compiler_wl_F77
15216 pic_flag=$lt_prog_compiler_pic_F77
15222 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15223 allow_undefined_flag_F77=
15224 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15225 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }
15230 archive_cmds_need_lc_F77=no
15232 archive_cmds_need_lc_F77=yes
15234 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15236 cat conftest.err 1>&5
15239 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15240 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15247 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15248 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15249 library_names_spec=
15250 libname_spec='lib$name'
15254 postuninstall_cmds=
15258 shlibpath_overrides_runpath=unknown
15260 dynamic_linker="$host_os ld.so"
15261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15263 need_lib_prefix=unknown
15264 hardcode_into_libs=no
15266 # when you set need_version to no, make sure it does not cause -set_version
15267 # flags to be left without arguments
15268 need_version=unknown
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15274 shlibpath_var=LIBPATH
15276 # AIX 3 has no versioning support, so we append a major version to the name.
15277 soname_spec='${libname}${release}${shared_ext}$major'
15284 hardcode_into_libs=yes
15285 if test "$host_cpu" = ia64; then
15286 # AIX 5 supports IA64
15287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15288 shlibpath_var=LD_LIBRARY_PATH
15290 # With GCC up to 2.95.x, collect2 would create an import file
15291 # for dependence libraries. The import file would start with
15292 # the line `#! .'. This would cause the generated library to
15293 # depend on `.', always an invalid library. This was fixed in
15294 # development snapshots of GCC prior to 3.0.
15296 aix4 | aix4.[01] | aix4.[01].*)
15297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15299 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15302 can_build_shared=no
15306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15307 # soname into executable. Probably we can add versioning support to
15308 # collect2, so additional links can be useful in future.
15309 if test "$aix_use_runtimelinking" = yes; then
15310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15311 # instead of lib<name>.a to let people know that these are not
15312 # typical AIX shared libraries.
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 # We preserve .a as extension for shared libraries through AIX4.2
15316 # and later when we are not doing run time linking.
15317 library_names_spec='${libname}${release}.a $libname.a'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15320 shlibpath_var=LIBPATH
15325 library_names_spec='$libname.ixlibrary $libname.a'
15326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15327 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'
15331 library_names_spec='${libname}${shared_ext}'
15332 dynamic_linker="$host_os ld.so"
15333 shlibpath_var=LIBRARY_PATH
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15345 # the default ld.so.conf also contains /usr/contrib/lib and
15346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15347 # libtool to hard-code these into programs
15350 cygwin* | mingw* | pw32*)
15351 version_type=windows
15356 case $GCC,$host_os in
15357 yes,cygwin* | yes,mingw* | yes,pw32*)
15358 library_names_spec='$libname.dll.a'
15359 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15360 postinstall_cmds='base_file=`basename \${file}`~
15361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15362 dldir=$destdir/`dirname \$dlpath`~
15363 test -d \$dldir || mkdir -p \$dldir~
15364 $install_prog $dir/$dlname \$dldir/$dlname~
15365 chmod a+x \$dldir/$dlname'
15366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15367 dlpath=$dir/\$dldll~
15369 shlibpath_overrides_runpath=yes
15373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15375 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15378 # MinGW DLLs use traditional 'lib' prefix
15379 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15381 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15382 # It is most probably a Windows format PATH printed by
15383 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15384 # path with ; separators, and with drive letters. We can handle the
15385 # drive letters (cygwin fileutils understands them), so leave them,
15386 # especially as we might pass files found there to a mingw objdump,
15387 # which wouldn't understand a cygwinified path. Ahh.
15388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15394 # pw32 DLLs use 'pw' prefix rather than 'lib'
15395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15404 dynamic_linker='Win32 ld.exe'
15405 # FIXME: first we should search . and the directory the executable is in
15409 darwin* | rhapsody*)
15410 dynamic_linker="$host_os dyld"
15411 version_type=darwin
15414 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15415 soname_spec='${libname}${release}${major}$shared_ext'
15416 shlibpath_overrides_runpath=yes
15417 shlibpath_var=DYLD_LIBRARY_PATH
15418 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 shlibpath_var=LD_LIBRARY_PATH
15436 freebsd* | dragonfly*)
15437 # DragonFly does not have aout. When/if they implement a new
15438 # versioning mechanism, adjust this.
15439 if test -x /usr/bin/objformat; then
15440 objformat=`/usr/bin/objformat`
15443 freebsd[123]*) objformat=aout ;;
15444 *) objformat=elf ;;
15447 version_type=freebsd-$objformat
15448 case $version_type in
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15459 shlibpath_var=LD_LIBRARY_PATH
15462 shlibpath_overrides_runpath=yes
15464 freebsd3.[01]* | freebsdelf3.[01]*)
15465 shlibpath_overrides_runpath=yes
15466 hardcode_into_libs=yes
15468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15470 shlibpath_overrides_runpath=no
15471 hardcode_into_libs=yes
15473 *) # from 4.6 on, and DragonFly
15474 shlibpath_overrides_runpath=yes
15475 hardcode_into_libs=yes
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 hardcode_into_libs=yes
15490 hpux9* | hpux10* | hpux11*)
15491 # Give a soname corresponding to the major version so that dld.sl refuses to
15492 # link against other versions.
15499 hardcode_into_libs=yes
15500 dynamic_linker="$host_os dld.so"
15501 shlibpath_var=LD_LIBRARY_PATH
15502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 if test "X$HPUX_IA64_MODE" = X32; then
15506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15514 hardcode_into_libs=yes
15515 dynamic_linker="$host_os dld.sl"
15516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15525 dynamic_linker="$host_os dld.sl"
15526 shlibpath_var=SHLIB_PATH
15527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15533 postinstall_cmds='chmod 555 $lib'
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 shlibpath_overrides_runpath=no
15545 hardcode_into_libs=yes
15548 irix5* | irix6* | nonstopux*)
15550 nonstopux*) version_type=nonstopux ;;
15552 if test "$lt_cv_prog_gnu_ld" = yes; then
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15563 irix5* | nonstopux*)
15564 libsuff= shlibsuff=
15567 case $LD in # libtool.m4 will add one of these switches to LD
15568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15569 libsuff= shlibsuff= libmagic=32-bit;;
15570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15571 libsuff=32 shlibsuff=N32 libmagic=N32;;
15572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15574 *) libsuff= shlibsuff= libmagic=never-match;;
15578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15579 shlibpath_overrides_runpath=no
15580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15582 hardcode_into_libs=yes
15585 # No shared lib support for Linux oldld, aout, or coff.
15586 linux*oldld* | linux*aout* | linux*coff*)
15590 # This must be Linux ELF.
15591 linux* | k*bsd*-gnu)
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596 soname_spec='${libname}${release}${shared_ext}$major'
15597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=no
15600 # This implies no fast_install, which is unacceptable.
15601 # Some rework will be needed to allow for fast_install
15602 # before this can be enabled.
15603 hardcode_into_libs=yes
15605 # Append ld.so.conf contents to the search path
15606 if test -f /etc/ld.so.conf; then
15607 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15611 # We used to test for /lib/ld.so.1 and disable shared libraries on
15612 # powerpc, because MkLinux only supported shared libraries with the
15613 # GNU dynamic linker. Since this was broken with cross compilers,
15614 # most powerpc-linux boxes support dynamic linking these days and
15615 # people can always --disable-shared, the test was removed, and we
15616 # assume the GNU/Linux dynamic linker is in use.
15617 dynamic_linker='GNU/Linux ld.so'
15624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15627 dynamic_linker='NetBSD (a.out) ld.so'
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15630 soname_spec='${libname}${release}${shared_ext}$major'
15631 dynamic_linker='NetBSD ld.elf_so'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 shlibpath_overrides_runpath=yes
15635 hardcode_into_libs=yes
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=yes
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 shlibpath_overrides_runpath=yes
15657 sys_lib_dlsearch_path_spec="/usr/lib"
15659 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15661 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15662 *) need_version=no ;;
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15669 openbsd2.[89] | openbsd2.[89].*)
15670 shlibpath_overrides_runpath=no
15673 shlibpath_overrides_runpath=yes
15677 shlibpath_overrides_runpath=yes
15682 libname_spec='$name'
15685 library_names_spec='$libname${shared_ext} $libname.a'
15686 dynamic_linker='OS/2 ld.exe'
15687 shlibpath_var=LIBPATH
15690 osf3* | osf4* | osf5*)
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15698 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710 soname_spec='${libname}${release}${shared_ext}$major'
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes
15713 hardcode_into_libs=yes
15714 # ldd complains unless libraries are executable
15715 postinstall_cmds='chmod +x $lib'
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15721 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 shlibpath_overrides_runpath=yes
15724 if test "$with_gnu_ld" = yes; then
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733 soname_spec='${libname}${release}${shared_ext}$major'
15734 shlibpath_var=LD_LIBRARY_PATH
15735 case $host_vendor in
15737 shlibpath_overrides_runpath=no
15739 export_dynamic_flag_spec='${wl}-Blargedynsym'
15740 runpath_var=LD_RUN_PATH
15748 shlibpath_overrides_runpath=no
15749 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15755 if test -d /usr/nec ;then
15757 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15758 soname_spec='$libname${shared_ext}.$major'
15759 shlibpath_var=LD_LIBRARY_PATH
15763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15764 version_type=freebsd-elf
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15768 soname_spec='${libname}${release}${shared_ext}$major'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 hardcode_into_libs=yes
15771 if test "$with_gnu_ld" = yes; then
15772 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15773 shlibpath_overrides_runpath=no
15775 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15776 shlibpath_overrides_runpath=yes
15779 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15783 sys_lib_dlsearch_path_spec='/usr/lib'
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 shlibpath_var=LD_LIBRARY_PATH
15797 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15798 echo "${ECHO_T}$dynamic_linker" >&6; }
15799 test "$dynamic_linker" = no && can_build_shared=no
15801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15802 if test "$GCC" = yes; then
15803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15806 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15807 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15808 hardcode_action_F77=
15809 if test -n "$hardcode_libdir_flag_spec_F77" || \
15810 test -n "$runpath_var_F77" || \
15811 test "X$hardcode_automatic_F77" = "Xyes" ; then
15813 # We can hardcode non-existant directories.
15814 if test "$hardcode_direct_F77" != no &&
15815 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15816 # have to relink, otherwise we might link with an installed library
15817 # when we should be linking with a yet-to-be-installed one
15818 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15819 test "$hardcode_minus_L_F77" != no; then
15820 # Linking always hardcodes the temporary library directory.
15821 hardcode_action_F77=relink
15823 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15824 hardcode_action_F77=immediate
15827 # We cannot hardcode anything, or else we can only hardcode existing
15829 hardcode_action_F77=unsupported
15831 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15832 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15834 if test "$hardcode_action_F77" = relink; then
15835 # Fast installation is not supported
15836 enable_fast_install=no
15837 elif test "$shlibpath_overrides_runpath" = yes ||
15838 test "$enable_shared" = no; then
15839 # Fast installation is not necessary
15840 enable_fast_install=needless
15844 # The else clause should only fire when bootstrapping the
15845 # libtool distribution, otherwise you forgot to ship ltmain.sh
15846 # with your package, and you will get complaints that there are
15847 # no rules to generate ltmain.sh.
15848 if test -f "$ltmain"; then
15849 # See if we are running on zsh, and set the options which allow our commands through
15850 # without removal of \ escapes.
15851 if test -n "${ZSH_VERSION+set}" ; then
15852 setopt NO_GLOB_SUBST
15854 # Now quote all the things that may contain metacharacters while being
15855 # careful not to overquote the AC_SUBSTed values. We take copies of the
15856 # variables and quote the copies for generation of the libtool script.
15857 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15859 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15860 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15861 deplibs_check_method reload_flag reload_cmds need_locks \
15862 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15863 lt_cv_sys_global_symbol_to_c_name_address \
15864 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15865 old_postinstall_cmds old_postuninstall_cmds \
15869 lt_prog_compiler_wl_F77 \
15870 lt_prog_compiler_pic_F77 \
15871 lt_prog_compiler_static_F77 \
15872 lt_prog_compiler_no_builtin_flag_F77 \
15873 export_dynamic_flag_spec_F77 \
15874 thread_safe_flag_spec_F77 \
15875 whole_archive_flag_spec_F77 \
15876 enable_shared_with_static_runtimes_F77 \
15877 old_archive_cmds_F77 \
15878 old_archive_from_new_cmds_F77 \
15879 predep_objects_F77 \
15880 postdep_objects_F77 \
15883 compiler_lib_search_path_F77 \
15885 archive_expsym_cmds_F77 \
15886 postinstall_cmds_F77 \
15887 postuninstall_cmds_F77 \
15888 old_archive_from_expsyms_cmds_F77 \
15889 allow_undefined_flag_F77 \
15890 no_undefined_flag_F77 \
15891 export_symbols_cmds_F77 \
15892 hardcode_libdir_flag_spec_F77 \
15893 hardcode_libdir_flag_spec_ld_F77 \
15894 hardcode_libdir_separator_F77 \
15895 hardcode_automatic_F77 \
15897 module_expsym_cmds_F77 \
15898 lt_cv_prog_compiler_c_o_F77 \
15899 fix_srcfile_path_F77 \
15900 exclude_expsyms_F77 \
15901 include_expsyms_F77; do
15904 old_archive_cmds_F77 | \
15905 old_archive_from_new_cmds_F77 | \
15906 archive_cmds_F77 | \
15907 archive_expsym_cmds_F77 | \
15908 module_cmds_F77 | \
15909 module_expsym_cmds_F77 | \
15910 old_archive_from_expsyms_cmds_F77 | \
15911 export_symbols_cmds_F77 | \
15912 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15913 postinstall_cmds | postuninstall_cmds | \
15914 old_postinstall_cmds | old_postuninstall_cmds | \
15915 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15916 # Double-quote double-evaled strings.
15917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15926 *'\$0 --fallback-echo"')
15927 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15933 cat <<__EOF__ >> "$cfgfile"
15934 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15936 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15938 # Shell to use when invoking shell scripts.
15941 # Whether or not to build shared libraries.
15942 build_libtool_libs=$enable_shared
15944 # Whether or not to build static libraries.
15945 build_old_libs=$enable_static
15947 # Whether or not to add -lc for building shared libraries.
15948 build_libtool_need_lc=$archive_cmds_need_lc_F77
15950 # Whether or not to disallow shared libs when runtime libs are static
15951 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15953 # Whether or not to optimize for fast installation.
15954 fast_install=$enable_fast_install
15957 host_alias=$host_alias
15961 # The build system.
15962 build_alias=$build_alias
15966 # An echo program that does not interpret backslashes.
15971 AR_FLAGS=$lt_AR_FLAGS
15976 # LTCC compiler flags.
15977 LTCFLAGS=$lt_LTCFLAGS
15979 # A language-specific compiler.
15980 CC=$lt_compiler_F77
15982 # Is the compiler the GNU C compiler?
15988 # The linker used to build libraries.
15991 # Whether we need hard or soft links.
15994 # A BSD-compatible nm program.
15997 # A symbol stripping program
16000 # Used to examine libraries when file_magic_cmd begins "file"
16001 MAGIC_CMD=$MAGIC_CMD
16003 # Used on cygwin: DLL creation program.
16006 # Used on cygwin: object dumper.
16009 # Used on cygwin: assembler.
16012 # The name of the directory that contains temporary libtool files.
16015 # How to create reloadable object files.
16016 reload_flag=$lt_reload_flag
16017 reload_cmds=$lt_reload_cmds
16019 # How to pass a linker flag through the compiler.
16020 wl=$lt_lt_prog_compiler_wl_F77
16022 # Object file suffix (normally "o").
16023 objext="$ac_objext"
16025 # Old archive suffix (normally "a").
16028 # Shared library suffix (normally ".so").
16029 shrext_cmds='$shrext_cmds'
16031 # Executable file suffix (normally "").
16034 # Additional compiler flags for building library objects.
16035 pic_flag=$lt_lt_prog_compiler_pic_F77
16038 # What is the maximum length of a command?
16039 max_cmd_len=$lt_cv_sys_max_cmd_len
16041 # Does compiler simultaneously support -c and -o options?
16042 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16044 # Must we lock files when doing compilation?
16045 need_locks=$lt_need_locks
16047 # Do we need the lib prefix for modules?
16048 need_lib_prefix=$need_lib_prefix
16050 # Do we need a version for libraries?
16051 need_version=$need_version
16053 # Whether dlopen is supported.
16054 dlopen_support=$enable_dlopen
16056 # Whether dlopen of programs is supported.
16057 dlopen_self=$enable_dlopen_self
16059 # Whether dlopen of statically linked programs is supported.
16060 dlopen_self_static=$enable_dlopen_self_static
16062 # Compiler flag to prevent dynamic linking.
16063 link_static_flag=$lt_lt_prog_compiler_static_F77
16065 # Compiler flag to turn off builtin functions.
16066 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16068 # Compiler flag to allow reflexive dlopens.
16069 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16071 # Compiler flag to generate shared objects directly from archives.
16072 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16074 # Compiler flag to generate thread-safe objects.
16075 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16077 # Library versioning type.
16078 version_type=$version_type
16080 # Format of library name prefix.
16081 libname_spec=$lt_libname_spec
16083 # List of archive names. First name is the real one, the rest are links.
16084 # The last name is the one that the linker finds with -lNAME.
16085 library_names_spec=$lt_library_names_spec
16087 # The coded name of the library, if different from the real name.
16088 soname_spec=$lt_soname_spec
16090 # Commands used to build and install an old-style archive.
16092 old_archive_cmds=$lt_old_archive_cmds_F77
16093 old_postinstall_cmds=$lt_old_postinstall_cmds
16094 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16096 # Create an old-style archive from a shared archive.
16097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16099 # Create a temporary old-style archive to link instead of a shared archive.
16100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16102 # Commands used to build and install a shared archive.
16103 archive_cmds=$lt_archive_cmds_F77
16104 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16105 postinstall_cmds=$lt_postinstall_cmds
16106 postuninstall_cmds=$lt_postuninstall_cmds
16108 # Commands used to build a loadable module (assumed same as above if empty)
16109 module_cmds=$lt_module_cmds_F77
16110 module_expsym_cmds=$lt_module_expsym_cmds_F77
16112 # Commands to strip libraries.
16113 old_striplib=$lt_old_striplib
16114 striplib=$lt_striplib
16116 # Dependencies to place before the objects being linked to create a
16118 predep_objects=$lt_predep_objects_F77
16120 # Dependencies to place after the objects being linked to create a
16122 postdep_objects=$lt_postdep_objects_F77
16124 # Dependencies to place before the objects being linked to create a
16126 predeps=$lt_predeps_F77
16128 # Dependencies to place after the objects being linked to create a
16130 postdeps=$lt_postdeps_F77
16132 # The library search path used internally by the compiler when linking
16133 # a shared library.
16134 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16136 # Method to check whether dependent libraries are shared objects.
16137 deplibs_check_method=$lt_deplibs_check_method
16139 # Command to use when deplibs_check_method == file_magic.
16140 file_magic_cmd=$lt_file_magic_cmd
16142 # Flag that allows shared libraries with undefined symbols to be built.
16143 allow_undefined_flag=$lt_allow_undefined_flag_F77
16145 # Flag that forces no undefined symbols.
16146 no_undefined_flag=$lt_no_undefined_flag_F77
16148 # Commands used to finish a libtool library installation in a directory.
16149 finish_cmds=$lt_finish_cmds
16151 # Same as above, but a single script fragment to be evaled but not shown.
16152 finish_eval=$lt_finish_eval
16154 # Take the output of nm and produce a listing of raw symbols and C names.
16155 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16157 # Transform the output of nm in a proper C declaration
16158 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16160 # Transform the output of nm in a C name address pair
16161 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16163 # This is the shared library runtime path variable.
16164 runpath_var=$runpath_var
16166 # This is the shared library path variable.
16167 shlibpath_var=$shlibpath_var
16169 # Is shlibpath searched before the hard-coded library search path?
16170 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16172 # How to hardcode a shared library path into an executable.
16173 hardcode_action=$hardcode_action_F77
16175 # Whether we should hardcode library paths into libraries.
16176 hardcode_into_libs=$hardcode_into_libs
16178 # Flag to hardcode \$libdir into a binary during linking.
16179 # This must work even if \$libdir does not exist.
16180 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16182 # If ld is used when linking, flag to hardcode \$libdir into
16183 # a binary during linking. This must work even if \$libdir does
16185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16187 # Whether we need a single -rpath flag with a separated argument.
16188 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16190 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16191 # resulting binary.
16192 hardcode_direct=$hardcode_direct_F77
16194 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16195 # resulting binary.
16196 hardcode_minus_L=$hardcode_minus_L_F77
16198 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16199 # the resulting binary.
16200 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16202 # Set to yes if building a shared library automatically hardcodes DIR into the library
16203 # and all subsequent libraries and executables linked against it.
16204 hardcode_automatic=$hardcode_automatic_F77
16206 # Variables whose values should be saved in libtool wrapper scripts and
16207 # restored at relink time.
16208 variables_saved_for_relink="$variables_saved_for_relink"
16210 # Whether libtool must link a program against all its dependency libraries.
16211 link_all_deplibs=$link_all_deplibs_F77
16213 # Compile-time system search path for libraries
16214 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16216 # Run-time system search path for libraries
16217 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16219 # Fix the shell variable \$srcfile for the compiler.
16220 fix_srcfile_path=$lt_fix_srcfile_path
16222 # Set to yes if exported symbols are required.
16223 always_export_symbols=$always_export_symbols_F77
16225 # The commands to list exported symbols.
16226 export_symbols_cmds=$lt_export_symbols_cmds_F77
16228 # The commands to extract the exported symbol list from a shared archive.
16229 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16231 # Symbols that should not be listed in the preloaded symbols.
16232 exclude_expsyms=$lt_exclude_expsyms_F77
16234 # Symbols that must always be exported.
16235 include_expsyms=$lt_include_expsyms_F77
16237 # ### END LIBTOOL TAG CONFIG: $tagname
16243 # If there is no Makefile yet, we rely on a make rule to execute
16244 # `config.status --recheck' to rerun these tests and create the
16245 # libtool script then.
16246 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16247 if test -f "$ltmain_in"; then
16248 test -f Makefile && make "$ltmain"
16254 ac_cpp='$CPP $CPPFLAGS'
16255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16267 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16270 # Source file extension for Java test sources.
16273 # Object file extension for compiled Java test sources.
16277 # Code to be used in simple compile tests
16278 lt_simple_compile_test_code="class foo {}"
16280 # Code to be used in simple link tests
16281 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16283 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16285 # If no C compiler was specified, use CC.
16288 # If no C compiler flags were specified, use CFLAGS.
16289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16291 # Allow CC to be a program name with arguments.
16295 # save warnings/boilerplate of simple test code
16296 ac_outfile=conftest.$ac_objext
16297 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16299 _lt_compiler_boilerplate=`cat conftest.err`
16302 ac_outfile=conftest.$ac_objext
16303 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16305 _lt_linker_boilerplate=`cat conftest.err`
16309 # Allow CC to be a program name with arguments.
16314 for cc_temp in $compiler""; do
16316 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16317 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16325 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16326 archive_cmds_need_lc_GCJ=no
16328 old_archive_cmds_GCJ=$old_archive_cmds
16331 lt_prog_compiler_no_builtin_flag_GCJ=
16333 if test "$GCC" = yes; then
16334 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16337 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16338 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16339 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 lt_cv_prog_compiler_rtti_exceptions=no
16343 ac_outfile=conftest.$ac_objext
16344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16345 lt_compiler_flag="-fno-rtti -fno-exceptions"
16346 # Insert the option either (1) after the last *FLAGS variable, or
16347 # (2) before a word containing "conftest.", or (3) at the end.
16348 # Note that $ac_compile itself does not contain backslashes and begins
16349 # with a dollar sign (not a hyphen), so the echo should work correctly.
16350 # The option is referenced via a variable to avoid confusing sed.
16351 lt_compile=`echo "$ac_compile" | $SED \
16352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16354 -e 's:$: $lt_compiler_flag:'`
16355 (eval echo "\"\$as_me:16355: $lt_compile\"" >&5)
16356 (eval "$lt_compile" 2>conftest.err)
16358 cat conftest.err >&5
16359 echo "$as_me:16359: \$? = $ac_status" >&5
16360 if (exit $ac_status) && test -s "$ac_outfile"; then
16361 # The compiler can only warn and ignore the option if not recognized
16362 # So say no if there are warnings other than the usual output.
16363 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16366 lt_cv_prog_compiler_rtti_exceptions=yes
16372 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16373 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16375 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16376 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16383 lt_prog_compiler_wl_GCJ=
16384 lt_prog_compiler_pic_GCJ=
16385 lt_prog_compiler_static_GCJ=
16387 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16390 if test "$GCC" = yes; then
16391 lt_prog_compiler_wl_GCJ='-Wl,'
16392 lt_prog_compiler_static_GCJ='-static'
16396 # All AIX code is PIC.
16397 if test "$host_cpu" = ia64; then
16398 # AIX 5 now supports IA64 processor
16399 lt_prog_compiler_static_GCJ='-Bstatic'
16404 # FIXME: we need at least 68020 code to build shared libraries, but
16405 # adding the `-m68020' flag to GCC prevents building anything better,
16407 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16410 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16411 # PIC is the default for these OSes.
16414 mingw* | cygwin* | pw32* | os2*)
16415 # This hack is so that the source file can tell whether it is being
16416 # built for inclusion in a dll (and should export symbols for example).
16417 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16418 # (--disable-auto-import) libraries
16419 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16422 darwin* | rhapsody*)
16423 # PIC is the default on this platform
16424 # Common symbols not allowed in MH_DYLIB files
16425 lt_prog_compiler_pic_GCJ='-fno-common'
16429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16430 # Instead, we relocate shared libraries at runtime.
16434 # Just because we use GCC doesn't mean we suddenly get shared libraries
16435 # on systems that don't support them.
16436 lt_prog_compiler_can_build_shared_GCJ=no
16441 if test -d /usr/nec; then
16442 lt_prog_compiler_pic_GCJ=-Kconform_pic
16447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16448 # not for PA HP-UX.
16454 lt_prog_compiler_pic_GCJ='-fPIC'
16460 lt_prog_compiler_pic_GCJ='-fPIC'
16464 # PORTME Check for flag to pass linker flags through the system compiler.
16467 lt_prog_compiler_wl_GCJ='-Wl,'
16468 if test "$host_cpu" = ia64; then
16469 # AIX 5 now supports IA64 processor
16470 lt_prog_compiler_static_GCJ='-Bstatic'
16472 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16476 # PIC is the default on this platform
16477 # Common symbols not allowed in MH_DYLIB files
16478 case $cc_basename in
16480 lt_prog_compiler_pic_GCJ='-qnocommon'
16481 lt_prog_compiler_wl_GCJ='-Wl,'
16486 mingw* | cygwin* | pw32* | os2*)
16487 # This hack is so that the source file can tell whether it is being
16488 # built for inclusion in a dll (and should export symbols for example).
16489 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16492 hpux9* | hpux10* | hpux11*)
16493 lt_prog_compiler_wl_GCJ='-Wl,'
16494 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16495 # not for PA HP-UX.
16501 lt_prog_compiler_pic_GCJ='+Z'
16504 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16505 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16508 irix5* | irix6* | nonstopux*)
16509 lt_prog_compiler_wl_GCJ='-Wl,'
16510 # PIC (with -KPIC) is the default.
16511 lt_prog_compiler_static_GCJ='-non_shared'
16515 lt_prog_compiler_pic_GCJ='-KPIC'
16516 lt_prog_compiler_static_GCJ='-Bstatic'
16519 linux* | k*bsd*-gnu)
16520 case $cc_basename in
16522 lt_prog_compiler_wl_GCJ='-Wl,'
16523 lt_prog_compiler_pic_GCJ='-KPIC'
16524 lt_prog_compiler_static_GCJ='-static'
16526 pgcc* | pgf77* | pgf90* | pgf95*)
16527 # Portland Group compilers (*not* the Pentium gcc compiler,
16528 # which looks to be a dead project)
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 lt_prog_compiler_pic_GCJ='-fpic'
16531 lt_prog_compiler_static_GCJ='-Bstatic'
16534 lt_prog_compiler_wl_GCJ='-Wl,'
16535 # All Alpha code is PIC.
16536 lt_prog_compiler_static_GCJ='-non_shared'
16539 case `$CC -V 2>&1 | sed 5q` in
16542 lt_prog_compiler_pic_GCJ='-KPIC'
16543 lt_prog_compiler_static_GCJ='-Bstatic'
16544 lt_prog_compiler_wl_GCJ='-Wl,'
16547 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16548 lt_prog_compiler_pic_GCJ='-KPIC'
16549 lt_prog_compiler_static_GCJ='-Bstatic'
16550 lt_prog_compiler_wl_GCJ=''
16557 osf3* | osf4* | osf5*)
16558 lt_prog_compiler_wl_GCJ='-Wl,'
16559 # All OSF/1 code is PIC.
16560 lt_prog_compiler_static_GCJ='-non_shared'
16564 lt_prog_compiler_static_GCJ='-non_shared'
16568 lt_prog_compiler_pic_GCJ='-KPIC'
16569 lt_prog_compiler_static_GCJ='-Bstatic'
16570 case $cc_basename in
16571 f77* | f90* | f95*)
16572 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16574 lt_prog_compiler_wl_GCJ='-Wl,';;
16579 lt_prog_compiler_wl_GCJ='-Qoption ld '
16580 lt_prog_compiler_pic_GCJ='-PIC'
16581 lt_prog_compiler_static_GCJ='-Bstatic'
16584 sysv4 | sysv4.2uw2* | sysv4.3*)
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16586 lt_prog_compiler_pic_GCJ='-KPIC'
16587 lt_prog_compiler_static_GCJ='-Bstatic'
16591 if test -d /usr/nec ;then
16592 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16593 lt_prog_compiler_static_GCJ='-Bstatic'
16597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16598 lt_prog_compiler_wl_GCJ='-Wl,'
16599 lt_prog_compiler_pic_GCJ='-KPIC'
16600 lt_prog_compiler_static_GCJ='-Bstatic'
16604 lt_prog_compiler_wl_GCJ='-Wl,'
16605 lt_prog_compiler_can_build_shared_GCJ=no
16609 lt_prog_compiler_pic_GCJ='-pic'
16610 lt_prog_compiler_static_GCJ='-Bstatic'
16614 lt_prog_compiler_can_build_shared_GCJ=no
16619 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16620 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16623 # Check to make sure the PIC flag actually works.
16625 if test -n "$lt_prog_compiler_pic_GCJ"; then
16627 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16628 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16629 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 lt_prog_compiler_pic_works_GCJ=no
16633 ac_outfile=conftest.$ac_objext
16634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16635 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16636 # Insert the option either (1) after the last *FLAGS variable, or
16637 # (2) before a word containing "conftest.", or (3) at the end.
16638 # Note that $ac_compile itself does not contain backslashes and begins
16639 # with a dollar sign (not a hyphen), so the echo should work correctly.
16640 # The option is referenced via a variable to avoid confusing sed.
16641 lt_compile=`echo "$ac_compile" | $SED \
16642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16644 -e 's:$: $lt_compiler_flag:'`
16645 (eval echo "\"\$as_me:16645: $lt_compile\"" >&5)
16646 (eval "$lt_compile" 2>conftest.err)
16648 cat conftest.err >&5
16649 echo "$as_me:16649: \$? = $ac_status" >&5
16650 if (exit $ac_status) && test -s "$ac_outfile"; then
16651 # The compiler can only warn and ignore the option if not recognized
16652 # So say no if there are warnings other than the usual output.
16653 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16656 lt_prog_compiler_pic_works_GCJ=yes
16662 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16663 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16665 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16666 case $lt_prog_compiler_pic_GCJ in
16668 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16671 lt_prog_compiler_pic_GCJ=
16672 lt_prog_compiler_can_build_shared_GCJ=no
16677 # For platforms which do not support PIC, -DPIC is meaningless:
16679 lt_prog_compiler_pic_GCJ=
16682 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16687 # Check to make sure the static flag actually works.
16689 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16690 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16691 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16692 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 lt_prog_compiler_static_works_GCJ=no
16696 save_LDFLAGS="$LDFLAGS"
16697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16698 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16700 # The linker can only warn and ignore the option if not recognized
16701 # So say no if there are warnings
16702 if test -s conftest.err; then
16703 # Append any errors to the config.log.
16704 cat conftest.err 1>&5
16705 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16707 if diff conftest.exp conftest.er2 >/dev/null; then
16708 lt_prog_compiler_static_works_GCJ=yes
16711 lt_prog_compiler_static_works_GCJ=yes
16715 LDFLAGS="$save_LDFLAGS"
16718 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16719 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16721 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16724 lt_prog_compiler_static_GCJ=
16728 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16729 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16730 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 lt_cv_prog_compiler_c_o_GCJ=no
16734 $rm -r conftest 2>/dev/null
16738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16740 lt_compiler_flag="-o out/conftest2.$ac_objext"
16741 # Insert the option either (1) after the last *FLAGS variable, or
16742 # (2) before a word containing "conftest.", or (3) at the end.
16743 # Note that $ac_compile itself does not contain backslashes and begins
16744 # with a dollar sign (not a hyphen), so the echo should work correctly.
16745 lt_compile=`echo "$ac_compile" | $SED \
16746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16748 -e 's:$: $lt_compiler_flag:'`
16749 (eval echo "\"\$as_me:16749: $lt_compile\"" >&5)
16750 (eval "$lt_compile" 2>out/conftest.err)
16752 cat out/conftest.err >&5
16753 echo "$as_me:16753: \$? = $ac_status" >&5
16754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16756 # The compiler can only warn and ignore the option if not recognized
16757 # So say no if there are warnings
16758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16761 lt_cv_prog_compiler_c_o_GCJ=yes
16766 # SGI C++ compiler will create directory out/ii_files/ for
16767 # template instantiation
16768 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16769 $rm out/* && rmdir out
16775 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16776 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16779 hard_links="nottested"
16780 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16781 # do not overwrite the value of need_locks provided by the user
16782 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16783 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788 ln conftest.a conftest.b 2>&5 || hard_links=no
16789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16790 { echo "$as_me:$LINENO: result: $hard_links" >&5
16791 echo "${ECHO_T}$hard_links" >&6; }
16792 if test "$hard_links" = no; then
16793 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16794 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16801 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16802 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16805 allow_undefined_flag_GCJ=
16806 enable_shared_with_static_runtimes_GCJ=no
16808 archive_expsym_cmds_GCJ=
16809 old_archive_From_new_cmds_GCJ=
16810 old_archive_from_expsyms_cmds_GCJ=
16811 export_dynamic_flag_spec_GCJ=
16812 whole_archive_flag_spec_GCJ=
16813 thread_safe_flag_spec_GCJ=
16814 hardcode_libdir_flag_spec_GCJ=
16815 hardcode_libdir_flag_spec_ld_GCJ=
16816 hardcode_libdir_separator_GCJ=
16817 hardcode_direct_GCJ=no
16818 hardcode_minus_L_GCJ=no
16819 hardcode_shlibpath_var_GCJ=unsupported
16820 link_all_deplibs_GCJ=unknown
16821 hardcode_automatic_GCJ=no
16823 module_expsym_cmds_GCJ=
16824 always_export_symbols_GCJ=no
16825 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16826 # include_expsyms should be a list of space-separated symbols to be *always*
16827 # included in the symbol list
16828 include_expsyms_GCJ=
16829 # exclude_expsyms can be an extended regexp of symbols to exclude
16830 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16831 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16832 # as well as any symbol that contains `d'.
16833 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16834 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16835 # platforms (ab)use it in PIC code, but their linkers get confused if
16836 # the symbol is explicitly referenced. Since portable code cannot
16837 # rely on this symbol name, it's probably fine to never include it in
16838 # preloaded symbol tables.
16839 extract_expsyms_cmds=
16840 # Just being paranoid about ensuring that cc_basename is set.
16841 for cc_temp in $compiler""; do
16843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16852 cygwin* | mingw* | pw32*)
16853 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16854 # When not using gcc, we currently assume that we are using
16855 # Microsoft Visual C++.
16856 if test "$GCC" != yes; then
16861 # we just hope/assume this is gcc and not c89 (= MSVC++)
16870 if test "$with_gnu_ld" = yes; then
16871 # If archive_cmds runs LD, not CC, wlarc should be empty
16874 # Set some defaults for GNU ld with shared library support. These
16875 # are reset later if shared libraries are not supported. Putting them
16876 # here allows them to be overridden if necessary.
16877 runpath_var=LD_RUN_PATH
16878 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16879 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16880 # ancient GNU ld didn't support --whole-archive et. al.
16881 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16882 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16884 whole_archive_flag_spec_GCJ=
16886 supports_anon_versioning=no
16887 case `$LD -v 2>/dev/null` in
16888 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16889 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16890 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16891 *\ 2.11.*) ;; # other 2.11 versions
16892 *) supports_anon_versioning=yes ;;
16895 # See if GNU ld supports shared libraries.
16897 aix3* | aix4* | aix5*)
16898 # On AIX/PPC, the GNU linker is very broken
16899 if test "$host_cpu" != ia64; then
16903 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16904 *** to be unable to reliably create shared libraries on AIX.
16905 *** Therefore, libtool is disabling shared libraries support. If you
16906 *** really care for shared libraries, you may want to modify your PATH
16907 *** so that a non-GNU linker is found, and then restart.
16914 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)'
16915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16916 hardcode_minus_L_GCJ=yes
16918 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16919 # that the semantics of dynamic libraries on AmigaOS, at least up
16920 # to version 4, is to share data among multiple programs linked
16921 # with the same dynamic library. Since this doesn't match the
16922 # behavior of shared libraries on other platforms, we can't use
16928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16929 allow_undefined_flag_GCJ=unsupported
16930 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16931 # support --undefined. This deserves some investigation. FIXME
16932 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16938 cygwin* | mingw* | pw32*)
16939 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16940 # as there is no search path for DLLs.
16941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16942 allow_undefined_flag_GCJ=unsupported
16943 always_export_symbols_GCJ=no
16944 enable_shared_with_static_runtimes_GCJ=yes
16945 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16948 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16949 # If the export-symbols file already is a .def file (1st line
16950 # is EXPORTS), use it as is; otherwise, prepend...
16951 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16952 cp $export_symbols $output_objdir/$soname.def;
16954 echo EXPORTS > $output_objdir/$soname.def;
16955 cat $export_symbols >> $output_objdir/$soname.def;
16957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16964 hardcode_direct_GCJ=no
16965 hardcode_shlibpath_var_GCJ=no
16966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16967 export_dynamic_flag_spec_GCJ='${wl}-E'
16968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16969 # Instead, shared libraries are loaded at an image base (0x10000000 by
16970 # default) and relocated if they conflict, which is a slow very memory
16971 # consuming and fragmenting process. To avoid this, we pick a random,
16972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16973 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16974 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16975 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16978 gnu* | linux* | k*bsd*-gnu)
16979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16981 case $cc_basename,$host_cpu in
16982 pgcc*) # Portland Group C compiler
16983 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16984 tmp_addflag=' $pic_flag'
16986 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16987 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16988 tmp_addflag=' $pic_flag -Mnomain' ;;
16989 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16990 tmp_addflag=' -i_dynamic' ;;
16991 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16992 tmp_addflag=' -i_dynamic -nofor_main' ;;
16993 ifc* | ifort*) # Intel Fortran compiler
16994 tmp_addflag=' -nofor_main' ;;
16996 case `$CC -V 2>&1 | sed 5q` in
16997 *Sun\ C*) # Sun C 5.9
16998 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16999 tmp_sharedflag='-G' ;;
17000 *Sun\ F*) # Sun Fortran 8.3
17001 tmp_sharedflag='-G' ;;
17003 tmp_sharedflag='-shared' ;;
17005 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17007 if test $supports_anon_versioning = yes; then
17008 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17010 $echo "local: *; };" >> $output_objdir/$libname.ver~
17011 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17020 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17023 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17024 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17029 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17033 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17034 *** create shared libraries on Solaris systems. Therefore, libtool
17035 *** is disabling shared libraries support. We urge you to upgrade GNU
17036 *** binutils to release 2.9.1 or newer. Another option is to modify
17037 *** your PATH or compiler configuration so that the native linker is
17038 *** used, and then restart.
17041 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17042 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17043 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17049 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17050 case `$LD -v 2>&1` in
17051 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17055 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17056 *** reliably create shared libraries on SCO systems. Therefore, libtool
17057 *** is disabling shared libraries support. We urge you to upgrade GNU
17058 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17059 *** your PATH or compiler configuration so that the native linker is
17060 *** used, and then restart.
17065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17066 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17067 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17068 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17077 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17079 hardcode_direct_GCJ=yes
17080 hardcode_shlibpath_var_GCJ=no
17084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17085 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17086 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17093 if test "$ld_shlibs_GCJ" = no; then
17095 hardcode_libdir_flag_spec_GCJ=
17096 export_dynamic_flag_spec_GCJ=
17097 whole_archive_flag_spec_GCJ=
17100 # PORTME fill in a description of your system's linker (not GNU ld)
17103 allow_undefined_flag_GCJ=unsupported
17104 always_export_symbols_GCJ=yes
17105 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'
17106 # Note: this linker hardcodes the directories in LIBPATH if there
17107 # are no directories specified by -L.
17108 hardcode_minus_L_GCJ=yes
17109 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17110 # Neither direct hardcoding nor static linking is supported with a
17112 hardcode_direct_GCJ=unsupported
17117 if test "$host_cpu" = ia64; then
17118 # On IA64, the linker does run time linking by default, so we don't
17119 # have to do anything special.
17120 aix_use_runtimelinking=no
17121 exp_sym_flag='-Bexport'
17124 # If we're using GNU nm, then we don't want the "-C" option.
17125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17126 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17127 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'
17129 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'
17131 aix_use_runtimelinking=no
17133 # Test if we are trying to use run time linking or normal
17134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17135 # need to do runtime linking.
17136 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17137 for ld_flag in $LDFLAGS; do
17138 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17139 aix_use_runtimelinking=yes
17146 exp_sym_flag='-bexport'
17147 no_entry_flag='-bnoentry'
17150 # When large executables or shared objects are built, AIX ld can
17151 # have problems creating the table of contents. If linking a library
17152 # or program results in "error TOC overflow" add -mminimal-toc to
17153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17156 archive_cmds_GCJ=''
17157 hardcode_direct_GCJ=yes
17158 hardcode_libdir_separator_GCJ=':'
17159 link_all_deplibs_GCJ=yes
17161 if test "$GCC" = yes; then
17162 case $host_os in aix4.[012]|aix4.[012].*)
17163 # We only want to do this on AIX 4.2 and lower, the check
17164 # below for broken collect2 doesn't work under 4.3+
17165 collect2name=`${CC} -print-prog-name=collect2`
17166 if test -f "$collect2name" && \
17167 strings "$collect2name" | grep resolve_lib_name >/dev/null
17169 # We have reworked collect2
17172 # We have old collect2
17173 hardcode_direct_GCJ=unsupported
17174 # It fails to find uninstalled libraries when the uninstalled
17175 # path is not listed in the libpath. Setting hardcode_minus_L
17176 # to unsupported forces relinking
17177 hardcode_minus_L_GCJ=yes
17178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17179 hardcode_libdir_separator_GCJ=
17183 shared_flag='-shared'
17184 if test "$aix_use_runtimelinking" = yes; then
17185 shared_flag="$shared_flag "'${wl}-G'
17189 if test "$host_cpu" = ia64; then
17190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17191 # chokes on -Wl,-G. The following line is correct:
17194 if test "$aix_use_runtimelinking" = yes; then
17195 shared_flag='${wl}-G'
17197 shared_flag='${wl}-bM:SRE'
17202 # It seems that -bexpall does not export symbols beginning with
17203 # underscore (_), so it is better to generate a list of symbols to export.
17204 always_export_symbols_GCJ=yes
17205 if test "$aix_use_runtimelinking" = yes; then
17206 # Warning - without using the other runtime loading flags (-brtl),
17207 # -berok will link without error, but may produce a broken library.
17208 allow_undefined_flag_GCJ='-berok'
17209 # Determine the default libpath from the value encoded in an empty executable.
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && {
17239 test -z "$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 } && test -s conftest$ac_exeext &&
17242 $as_test_x conftest$ac_exeext; then
17244 lt_aix_libpath_sed='
17245 /Import File Strings/,/^$/ {
17251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17252 # Check for a 64-bit object if we didn't find anything.
17253 if test -z "$aix_libpath"; then
17254 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17264 conftest$ac_exeext conftest.$ac_ext
17265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17267 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17268 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17270 if test "$host_cpu" = ia64; then
17271 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17272 allow_undefined_flag_GCJ="-z nodefs"
17273 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17275 # Determine the default libpath from the value encoded in an empty executable.
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (ac_try="$ac_link"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_link") 2>conftest.er1
17300 grep -v '^ *+' conftest.er1 >conftest.err
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } && {
17305 test -z "$ac_c_werror_flag" ||
17306 test ! -s conftest.err
17307 } && test -s conftest$ac_exeext &&
17308 $as_test_x conftest$ac_exeext; then
17310 lt_aix_libpath_sed='
17311 /Import File Strings/,/^$/ {
17317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17318 # Check for a 64-bit object if we didn't find anything.
17319 if test -z "$aix_libpath"; then
17320 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17330 conftest$ac_exeext conftest.$ac_ext
17331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17333 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17334 # Warning - without using the other run time loading flags,
17335 # -berok will link without error, but may produce a broken library.
17336 no_undefined_flag_GCJ=' ${wl}-bernotok'
17337 allow_undefined_flag_GCJ=' ${wl}-berok'
17338 # Exported symbols can be pulled into shared objects from archives
17339 whole_archive_flag_spec_GCJ='$convenience'
17340 archive_cmds_need_lc_GCJ=yes
17341 # This is similar to how AIX traditionally builds its shared libraries.
17342 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17348 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)'
17349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350 hardcode_minus_L_GCJ=yes
17351 # see comment about different semantics on the GNU ld section
17356 export_dynamic_flag_spec_GCJ=-rdynamic
17359 cygwin* | mingw* | pw32*)
17360 # When not using gcc, we currently assume that we are using
17361 # Microsoft Visual C++.
17362 # hardcode_libdir_flag_spec is actually meaningless, as there is
17363 # no search path for DLLs.
17364 hardcode_libdir_flag_spec_GCJ=' '
17365 allow_undefined_flag_GCJ=unsupported
17366 # Tell ltmain to make .lib files, not .a files.
17368 # Tell ltmain to make .dll files, not .so files.
17370 # FIXME: Setting linknames here is a bad hack.
17371 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17372 # The linker will automatically build a .lib file if we build a DLL.
17373 old_archive_From_new_cmds_GCJ='true'
17374 # FIXME: Should let the user specify the lib program.
17375 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17376 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17377 enable_shared_with_static_runtimes_GCJ=yes
17380 darwin* | rhapsody*)
17382 rhapsody* | darwin1.[012])
17383 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17386 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17387 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17389 case ${MACOSX_DEPLOYMENT_TARGET} in
17391 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17394 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17400 archive_cmds_need_lc_GCJ=no
17401 hardcode_direct_GCJ=no
17402 hardcode_automatic_GCJ=yes
17403 hardcode_shlibpath_var_GCJ=unsupported
17404 whole_archive_flag_spec_GCJ=''
17405 link_all_deplibs_GCJ=yes
17406 if test "$GCC" = yes ; then
17407 output_verbose_link_cmd='echo'
17408 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17409 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17410 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17411 archive_expsym_cmds_GCJ='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}'
17412 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}'
17414 case $cc_basename in
17416 output_verbose_link_cmd='echo'
17417 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17418 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17419 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17420 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17421 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}'
17431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17433 hardcode_shlibpath_var_GCJ=no
17440 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17441 # support. Future versions do this automatically, but an explicit c++rt0.o
17442 # does not break anything, and helps significantly (at the cost of a little
17445 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17446 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17447 hardcode_direct_GCJ=yes
17448 hardcode_shlibpath_var_GCJ=no
17451 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17453 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_direct_GCJ=yes
17455 hardcode_minus_L_GCJ=yes
17456 hardcode_shlibpath_var_GCJ=no
17459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17460 freebsd* | dragonfly*)
17461 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17462 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17463 hardcode_direct_GCJ=yes
17464 hardcode_shlibpath_var_GCJ=no
17468 if test "$GCC" = yes; then
17469 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'
17471 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'
17473 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17474 hardcode_libdir_separator_GCJ=:
17475 hardcode_direct_GCJ=yes
17477 # hardcode_minus_L: Not really in the search PATH,
17478 # but as the default location of the library.
17479 hardcode_minus_L_GCJ=yes
17480 export_dynamic_flag_spec_GCJ='${wl}-E'
17484 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17485 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17487 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17489 if test "$with_gnu_ld" = no; then
17490 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17491 hardcode_libdir_separator_GCJ=:
17493 hardcode_direct_GCJ=yes
17494 export_dynamic_flag_spec_GCJ='${wl}-E'
17496 # hardcode_minus_L: Not really in the search PATH,
17497 # but as the default location of the library.
17498 hardcode_minus_L_GCJ=yes
17503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17506 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17509 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17512 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17518 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17521 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17528 if test "$with_gnu_ld" = no; then
17529 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17530 hardcode_libdir_separator_GCJ=:
17534 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17535 hardcode_direct_GCJ=no
17536 hardcode_shlibpath_var_GCJ=no
17539 hardcode_direct_GCJ=yes
17540 export_dynamic_flag_spec_GCJ='${wl}-E'
17542 # hardcode_minus_L: Not really in the search PATH,
17543 # but as the default location of the library.
17544 hardcode_minus_L_GCJ=yes
17550 irix5* | irix6* | nonstopux*)
17551 if test "$GCC" = yes; then
17552 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'
17554 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'
17555 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17557 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17558 hardcode_libdir_separator_GCJ=:
17559 link_all_deplibs_GCJ=yes
17563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17564 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17566 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17568 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17569 hardcode_direct_GCJ=yes
17570 hardcode_shlibpath_var_GCJ=no
17574 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17575 hardcode_direct_GCJ=yes
17576 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17577 hardcode_libdir_separator_GCJ=:
17578 hardcode_shlibpath_var_GCJ=no
17582 if test -f /usr/libexec/ld.so; then
17583 hardcode_direct_GCJ=yes
17584 hardcode_shlibpath_var_GCJ=no
17585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17586 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17587 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17588 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17589 export_dynamic_flag_spec_GCJ='${wl}-E'
17592 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17593 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17594 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17597 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17598 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17609 hardcode_minus_L_GCJ=yes
17610 allow_undefined_flag_GCJ=unsupported
17611 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'
17612 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17616 if test "$GCC" = yes; then
17617 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17618 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'
17620 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17621 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'
17623 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17624 hardcode_libdir_separator_GCJ=:
17627 osf4* | osf5*) # as osf3* with the addition of -msym flag
17628 if test "$GCC" = yes; then
17629 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17630 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'
17631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17633 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17634 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'
17635 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~
17636 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17638 # Both c and cxx compiler support -rpath directly
17639 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17641 hardcode_libdir_separator_GCJ=:
17645 no_undefined_flag_GCJ=' -z text'
17646 if test "$GCC" = yes; then
17648 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17650 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17653 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17654 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17655 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17657 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17658 hardcode_shlibpath_var_GCJ=no
17660 solaris2.[0-5] | solaris2.[0-5].*) ;;
17662 # The compiler driver will combine and reorder linker options,
17663 # but understands `-z linker_flag'. GCC discards it without `$wl',
17664 # but is careful enough not to reorder.
17665 # Supported since Solaris 2.6 (maybe 2.5.1?)
17666 if test "$GCC" = yes; then
17667 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17669 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17673 link_all_deplibs_GCJ=yes
17677 if test "x$host_vendor" = xsequent; then
17678 # Use $CC to link under sequent, because it throws in some extra .o
17679 # files that make .init and .fini sections work.
17680 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17682 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17685 hardcode_direct_GCJ=yes
17686 hardcode_minus_L_GCJ=yes
17687 hardcode_shlibpath_var_GCJ=no
17691 case $host_vendor in
17693 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17694 hardcode_direct_GCJ=yes # is this really true???
17697 ## LD is ld it makes a PLAMLIB
17698 ## CC just makes a GrossModule.
17699 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17700 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17701 hardcode_direct_GCJ=no
17704 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17705 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17708 runpath_var='LD_RUN_PATH'
17709 hardcode_shlibpath_var_GCJ=no
17713 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17714 hardcode_shlibpath_var_GCJ=no
17715 export_dynamic_flag_spec_GCJ='-Bexport'
17719 if test -d /usr/nec; then
17720 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17721 hardcode_shlibpath_var_GCJ=no
17722 runpath_var=LD_RUN_PATH
17723 hardcode_runpath_var=yes
17728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17729 no_undefined_flag_GCJ='${wl}-z,text'
17730 archive_cmds_need_lc_GCJ=no
17731 hardcode_shlibpath_var_GCJ=no
17732 runpath_var='LD_RUN_PATH'
17734 if test "$GCC" = yes; then
17735 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17736 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17738 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17739 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17743 sysv5* | sco3.2v5* | sco5v6*)
17744 # Note: We can NOT use -z defs as we might desire, because we do not
17745 # link with -lc, and that would cause any symbols used from libc to
17746 # always be unresolved, which means just about no library would
17747 # ever link correctly. If we're not using GNU ld we use -z text
17748 # though, which does catch some bad symbols but isn't as heavy-handed
17750 no_undefined_flag_GCJ='${wl}-z,text'
17751 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17752 archive_cmds_need_lc_GCJ=no
17753 hardcode_shlibpath_var_GCJ=no
17754 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17755 hardcode_libdir_separator_GCJ=':'
17756 link_all_deplibs_GCJ=yes
17757 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17758 runpath_var='LD_RUN_PATH'
17760 if test "$GCC" = yes; then
17761 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17762 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17764 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17765 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17770 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17772 hardcode_shlibpath_var_GCJ=no
17781 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17782 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17783 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17786 # Do we need to explicitly link libc?
17788 case "x$archive_cmds_need_lc_GCJ" in
17790 # Assume -lc should be added
17791 archive_cmds_need_lc_GCJ=yes
17793 if test "$enable_shared" = yes && test "$GCC" = yes; then
17794 case $archive_cmds_GCJ in
17796 # FIXME: we may have to deal with multi-command sequences.
17799 # Test whether the compiler implicitly links with -lc since on some
17800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17801 # to ld, don't add -lc before -lgcc.
17802 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17808 (eval $ac_compile) 2>&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } 2>conftest.err; then
17814 libobjs=conftest.$ac_objext
17816 wl=$lt_prog_compiler_wl_GCJ
17817 pic_flag=$lt_prog_compiler_pic_GCJ
17823 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17824 allow_undefined_flag_GCJ=
17825 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17826 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }
17831 archive_cmds_need_lc_GCJ=no
17833 archive_cmds_need_lc_GCJ=yes
17835 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17837 cat conftest.err 1>&5
17840 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17841 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17848 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17849 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17850 library_names_spec=
17851 libname_spec='lib$name'
17855 postuninstall_cmds=
17859 shlibpath_overrides_runpath=unknown
17861 dynamic_linker="$host_os ld.so"
17862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17864 need_lib_prefix=unknown
17865 hardcode_into_libs=no
17867 # when you set need_version to no, make sure it does not cause -set_version
17868 # flags to be left without arguments
17869 need_version=unknown
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17875 shlibpath_var=LIBPATH
17877 # AIX 3 has no versioning support, so we append a major version to the name.
17878 soname_spec='${libname}${release}${shared_ext}$major'
17885 hardcode_into_libs=yes
17886 if test "$host_cpu" = ia64; then
17887 # AIX 5 supports IA64
17888 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17889 shlibpath_var=LD_LIBRARY_PATH
17891 # With GCC up to 2.95.x, collect2 would create an import file
17892 # for dependence libraries. The import file would start with
17893 # the line `#! .'. This would cause the generated library to
17894 # depend on `.', always an invalid library. This was fixed in
17895 # development snapshots of GCC prior to 3.0.
17897 aix4 | aix4.[01] | aix4.[01].*)
17898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17900 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17903 can_build_shared=no
17907 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17908 # soname into executable. Probably we can add versioning support to
17909 # collect2, so additional links can be useful in future.
17910 if test "$aix_use_runtimelinking" = yes; then
17911 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17912 # instead of lib<name>.a to let people know that these are not
17913 # typical AIX shared libraries.
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 # We preserve .a as extension for shared libraries through AIX4.2
17917 # and later when we are not doing run time linking.
17918 library_names_spec='${libname}${release}.a $libname.a'
17919 soname_spec='${libname}${release}${shared_ext}$major'
17921 shlibpath_var=LIBPATH
17926 library_names_spec='$libname.ixlibrary $libname.a'
17927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17928 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'
17932 library_names_spec='${libname}${shared_ext}'
17933 dynamic_linker="$host_os ld.so"
17934 shlibpath_var=LIBRARY_PATH
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 soname_spec='${libname}${release}${shared_ext}$major'
17942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17946 # the default ld.so.conf also contains /usr/contrib/lib and
17947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17948 # libtool to hard-code these into programs
17951 cygwin* | mingw* | pw32*)
17952 version_type=windows
17957 case $GCC,$host_os in
17958 yes,cygwin* | yes,mingw* | yes,pw32*)
17959 library_names_spec='$libname.dll.a'
17960 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17961 postinstall_cmds='base_file=`basename \${file}`~
17962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17963 dldir=$destdir/`dirname \$dlpath`~
17964 test -d \$dldir || mkdir -p \$dldir~
17965 $install_prog $dir/$dlname \$dldir/$dlname~
17966 chmod a+x \$dldir/$dlname'
17967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17968 dlpath=$dir/\$dldll~
17970 shlibpath_overrides_runpath=yes
17974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17976 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17979 # MinGW DLLs use traditional 'lib' prefix
17980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17982 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17983 # It is most probably a Windows format PATH printed by
17984 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17985 # path with ; separators, and with drive letters. We can handle the
17986 # drive letters (cygwin fileutils understands them), so leave them,
17987 # especially as we might pass files found there to a mingw objdump,
17988 # which wouldn't understand a cygwinified path. Ahh.
17989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17995 # pw32 DLLs use 'pw' prefix rather than 'lib'
17996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18005 dynamic_linker='Win32 ld.exe'
18006 # FIXME: first we should search . and the directory the executable is in
18010 darwin* | rhapsody*)
18011 dynamic_linker="$host_os dyld"
18012 version_type=darwin
18015 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18016 soname_spec='${libname}${release}${major}$shared_ext'
18017 shlibpath_overrides_runpath=yes
18018 shlibpath_var=DYLD_LIBRARY_PATH
18019 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18029 soname_spec='${libname}${release}${shared_ext}$major'
18030 shlibpath_var=LD_LIBRARY_PATH
18037 freebsd* | dragonfly*)
18038 # DragonFly does not have aout. When/if they implement a new
18039 # versioning mechanism, adjust this.
18040 if test -x /usr/bin/objformat; then
18041 objformat=`/usr/bin/objformat`
18044 freebsd[123]*) objformat=aout ;;
18045 *) objformat=elf ;;
18048 version_type=freebsd-$objformat
18049 case $version_type in
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18060 shlibpath_var=LD_LIBRARY_PATH
18063 shlibpath_overrides_runpath=yes
18065 freebsd3.[01]* | freebsdelf3.[01]*)
18066 shlibpath_overrides_runpath=yes
18067 hardcode_into_libs=yes
18069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18071 shlibpath_overrides_runpath=no
18072 hardcode_into_libs=yes
18074 *) # from 4.6 on, and DragonFly
18075 shlibpath_overrides_runpath=yes
18076 hardcode_into_libs=yes
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 hardcode_into_libs=yes
18091 hpux9* | hpux10* | hpux11*)
18092 # Give a soname corresponding to the major version so that dld.sl refuses to
18093 # link against other versions.
18100 hardcode_into_libs=yes
18101 dynamic_linker="$host_os dld.so"
18102 shlibpath_var=LD_LIBRARY_PATH
18103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 if test "X$HPUX_IA64_MODE" = X32; then
18107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18115 hardcode_into_libs=yes
18116 dynamic_linker="$host_os dld.sl"
18117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18120 soname_spec='${libname}${release}${shared_ext}$major'
18121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18126 dynamic_linker="$host_os dld.sl"
18127 shlibpath_var=SHLIB_PATH
18128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18130 soname_spec='${libname}${release}${shared_ext}$major'
18133 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18134 postinstall_cmds='chmod 555 $lib'
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18142 soname_spec='${libname}${release}${shared_ext}$major'
18143 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 shlibpath_overrides_runpath=no
18146 hardcode_into_libs=yes
18149 irix5* | irix6* | nonstopux*)
18151 nonstopux*) version_type=nonstopux ;;
18153 if test "$lt_cv_prog_gnu_ld" = yes; then
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18164 irix5* | nonstopux*)
18165 libsuff= shlibsuff=
18168 case $LD in # libtool.m4 will add one of these switches to LD
18169 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18170 libsuff= shlibsuff= libmagic=32-bit;;
18171 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18172 libsuff=32 shlibsuff=N32 libmagic=N32;;
18173 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18174 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18175 *) libsuff= shlibsuff= libmagic=never-match;;
18179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18180 shlibpath_overrides_runpath=no
18181 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18182 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18183 hardcode_into_libs=yes
18186 # No shared lib support for Linux oldld, aout, or coff.
18187 linux*oldld* | linux*aout* | linux*coff*)
18191 # This must be Linux ELF.
18192 linux* | k*bsd*-gnu)
18196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18197 soname_spec='${libname}${release}${shared_ext}$major'
18198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18199 shlibpath_var=LD_LIBRARY_PATH
18200 shlibpath_overrides_runpath=no
18201 # This implies no fast_install, which is unacceptable.
18202 # Some rework will be needed to allow for fast_install
18203 # before this can be enabled.
18204 hardcode_into_libs=yes
18206 # Append ld.so.conf contents to the search path
18207 if test -f /etc/ld.so.conf; then
18208 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18209 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18212 # We used to test for /lib/ld.so.1 and disable shared libraries on
18213 # powerpc, because MkLinux only supported shared libraries with the
18214 # GNU dynamic linker. Since this was broken with cross compilers,
18215 # most powerpc-linux boxes support dynamic linking these days and
18216 # people can always --disable-shared, the test was removed, and we
18217 # assume the GNU/Linux dynamic linker is in use.
18218 dynamic_linker='GNU/Linux ld.so'
18225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18228 dynamic_linker='NetBSD (a.out) ld.so'
18230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18231 soname_spec='${libname}${release}${shared_ext}$major'
18232 dynamic_linker='NetBSD ld.elf_so'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=yes
18236 hardcode_into_libs=yes
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242 shlibpath_var=LD_LIBRARY_PATH
18243 shlibpath_overrides_runpath=yes
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251 soname_spec='${libname}${release}${shared_ext}$major'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 shlibpath_overrides_runpath=yes
18258 sys_lib_dlsearch_path_spec="/usr/lib"
18260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18262 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18263 *) need_version=no ;;
18265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18267 shlibpath_var=LD_LIBRARY_PATH
18268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18270 openbsd2.[89] | openbsd2.[89].*)
18271 shlibpath_overrides_runpath=no
18274 shlibpath_overrides_runpath=yes
18278 shlibpath_overrides_runpath=yes
18283 libname_spec='$name'
18286 library_names_spec='$libname${shared_ext} $libname.a'
18287 dynamic_linker='OS/2 ld.exe'
18288 shlibpath_var=LIBPATH
18291 osf3* | osf4* | osf5*)
18295 soname_spec='${libname}${release}${shared_ext}$major'
18296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18311 soname_spec='${libname}${release}${shared_ext}$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 shlibpath_overrides_runpath=yes
18314 hardcode_into_libs=yes
18315 # ldd complains unless libraries are executable
18316 postinstall_cmds='chmod +x $lib'
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18322 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18323 shlibpath_var=LD_LIBRARY_PATH
18324 shlibpath_overrides_runpath=yes
18325 if test "$with_gnu_ld" = yes; then
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18334 soname_spec='${libname}${release}${shared_ext}$major'
18335 shlibpath_var=LD_LIBRARY_PATH
18336 case $host_vendor in
18338 shlibpath_overrides_runpath=no
18340 export_dynamic_flag_spec='${wl}-Blargedynsym'
18341 runpath_var=LD_RUN_PATH
18349 shlibpath_overrides_runpath=no
18350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18356 if test -d /usr/nec ;then
18358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18359 soname_spec='$libname${shared_ext}.$major'
18360 shlibpath_var=LD_LIBRARY_PATH
18364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18365 version_type=freebsd-elf
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18369 soname_spec='${libname}${release}${shared_ext}$major'
18370 shlibpath_var=LD_LIBRARY_PATH
18371 hardcode_into_libs=yes
18372 if test "$with_gnu_ld" = yes; then
18373 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18374 shlibpath_overrides_runpath=no
18376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18377 shlibpath_overrides_runpath=yes
18380 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18384 sys_lib_dlsearch_path_spec='/usr/lib'
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 shlibpath_var=LD_LIBRARY_PATH
18398 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18399 echo "${ECHO_T}$dynamic_linker" >&6; }
18400 test "$dynamic_linker" = no && can_build_shared=no
18402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18403 if test "$GCC" = yes; then
18404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18407 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18408 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18409 hardcode_action_GCJ=
18410 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18411 test -n "$runpath_var_GCJ" || \
18412 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18414 # We can hardcode non-existant directories.
18415 if test "$hardcode_direct_GCJ" != no &&
18416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18417 # have to relink, otherwise we might link with an installed library
18418 # when we should be linking with a yet-to-be-installed one
18419 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18420 test "$hardcode_minus_L_GCJ" != no; then
18421 # Linking always hardcodes the temporary library directory.
18422 hardcode_action_GCJ=relink
18424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18425 hardcode_action_GCJ=immediate
18428 # We cannot hardcode anything, or else we can only hardcode existing
18430 hardcode_action_GCJ=unsupported
18432 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18433 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18435 if test "$hardcode_action_GCJ" = relink; then
18436 # Fast installation is not supported
18437 enable_fast_install=no
18438 elif test "$shlibpath_overrides_runpath" = yes ||
18439 test "$enable_shared" = no; then
18440 # Fast installation is not necessary
18441 enable_fast_install=needless
18445 # The else clause should only fire when bootstrapping the
18446 # libtool distribution, otherwise you forgot to ship ltmain.sh
18447 # with your package, and you will get complaints that there are
18448 # no rules to generate ltmain.sh.
18449 if test -f "$ltmain"; then
18450 # See if we are running on zsh, and set the options which allow our commands through
18451 # without removal of \ escapes.
18452 if test -n "${ZSH_VERSION+set}" ; then
18453 setopt NO_GLOB_SUBST
18455 # Now quote all the things that may contain metacharacters while being
18456 # careful not to overquote the AC_SUBSTed values. We take copies of the
18457 # variables and quote the copies for generation of the libtool script.
18458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18460 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18461 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18462 deplibs_check_method reload_flag reload_cmds need_locks \
18463 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18464 lt_cv_sys_global_symbol_to_c_name_address \
18465 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18466 old_postinstall_cmds old_postuninstall_cmds \
18470 lt_prog_compiler_wl_GCJ \
18471 lt_prog_compiler_pic_GCJ \
18472 lt_prog_compiler_static_GCJ \
18473 lt_prog_compiler_no_builtin_flag_GCJ \
18474 export_dynamic_flag_spec_GCJ \
18475 thread_safe_flag_spec_GCJ \
18476 whole_archive_flag_spec_GCJ \
18477 enable_shared_with_static_runtimes_GCJ \
18478 old_archive_cmds_GCJ \
18479 old_archive_from_new_cmds_GCJ \
18480 predep_objects_GCJ \
18481 postdep_objects_GCJ \
18484 compiler_lib_search_path_GCJ \
18486 archive_expsym_cmds_GCJ \
18487 postinstall_cmds_GCJ \
18488 postuninstall_cmds_GCJ \
18489 old_archive_from_expsyms_cmds_GCJ \
18490 allow_undefined_flag_GCJ \
18491 no_undefined_flag_GCJ \
18492 export_symbols_cmds_GCJ \
18493 hardcode_libdir_flag_spec_GCJ \
18494 hardcode_libdir_flag_spec_ld_GCJ \
18495 hardcode_libdir_separator_GCJ \
18496 hardcode_automatic_GCJ \
18498 module_expsym_cmds_GCJ \
18499 lt_cv_prog_compiler_c_o_GCJ \
18500 fix_srcfile_path_GCJ \
18501 exclude_expsyms_GCJ \
18502 include_expsyms_GCJ; do
18505 old_archive_cmds_GCJ | \
18506 old_archive_from_new_cmds_GCJ | \
18507 archive_cmds_GCJ | \
18508 archive_expsym_cmds_GCJ | \
18509 module_cmds_GCJ | \
18510 module_expsym_cmds_GCJ | \
18511 old_archive_from_expsyms_cmds_GCJ | \
18512 export_symbols_cmds_GCJ | \
18513 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18514 postinstall_cmds | postuninstall_cmds | \
18515 old_postinstall_cmds | old_postuninstall_cmds | \
18516 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18517 # Double-quote double-evaled strings.
18518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18527 *'\$0 --fallback-echo"')
18528 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18534 cat <<__EOF__ >> "$cfgfile"
18535 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18539 # Shell to use when invoking shell scripts.
18542 # Whether or not to build shared libraries.
18543 build_libtool_libs=$enable_shared
18545 # Whether or not to build static libraries.
18546 build_old_libs=$enable_static
18548 # Whether or not to add -lc for building shared libraries.
18549 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18551 # Whether or not to disallow shared libs when runtime libs are static
18552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18554 # Whether or not to optimize for fast installation.
18555 fast_install=$enable_fast_install
18558 host_alias=$host_alias
18562 # The build system.
18563 build_alias=$build_alias
18567 # An echo program that does not interpret backslashes.
18572 AR_FLAGS=$lt_AR_FLAGS
18577 # LTCC compiler flags.
18578 LTCFLAGS=$lt_LTCFLAGS
18580 # A language-specific compiler.
18581 CC=$lt_compiler_GCJ
18583 # Is the compiler the GNU C compiler?
18589 # The linker used to build libraries.
18592 # Whether we need hard or soft links.
18595 # A BSD-compatible nm program.
18598 # A symbol stripping program
18601 # Used to examine libraries when file_magic_cmd begins "file"
18602 MAGIC_CMD=$MAGIC_CMD
18604 # Used on cygwin: DLL creation program.
18607 # Used on cygwin: object dumper.
18610 # Used on cygwin: assembler.
18613 # The name of the directory that contains temporary libtool files.
18616 # How to create reloadable object files.
18617 reload_flag=$lt_reload_flag
18618 reload_cmds=$lt_reload_cmds
18620 # How to pass a linker flag through the compiler.
18621 wl=$lt_lt_prog_compiler_wl_GCJ
18623 # Object file suffix (normally "o").
18624 objext="$ac_objext"
18626 # Old archive suffix (normally "a").
18629 # Shared library suffix (normally ".so").
18630 shrext_cmds='$shrext_cmds'
18632 # Executable file suffix (normally "").
18635 # Additional compiler flags for building library objects.
18636 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18639 # What is the maximum length of a command?
18640 max_cmd_len=$lt_cv_sys_max_cmd_len
18642 # Does compiler simultaneously support -c and -o options?
18643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18645 # Must we lock files when doing compilation?
18646 need_locks=$lt_need_locks
18648 # Do we need the lib prefix for modules?
18649 need_lib_prefix=$need_lib_prefix
18651 # Do we need a version for libraries?
18652 need_version=$need_version
18654 # Whether dlopen is supported.
18655 dlopen_support=$enable_dlopen
18657 # Whether dlopen of programs is supported.
18658 dlopen_self=$enable_dlopen_self
18660 # Whether dlopen of statically linked programs is supported.
18661 dlopen_self_static=$enable_dlopen_self_static
18663 # Compiler flag to prevent dynamic linking.
18664 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18666 # Compiler flag to turn off builtin functions.
18667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18669 # Compiler flag to allow reflexive dlopens.
18670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18672 # Compiler flag to generate shared objects directly from archives.
18673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18675 # Compiler flag to generate thread-safe objects.
18676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18678 # Library versioning type.
18679 version_type=$version_type
18681 # Format of library name prefix.
18682 libname_spec=$lt_libname_spec
18684 # List of archive names. First name is the real one, the rest are links.
18685 # The last name is the one that the linker finds with -lNAME.
18686 library_names_spec=$lt_library_names_spec
18688 # The coded name of the library, if different from the real name.
18689 soname_spec=$lt_soname_spec
18691 # Commands used to build and install an old-style archive.
18693 old_archive_cmds=$lt_old_archive_cmds_GCJ
18694 old_postinstall_cmds=$lt_old_postinstall_cmds
18695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18697 # Create an old-style archive from a shared archive.
18698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18700 # Create a temporary old-style archive to link instead of a shared archive.
18701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18703 # Commands used to build and install a shared archive.
18704 archive_cmds=$lt_archive_cmds_GCJ
18705 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18706 postinstall_cmds=$lt_postinstall_cmds
18707 postuninstall_cmds=$lt_postuninstall_cmds
18709 # Commands used to build a loadable module (assumed same as above if empty)
18710 module_cmds=$lt_module_cmds_GCJ
18711 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18713 # Commands to strip libraries.
18714 old_striplib=$lt_old_striplib
18715 striplib=$lt_striplib
18717 # Dependencies to place before the objects being linked to create a
18719 predep_objects=$lt_predep_objects_GCJ
18721 # Dependencies to place after the objects being linked to create a
18723 postdep_objects=$lt_postdep_objects_GCJ
18725 # Dependencies to place before the objects being linked to create a
18727 predeps=$lt_predeps_GCJ
18729 # Dependencies to place after the objects being linked to create a
18731 postdeps=$lt_postdeps_GCJ
18733 # The library search path used internally by the compiler when linking
18734 # a shared library.
18735 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18737 # Method to check whether dependent libraries are shared objects.
18738 deplibs_check_method=$lt_deplibs_check_method
18740 # Command to use when deplibs_check_method == file_magic.
18741 file_magic_cmd=$lt_file_magic_cmd
18743 # Flag that allows shared libraries with undefined symbols to be built.
18744 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18746 # Flag that forces no undefined symbols.
18747 no_undefined_flag=$lt_no_undefined_flag_GCJ
18749 # Commands used to finish a libtool library installation in a directory.
18750 finish_cmds=$lt_finish_cmds
18752 # Same as above, but a single script fragment to be evaled but not shown.
18753 finish_eval=$lt_finish_eval
18755 # Take the output of nm and produce a listing of raw symbols and C names.
18756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18758 # Transform the output of nm in a proper C declaration
18759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18761 # Transform the output of nm in a C name address pair
18762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18764 # This is the shared library runtime path variable.
18765 runpath_var=$runpath_var
18767 # This is the shared library path variable.
18768 shlibpath_var=$shlibpath_var
18770 # Is shlibpath searched before the hard-coded library search path?
18771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18773 # How to hardcode a shared library path into an executable.
18774 hardcode_action=$hardcode_action_GCJ
18776 # Whether we should hardcode library paths into libraries.
18777 hardcode_into_libs=$hardcode_into_libs
18779 # Flag to hardcode \$libdir into a binary during linking.
18780 # This must work even if \$libdir does not exist.
18781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18783 # If ld is used when linking, flag to hardcode \$libdir into
18784 # a binary during linking. This must work even if \$libdir does
18786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18788 # Whether we need a single -rpath flag with a separated argument.
18789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18791 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18792 # resulting binary.
18793 hardcode_direct=$hardcode_direct_GCJ
18795 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_minus_L=$hardcode_minus_L_GCJ
18799 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18800 # the resulting binary.
18801 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18803 # Set to yes if building a shared library automatically hardcodes DIR into the library
18804 # and all subsequent libraries and executables linked against it.
18805 hardcode_automatic=$hardcode_automatic_GCJ
18807 # Variables whose values should be saved in libtool wrapper scripts and
18808 # restored at relink time.
18809 variables_saved_for_relink="$variables_saved_for_relink"
18811 # Whether libtool must link a program against all its dependency libraries.
18812 link_all_deplibs=$link_all_deplibs_GCJ
18814 # Compile-time system search path for libraries
18815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18817 # Run-time system search path for libraries
18818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18820 # Fix the shell variable \$srcfile for the compiler.
18821 fix_srcfile_path=$lt_fix_srcfile_path
18823 # Set to yes if exported symbols are required.
18824 always_export_symbols=$always_export_symbols_GCJ
18826 # The commands to list exported symbols.
18827 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18829 # The commands to extract the exported symbol list from a shared archive.
18830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18832 # Symbols that should not be listed in the preloaded symbols.
18833 exclude_expsyms=$lt_exclude_expsyms_GCJ
18835 # Symbols that must always be exported.
18836 include_expsyms=$lt_include_expsyms_GCJ
18838 # ### END LIBTOOL TAG CONFIG: $tagname
18844 # If there is no Makefile yet, we rely on a make rule to execute
18845 # `config.status --recheck' to rerun these tests and create the
18846 # libtool script then.
18847 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18848 if test -f "$ltmain_in"; then
18849 test -f Makefile && make "$ltmain"
18855 ac_cpp='$CPP $CPPFLAGS'
18856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18870 # Source file extension for RC test sources.
18873 # Object file extension for compiled RC test sources.
18877 # Code to be used in simple compile tests
18878 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18880 # Code to be used in simple link tests
18881 lt_simple_link_test_code="$lt_simple_compile_test_code"
18883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18885 # If no C compiler was specified, use CC.
18888 # If no C compiler flags were specified, use CFLAGS.
18889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18891 # Allow CC to be a program name with arguments.
18895 # save warnings/boilerplate of simple test code
18896 ac_outfile=conftest.$ac_objext
18897 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18899 _lt_compiler_boilerplate=`cat conftest.err`
18902 ac_outfile=conftest.$ac_objext
18903 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18905 _lt_linker_boilerplate=`cat conftest.err`
18909 # Allow CC to be a program name with arguments.
18914 for cc_temp in $compiler""; do
18916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18924 lt_cv_prog_compiler_c_o_RC=yes
18926 # The else clause should only fire when bootstrapping the
18927 # libtool distribution, otherwise you forgot to ship ltmain.sh
18928 # with your package, and you will get complaints that there are
18929 # no rules to generate ltmain.sh.
18930 if test -f "$ltmain"; then
18931 # See if we are running on zsh, and set the options which allow our commands through
18932 # without removal of \ escapes.
18933 if test -n "${ZSH_VERSION+set}" ; then
18934 setopt NO_GLOB_SUBST
18936 # Now quote all the things that may contain metacharacters while being
18937 # careful not to overquote the AC_SUBSTed values. We take copies of the
18938 # variables and quote the copies for generation of the libtool script.
18939 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18941 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18942 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18943 deplibs_check_method reload_flag reload_cmds need_locks \
18944 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18945 lt_cv_sys_global_symbol_to_c_name_address \
18946 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18947 old_postinstall_cmds old_postuninstall_cmds \
18951 lt_prog_compiler_wl_RC \
18952 lt_prog_compiler_pic_RC \
18953 lt_prog_compiler_static_RC \
18954 lt_prog_compiler_no_builtin_flag_RC \
18955 export_dynamic_flag_spec_RC \
18956 thread_safe_flag_spec_RC \
18957 whole_archive_flag_spec_RC \
18958 enable_shared_with_static_runtimes_RC \
18959 old_archive_cmds_RC \
18960 old_archive_from_new_cmds_RC \
18961 predep_objects_RC \
18962 postdep_objects_RC \
18965 compiler_lib_search_path_RC \
18967 archive_expsym_cmds_RC \
18968 postinstall_cmds_RC \
18969 postuninstall_cmds_RC \
18970 old_archive_from_expsyms_cmds_RC \
18971 allow_undefined_flag_RC \
18972 no_undefined_flag_RC \
18973 export_symbols_cmds_RC \
18974 hardcode_libdir_flag_spec_RC \
18975 hardcode_libdir_flag_spec_ld_RC \
18976 hardcode_libdir_separator_RC \
18977 hardcode_automatic_RC \
18979 module_expsym_cmds_RC \
18980 lt_cv_prog_compiler_c_o_RC \
18981 fix_srcfile_path_RC \
18982 exclude_expsyms_RC \
18983 include_expsyms_RC; do
18986 old_archive_cmds_RC | \
18987 old_archive_from_new_cmds_RC | \
18988 archive_cmds_RC | \
18989 archive_expsym_cmds_RC | \
18991 module_expsym_cmds_RC | \
18992 old_archive_from_expsyms_cmds_RC | \
18993 export_symbols_cmds_RC | \
18994 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18995 postinstall_cmds | postuninstall_cmds | \
18996 old_postinstall_cmds | old_postuninstall_cmds | \
18997 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18998 # Double-quote double-evaled strings.
18999 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19008 *'\$0 --fallback-echo"')
19009 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19015 cat <<__EOF__ >> "$cfgfile"
19016 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19020 # Shell to use when invoking shell scripts.
19023 # Whether or not to build shared libraries.
19024 build_libtool_libs=$enable_shared
19026 # Whether or not to build static libraries.
19027 build_old_libs=$enable_static
19029 # Whether or not to add -lc for building shared libraries.
19030 build_libtool_need_lc=$archive_cmds_need_lc_RC
19032 # Whether or not to disallow shared libs when runtime libs are static
19033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19035 # Whether or not to optimize for fast installation.
19036 fast_install=$enable_fast_install
19039 host_alias=$host_alias
19043 # The build system.
19044 build_alias=$build_alias
19048 # An echo program that does not interpret backslashes.
19053 AR_FLAGS=$lt_AR_FLAGS
19058 # LTCC compiler flags.
19059 LTCFLAGS=$lt_LTCFLAGS
19061 # A language-specific compiler.
19064 # Is the compiler the GNU C compiler?
19070 # The linker used to build libraries.
19073 # Whether we need hard or soft links.
19076 # A BSD-compatible nm program.
19079 # A symbol stripping program
19082 # Used to examine libraries when file_magic_cmd begins "file"
19083 MAGIC_CMD=$MAGIC_CMD
19085 # Used on cygwin: DLL creation program.
19088 # Used on cygwin: object dumper.
19091 # Used on cygwin: assembler.
19094 # The name of the directory that contains temporary libtool files.
19097 # How to create reloadable object files.
19098 reload_flag=$lt_reload_flag
19099 reload_cmds=$lt_reload_cmds
19101 # How to pass a linker flag through the compiler.
19102 wl=$lt_lt_prog_compiler_wl_RC
19104 # Object file suffix (normally "o").
19105 objext="$ac_objext"
19107 # Old archive suffix (normally "a").
19110 # Shared library suffix (normally ".so").
19111 shrext_cmds='$shrext_cmds'
19113 # Executable file suffix (normally "").
19116 # Additional compiler flags for building library objects.
19117 pic_flag=$lt_lt_prog_compiler_pic_RC
19120 # What is the maximum length of a command?
19121 max_cmd_len=$lt_cv_sys_max_cmd_len
19123 # Does compiler simultaneously support -c and -o options?
19124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19126 # Must we lock files when doing compilation?
19127 need_locks=$lt_need_locks
19129 # Do we need the lib prefix for modules?
19130 need_lib_prefix=$need_lib_prefix
19132 # Do we need a version for libraries?
19133 need_version=$need_version
19135 # Whether dlopen is supported.
19136 dlopen_support=$enable_dlopen
19138 # Whether dlopen of programs is supported.
19139 dlopen_self=$enable_dlopen_self
19141 # Whether dlopen of statically linked programs is supported.
19142 dlopen_self_static=$enable_dlopen_self_static
19144 # Compiler flag to prevent dynamic linking.
19145 link_static_flag=$lt_lt_prog_compiler_static_RC
19147 # Compiler flag to turn off builtin functions.
19148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19150 # Compiler flag to allow reflexive dlopens.
19151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19153 # Compiler flag to generate shared objects directly from archives.
19154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19156 # Compiler flag to generate thread-safe objects.
19157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19159 # Library versioning type.
19160 version_type=$version_type
19162 # Format of library name prefix.
19163 libname_spec=$lt_libname_spec
19165 # List of archive names. First name is the real one, the rest are links.
19166 # The last name is the one that the linker finds with -lNAME.
19167 library_names_spec=$lt_library_names_spec
19169 # The coded name of the library, if different from the real name.
19170 soname_spec=$lt_soname_spec
19172 # Commands used to build and install an old-style archive.
19174 old_archive_cmds=$lt_old_archive_cmds_RC
19175 old_postinstall_cmds=$lt_old_postinstall_cmds
19176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19178 # Create an old-style archive from a shared archive.
19179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19181 # Create a temporary old-style archive to link instead of a shared archive.
19182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19184 # Commands used to build and install a shared archive.
19185 archive_cmds=$lt_archive_cmds_RC
19186 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19187 postinstall_cmds=$lt_postinstall_cmds
19188 postuninstall_cmds=$lt_postuninstall_cmds
19190 # Commands used to build a loadable module (assumed same as above if empty)
19191 module_cmds=$lt_module_cmds_RC
19192 module_expsym_cmds=$lt_module_expsym_cmds_RC
19194 # Commands to strip libraries.
19195 old_striplib=$lt_old_striplib
19196 striplib=$lt_striplib
19198 # Dependencies to place before the objects being linked to create a
19200 predep_objects=$lt_predep_objects_RC
19202 # Dependencies to place after the objects being linked to create a
19204 postdep_objects=$lt_postdep_objects_RC
19206 # Dependencies to place before the objects being linked to create a
19208 predeps=$lt_predeps_RC
19210 # Dependencies to place after the objects being linked to create a
19212 postdeps=$lt_postdeps_RC
19214 # The library search path used internally by the compiler when linking
19215 # a shared library.
19216 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19218 # Method to check whether dependent libraries are shared objects.
19219 deplibs_check_method=$lt_deplibs_check_method
19221 # Command to use when deplibs_check_method == file_magic.
19222 file_magic_cmd=$lt_file_magic_cmd
19224 # Flag that allows shared libraries with undefined symbols to be built.
19225 allow_undefined_flag=$lt_allow_undefined_flag_RC
19227 # Flag that forces no undefined symbols.
19228 no_undefined_flag=$lt_no_undefined_flag_RC
19230 # Commands used to finish a libtool library installation in a directory.
19231 finish_cmds=$lt_finish_cmds
19233 # Same as above, but a single script fragment to be evaled but not shown.
19234 finish_eval=$lt_finish_eval
19236 # Take the output of nm and produce a listing of raw symbols and C names.
19237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19239 # Transform the output of nm in a proper C declaration
19240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19242 # Transform the output of nm in a C name address pair
19243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19245 # This is the shared library runtime path variable.
19246 runpath_var=$runpath_var
19248 # This is the shared library path variable.
19249 shlibpath_var=$shlibpath_var
19251 # Is shlibpath searched before the hard-coded library search path?
19252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19254 # How to hardcode a shared library path into an executable.
19255 hardcode_action=$hardcode_action_RC
19257 # Whether we should hardcode library paths into libraries.
19258 hardcode_into_libs=$hardcode_into_libs
19260 # Flag to hardcode \$libdir into a binary during linking.
19261 # This must work even if \$libdir does not exist.
19262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19264 # If ld is used when linking, flag to hardcode \$libdir into
19265 # a binary during linking. This must work even if \$libdir does
19267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19269 # Whether we need a single -rpath flag with a separated argument.
19270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19273 # resulting binary.
19274 hardcode_direct=$hardcode_direct_RC
19276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19277 # resulting binary.
19278 hardcode_minus_L=$hardcode_minus_L_RC
19280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19281 # the resulting binary.
19282 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19284 # Set to yes if building a shared library automatically hardcodes DIR into the library
19285 # and all subsequent libraries and executables linked against it.
19286 hardcode_automatic=$hardcode_automatic_RC
19288 # Variables whose values should be saved in libtool wrapper scripts and
19289 # restored at relink time.
19290 variables_saved_for_relink="$variables_saved_for_relink"
19292 # Whether libtool must link a program against all its dependency libraries.
19293 link_all_deplibs=$link_all_deplibs_RC
19295 # Compile-time system search path for libraries
19296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19298 # Run-time system search path for libraries
19299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19301 # Fix the shell variable \$srcfile for the compiler.
19302 fix_srcfile_path=$lt_fix_srcfile_path
19304 # Set to yes if exported symbols are required.
19305 always_export_symbols=$always_export_symbols_RC
19307 # The commands to list exported symbols.
19308 export_symbols_cmds=$lt_export_symbols_cmds_RC
19310 # The commands to extract the exported symbol list from a shared archive.
19311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19313 # Symbols that should not be listed in the preloaded symbols.
19314 exclude_expsyms=$lt_exclude_expsyms_RC
19316 # Symbols that must always be exported.
19317 include_expsyms=$lt_include_expsyms_RC
19319 # ### END LIBTOOL TAG CONFIG: $tagname
19325 # If there is no Makefile yet, we rely on a make rule to execute
19326 # `config.status --recheck' to rerun these tests and create the
19327 # libtool script then.
19328 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19329 if test -f "$ltmain_in"; then
19330 test -f Makefile && make "$ltmain"
19336 ac_cpp='$CPP $CPPFLAGS'
19337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19346 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19347 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19348 { (exit 1); exit 1; }; }
19352 # Append the new tag name to the list of available tags.
19353 if test -n "$tagname" ; then
19354 available_tags="$available_tags $tagname"
19360 # Now substitute the updated list of available tags.
19361 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19362 mv "${ofile}T" "$ofile"
19366 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19367 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19368 { (exit 1); exit 1; }; }
19374 # This can be used to rebuild libtool when needed
19375 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19377 # Always use our own libtool.
19378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19380 # Prevent multiple expansion
19401 # Check whether --enable-debug was given.
19402 if test "${enable_debug+set}" = set; then
19403 enableval=$enable_debug;
19404 CXXFLAGS="-g -O0 -Wall"
19406 cat >>confdefs.h <<\_ACEOF
19420 # Check whether --with-libldap was given.
19421 if test "${with_libldap+set}" = set; then
19422 withval=$with_libldap;
19423 LIBS="-L$with_libldap $LIBS "
19427 LIBS="-L/usr/local/lib $LIBS "
19434 # Check whether --with-ldap-includes was given.
19435 if test "${with_ldap_includes+set}" = set; then
19436 withval=$with_ldap_includes;
19437 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19441 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19447 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
19448 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
19449 if test "${ac_cv_lib_resolv_main+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 ac_check_lib_save_LIBS=$LIBS
19453 LIBS="-lresolv $LIBS"
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19479 grep -v '^ *+' conftest.er1 >conftest.err
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest$ac_exeext &&
19487 $as_test_x conftest$ac_exeext; then
19488 ac_cv_lib_resolv_main=yes
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 ac_cv_lib_resolv_main=no
19496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19497 conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19500 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
19501 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
19502 if test $ac_cv_lib_resolv_main = yes; then
19503 cat >>confdefs.h <<_ACEOF
19504 #define HAVE_LIBRESOLV 1
19507 LIBS="-lresolv $LIBS"
19511 { echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
19512 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6; }
19513 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 ac_check_lib_save_LIBS=$LIBS
19517 LIBS="-llber $LIBS"
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19525 /* Override any GCC internal prototype to avoid an error.
19526 Use char because int might match the return type of a GCC
19527 builtin and then its argument prototype would still apply. */
19531 char ber_strdup ();
19535 return ber_strdup ();
19540 rm -f conftest.$ac_objext conftest$ac_exeext
19541 if { (ac_try="$ac_link"
19542 case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_link") 2>conftest.er1
19549 grep -v '^ *+' conftest.er1 >conftest.err
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest$ac_exeext &&
19557 $as_test_x conftest$ac_exeext; then
19558 ac_cv_lib_lber_ber_strdup=yes
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_cv_lib_lber_ber_strdup=no
19566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19570 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
19571 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6; }
19572 if test $ac_cv_lib_lber_ber_strdup = yes; then
19578 echo " didn't find ber_strdup in liblber !";
19579 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19580 echo " or try the --with-libldap option.";
19585 { echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
19586 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6; }
19587 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_check_lib_save_LIBS=$LIBS
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19607 char ldap_add_ext ();
19611 return ldap_add_ext ();
19616 rm -f conftest.$ac_objext conftest$ac_exeext
19617 if { (ac_try="$ac_link"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_link") 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } && {
19630 test -z "$ac_c_werror_flag" ||
19631 test ! -s conftest.err
19632 } && test -s conftest$ac_exeext &&
19633 $as_test_x conftest$ac_exeext; then
19634 ac_cv_lib_ldap_ldap_add_ext=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_lib_ldap_ldap_add_ext=no
19642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19643 conftest$ac_exeext conftest.$ac_ext
19644 LIBS=$ac_check_lib_save_LIBS
19646 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19647 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6; }
19648 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
19654 echo " didn't find ldap_add_ext in libldap !";
19655 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19656 echo " or try the --with-libldap option.";
19661 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19662 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19663 if test "${ac_cv_header_time+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #include <sys/types.h>
19673 #include <sys/time.h>
19679 if ((struct tm *) 0)
19685 rm -f conftest.$ac_objext
19686 if { (ac_try="$ac_compile"
19687 case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_compile") 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_c_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest.$ac_objext; then
19702 ac_cv_header_time=yes
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19707 ac_cv_header_time=no
19710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19712 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19713 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19714 if test $ac_cv_header_time = yes; then
19716 cat >>confdefs.h <<\_ACEOF
19717 #define TIME_WITH_SYS_TIME 1
19724 for ac_header in termios.h ldap.h
19726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 ac_res=`eval echo '${'$as_ac_Header'}'`
19734 { echo "$as_me:$LINENO: result: $ac_res" >&5
19735 echo "${ECHO_T}$ac_res" >&6; }
19737 # Is the header compilable?
19738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19740 cat >conftest.$ac_ext <<_ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 $ac_includes_default
19747 #include <$ac_header>
19749 rm -f conftest.$ac_objext
19750 if { (ac_try="$ac_compile"
19751 case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_compile") 2>conftest.er1
19758 grep -v '^ *+' conftest.er1 >conftest.err
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } && {
19763 test -z "$ac_c_werror_flag" ||
19764 test ! -s conftest.err
19765 } && test -s conftest.$ac_objext; then
19766 ac_header_compiler=yes
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_header_compiler=no
19774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19776 echo "${ECHO_T}$ac_header_compiler" >&6; }
19778 # Is the header present?
19779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19781 cat >conftest.$ac_ext <<_ACEOF
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h. */
19787 #include <$ac_header>
19789 if { (ac_try="$ac_cpp conftest.$ac_ext"
19790 case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } >/dev/null && {
19802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19803 test ! -s conftest.err
19805 ac_header_preproc=yes
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_header_preproc=no
19813 rm -f conftest.err conftest.$ac_ext
19814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19815 echo "${ECHO_T}$ac_header_preproc" >&6; }
19817 # So? What about this header?
19818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19824 ac_header_preproc=yes
19827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 eval "$as_ac_Header=\$ac_header_preproc"
19849 ac_res=`eval echo '${'$as_ac_Header'}'`
19850 { echo "$as_me:$LINENO: result: $ac_res" >&5
19851 echo "${ECHO_T}$ac_res" >&6; }
19854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19873 $EGREP "ldap_add_ext" >/dev/null 2>&1; then
19879 echo " didn't find ldap_add_ext in ldap.h!";
19880 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19881 echo " or try --with-ldap-includes option.";
19887 if test "${ac_cv_header_lber_h+set}" = set; then
19888 { echo "$as_me:$LINENO: checking for lber.h" >&5
19889 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
19890 if test "${ac_cv_header_lber_h+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19894 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
19896 # Is the header compilable?
19897 { echo "$as_me:$LINENO: checking lber.h usability" >&5
19898 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6; }
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19908 rm -f conftest.$ac_objext
19909 if { (ac_try="$ac_compile"
19910 case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1 >conftest.err
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest.$ac_objext; then
19925 ac_header_compiler=yes
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 ac_header_compiler=no
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935 echo "${ECHO_T}$ac_header_compiler" >&6; }
19937 # Is the header present?
19938 { echo "$as_me:$LINENO: checking lber.h presence" >&5
19939 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6; }
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19948 if { (ac_try="$ac_cpp conftest.$ac_ext"
19949 case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19956 grep -v '^ *+' conftest.er1 >conftest.err
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } >/dev/null && {
19961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19962 test ! -s conftest.err
19964 ac_header_preproc=yes
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19969 ac_header_preproc=no
19972 rm -f conftest.err conftest.$ac_ext
19973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19974 echo "${ECHO_T}$ac_header_preproc" >&6; }
19976 # So? What about this header?
19977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19979 { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
19980 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
19982 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
19983 ac_header_preproc=yes
19986 { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
19987 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
19988 { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5
19989 echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
19991 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&5
19993 echo "$as_me: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
19995 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
19997 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
20001 { echo "$as_me:$LINENO: checking for lber.h" >&5
20002 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
20003 if test "${ac_cv_header_lber_h+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 ac_cv_header_lber_h=$ac_header_preproc
20008 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20009 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
20014 cat >conftest.$ac_ext <<_ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20024 $EGREP "ber_strdup" >/dev/null 2>&1; then
20030 echo " didn't find ber_strdup in lber.h!";
20031 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
20032 echo " or try --with-ldap-includes option.";
20041 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
20043 cat >confcache <<\_ACEOF
20044 # This file is a shell script that caches the results of configure
20045 # tests run on this system so they can be shared between configure
20046 # scripts and configure runs, see configure's option --config-cache.
20047 # It is not useful on other systems. If it contains results you don't
20048 # want to keep, you may remove or edit it.
20050 # config.status only pays attention to the cache file if you give it
20051 # the --recheck option to rerun configure.
20053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20055 # following values.
20059 # The following way of writing the cache mishandles newlines in values,
20060 # but we know of no workaround that is simple, portable, and efficient.
20061 # So, we kill variables containing newlines.
20062 # Ultrix sh set writes to stderr and can't be redirected directly,
20063 # and sets the high bit in the cache file unless we assign to the vars.
20065 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20066 eval ac_val=\$$ac_var
20070 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20071 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20074 _ | IFS | as_nl) ;; #(
20075 *) $as_unset $ac_var ;;
20081 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20082 *${as_nl}ac_space=\ *)
20083 # `set' does not quote correctly, so add quotes (double-quote
20084 # substitution turns \\\\ into \\, and sed turns \\ into \).
20087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20090 # `set' quotes correctly as required by POSIX, so do not add quotes.
20091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20100 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20102 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20104 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20105 if test -w "$cache_file"; then
20106 test "x$cache_file" != "x/dev/null" &&
20107 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20108 echo "$as_me: updating cache $cache_file" >&6;}
20109 cat confcache >$cache_file
20111 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20112 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20118 # Let make expand exec_prefix.
20119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20121 DEFS=-DHAVE_CONFIG_H
20125 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20126 # 1. Remove the extension, and $U if already installed.
20127 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20128 ac_i=`echo "$ac_i" | sed "$ac_script"`
20129 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20130 # will be set to the directory where LIBOBJS objects are built.
20131 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20132 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20134 LIBOBJS=$ac_libobjs
20136 LTLIBOBJS=$ac_ltlibobjs
20139 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20140 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20141 Usually this means the macro was only invoked conditionally." >&5
20142 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20143 Usually this means the macro was only invoked conditionally." >&2;}
20144 { (exit 1); exit 1; }; }
20146 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20147 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20148 Usually this means the macro was only invoked conditionally." >&5
20149 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20150 Usually this means the macro was only invoked conditionally." >&2;}
20151 { (exit 1); exit 1; }; }
20153 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20154 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20155 Usually this means the macro was only invoked conditionally." >&5
20156 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20157 Usually this means the macro was only invoked conditionally." >&2;}
20158 { (exit 1); exit 1; }; }
20161 : ${CONFIG_STATUS=./config.status}
20162 ac_clean_files_save=$ac_clean_files
20163 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20164 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20165 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20166 cat >$CONFIG_STATUS <<_ACEOF
20168 # Generated by $as_me.
20169 # Run this file to recreate the current configuration.
20170 # Compiler output produced by configure, useful for debugging
20171 # configure, is in config.log if it exists.
20174 ac_cs_recheck=false
20176 SHELL=\${CONFIG_SHELL-$SHELL}
20179 cat >>$CONFIG_STATUS <<\_ACEOF
20180 ## --------------------- ##
20181 ## M4sh Initialization. ##
20182 ## --------------------- ##
20184 # Be more Bourne compatible
20185 DUALCASE=1; export DUALCASE # for MKS sh
20186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20189 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20190 # is contrary to our usage. Disable this feature.
20191 alias -g '${1+"$@"}'='"$@"'
20192 setopt NO_GLOB_SUBST
20194 case `(set -o) 2>/dev/null` in
20195 *posix*) set -o posix ;;
20204 # Avoid depending upon Character Ranges.
20205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20208 as_cr_digits='0123456789'
20209 as_cr_alnum=$as_cr_Letters$as_cr_digits
20211 # The user is always right.
20212 if test "${PATH_SEPARATOR+set}" != set; then
20213 echo "#! /bin/sh" >conf$$.sh
20214 echo "exit 0" >>conf$$.sh
20216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20224 # Support unset when possible.
20225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20233 # We need space, tab and new line, in precisely that order. Quoting is
20234 # there to prevent editors from complaining about space-tab.
20235 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20236 # splitting by setting IFS to empty value.)
20241 # Find who we are. Look in the path if we contain no directory separator.
20243 *[\\/]* ) as_myself=$0 ;;
20244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20245 for as_dir in $PATH
20248 test -z "$as_dir" && as_dir=.
20249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20255 # We did not find ourselves, most probably we were run as `sh COMMAND'
20256 # in which case we are not to be found in the path.
20257 if test "x$as_myself" = x; then
20260 if test ! -f "$as_myself"; then
20261 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20262 { (exit 1); exit 1; }
20265 # Work around bugs in pre-3.0 UWIN ksh.
20266 for as_var in ENV MAIL MAILPATH
20267 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20275 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20276 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20277 LC_TELEPHONE LC_TIME
20279 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20280 eval $as_var=C; export $as_var
20282 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20286 # Required to use basename.
20287 if expr a : '\(a\)' >/dev/null 2>&1 &&
20288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20295 as_basename=basename
20301 # Name of the executable.
20302 as_me=`$as_basename -- "$0" ||
20303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20304 X"$0" : 'X\(//\)$' \| \
20305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20307 sed '/^.*\/\([^/][^/]*\)\/*$/{
20326 as_lineno_1=$LINENO
20327 as_lineno_2=$LINENO
20328 test "x$as_lineno_1" != "x$as_lineno_2" &&
20329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20331 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20332 # uniformly replaced by the line number. The first 'sed' inserts a
20333 # line-number line after each line using $LINENO; the second 'sed'
20334 # does the real work. The second script uses 'N' to pair each
20335 # line-number line with the line containing $LINENO, and appends
20336 # trailing '-' during substitution so that $LINENO is not a special
20337 # case at line end.
20338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20339 # scripts with optimization help from Paolo Bonzini. Blame Lee
20340 # E. McMahon (1931-1989) for sed's syntax. :-)
20352 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20355 ' >$as_me.lineno &&
20356 chmod +x "$as_me.lineno" ||
20357 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20358 { (exit 1); exit 1; }; }
20360 # Don't try to exec as it changes $[0], causing all sort of problems
20361 # (the dirname of $[0] is not the place where we might find the
20362 # original and so on. Autoconf is especially sensitive to this).
20363 . "./$as_me.lineno"
20364 # Exit status is that of the last command.
20369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20375 ECHO_C= ECHO_N= ECHO_T=
20376 case `echo -n x` in
20378 case `echo 'x\c'` in
20379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20386 if expr a : '\(a\)' >/dev/null 2>&1 &&
20387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20393 rm -f conf$$ conf$$.exe conf$$.file
20394 if test -d conf$$.dir; then
20395 rm -f conf$$.dir/conf$$.file
20401 if ln -s conf$$.file conf$$ 2>/dev/null; then
20403 # ... but there are two gotchas:
20404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20406 # In both cases, we have to default to `cp -p'.
20407 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20409 elif ln conf$$.file conf$$ 2>/dev/null; then
20414 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20415 rmdir conf$$.dir 2>/dev/null
20417 if mkdir -p . 2>/dev/null; then
20420 test -d ./-p && rmdir ./-p
20424 if test -x / >/dev/null 2>&1; then
20425 as_test_x='test -x'
20427 if ls -dL / >/dev/null 2>&1; then
20434 if test -d "$1"; then
20440 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20441 ???[sx]*):;;*)false;;esac;fi
20445 as_executable_p=$as_test_x
20447 # Sed expression to map a string onto a valid CPP name.
20448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20450 # Sed expression to map a string onto a valid variable name.
20451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20456 # Save the log message, to keep $[0] and so on meaningful, and to
20457 # report actual input values of CONFIG_FILES etc. instead of their
20458 # values after options handling.
20460 This file was extended by ldapcpplib $as_me 0.0.5, which was
20461 generated by GNU Autoconf 2.61. Invocation command line was
20463 CONFIG_FILES = $CONFIG_FILES
20464 CONFIG_HEADERS = $CONFIG_HEADERS
20465 CONFIG_LINKS = $CONFIG_LINKS
20466 CONFIG_COMMANDS = $CONFIG_COMMANDS
20469 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20474 cat >>$CONFIG_STATUS <<_ACEOF
20475 # Files that config.status was made for.
20476 config_files="$ac_config_files"
20477 config_headers="$ac_config_headers"
20478 config_commands="$ac_config_commands"
20482 cat >>$CONFIG_STATUS <<\_ACEOF
20484 \`$as_me' instantiates files from templates according to the
20485 current configuration.
20487 Usage: $0 [OPTIONS] [FILE]...
20489 -h, --help print this help, then exit
20490 -V, --version print version number and configuration settings, then exit
20491 -q, --quiet do not print progress messages
20492 -d, --debug don't remove temporary files
20493 --recheck update $as_me by reconfiguring in the same conditions
20494 --file=FILE[:TEMPLATE]
20495 instantiate the configuration file FILE
20496 --header=FILE[:TEMPLATE]
20497 instantiate the configuration header FILE
20499 Configuration files:
20502 Configuration headers:
20505 Configuration commands:
20508 Report bugs to <bug-autoconf@gnu.org>."
20511 cat >>$CONFIG_STATUS <<_ACEOF
20513 ldapcpplib config.status 0.0.5
20514 configured by $0, generated by GNU Autoconf 2.61,
20515 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20517 Copyright (C) 2006 Free Software Foundation, Inc.
20518 This config.status script is free software; the Free Software Foundation
20519 gives unlimited permission to copy, distribute and modify it."
20527 cat >>$CONFIG_STATUS <<\_ACEOF
20528 # If no file are specified by the user, then we need to provide default
20529 # value. By we need to know if files were specified by the user.
20535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20547 # Handling of the options.
20548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20550 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20551 echo "$ac_cs_version"; exit ;;
20552 --debug | --debu | --deb | --de | --d | -d )
20554 --file | --fil | --fi | --f )
20556 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20557 ac_need_defaults=false;;
20558 --header | --heade | --head | --hea )
20560 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20561 ac_need_defaults=false;;
20563 # Conflict between --help and --header
20564 { echo "$as_me: error: ambiguous option: $1
20565 Try \`$0 --help' for more information." >&2
20566 { (exit 1); exit 1; }; };;
20567 --help | --hel | -h )
20568 echo "$ac_cs_usage"; exit ;;
20569 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20570 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20573 # This is an error.
20574 -*) { echo "$as_me: error: unrecognized option: $1
20575 Try \`$0 --help' for more information." >&2
20576 { (exit 1); exit 1; }; } ;;
20578 *) ac_config_targets="$ac_config_targets $1"
20579 ac_need_defaults=false ;;
20585 ac_configure_extra_args=
20587 if $ac_cs_silent; then
20589 ac_configure_extra_args="$ac_configure_extra_args --silent"
20593 cat >>$CONFIG_STATUS <<_ACEOF
20594 if \$ac_cs_recheck; then
20595 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20596 CONFIG_SHELL=$SHELL
20597 export CONFIG_SHELL
20598 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20602 cat >>$CONFIG_STATUS <<\_ACEOF
20606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20607 ## Running $as_me. ##
20613 cat >>$CONFIG_STATUS <<_ACEOF
20617 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20621 cat >>$CONFIG_STATUS <<\_ACEOF
20623 # Handling of arguments.
20624 for ac_config_target in $ac_config_targets
20626 case $ac_config_target in
20627 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20628 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20630 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20631 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20633 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20634 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20635 { (exit 1); exit 1; }; };;
20640 # If the user did not use the arguments to specify the items to instantiate,
20641 # then the envvar interface is used. Set only those that are not.
20642 # We use the long form for the default assignment because of an extremely
20643 # bizarre bug on SunOS 4.1.3.
20644 if $ac_need_defaults; then
20645 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20646 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20650 # Have a temporary directory for convenience. Make it in the build tree
20651 # simply because there is no reason against having it here, and in addition,
20652 # creating and moving files from /tmp can sometimes cause problems.
20653 # Hook for its removal unless debugging.
20654 # Note that there is a small window in which the directory will not be cleaned:
20655 # after its creation but before its name has been assigned to `$tmp'.
20659 trap 'exit_status=$?
20660 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20662 trap '{ (exit 1); exit 1; }' 1 2 13 15
20664 # Create a (secure) tmp directory for tmp files.
20667 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20668 test -n "$tmp" && test -d "$tmp"
20671 tmp=./conf$$-$RANDOM
20672 (umask 077 && mkdir "$tmp")
20675 echo "$me: cannot create a temporary directory in ." >&2
20676 { (exit 1); exit 1; }
20680 # Set up the sed scripts for CONFIG_FILES section.
20683 # No need to generate the scripts if there are no CONFIG_FILES.
20684 # This happens for instance when ./config.status config.h
20685 if test -n "$CONFIG_FILES"; then
20692 for ac_last_try in false false false false false :; do
20693 cat >conf$$subs.sed <<_ACEOF
20694 SHELL!$SHELL$ac_delim
20695 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20696 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20697 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20698 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20699 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20700 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20701 exec_prefix!$exec_prefix$ac_delim
20702 prefix!$prefix$ac_delim
20703 program_transform_name!$program_transform_name$ac_delim
20704 bindir!$bindir$ac_delim
20705 sbindir!$sbindir$ac_delim
20706 libexecdir!$libexecdir$ac_delim
20707 datarootdir!$datarootdir$ac_delim
20708 datadir!$datadir$ac_delim
20709 sysconfdir!$sysconfdir$ac_delim
20710 sharedstatedir!$sharedstatedir$ac_delim
20711 localstatedir!$localstatedir$ac_delim
20712 includedir!$includedir$ac_delim
20713 oldincludedir!$oldincludedir$ac_delim
20714 docdir!$docdir$ac_delim
20715 infodir!$infodir$ac_delim
20716 htmldir!$htmldir$ac_delim
20717 dvidir!$dvidir$ac_delim
20718 pdfdir!$pdfdir$ac_delim
20719 psdir!$psdir$ac_delim
20720 libdir!$libdir$ac_delim
20721 localedir!$localedir$ac_delim
20722 mandir!$mandir$ac_delim
20723 DEFS!$DEFS$ac_delim
20724 ECHO_C!$ECHO_C$ac_delim
20725 ECHO_N!$ECHO_N$ac_delim
20726 ECHO_T!$ECHO_T$ac_delim
20727 LIBS!$LIBS$ac_delim
20728 build_alias!$build_alias$ac_delim
20729 host_alias!$host_alias$ac_delim
20730 target_alias!$target_alias$ac_delim
20731 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20732 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20733 INSTALL_DATA!$INSTALL_DATA$ac_delim
20734 am__isrc!$am__isrc$ac_delim
20735 CYGPATH_W!$CYGPATH_W$ac_delim
20736 PACKAGE!$PACKAGE$ac_delim
20737 VERSION!$VERSION$ac_delim
20738 ACLOCAL!$ACLOCAL$ac_delim
20739 AUTOCONF!$AUTOCONF$ac_delim
20740 AUTOMAKE!$AUTOMAKE$ac_delim
20741 AUTOHEADER!$AUTOHEADER$ac_delim
20742 MAKEINFO!$MAKEINFO$ac_delim
20743 install_sh!$install_sh$ac_delim
20744 STRIP!$STRIP$ac_delim
20745 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20746 mkdir_p!$mkdir_p$ac_delim
20748 SET_MAKE!$SET_MAKE$ac_delim
20749 am__leading_dot!$am__leading_dot$ac_delim
20750 AMTAR!$AMTAR$ac_delim
20751 am__tar!$am__tar$ac_delim
20752 am__untar!$am__untar$ac_delim
20754 CXXFLAGS!$CXXFLAGS$ac_delim
20755 LDFLAGS!$LDFLAGS$ac_delim
20756 CPPFLAGS!$CPPFLAGS$ac_delim
20757 ac_ct_CXX!$ac_ct_CXX$ac_delim
20758 EXEEXT!$EXEEXT$ac_delim
20759 OBJEXT!$OBJEXT$ac_delim
20760 DEPDIR!$DEPDIR$ac_delim
20761 am__include!$am__include$ac_delim
20762 am__quote!$am__quote$ac_delim
20763 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20764 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20765 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20766 CXXDEPMODE!$CXXDEPMODE$ac_delim
20767 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20768 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20769 build!$build$ac_delim
20770 build_cpu!$build_cpu$ac_delim
20771 build_vendor!$build_vendor$ac_delim
20772 build_os!$build_os$ac_delim
20773 host!$host$ac_delim
20774 host_cpu!$host_cpu$ac_delim
20775 host_vendor!$host_vendor$ac_delim
20776 host_os!$host_os$ac_delim
20778 CFLAGS!$CFLAGS$ac_delim
20779 ac_ct_CC!$ac_ct_CC$ac_delim
20780 CCDEPMODE!$CCDEPMODE$ac_delim
20781 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20782 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20784 GREP!$GREP$ac_delim
20785 EGREP!$EGREP$ac_delim
20786 LN_S!$LN_S$ac_delim
20787 ECHO!$ECHO$ac_delim
20789 RANLIB!$RANLIB$ac_delim
20793 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20795 elif $ac_last_try; then
20796 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20797 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20798 { (exit 1); exit 1; }; }
20800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20804 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20805 if test -n "$ac_eof"; then
20806 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20807 ac_eof=`expr $ac_eof + 1`
20810 cat >>$CONFIG_STATUS <<_ACEOF
20811 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20815 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20816 s/^/s,@/; s/!/@,|#_!!_#|/
20819 s/'"$ac_delim"'$/,g/; t
20821 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20822 ' >>$CONFIG_STATUS <conf$$subs.sed
20823 rm -f conf$$subs.sed
20824 cat >>$CONFIG_STATUS <<_ACEOF
20830 for ac_last_try in false false false false false :; do
20831 cat >conf$$subs.sed <<_ACEOF
20832 CXXCPP!$CXXCPP$ac_delim
20834 FFLAGS!$FFLAGS$ac_delim
20835 ac_ct_F77!$ac_ct_F77$ac_delim
20836 LIBTOOL!$LIBTOOL$ac_delim
20837 LIBOBJS!$LIBOBJS$ac_delim
20838 LTLIBOBJS!$LTLIBOBJS$ac_delim
20841 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
20843 elif $ac_last_try; then
20844 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20845 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20846 { (exit 1); exit 1; }; }
20848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20852 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20853 if test -n "$ac_eof"; then
20854 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20855 ac_eof=`expr $ac_eof + 1`
20858 cat >>$CONFIG_STATUS <<_ACEOF
20859 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20863 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20864 s/^/s,@/; s/!/@,|#_!!_#|/
20867 s/'"$ac_delim"'$/,g/; t
20869 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20870 ' >>$CONFIG_STATUS <conf$$subs.sed
20871 rm -f conf$$subs.sed
20872 cat >>$CONFIG_STATUS <<_ACEOF
20879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20881 # trailing colons and then remove the whole line if VPATH becomes empty
20882 # (actually we leave an empty line to preserve line numbers).
20883 if test "x$srcdir" = x.; then
20884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20885 s/:*\$(srcdir):*/:/
20886 s/:*\${srcdir}:*/:/
20888 s/^\([^=]*=[ ]*\):*/\1/
20894 cat >>$CONFIG_STATUS <<\_ACEOF
20895 fi # test -n "$CONFIG_FILES"
20898 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20901 :[FHLC]) ac_mode=$ac_tag; continue;;
20903 case $ac_mode$ac_tag in
20905 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20906 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20907 { (exit 1); exit 1; }; };;
20908 :[FH]-) ac_tag=-:-;;
20909 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20926 -) ac_f="$tmp/stdin";;
20927 *) # Look for the file first in the build tree, then in the source tree
20928 # (if the path is not absolute). The absolute path cannot be DOS-style,
20929 # because $ac_f cannot contain `:'.
20933 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20935 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20936 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20937 { (exit 1); exit 1; }; };;
20939 ac_file_inputs="$ac_file_inputs $ac_f"
20942 # Let's still pretend it is `configure' which instantiates (i.e., don't
20943 # use $as_me), people would be surprised to read:
20944 # /* config.h. Generated by config.status. */
20945 configure_input="Generated from "`IFS=:
20946 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20947 if test x"$ac_file" != x-; then
20948 configure_input="$ac_file. $configure_input"
20949 { echo "$as_me:$LINENO: creating $ac_file" >&5
20950 echo "$as_me: creating $ac_file" >&6;}
20954 *:-:* | *:-) cat >"$tmp/stdin";;
20959 ac_dir=`$as_dirname -- "$ac_file" ||
20960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20961 X"$ac_file" : 'X\(//\)[^/]' \| \
20962 X"$ac_file" : 'X\(//\)$' \| \
20963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20969 /^X\(\/\/\)[^/].*/{
20984 -*) as_dir=./$as_dir;;
20986 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20990 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20991 *) as_qdir=$as_dir;;
20993 as_dirs="'$as_qdir' $as_dirs"
20994 as_dir=`$as_dirname -- "$as_dir" ||
20995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$as_dir" : 'X\(//\)[^/]' \| \
20997 X"$as_dir" : 'X\(//\)$' \| \
20998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21004 /^X\(\/\/\)[^/].*/{
21017 test -d "$as_dir" && break
21019 test -z "$as_dirs" || eval "mkdir $as_dirs"
21020 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21021 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21022 { (exit 1); exit 1; }; }; }
21026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21028 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21029 # A ".." for each directory in $ac_dir_suffix.
21030 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21031 case $ac_top_builddir_sub in
21032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21036 ac_abs_top_builddir=$ac_pwd
21037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21038 # for backward compatibility:
21039 ac_top_builddir=$ac_top_build_prefix
21042 .) # We are building in place.
21044 ac_top_srcdir=$ac_top_builddir_sub
21045 ac_abs_top_srcdir=$ac_pwd ;;
21046 [\\/]* | ?:[\\/]* ) # Absolute name.
21047 ac_srcdir=$srcdir$ac_dir_suffix;
21048 ac_top_srcdir=$srcdir
21049 ac_abs_top_srcdir=$srcdir ;;
21050 *) # Relative name.
21051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21052 ac_top_srcdir=$ac_top_build_prefix$srcdir
21053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21066 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21068 ac_MKDIR_P=$MKDIR_P
21070 [\\/$]* | ?:[\\/]* ) ;;
21071 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21075 cat >>$CONFIG_STATUS <<\_ACEOF
21076 # If the template does not know about datarootdir, expand it.
21077 # FIXME: This hack should be removed a few years after 2.60.
21078 ac_datarootdir_hack=; ac_datarootdir_seen=
21080 case `sed -n '/datarootdir/ {
21089 ' $ac_file_inputs` in
21090 *datarootdir*) ac_datarootdir_seen=yes;;
21091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21092 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21093 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21095 cat >>$CONFIG_STATUS <<_ACEOF
21096 ac_datarootdir_hack='
21097 s&@datadir@&$datadir&g
21098 s&@docdir@&$docdir&g
21099 s&@infodir@&$infodir&g
21100 s&@localedir@&$localedir&g
21101 s&@mandir@&$mandir&g
21102 s&\\\${datarootdir}&$datarootdir&g' ;;
21106 # Neutralize VPATH when `$srcdir' = `.'.
21107 # Shell code in configure.ac might set extrasub.
21108 # FIXME: do we really want to maintain this feature?
21109 cat >>$CONFIG_STATUS <<_ACEOF
21113 cat >>$CONFIG_STATUS <<\_ACEOF
21115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21116 s&@configure_input@&$configure_input&;t t
21117 s&@top_builddir@&$ac_top_builddir_sub&;t t
21118 s&@srcdir@&$ac_srcdir&;t t
21119 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21120 s&@top_srcdir@&$ac_top_srcdir&;t t
21121 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21122 s&@builddir@&$ac_builddir&;t t
21123 s&@abs_builddir@&$ac_abs_builddir&;t t
21124 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21125 s&@INSTALL@&$ac_INSTALL&;t t
21126 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21127 $ac_datarootdir_hack
21128 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21131 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21133 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21134 which seems to be undefined. Please make sure it is defined." >&5
21135 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21136 which seems to be undefined. Please make sure it is defined." >&2;}
21140 -) cat "$tmp/out"; rm -f "$tmp/out";;
21141 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21150 # Transform confdefs.h into a sed script `conftest.defines', that
21151 # substitutes the proper values into config.h.in to produce config.h.
21152 rm -f conftest.defines conftest.tail
21153 # First, append a space to every undef/define line, to ease matching.
21154 echo 's/$/ /' >conftest.defines
21155 # Then, protect against being on the right side of a sed subst, or in
21156 # an unquoted here document, in config.status. If some macros were
21157 # called several times there might be several #defines for the same
21158 # symbol, which is useless. But do not sort them, since the last
21159 # AC_DEFINE must be honored.
21160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21161 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21162 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21163 # PARAMS is the parameter list in the macro definition--in most cases, it's
21164 # just an empty string.
21165 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21166 ac_dB='\\)[ (].*,\\1define\\2'
21174 s/^[ ]*#[ ]*define[ ][ ]*//
21179 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21180 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21181 ' >>conftest.defines
21183 # Remove the space that was appended to ease matching.
21184 # Then replace #undef with comments. This is necessary, for
21185 # example, in the case of _POSIX_SOURCE, which is predefined and required
21186 # on some systems where configure will not decide to define it.
21187 # (The regexp can be short, since the line contains either #define or #undef.)
21189 s,^[ #]*u.*,/* & */,' >>conftest.defines
21191 # Break up conftest.defines:
21192 ac_max_sed_lines=50
21194 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21195 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21196 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21198 ac_in='$ac_file_inputs'
21199 ac_out='"$tmp/out1"'
21200 ac_nxt='"$tmp/out2"'
21204 # Write a here document:
21205 cat >>$CONFIG_STATUS <<_ACEOF
21206 # First, check the format of the line:
21207 cat >"\$tmp/defines.sed" <<\\CEOF
21208 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21209 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21213 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21215 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21216 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21217 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21218 grep . conftest.tail >/dev/null || break
21219 rm -f conftest.defines
21220 mv conftest.tail conftest.defines
21222 rm -f conftest.defines conftest.tail
21224 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21225 cat >>$CONFIG_STATUS <<\_ACEOF
21226 if test x"$ac_file" != x-; then
21227 echo "/* $configure_input */" >"$tmp/config.h"
21228 cat "$ac_result" >>"$tmp/config.h"
21229 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21230 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21231 echo "$as_me: $ac_file is unchanged" >&6;}
21234 mv "$tmp/config.h" $ac_file
21237 echo "/* $configure_input */"
21241 # Compute $ac_file's index in $config_headers.
21243 for _am_header in $config_headers :; do
21244 case $_am_header in
21245 $ac_file | $ac_file:* )
21248 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21251 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21252 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21253 X$ac_file : 'X\(//\)[^/]' \| \
21254 X$ac_file : 'X\(//\)$' \| \
21255 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21261 /^X\(\/\/\)[^/].*/{
21273 s/.*/./; q'`/stamp-h$_am_stamp_count
21276 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21277 echo "$as_me: executing $ac_file commands" >&6;}
21282 case $ac_file$ac_mode in
21283 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21284 # Strip MF so we end up with the name of the file.
21285 mf=`echo "$mf" | sed -e 's/:.*$//'`
21286 # Check whether this is an Automake generated Makefile or not.
21287 # We used to match only the files named `Makefile.in', but
21288 # some people rename them; so instead we look at the file content.
21289 # Grep'ing the first line is not enough: some people post-process
21290 # each Makefile.in and add a new line on top of each file to say so.
21291 # Grep'ing the whole file is not good either: AIX grep has a line
21292 # limit of 2048, but all sed's we know have understand at least 4000.
21293 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21294 dirpart=`$as_dirname -- "$mf" ||
21295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21296 X"$mf" : 'X\(//\)[^/]' \| \
21297 X"$mf" : 'X\(//\)$' \| \
21298 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21304 /^X\(\/\/\)[^/].*/{
21320 # Extract the definition of DEPDIR, am__include, and am__quote
21321 # from the Makefile without running `make'.
21322 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21323 test -z "$DEPDIR" && continue
21324 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21325 test -z "am__include" && continue
21326 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21327 # When using ansi2knr, U may be empty or an underscore; expand it
21328 U=`sed -n 's/^U = //p' < "$mf"`
21329 # Find all dependency output files, they are included files with
21330 # $(DEPDIR) in their names. We invoke sed twice because it is the
21331 # simplest approach to changing $(DEPDIR) to its actual value in the
21333 for file in `sed -n "
21334 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21335 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21336 # Make sure the directory exists.
21337 test -f "$dirpart/$file" && continue
21338 fdir=`$as_dirname -- "$file" ||
21339 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21340 X"$file" : 'X\(//\)[^/]' \| \
21341 X"$file" : 'X\(//\)$' \| \
21342 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21348 /^X\(\/\/\)[^/].*/{
21361 { as_dir=$dirpart/$fdir
21363 -*) as_dir=./$as_dir;;
21365 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21369 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21370 *) as_qdir=$as_dir;;
21372 as_dirs="'$as_qdir' $as_dirs"
21373 as_dir=`$as_dirname -- "$as_dir" ||
21374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21375 X"$as_dir" : 'X\(//\)[^/]' \| \
21376 X"$as_dir" : 'X\(//\)$' \| \
21377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21383 /^X\(\/\/\)[^/].*/{
21396 test -d "$as_dir" && break
21398 test -z "$as_dirs" || eval "mkdir $as_dirs"
21399 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21400 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21401 { (exit 1); exit 1; }; }; }
21402 # echo "creating $dirpart/$file"
21403 echo '# dummy' > "$dirpart/$file"
21412 { (exit 0); exit 0; }
21414 chmod +x $CONFIG_STATUS
21415 ac_clean_files=$ac_clean_files_save
21418 # configure is writing to config.log, and then calls config.status.
21419 # config.status does its own redirection, appending to config.log.
21420 # Unfortunately, on DOS this fails, as config.log is still kept open
21421 # by configure, so config.status won't be able to write to it; its
21422 # output is simply discarded. So we exec the FD to /dev/null,
21423 # effectively closing config.log, so it can be properly (re)opened and
21424 # appended to by config.status. When coming back to configure, we
21425 # need to make the FD available again.
21426 if test "$no_create" != yes; then
21428 ac_config_status_args=
21429 test "$silent" = yes &&
21430 ac_config_status_args="$ac_config_status_args --quiet"
21432 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21434 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21435 # would make configure fail if this is the last instruction.
21436 $ac_cs_success || { (exit 1); exit 1; }