2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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.
733 ac_unique_file="tools/smilint.c"
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
896 ac_precious_vars='build_alias
913 # Initialize some variables set by options.
915 ac_init_version=false
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name=s,x,x,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE}'
950 infodir='${datarootdir}/info'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
999 cache_file=config.cache ;;
1001 -datadir | --datadir | --datadi | --datad)
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1013 -disable-* | --disable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_$ac_feature=\$ac_optarg ;;
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 htmldir=$ac_optarg ;;
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1084 -libdir | --libdir | --libdi | --libd)
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1175 -psdir | --psdir | --psdi | --psd | --ps)
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 sbindir=$ac_optarg ;;
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 sharedstatedir=$ac_optarg ;;
1201 -site | --site | --sit)
1203 -site=* | --site=* | --sit=*)
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1230 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=\$ac_optarg ;;
1238 -without-* | --without-*)
1239 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_$ac_package=no ;;
1248 # Obsolete; use --with-x.
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1265 -*) { echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267 { (exit 1); exit 1; }; }
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275 { (exit 1); exit 1; }; }
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 { echo "$as_me: error: missing argument to $ac_option" >&2
1293 { (exit 1); exit 1; }; }
1296 # Be sure to have absolute directory names.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { echo "$as_me: error: Working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$0" ||
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$0" : 'X\(//\)[^/]' \| \
1352 X"$0" : 'X\(//\)$' \| \
1353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 if test -n "$ac_init_help"; then
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --enable-dmalloc enable dmalloc debugging (www.dmalloc.com)
1491 --disable-smi disable SMIv1/v2 parser support
1492 --enable-sming enable SMIng parser support
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-cflags=FLAGS use FLAGS for CFLAGS
1503 --with-cc=CC use CC as the C compiler
1504 --with-mibdir=DIR use DIR to install libsmi MIB modules DATADIR/mibs
1505 --with-pibdir=DIR use DIR to install libsmi PIB modules DATADIR/pibs
1506 --with-smipath=DIR:DIR default DIRs to search for MIB/PIB modules MIBDIR...
1507 --with-pathseparator=C use C as the path separator : on UNIX, ; on WIN32
1508 --with-dirseparator=C use C as the dir separator / on UNIX, \\ on WIN32
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-pic try to use only PIC/non-PIC objects [default=use
1512 --with-tags[=TAGS] include additional configurations [automatic]
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 CXXCPP C++ preprocessor
1526 F77 Fortran 77 compiler command
1527 FFLAGS Fortran 77 compiler flags
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" || continue
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1559 .) # We are building in place.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1583 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1593 generated by GNU Autoconf 2.61
1595 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1596 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1602 cat >config.log <<_ACEOF
1603 This file contains any messages produced by compilers while
1604 running configure, to aid debugging if configure makes a mistake.
1606 It was created by $as_me, which was
1607 generated by GNU Autoconf 2.61. Invocation command line was
1619 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1625 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1628 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1629 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1630 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1632 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1633 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1634 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 echo "PATH: $as_dir"
1659 # Keep a trace of the command line.
1660 # Strip out --no-create and --no-recursion so they do not pile up.
1661 # Strip out --silent because we don't want to record it for future runs.
1662 # Also quote any args containing shell meta-characters.
1663 # Make two passes to allow for proper duplicate-argument suppression.
1667 ac_must_keep_next=false
1673 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675 | -silent | --silent | --silen | --sile | --sil)
1678 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1681 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1683 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684 if test $ac_must_keep_next = true; then
1685 ac_must_keep_next=false # Got value, back to normal.
1688 *=* | --config-cache | -C | -disable-* | --disable-* \
1689 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691 | -with-* | --with-* | -without-* | --without-* | --x)
1692 case "$ac_configure_args0 " in
1693 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1696 -* ) ac_must_keep_next=true ;;
1699 ac_configure_args="$ac_configure_args '$ac_arg'"
1704 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1707 # When interrupted or exit'd, cleanup temporary files, and complete
1708 # config.log. We remove comments because anyway the quotes in there
1709 # would cause problems or look ugly.
1710 # WARNING: Use '\'' to represent an apostrophe within the trap.
1711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712 trap 'exit_status=$?
1713 # Save into config.log some information that might help in debugging.
1718 ## ---------------- ##
1719 ## Cache variables. ##
1720 ## ---------------- ##
1723 # The following way of writing the cache mishandles newlines in values,
1725 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726 eval ac_val=\$$ac_var
1730 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1734 _ | IFS | as_nl) ;; #(
1735 *) $as_unset $ac_var ;;
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 echo "$ac_var='\''$ac_val'\''"
1770 if test -n "$ac_subst_files"; then
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1798 test "$ac_signal" != 0 &&
1799 echo "$as_me: caught signal $ac_signal"
1800 echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844 set x "$CONFIG_SITE"
1845 elif test "x$prefix" != xNONE; then
1846 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1848 set x "$ac_default_prefix/share/config.site" \
1849 "$ac_default_prefix/etc/config.site"
1854 if test -r "$ac_site_file"; then
1855 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856 echo "$as_me: loading site script $ac_site_file" >&6;}
1857 sed 's/^/| /' "$ac_site_file" >&5
1862 if test -r "$cache_file"; then
1863 # Some versions of bash will fail to source /dev/null (special
1864 # files actually), so we avoid doing that.
1865 if test -f "$cache_file"; then
1866 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867 echo "$as_me: loading cache $cache_file" >&6;}
1869 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870 *) . "./$cache_file";;
1874 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875 echo "$as_me: creating cache $cache_file" >&6;}
1879 # Check that the precious variables saved in the cache have kept the same
1881 ac_cache_corrupted=false
1882 for ac_var in $ac_precious_vars; do
1883 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1884 eval ac_new_set=\$ac_env_${ac_var}_set
1885 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1886 eval ac_new_val=\$ac_env_${ac_var}_value
1887 case $ac_old_set,$ac_new_set in
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1893 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1895 ac_cache_corrupted=: ;;
1898 if test "x$ac_old_val" != "x$ac_new_val"; then
1899 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1902 echo "$as_me: former value: $ac_old_val" >&2;}
1903 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1904 echo "$as_me: current value: $ac_new_val" >&2;}
1905 ac_cache_corrupted=:
1908 # Pass precious variables to config.status.
1909 if test "$ac_new_set" = set; then
1911 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 *) ac_arg=$ac_var=$ac_new_val ;;
1914 case " $ac_configure_args " in
1915 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1916 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920 if $ac_cache_corrupted; then
1921 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1922 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1923 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1924 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1925 { (exit 1); exit 1; }; }
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 VERSION_STRING="$LIBSMI_MAJOR.$LIBSMI_MINOR.$LIBSMI_PATCHLEVEL"
1960 VERSION_LIBTOOL="$LIBTOOL_VERSION:$LIBTOOL_REVISION:$LIBTOOL_AGE"
1962 am__api_version='1.10'
1965 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966 if test -f "$ac_dir/install-sh"; then
1968 ac_install_sh="$ac_aux_dir/install-sh -c"
1970 elif test -f "$ac_dir/install.sh"; then
1972 ac_install_sh="$ac_aux_dir/install.sh -c"
1974 elif test -f "$ac_dir/shtool"; then
1976 ac_install_sh="$ac_aux_dir/shtool install -c"
1980 if test -z "$ac_aux_dir"; then
1981 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983 { (exit 1); exit 1; }; }
1986 # These three variables are undocumented and unsupported,
1987 # and are intended to be withdrawn in a future Autoconf release.
1988 # They can cause serious problems if a builder's source tree is in a directory
1989 # whose full name contains unusual characters.
1990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1995 # Find a good install program. We prefer a C program (faster),
1996 # so one script is as good as another. But avoid the broken or
1997 # incompatible versions:
1998 # SysV /etc/install, /usr/sbin/install
1999 # SunOS /usr/etc/install
2000 # IRIX /sbin/install
2002 # AmigaOS /C/install, which installs bootblocks on floppy discs
2003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2006 # OS/2's system install, which has a completely different semantic
2007 # ./install, which can be erroneously created by make from ./install.sh.
2008 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2009 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2010 if test -z "$INSTALL"; then
2011 if test "${ac_cv_path_install+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 # Account for people who put trailing slashes in PATH elements.
2021 ./ | .// | /cC/* | \
2022 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2023 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2026 # OSF1 and SCO ODT 3.0 have their own names for install.
2027 # Don't use installbsd from OSF since it installs stuff as root
2029 for ac_prog in ginstall scoinst install; do
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2032 if test $ac_prog = install &&
2033 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2034 # AIX install. It has an incompatible calling convention.
2036 elif test $ac_prog = install &&
2037 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2038 # program-specific install script used by HP pwplus--don't use.
2041 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054 if test "${ac_cv_path_install+set}" = set; then
2055 INSTALL=$ac_cv_path_install
2057 # As a last resort, use the slow shell script. Don't cache a
2058 # value for INSTALL within a source directory, because that will
2059 # break other packages using the cache if that directory is
2060 # removed, or if the value is a relative name.
2061 INSTALL=$ac_install_sh
2064 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2065 echo "${ECHO_T}$INSTALL" >&6; }
2067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2068 # It thinks the first close brace ends the variable substitution.
2069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2075 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2076 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2079 echo timestamp > conftest.file
2080 # Do `set' in a subshell so we don't clobber the current shell's
2081 # arguments. Must try -L first in case configure is actually a
2082 # symlink; some systems play weird games with the mod time of symlinks
2083 # (eg FreeBSD returns the mod time of the symlink's containing
2086 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2087 if test "$*" = "X"; then
2089 set X `ls -t $srcdir/configure conftest.file`
2092 if test "$*" != "X $srcdir/configure conftest.file" \
2093 && test "$*" != "X conftest.file $srcdir/configure"; then
2095 # If neither matched, then we have a broken ls. This can happen
2096 # if, for instance, CONFIG_SHELL is bash and it inherits a
2097 # broken ls alias from the environment. This has actually
2098 # happened. Such a system could not be considered "sane".
2099 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2100 alias in your environment" >&5
2101 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2102 alias in your environment" >&2;}
2103 { (exit 1); exit 1; }; }
2106 test "$2" = conftest.file
2112 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2113 Check your system clock" >&5
2114 echo "$as_me: error: newly created file is older than distributed files!
2115 Check your system clock" >&2;}
2116 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: yes" >&5
2119 echo "${ECHO_T}yes" >&6; }
2120 test "$program_prefix" != NONE &&
2121 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2122 # Use a double $ so make ignores it.
2123 test "$program_suffix" != NONE &&
2124 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2125 # Double any \ or $. echo might interpret backslashes.
2126 # By default was `s,x,x', remove it if useless.
2127 cat <<\_ACEOF >conftest.sed
2128 s/[\\$]/&&/g;s/;s,x,x,$//
2130 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2133 # expand $ac_aux_dir to an absolute path
2134 am_aux_dir=`cd $ac_aux_dir && pwd`
2136 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2137 # Use eval to expand $SHELL
2138 if eval "$MISSING --run true"; then
2139 am_missing_run="$MISSING --run "
2142 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2143 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2146 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2147 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2148 if test -z "$MKDIR_P"; then
2149 if test "${ac_cv_path_mkdir+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2156 test -z "$as_dir" && as_dir=.
2157 for ac_prog in mkdir gmkdir; do
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2160 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2161 'mkdir (GNU coreutils) '* | \
2162 'mkdir (coreutils) '* | \
2163 'mkdir (fileutils) '4.1*)
2164 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2174 if test "${ac_cv_path_mkdir+set}" = set; then
2175 MKDIR_P="$ac_cv_path_mkdir -p"
2177 # As a last resort, use the slow shell script. Don't cache a
2178 # value for MKDIR_P within a source directory, because that will
2179 # break other packages using the cache if that directory is
2180 # removed, or if the value is a relative name.
2181 test -d ./--version && rmdir ./--version
2182 MKDIR_P="$ac_install_sh -d"
2185 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2186 echo "${ECHO_T}$MKDIR_P" >&6; }
2190 [\\/$]* | ?:[\\/]*) ;;
2191 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2194 for ac_prog in gawk mawk nawk awk
2196 # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_AWK+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test -n "$AWK"; then
2204 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213 ac_cv_prog_AWK="$ac_prog"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 if test -n "$AWK"; then
2225 { echo "$as_me:$LINENO: result: $AWK" >&5
2226 echo "${ECHO_T}$AWK" >&6; }
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2233 test -n "$AWK" && break
2236 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2237 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2238 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2239 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 cat >conftest.make <<\_ACEOF
2245 @echo '@@@%%%=$(MAKE)=@@@%%%'
2247 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2248 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2250 eval ac_cv_prog_make_${ac_make}_set=yes;;
2252 eval ac_cv_prog_make_${ac_make}_set=no;;
2256 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2263 SET_MAKE="MAKE=${MAKE-make}"
2266 rm -rf .tst 2>/dev/null
2267 mkdir .tst 2>/dev/null
2268 if test -d .tst; then
2273 rmdir .tst 2>/dev/null
2275 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2276 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2277 # is not polluted with repeated "-I."
2278 am__isrc=' -I$(srcdir)'
2279 # test to see if srcdir already configured
2280 if test -f $srcdir/config.status; then
2281 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2282 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2283 { (exit 1); exit 1; }; }
2287 # test whether we have cygpath
2288 if test -z "$CYGPATH_W"; then
2289 if (cygpath --version) >/dev/null 2>/dev/null; then
2290 CYGPATH_W='cygpath -w'
2297 # Define the identity of the package.
2299 VERSION=$VERSION_STRING
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE "$PACKAGE"
2307 cat >>confdefs.h <<_ACEOF
2308 #define VERSION "$VERSION"
2311 # Some tools Automake needs.
2313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2327 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2329 # Installed binaries are usually stripped using `strip' when the user
2330 # run `make install-strip'. However `strip' might not be the right
2331 # tool to use in cross-compilation environments, therefore Automake
2332 # will honor the `STRIP' environment variable to overrule this program.
2333 if test "$cross_compiling" != no; then
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}strip; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_STRIP+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 STRIP=$ac_cv_prog_STRIP
2363 if test -n "$STRIP"; then
2364 { echo "$as_me:$LINENO: result: $STRIP" >&5
2365 echo "${ECHO_T}$STRIP" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2373 if test -z "$ac_cv_prog_STRIP"; then
2375 # Extract the first word of "strip", so it can be a program name with args.
2376 set dummy strip; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$ac_ct_STRIP"; then
2383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_STRIP="strip"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403 if test -n "$ac_ct_STRIP"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2405 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2411 if test "x$ac_ct_STRIP" = x; then
2414 case $cross_compiling:$ac_tool_warned in
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned=yes ;;
2427 STRIP="$ac_cv_prog_STRIP"
2431 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2433 # We need awk for the "check" target. The system "awk" is bad on
2435 # Always define AMTAR for backward compatibility.
2437 AMTAR=${AMTAR-"${am_missing_run}tar"}
2439 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2445 ac_config_headers="$ac_config_headers config.h"
2449 cat >>confdefs.h <<\_ACEOF
2450 #define MAX_LEX_DEPTH 30
2455 cat >>confdefs.h <<\_ACEOF
2456 #define DEFAULT_ERRORLEVEL 3
2461 # Check whether --with-cflags was given.
2462 if test "${with_cflags+set}" = set; then
2463 withval=$with_cflags; CFLAGS="$withval"
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 if test -n "$CC"; then
2502 { echo "$as_me:$LINENO: result: $CC" >&5
2503 echo "${ECHO_T}$CC" >&6; }
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2511 if test -z "$ac_cv_prog_CC"; then
2513 # Extract the first word of "gcc", so it can be a program name with args.
2514 set dummy gcc; 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_ac_ct_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$ac_ct_CC"; then
2521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541 if test -n "$ac_ct_CC"; then
2542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2543 echo "${ECHO_T}$ac_ct_CC" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2549 if test "x$ac_ct_CC" = x; then
2552 case $cross_compiling:$ac_tool_warned in
2554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet. If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&5
2557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2558 whose name does not start with the host triplet. If you think this
2559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2560 ac_tool_warned=yes ;;
2568 if test -z "$CC"; then
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}cc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_CC="${ac_tool_prefix}cc"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 if test -n "$CC"; then
2599 { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2609 if test -z "$CC"; then
2610 # Extract the first word of "cc", so it can be a program name with args.
2611 set dummy cc; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2629 ac_prog_rejected=yes
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 if test $ac_prog_rejected = yes; then
2641 # We found a bogon in the path, so make sure we never use it.
2642 set dummy $ac_cv_prog_CC
2644 if test $# != 0; then
2645 # We chose a different compiler from the bogus one.
2646 # However, it has the same basename, so the bogon will be chosen
2647 # first if we set CC to just the basename; use the full file name.
2649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2655 if test -n "$CC"; then
2656 { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2665 if test -z "$CC"; then
2666 if test -n "$ac_tool_prefix"; then
2667 for ac_prog in cl.exe
2669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 if test -n "$CC"; then
2698 { echo "$as_me:$LINENO: result: $CC" >&5
2699 echo "${ECHO_T}$CC" >&6; }
2701 { echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6; }
2706 test -n "$CC" && break
2709 if test -z "$CC"; then
2711 for ac_prog in cl.exe
2713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_ac_ct_CC="$ac_prog"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2743 echo "${ECHO_T}$ac_ct_CC" >&6; }
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2750 test -n "$ac_ct_CC" && break
2753 if test "x$ac_ct_CC" = x; then
2756 case $cross_compiling:$ac_tool_warned in
2758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2759 whose name does not start with the host triplet. If you think this
2760 configuration is useful to you, please write to autoconf@gnu.org." >&5
2761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2762 whose name does not start with the host triplet. If you think this
2763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2764 ac_tool_warned=yes ;;
2773 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: no acceptable C compiler found in \$PATH
2776 See \`config.log' for more details." >&2;}
2777 { (exit 1); exit 1; }; }
2779 # Provide some information about the compiler.
2780 echo "$as_me:$LINENO: checking for C compiler version" >&5
2781 ac_compiler=`set X $ac_compile; echo $2`
2782 { (ac_try="$ac_compiler --version >&5"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compiler --version >&5") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }
2792 { (ac_try="$ac_compiler -v >&5"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compiler -v >&5") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }
2802 { (ac_try="$ac_compiler -V >&5"
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_compiler -V >&5") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }
2813 cat >conftest.$ac_ext <<_ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2828 ac_clean_files_save=$ac_clean_files
2829 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2830 # Try to create an executable without -o first, disregard a.out.
2831 # It will help us diagnose broken compilers, and finding out an intuition
2833 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2834 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2835 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2837 # List of possible output files, starting from the most likely.
2838 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2839 # only as a last resort. b.out is created by i960 compilers.
2840 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2842 # The IRIX 6 linker writes into existing files which may not be
2843 # executable, retaining their permissions. Remove them first so a
2844 # subsequent execution test works.
2846 for ac_file in $ac_files
2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2850 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 if { (ac_try="$ac_link_default"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_link_default") 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; then
2865 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2866 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2867 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2868 # so that the user can short-circuit this test for compilers unknown to
2870 for ac_file in $ac_files ''
2872 test -f "$ac_file" || continue
2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2877 # We found the default executable, but exeext='' is most
2881 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2883 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885 # We set ac_cv_exeext here because the later test for it is not
2886 # safe: cross compilers may not add the suffix if given an `-o'
2887 # argument, so we may need to know it at that point already.
2888 # Even if this section looks crufty: it has the advantage of
2895 test "$ac_cv_exeext" = no && ac_cv_exeext=
2901 { echo "$as_me:$LINENO: result: $ac_file" >&5
2902 echo "${ECHO_T}$ac_file" >&6; }
2903 if test -z "$ac_file"; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: C compiler cannot create executables
2910 See \`config.log' for more details." >&2;}
2911 { (exit 77); exit 77; }; }
2914 ac_exeext=$ac_cv_exeext
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2919 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2920 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2921 # If not cross compiling, check that we can run a simple program.
2922 if test "$cross_compiling" != yes; then
2923 if { ac_try='./$ac_file'
2924 { (case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_try") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2935 if test "$cross_compiling" = maybe; then
2938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2939 If you meant to cross compile, use \`--host'.
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: cannot run C compiled programs.
2942 If you meant to cross compile, use \`--host'.
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2948 { echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6; }
2951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2952 ac_clean_files=$ac_clean_files_save
2953 # Check that the compiler produces executables we can run. If not, either
2954 # the compiler is broken, or we cross compile.
2955 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2957 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2958 echo "${ECHO_T}$cross_compiling" >&6; }
2960 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2962 if { (ac_try="$ac_link"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_link") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2974 # work properly (i.e., refer to `conftest.exe'), while it won't with
2976 for ac_file in conftest.exe conftest conftest.*; do
2977 test -f "$ac_file" || continue
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details." >&5
2988 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }
2993 rm -f conftest$ac_cv_exeext
2994 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2995 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2997 rm -f conftest.$ac_ext
2998 EXEEXT=$ac_cv_exeext
3000 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3001 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3002 if test "${ac_cv_objext+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.o conftest.obj
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; then
3031 for ac_file in conftest.o conftest.obj conftest.*; do
3032 test -f "$ac_file" || continue;
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3052 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3053 echo "${ECHO_T}$ac_cv_objext" >&6; }
3054 OBJEXT=$ac_cv_objext
3056 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && {
3093 test -z "$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3108 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3109 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3110 GCC=`test $ac_compiler_gnu = yes && echo yes`
3111 ac_test_CFLAGS=${CFLAGS+set}
3112 ac_save_CFLAGS=$CFLAGS
3113 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_cc_g+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 ac_save_c_werror_flag=$ac_c_werror_flag
3119 ac_c_werror_flag=yes
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_c_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } && {
3228 test -z "$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3259 if test "$GCC" = yes; then
3265 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_cv_prog_cc_c89=no
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3296 s = g (p, va_arg (v,int));
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_c_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3350 ac_cv_prog_cc_c89=$ac_arg
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 rm -f conftest.$ac_ext
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 DEPDIR="${am__leading_dot}deps"
3387 ac_config_commands="$ac_config_commands depfiles"
3390 am_make=${MAKE-make}
3391 cat > confinc << 'END'
3396 # If we don't find an include directive, just comment out the code.
3397 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3398 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3402 # First try GNU make style include.
3403 echo "include confinc" > confmf
3404 # We grep out `Entering directory' and `Leaving directory'
3405 # messages which can occur if `w' ends up in MAKEFLAGS.
3406 # In particular we don't look at `^make:' because GNU make might
3407 # be invoked under some other name (usually "gmake"), in which
3408 # case it prints its new name instead of `make'.
3409 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3414 # Now try BSD make style include.
3415 if test "$am__include" = "#"; then
3416 echo '.include "confinc"' > confmf
3417 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3418 am__include=.include
3425 { echo "$as_me:$LINENO: result: $_am_result" >&5
3426 echo "${ECHO_T}$_am_result" >&6; }
3427 rm -f confinc confmf
3429 # Check whether --enable-dependency-tracking was given.
3430 if test "${enable_dependency_tracking+set}" = set; then
3431 enableval=$enable_dependency_tracking;
3434 if test "x$enable_dependency_tracking" != xno; then
3435 am_depcomp="$ac_aux_dir/depcomp"
3438 if test "x$enable_dependency_tracking" != xno; then
3448 depcc="$CC" am_compiler_list=
3450 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3451 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3452 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3456 # We make a subdir and do the tests there. Otherwise we can end up
3457 # making bogus files that we don't know about and never remove. For
3458 # instance it was reported that on HP-UX the gcc test will end up
3459 # making a dummy file named `D' -- because `-MD' means `put the output
3462 # Copy depcomp to subdir because otherwise we won't find it if we're
3463 # using a relative directory.
3464 cp "$am_depcomp" conftest.dir
3466 # We will build objects and dependencies in a subdirectory because
3467 # it helps to detect inapplicable dependency modes. For instance
3468 # both Tru64's cc and ICC support -MD to output dependencies as a
3469 # side effect of compilation, but ICC will put the dependencies in
3470 # the current directory while Tru64 will put them in the object
3474 am_cv_CC_dependencies_compiler_type=none
3475 if test "$am_compiler_list" = ""; then
3476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3478 for depmode in $am_compiler_list; do
3479 # Setup a source with many dependencies, because some compilers
3480 # like to wrap large dependency lists on column 80 (with \), and
3481 # we should not choose a depcomp mode which is confused by this.
3483 # We need to recreate these files for each test, as the compiler may
3484 # overwrite some of them when testing with obscure command lines.
3485 # This happens at least with the AIX C compiler.
3487 for i in 1 2 3 4 5 6; do
3488 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3489 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3490 # Solaris 8's {/usr,}/bin/sh.
3491 touch sub/conftst$i.h
3493 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3497 # after this tag, mechanisms are not by side-effect, so they'll
3498 # only be used when explicitly requested
3499 if test "x$enable_dependency_tracking" = xyes; then
3507 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508 # mode. It turns out that the SunPro C++ compiler does not properly
3509 # handle `-M -o', and we need to detect this.
3510 if depmode=$depmode \
3511 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3512 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3513 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3514 >/dev/null 2>conftest.err &&
3515 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3516 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3517 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3518 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3519 # icc doesn't choke on unknown options, it will just issue warnings
3520 # or remarks (even with -Werror). So we grep stderr for any message
3521 # that says an option was ignored or not supported.
3522 # When given -MP, icc 7.0 and 7.1 complain thusly:
3523 # icc: Command line warning: ignoring option '-M'; no argument required
3524 # The diagnosis changed in icc 8.0:
3525 # icc: Command line remark: option '-MP' not supported
3526 if (grep 'ignoring option' conftest.err ||
3527 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3528 am_cv_CC_dependencies_compiler_type=$depmode
3537 am_cv_CC_dependencies_compiler_type=none
3541 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3542 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3543 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3546 test "x$enable_dependency_tracking" != xno \
3547 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3549 am__fastdepCC_FALSE='#'
3551 am__fastdepCC_TRUE='#'
3552 am__fastdepCC_FALSE=
3557 # Check whether --with-cc was given.
3558 if test "${with_cc+set}" = set; then
3559 withval=$with_cc; CC="$withval"
3563 { echo "$as_me:$LINENO: checking for additional required compiler flags" >&5
3564 echo $ECHO_N "checking for additional required compiler flags... $ECHO_C" >&6; }
3566 if test "$cross_compiling" = yes; then
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3585 rm -f conftest$ac_exeext
3586 if { (ac_try="$ac_link"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_link") 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3596 { (case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_try") 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ADDCFLAGS="-DYY_USE_PROTOS"
3607 echo "$as_me: program exited with status $ac_status" >&5
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3619 CFLAGS="$CFLAGS $ADDCFLAGS"
3625 for ac_func in strtoll strtoull strtoq strtouq
3627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 cat >conftest.$ac_ext <<_ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3641 #define $ac_func innocuous_$ac_func
3643 /* System header to define __stub macros and hopefully few prototypes,
3644 which can conflict with char $ac_func (); below.
3645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646 <limits.h> exists even on freestanding compilers. */
3649 # include <limits.h>
3651 # include <assert.h>
3656 /* Override any GCC internal prototype to avoid an error.
3657 Use char because int might match the return type of a GCC
3658 builtin and then its argument prototype would still apply. */
3663 /* The GNU C library defines this for functions which it implements
3664 to always fail with ENOSYS. Some functions are actually named
3665 something starting with __ and the normal name is an alias. */
3666 #if defined __stub_$ac_func || defined __stub___$ac_func
3678 rm -f conftest.$ac_objext conftest$ac_exeext
3679 if { (ac_try="$ac_link"
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_link") 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest$ac_exeext &&
3695 $as_test_x conftest$ac_exeext; then
3696 eval "$as_ac_var=yes"
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 eval "$as_ac_var=no"
3704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3705 conftest$ac_exeext conftest.$ac_ext
3707 ac_res=`eval echo '${'$as_ac_var'}'`
3708 { echo "$as_me:$LINENO: result: $ac_res" >&5
3709 echo "${ECHO_T}$ac_res" >&6; }
3710 if test `eval echo '${'$as_ac_var'}'` = yes; then
3711 cat >>confdefs.h <<_ACEOF
3712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3720 for ac_func in timegm
3722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 cat >conftest.$ac_ext <<_ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3736 #define $ac_func innocuous_$ac_func
3738 /* System header to define __stub macros and hopefully few prototypes,
3739 which can conflict with char $ac_func (); below.
3740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3741 <limits.h> exists even on freestanding compilers. */
3744 # include <limits.h>
3746 # include <assert.h>
3751 /* Override any GCC internal prototype to avoid an error.
3752 Use char because int might match the return type of a GCC
3753 builtin and then its argument prototype would still apply. */
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined __stub_$ac_func || defined __stub___$ac_func
3773 rm -f conftest.$ac_objext conftest$ac_exeext
3774 if { (ac_try="$ac_link"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_link") 2>conftest.er1
3782 grep -v '^ *+' conftest.er1 >conftest.err
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } && {
3787 test -z "$ac_c_werror_flag" ||
3788 test ! -s conftest.err
3789 } && test -s conftest$ac_exeext &&
3790 $as_test_x conftest$ac_exeext; then
3791 eval "$as_ac_var=yes"
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 eval "$as_ac_var=no"
3799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3800 conftest$ac_exeext conftest.$ac_ext
3802 ac_res=`eval echo '${'$as_ac_var'}'`
3803 { echo "$as_me:$LINENO: result: $ac_res" >&5
3804 echo "${ECHO_T}$ac_res" >&6; }
3805 if test `eval echo '${'$as_ac_var'}'` = yes; then
3806 cat >>confdefs.h <<_ACEOF
3807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3820 for ac_func in vsnprintf snprintf asprintf asnprintf vasprintf vasnprintf
3822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3836 #define $ac_func innocuous_$ac_func
3838 /* System header to define __stub macros and hopefully few prototypes,
3839 which can conflict with char $ac_func (); below.
3840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841 <limits.h> exists even on freestanding compilers. */
3844 # include <limits.h>
3846 # include <assert.h>
3851 /* Override any GCC internal prototype to avoid an error.
3852 Use char because int might match the return type of a GCC
3853 builtin and then its argument prototype would still apply. */
3858 /* The GNU C library defines this for functions which it implements
3859 to always fail with ENOSYS. Some functions are actually named
3860 something starting with __ and the normal name is an alias. */
3861 #if defined __stub_$ac_func || defined __stub___$ac_func
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (ac_try="$ac_link"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_link") 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } && {
3887 test -z "$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 } && test -s conftest$ac_exeext &&
3890 $as_test_x conftest$ac_exeext; then
3891 eval "$as_ac_var=yes"
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 eval "$as_ac_var=no"
3899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3900 conftest$ac_exeext conftest.$ac_ext
3902 ac_res=`eval echo '${'$as_ac_var'}'`
3903 { echo "$as_me:$LINENO: result: $ac_res" >&5
3904 echo "${ECHO_T}$ac_res" >&6; }
3905 if test `eval echo '${'$as_ac_var'}'` = yes; then
3906 cat >>confdefs.h <<_ACEOF
3907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3921 # On Suns, sometimes $CPP names a directory.
3922 if test -n "$CPP" && test -d "$CPP"; then
3925 if test -z "$CPP"; then
3926 if test "${ac_cv_prog_CPP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 # Double quotes because CPP needs to be expanded
3930 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3933 for ac_c_preproc_warn_flag in '' yes
3935 # Use a header file that comes with gcc, so configuring glibc
3936 # with a fresh cross-compiler works.
3937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938 # <limits.h> exists even on freestanding compilers.
3939 # On the NeXT, cc -E runs the code through the compiler's parser,
3940 # not just through cpp. "Syntax error" is here to catch this case.
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3948 # include <limits.h>
3950 # include <assert.h>
3954 if { (ac_try="$ac_cpp conftest.$ac_ext"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } >/dev/null && {
3967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 # Broken: fails on valid input.
3979 rm -f conftest.err conftest.$ac_ext
3981 # OK, works on sane cases. Now check whether nonexistent headers
3982 # can be detected and how.
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #include <ac_nonexistent.h>
3991 if { (ac_try="$ac_cpp conftest.$ac_ext"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } >/dev/null && {
4004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4007 # Broken: success on invalid input.
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 # Passes both tests.
4018 rm -f conftest.err conftest.$ac_ext
4021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022 rm -f conftest.err conftest.$ac_ext
4023 if $ac_preproc_ok; then
4035 { echo "$as_me:$LINENO: result: $CPP" >&5
4036 echo "${ECHO_T}$CPP" >&6; }
4038 for ac_c_preproc_warn_flag in '' yes
4040 # Use a header file that comes with gcc, so configuring glibc
4041 # with a fresh cross-compiler works.
4042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4043 # <limits.h> exists even on freestanding compilers.
4044 # On the NeXT, cc -E runs the code through the compiler's parser,
4045 # not just through cpp. "Syntax error" is here to catch this case.
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4053 # include <limits.h>
4055 # include <assert.h>
4059 if { (ac_try="$ac_cpp conftest.$ac_ext"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } >/dev/null && {
4072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4073 test ! -s conftest.err
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4080 # Broken: fails on valid input.
4084 rm -f conftest.err conftest.$ac_ext
4086 # OK, works on sane cases. Now check whether nonexistent headers
4087 # can be detected and how.
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 #include <ac_nonexistent.h>
4096 if { (ac_try="$ac_cpp conftest.$ac_ext"
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } >/dev/null && {
4109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4110 test ! -s conftest.err
4112 # Broken: success on invalid input.
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 # Passes both tests.
4123 rm -f conftest.err conftest.$ac_ext
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.err conftest.$ac_ext
4128 if $ac_preproc_ok; then
4131 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4132 See \`config.log' for more details." >&5
4133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4134 See \`config.log' for more details." >&2;}
4135 { (exit 1); exit 1; }; }
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4146 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4147 if test "${ac_cv_path_GREP+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 # Extract the first word of "grep ggrep" to use in msg output
4151 if test -z "$GREP"; then
4152 set dummy grep ggrep; ac_prog_name=$2
4153 if test "${ac_cv_path_GREP+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 ac_path_GREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in grep ggrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4166 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4167 # Check for GNU ac_path_GREP and select it if it is found.
4168 # Check for GNU $ac_path_GREP
4169 case `"$ac_path_GREP" --version 2>&1` in
4171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4174 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 echo 'GREP' >> "conftest.nl"
4181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 ac_count=`expr $ac_count + 1`
4184 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_GREP="$ac_path_GREP"
4187 ac_path_GREP_max=$ac_count
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196 $ac_path_GREP_found && break 3
4206 GREP="$ac_cv_path_GREP"
4207 if test -z "$GREP"; then
4208 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4209 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4210 { (exit 1); exit 1; }; }
4214 ac_cv_path_GREP=$GREP
4219 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4220 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4221 GREP="$ac_cv_path_GREP"
4224 { echo "$as_me:$LINENO: checking for egrep" >&5
4225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4226 if test "${ac_cv_path_EGREP+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4230 then ac_cv_path_EGREP="$GREP -E"
4232 # Extract the first word of "egrep" to use in msg output
4233 if test -z "$EGREP"; then
4234 set dummy egrep; ac_prog_name=$2
4235 if test "${ac_cv_path_EGREP+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 ac_path_EGREP_found=false
4239 # Loop through the user's path and test for each of PROGNAME-LIST
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4244 test -z "$as_dir" && as_dir=.
4245 for ac_prog in egrep; do
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4248 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4249 # Check for GNU ac_path_EGREP and select it if it is found.
4250 # Check for GNU $ac_path_EGREP
4251 case `"$ac_path_EGREP" --version 2>&1` in
4253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4256 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4259 cat "conftest.in" "conftest.in" >"conftest.tmp"
4260 mv "conftest.tmp" "conftest.in"
4261 cp "conftest.in" "conftest.nl"
4262 echo 'EGREP' >> "conftest.nl"
4263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265 ac_count=`expr $ac_count + 1`
4266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4267 # Best one so far, save it but keep looking for a better one
4268 ac_cv_path_EGREP="$ac_path_EGREP"
4269 ac_path_EGREP_max=$ac_count
4271 # 10*(2^10) chars as input seems more than enough
4272 test $ac_count -gt 10 && break
4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 $ac_path_EGREP_found && break 3
4288 EGREP="$ac_cv_path_EGREP"
4289 if test -z "$EGREP"; then
4290 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4291 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4292 { (exit 1); exit 1; }; }
4296 ac_cv_path_EGREP=$EGREP
4302 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4303 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4304 EGREP="$ac_cv_path_EGREP"
4307 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4309 if test "${ac_cv_header_stdc+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_compile") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && {
4345 test -z "$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 } && test -s conftest.$ac_objext; then
4348 ac_cv_header_stdc=yes
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 ac_cv_header_stdc=no
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 if test $ac_cv_header_stdc = yes; then
4359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360 cat >conftest.$ac_ext <<_ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 $EGREP "memchr" >/dev/null 2>&1; then
4373 ac_cv_header_stdc=no
4379 if test $ac_cv_header_stdc = yes; then
4380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "free" >/dev/null 2>&1; then
4394 ac_cv_header_stdc=no
4400 if test $ac_cv_header_stdc = yes; then
4401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4402 if test "$cross_compiling" = yes; then
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4413 #if ((' ' & 0x0FF) == 0x020)
4414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4417 # define ISLOWER(c) \
4418 (('a' <= (c) && (c) <= 'i') \
4419 || ('j' <= (c) && (c) <= 'r') \
4420 || ('s' <= (c) && (c) <= 'z'))
4421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4429 for (i = 0; i < 256; i++)
4430 if (XOR (islower (i), ISLOWER (i))
4431 || toupper (i) != TOUPPER (i))
4436 rm -f conftest$ac_exeext
4437 if { (ac_try="$ac_link"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_link") 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4458 echo "$as_me: program exited with status $ac_status" >&5
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_cv_header_stdc=no
4465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4471 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4472 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4473 if test $ac_cv_header_stdc = yes; then
4475 cat >>confdefs.h <<\_ACEOF
4476 #define STDC_HEADERS 1
4481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4492 inttypes.h stdint.h unistd.h
4494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4508 #include <$ac_header>
4510 rm -f conftest.$ac_objext
4511 if { (ac_try="$ac_compile"
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_compile") 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } && {
4524 test -z "$ac_c_werror_flag" ||
4525 test ! -s conftest.err
4526 } && test -s conftest.$ac_objext; then
4527 eval "$as_ac_Header=yes"
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 eval "$as_ac_Header=no"
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_res=`eval echo '${'$as_ac_Header'}'`
4538 { echo "$as_me:$LINENO: result: $ac_res" >&5
4539 echo "${ECHO_T}$ac_res" >&6; }
4540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541 cat >>confdefs.h <<_ACEOF
4542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4555 for ac_header in pwd.h unistd.h regex.h stdint.h limits.h
4557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 ac_res=`eval echo '${'$as_ac_Header'}'`
4565 { echo "$as_me:$LINENO: result: $ac_res" >&5
4566 echo "${ECHO_T}$ac_res" >&6; }
4568 # Is the header compilable?
4569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4571 cat >conftest.$ac_ext <<_ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4577 $ac_includes_default
4578 #include <$ac_header>
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_compile") 2>conftest.er1
4589 grep -v '^ *+' conftest.er1 >conftest.err
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && {
4594 test -z "$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4596 } && test -s conftest.$ac_objext; then
4597 ac_header_compiler=yes
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 ac_header_compiler=no
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4607 echo "${ECHO_T}$ac_header_compiler" >&6; }
4609 # Is the header present?
4610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 #include <$ac_header>
4620 if { (ac_try="$ac_cpp conftest.$ac_ext"
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } >/dev/null && {
4633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4634 test ! -s conftest.err
4636 ac_header_preproc=yes
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 ac_header_preproc=no
4644 rm -f conftest.err conftest.$ac_ext
4645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4646 echo "${ECHO_T}$ac_header_preproc" >&6; }
4648 # So? What about this header?
4649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4655 ac_header_preproc=yes
4658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 eval "$as_ac_Header=\$ac_header_preproc"
4680 ac_res=`eval echo '${'$as_ac_Header'}'`
4681 { echo "$as_me:$LINENO: result: $ac_res" >&5
4682 echo "${ECHO_T}$ac_res" >&6; }
4685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4695 # In case regex is not in libc
4696 { echo "$as_me:$LINENO: checking for regexec in -lc" >&5
4697 echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6; }
4698 if test "${ac_cv_lib_c_regexec+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 ac_check_lib_save_LIBS=$LIBS
4703 cat >conftest.$ac_ext <<_ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4710 /* Override any GCC internal prototype to avoid an error.
4711 Use char because int might match the return type of a GCC
4712 builtin and then its argument prototype would still apply. */
4725 rm -f conftest.$ac_objext conftest$ac_exeext
4726 if { (ac_try="$ac_link"
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_link") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } && {
4739 test -z "$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4741 } && test -s conftest$ac_exeext &&
4742 $as_test_x conftest$ac_exeext; then
4743 ac_cv_lib_c_regexec=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_cv_lib_c_regexec=no
4751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4752 conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4755 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
4756 echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6; }
4757 if test $ac_cv_lib_c_regexec = yes; then
4761 { echo "$as_me:$LINENO: checking for regexec in -lrxspencer" >&5
4762 echo $ECHO_N "checking for regexec in -lrxspencer... $ECHO_C" >&6; }
4763 if test "${ac_cv_lib_rxspencer_regexec+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 ac_check_lib_save_LIBS=$LIBS
4767 LIBS="-lrxspencer $LIBS"
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4775 /* Override any GCC internal prototype to avoid an error.
4776 Use char because int might match the return type of a GCC
4777 builtin and then its argument prototype would still apply. */
4790 rm -f conftest.$ac_objext conftest$ac_exeext
4791 if { (ac_try="$ac_link"
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797 (eval "$ac_link") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest$ac_exeext &&
4807 $as_test_x conftest$ac_exeext; then
4808 ac_cv_lib_rxspencer_regexec=yes
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_lib_rxspencer_regexec=no
4816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4817 conftest$ac_exeext conftest.$ac_ext
4818 LIBS=$ac_check_lib_save_LIBS
4820 { echo "$as_me:$LINENO: result: $ac_cv_lib_rxspencer_regexec" >&5
4821 echo "${ECHO_T}$ac_cv_lib_rxspencer_regexec" >&6; }
4822 if test $ac_cv_lib_rxspencer_regexec = yes; then
4823 LDFLAGS="$LDFLAGS -lrxspencer"
4826 { echo "$as_me:$LINENO: checking for regexec in -lregex" >&5
4827 echo $ECHO_N "checking for regexec in -lregex... $ECHO_C" >&6; }
4828 if test "${ac_cv_lib_regex_regexec+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 ac_check_lib_save_LIBS=$LIBS
4832 LIBS="-lregex $LIBS"
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4840 /* Override any GCC internal prototype to avoid an error.
4841 Use char because int might match the return type of a GCC
4842 builtin and then its argument prototype would still apply. */
4855 rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_link") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest$ac_exeext &&
4872 $as_test_x conftest$ac_exeext; then
4873 ac_cv_lib_regex_regexec=yes
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_cv_lib_regex_regexec=no
4881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4882 conftest$ac_exeext conftest.$ac_ext
4883 LIBS=$ac_check_lib_save_LIBS
4885 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regexec" >&5
4886 echo "${ECHO_T}$ac_cv_lib_regex_regexec" >&6; }
4887 if test $ac_cv_lib_regex_regexec = yes; then
4888 LDFLAGS="$LDFLAGS -lregex"
4898 if test "x$prefix" = "xNONE" ; then
4903 # Check whether --with-mibdir was given.
4904 if test "${with_mibdir+set}" = set; then
4905 withval=$with_mibdir; mibdir="$withval"
4907 mibdir="$prefix/share/mibs"
4912 # Check whether --with-pibdir was given.
4913 if test "${with_pibdir+set}" = set; then
4914 withval=$with_pibdir; pibdir="$withval"
4916 pibdir="$prefix/share/pibs"
4921 # Check whether --with-smipath was given.
4922 if test "${with_smipath+set}" = set; then
4923 withval=$with_smipath; smipath="$withval"
4925 smipath="$mibdir/ietf:$mibdir/iana:$mibdir/irtf:$mibdir/site:$mibdir/tubs:$pibdir/ietf:$pibdir/site:$pibdir/tubs"
4930 cat >>confdefs.h <<_ACEOF
4931 #define DEFAULT_SMIPATH "$smipath"
4936 # Check whether --with-pathseparator was given.
4937 if test "${with_pathseparator+set}" = set; then
4938 withval=$with_pathseparator; pathseparator="$withval"
4945 # Check whether --with-dirseparator was given.
4946 if test "${with_dirseparator+set}" = set; then
4947 withval=$with_dirseparator; dirseparator="$withval"
4953 { echo "$as_me:$LINENO: checking for path separator character" >&5
4954 echo $ECHO_N "checking for path separator character... $ECHO_C" >&6; }
4955 if test "$pathseparator" = "" ; then
4956 if test "$cross_compiling" = yes; then
4959 cat >conftest.$ac_ext <<_ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4975 rm -f conftest$ac_exeext
4976 if { (ac_try="$ac_link"
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_link") 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986 { (case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_try") 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4997 echo "$as_me: program exited with status $ac_status" >&5
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5011 { echo "$as_me:$LINENO: checking for dir separator character" >&5
5012 echo $ECHO_N "checking for dir separator character... $ECHO_C" >&6; }
5013 if test "$dirseparator" = "" ; then
5014 if test "$cross_compiling" = yes; then
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5033 rm -f conftest$ac_exeext
5034 if { (ac_try="$ac_link"
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_link") 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5044 { (case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_try") 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5055 echo "$as_me: program exited with status $ac_status" >&5
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5070 cat >>confdefs.h <<_ACEOF
5071 #define PATH_SEPARATOR '$pathseparator'
5076 cat >>confdefs.h <<_ACEOF
5077 #define DIR_SEPARATOR '$dirseparator'
5082 { echo "$as_me:$LINENO: checking for 64 bit types" >&5
5083 echo $ECHO_N "checking for 64 bit types... $ECHO_C" >&6; }
5085 # Note that int64_min is defined as -9223372036854775807LL and NOT as
5086 # -9223372036854775808LL. gcc (version 2.95.4 and others) complains with
5087 # "warning: decimal constant is so large that it is unsigned"
5088 # if used with the (correct) value -9223372036854775808LL.
5090 if test "$cross_compiling" = yes; then
5091 uint64_type="unsigned long long"; int64_type="long long";
5092 uint64_format="%llu"; int64_format="%lld";
5093 uint64_max="18446744073709551615ULL";
5094 int64_min="-9223372036854775807LL"; int64_max="9223372036854775807LL"
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5106 unsigned long long ull;
5111 rm -f conftest$ac_exeext
5112 if { (ac_try="$ac_link"
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_link") 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5122 { (case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_try") 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 uint64_type="unsigned long long"; int64_type="long long";
5132 uint64_format="%llu"; int64_format="%lld";
5133 uint64_max="18446744073709551615ULL";
5134 int64_min="-9223372036854775807LL"; int64_max="9223372036854775807LL"
5137 echo "$as_me: program exited with status $ac_status" >&5
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5142 uint64_type="unsigned long"; int64_type="long";
5143 uint64_format="%lu"; int64_format="%ld";
5144 uint64_max="4294967295";
5145 int64_min="-2147483648"; int64_max="2147483647"
5148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5152 echo $int64_type/$int64_format, etc.
5154 UINT64_TYPE=$uint64_type
5155 INT64_TYPE=$int64_type
5157 cat >>confdefs.h <<_ACEOF
5158 #define UINT64_FORMAT "$uint64_format"
5162 cat >>confdefs.h <<_ACEOF
5163 #define INT64_FORMAT "$int64_format"
5167 cat >>confdefs.h <<_ACEOF
5168 #define LIBSMI_UINT64_MAX $uint64_max
5172 cat >>confdefs.h <<_ACEOF
5173 #define LIBSMI_INT64_MIN $int64_min
5177 cat >>confdefs.h <<_ACEOF
5178 #define LIBSMI_INT64_MAX $int64_max
5183 # Check whether --enable-dmalloc was given.
5184 if test "${enable_dmalloc+set}" = set; then
5185 enableval=$enable_dmalloc; LIBS="$LIBS -ldmalloc"
5187 cat >>confdefs.h <<\_ACEOF
5188 #define HAVE_DMALLOC_H 1
5195 cat >>confdefs.h <<\_ACEOF
5196 #define BACKEND_SMI 1
5199 # Check whether --enable-smi was given.
5200 if test "${enable_smi+set}" = set; then
5201 enableval=$enable_smi;
5202 cat >>confdefs.h <<\_ACEOF
5203 #define BACKEND_SMI 1
5209 # Check whether --enable-sming was given.
5210 if test "${enable_sming+set}" = set; then
5211 enableval=$enable_sming;
5212 cat >>confdefs.h <<\_ACEOF
5213 #define BACKEND_SMING 0
5219 # Extract the first word of ""flex"", so it can be a program name with args.
5220 set dummy "flex"; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_path_FLEX+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 FLEX=$ac_cv_path_FLEX
5250 if test -n "$FLEX"; then
5251 { echo "$as_me:$LINENO: result: $FLEX" >&5
5252 echo "${ECHO_T}$FLEX" >&6; }
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5259 if test -z "${FLEX}" ; then
5260 echo "NOTE: We will not be able to build scanner C code from flex sources."
5263 # Extract the first word of ""bison"", so it can be a program name with args.
5264 set dummy "bison"; ac_word=$2
5265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5267 if test "${ac_cv_path_BISON+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 BISON=$ac_cv_path_BISON
5294 if test -n "$BISON"; then
5295 { echo "$as_me:$LINENO: result: $BISON" >&5
5296 echo "${ECHO_T}$BISON" >&6; }
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5303 if test -z "${BISON}" ; then
5304 echo "NOTE: We will not be able to build parser C code from bison sources."
5307 # Extract the first word of ""bash"", so it can be a program name with args.
5308 set dummy "bash"; ac_word=$2
5309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311 if test "${ac_cv_path_BASH+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 BASH=$ac_cv_path_BASH
5338 if test -n "$BASH"; then
5339 { echo "$as_me:$LINENO: result: $BASH" >&5
5340 echo "${ECHO_T}$BASH" >&6; }
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5347 # Extract the first word of ""sh"", so it can be a program name with args.
5348 set dummy "sh"; ac_word=$2
5349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5351 if test "${ac_cv_path_SH+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 if test -n "$SH"; then
5379 { echo "$as_me:$LINENO: result: $SH" >&5
5380 echo "${ECHO_T}$SH" >&6; }
5382 { echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6; }
5387 # Extract the first word of "awk", so it can be a program name with args.
5388 set dummy awk; ac_word=$2
5389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5391 if test "${ac_cv_path_AWK+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 if test -n "$AWK"; then
5419 { echo "$as_me:$LINENO: result: $AWK" >&5
5420 echo "${ECHO_T}$AWK" >&6; }
5422 { echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6; }
5427 # Extract the first word of "wget", so it can be a program name with args.
5428 set dummy wget; ac_word=$2
5429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5431 if test "${ac_cv_path_WGET+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
5447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 WGET=$ac_cv_path_WGET
5458 if test -n "$WGET"; then
5459 { echo "$as_me:$LINENO: result: $WGET" >&5
5460 echo "${ECHO_T}$WGET" >&6; }
5462 { echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6; }
5468 for ac_prog in gdiff diff
5470 # Extract the first word of "$ac_prog", so it can be a program name with args.
5471 set dummy $ac_prog; ac_word=$2
5472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5474 if test "${ac_cv_path_DIFF+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 DIFF=$ac_cv_path_DIFF
5501 if test -n "$DIFF"; then
5502 { echo "$as_me:$LINENO: result: $DIFF" >&5
5503 echo "${ECHO_T}$DIFF" >&6; }
5505 { echo "$as_me:$LINENO: result: no" >&5
5506 echo "${ECHO_T}no" >&6; }
5510 test -n "$DIFF" && break
5513 $DIFF --version >/dev/null 2>&1
5514 if test $? -eq 0 ; then
5515 DIFF="$DIFF --ignore-matching-lines='generated by smidump' --ignore-matching-lines='\$Id.*\$' --ignore-matching-lines='@author.*smidump'"
5519 # Find a good install program. We prefer a C program (faster),
5520 # so one script is as good as another. But avoid the broken or
5521 # incompatible versions:
5522 # SysV /etc/install, /usr/sbin/install
5523 # SunOS /usr/etc/install
5524 # IRIX /sbin/install
5526 # AmigaOS /C/install, which installs bootblocks on floppy discs
5527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5530 # OS/2's system install, which has a completely different semantic
5531 # ./install, which can be erroneously created by make from ./install.sh.
5532 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5533 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5534 if test -z "$INSTALL"; then
5535 if test "${ac_cv_path_install+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir=.
5543 # Account for people who put trailing slashes in PATH elements.
5545 ./ | .// | /cC/* | \
5546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5547 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5550 # OSF1 and SCO ODT 3.0 have their own names for install.
5551 # Don't use installbsd from OSF since it installs stuff as root
5553 for ac_prog in ginstall scoinst install; do
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5556 if test $ac_prog = install &&
5557 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5558 # AIX install. It has an incompatible calling convention.
5560 elif test $ac_prog = install &&
5561 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5562 # program-specific install script used by HP pwplus--don't use.
5565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5578 if test "${ac_cv_path_install+set}" = set; then
5579 INSTALL=$ac_cv_path_install
5581 # As a last resort, use the slow shell script. Don't cache a
5582 # value for INSTALL within a source directory, because that will
5583 # break other packages using the cache if that directory is
5584 # removed, or if the value is a relative name.
5585 INSTALL=$ac_install_sh
5588 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5589 echo "${ECHO_T}$INSTALL" >&6; }
5591 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5592 # It thinks the first close brace ends the variable substitution.
5593 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5595 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5599 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5600 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5601 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5602 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 cat >conftest.make <<\_ACEOF
5608 @echo '@@@%%%=$(MAKE)=@@@%%%'
5610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5611 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5613 eval ac_cv_prog_make_${ac_make}_set=yes;;
5615 eval ac_cv_prog_make_${ac_make}_set=no;;
5619 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5620 { echo "$as_me:$LINENO: result: yes" >&5
5621 echo "${ECHO_T}yes" >&6; }
5624 { echo "$as_me:$LINENO: result: no" >&5
5625 echo "${ECHO_T}no" >&6; }
5626 SET_MAKE="MAKE=${MAKE-make}"
5629 # Check whether --enable-shared was given.
5630 if test "${enable_shared+set}" = set; then
5631 enableval=$enable_shared; p=${PACKAGE-default}
5633 yes) enable_shared=yes ;;
5634 no) enable_shared=no ;;
5637 # Look at the argument we got. We use all the common list separators.
5638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5639 for pkg in $enableval; do
5641 if test "X$pkg" = "X$p"; then
5653 # Check whether --enable-static was given.
5654 if test "${enable_static+set}" = set; then
5655 enableval=$enable_static; p=${PACKAGE-default}
5657 yes) enable_static=yes ;;
5658 no) enable_static=no ;;
5661 # Look at the argument we got. We use all the common list separators.
5662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5663 for pkg in $enableval; do
5665 if test "X$pkg" = "X$p"; then
5677 # Check whether --enable-fast-install was given.
5678 if test "${enable_fast_install+set}" = set; then
5679 enableval=$enable_fast_install; p=${PACKAGE-default}
5681 yes) enable_fast_install=yes ;;
5682 no) enable_fast_install=no ;;
5684 enable_fast_install=no
5685 # Look at the argument we got. We use all the common list separators.
5686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5687 for pkg in $enableval; do
5689 if test "X$pkg" = "X$p"; then
5690 enable_fast_install=yes
5697 enable_fast_install=yes
5701 # Make sure we can run config.sub.
5702 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5703 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5704 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5705 { (exit 1); exit 1; }; }
5707 { echo "$as_me:$LINENO: checking build system type" >&5
5708 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5709 if test "${ac_cv_build+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 ac_build_alias=$build_alias
5713 test "x$ac_build_alias" = x &&
5714 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5715 test "x$ac_build_alias" = x &&
5716 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5717 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5718 { (exit 1); exit 1; }; }
5719 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5720 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5721 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5722 { (exit 1); exit 1; }; }
5725 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5726 echo "${ECHO_T}$ac_cv_build" >&6; }
5727 case $ac_cv_build in
5729 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5730 echo "$as_me: error: invalid value of canonical build" >&2;}
5731 { (exit 1); exit 1; }; };;
5734 ac_save_IFS=$IFS; IFS='-'
5740 # Remember, the first character of IFS is used to create $*,
5741 # except with old shells:
5744 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5747 { echo "$as_me:$LINENO: checking host system type" >&5
5748 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5749 if test "${ac_cv_host+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test "x$host_alias" = x; then
5753 ac_cv_host=$ac_cv_build
5755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5756 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5757 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5758 { (exit 1); exit 1; }; }
5762 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5763 echo "${ECHO_T}$ac_cv_host" >&6; }
5766 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5767 echo "$as_me: error: invalid value of canonical host" >&2;}
5768 { (exit 1); exit 1; }; };;
5771 ac_save_IFS=$IFS; IFS='-'
5777 # Remember, the first character of IFS is used to create $*,
5778 # except with old shells:
5781 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5784 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5785 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5786 if test "${lt_cv_path_SED+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 # Loop through the user's path and test for sed and gsed.
5790 # Then use that list of sed's as ones to test for truncation.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for lt_ac_prog in sed gsed; do
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5799 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5806 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5807 # along with /bin/sed that truncates output.
5808 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5809 test ! -f $lt_ac_sed && continue
5810 cat /dev/null > conftest.in
5812 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5813 # Check for GNU sed and select it if it is found.
5814 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5815 lt_cv_path_SED=$lt_ac_sed
5819 cat conftest.in conftest.in >conftest.tmp
5820 mv conftest.tmp conftest.in
5821 cp conftest.in conftest.nl
5823 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5824 cmp -s conftest.out conftest.nl || break
5825 # 10000 chars as input seems more than enough
5826 test $lt_ac_count -gt 10 && break
5827 lt_ac_count=`expr $lt_ac_count + 1`
5828 if test $lt_ac_count -gt $lt_ac_max; then
5829 lt_ac_max=$lt_ac_count
5830 lt_cv_path_SED=$lt_ac_sed
5838 { echo "$as_me:$LINENO: result: $SED" >&5
5839 echo "${ECHO_T}$SED" >&6; }
5842 # Check whether --with-gnu-ld was given.
5843 if test "${with_gnu_ld+set}" = set; then
5844 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5850 if test "$GCC" = yes; then
5851 # Check if gcc -print-prog-name=ld gives a path.
5852 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5853 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5856 # gcc leaves a trailing carriage return which upsets mingw
5857 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5859 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5862 # Accept absolute paths.
5864 re_direlt='/[^/][^/]*/\.\./'
5865 # Canonicalize the pathname of ld
5866 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5867 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5868 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5870 test -z "$LD" && LD="$ac_prog"
5873 # If it fails, then pretend we aren't using GCC.
5877 # If it is relative, then search for the first ld in PATH.
5881 elif test "$with_gnu_ld" = yes; then
5882 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5883 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5885 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5886 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5888 if test "${lt_cv_path_LD+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 if test -z "$LD"; then
5892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5893 for ac_dir in $PATH; do
5895 test -z "$ac_dir" && ac_dir=.
5896 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5897 lt_cv_path_LD="$ac_dir/$ac_prog"
5898 # Check to see if the program is GNU ld. I'd rather use --version,
5899 # but apparently some variants of GNU ld only accept -v.
5900 # Break only if it was the GNU/non-GNU ld that we prefer.
5901 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5902 *GNU* | *'with BFD'*)
5903 test "$with_gnu_ld" != no && break
5906 test "$with_gnu_ld" != yes && break
5913 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5918 if test -n "$LD"; then
5919 { echo "$as_me:$LINENO: result: $LD" >&5
5920 echo "${ECHO_T}$LD" >&6; }
5922 { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5925 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5926 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5927 { (exit 1); exit 1; }; }
5928 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5929 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5930 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5934 case `$LD -v 2>&1 </dev/null` in
5935 *GNU* | *'with BFD'*)
5936 lt_cv_prog_gnu_ld=yes
5939 lt_cv_prog_gnu_ld=no
5943 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5944 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5945 with_gnu_ld=$lt_cv_prog_gnu_ld
5948 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5949 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5950 if test "${lt_cv_ld_reload_flag+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 lt_cv_ld_reload_flag='-r'
5955 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5956 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5957 reload_flag=$lt_cv_ld_reload_flag
5958 case $reload_flag in
5960 *) reload_flag=" $reload_flag" ;;
5962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5965 if test "$GCC" = yes; then
5966 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5968 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5973 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5974 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5975 if test "${lt_cv_path_NM+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 if test -n "$NM"; then
5979 # Let the user override the test.
5982 lt_nm_to_check="${ac_tool_prefix}nm"
5983 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5984 lt_nm_to_check="$lt_nm_to_check nm"
5986 for lt_tmp_nm in $lt_nm_to_check; do
5987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5988 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5990 test -z "$ac_dir" && ac_dir=.
5991 tmp_nm="$ac_dir/$lt_tmp_nm"
5992 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5993 # Check to see if the nm accepts a BSD-compat flag.
5994 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5995 # nm: unknown option "B" ignored
5996 # Tru64's nm complains that /dev/null is an invalid object file
5997 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5998 */dev/null* | *'Invalid file or object type'*)
5999 lt_cv_path_NM="$tmp_nm -B"
6003 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6005 lt_cv_path_NM="$tmp_nm -p"
6009 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6010 continue # so that we can try to find one that supports BSD flags
6019 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6022 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6023 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6026 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6027 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6029 if test "$LN_S" = "ln -s"; then
6030 { echo "$as_me:$LINENO: result: yes" >&5
6031 echo "${ECHO_T}yes" >&6; }
6033 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6034 echo "${ECHO_T}no, using $LN_S" >&6; }
6037 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6038 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6039 if test "${lt_cv_deplibs_check_method+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 lt_cv_file_magic_cmd='$MAGIC_CMD'
6043 lt_cv_file_magic_test_file=
6044 lt_cv_deplibs_check_method='unknown'
6045 # Need to set the preceding variable on all platforms that support
6046 # interlibrary dependencies.
6047 # 'none' -- dependencies not supported.
6048 # `unknown' -- same as none, but documents that we really don't know.
6049 # 'pass_all' -- all dependencies passed with no checks.
6050 # 'test_compile' -- check by making test program.
6051 # 'file_magic [[regex]]' -- check by looking for files in library path
6052 # which responds to the $file_magic_cmd with a given extended regex.
6053 # If you have `file' or equivalent on your system and you're not sure
6054 # whether `pass_all' will *always* work, you probably want this one.
6058 lt_cv_deplibs_check_method=pass_all
6062 lt_cv_deplibs_check_method=pass_all
6066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6067 lt_cv_file_magic_cmd='/usr/bin/file -L'
6068 lt_cv_file_magic_test_file=/shlib/libc.so
6072 # func_win32_libid is a shell function defined in ltmain.sh
6073 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6074 lt_cv_file_magic_cmd='func_win32_libid'
6078 # Base MSYS/MinGW do not provide the 'file' command needed by
6079 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6080 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6081 lt_cv_file_magic_cmd='$OBJDUMP -f'
6084 darwin* | rhapsody*)
6085 lt_cv_deplibs_check_method=pass_all
6088 freebsd* | dragonfly*)
6089 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6092 # Not sure whether the presence of OpenBSD here was a mistake.
6093 # Let's accept both of them until this is cleared up.
6094 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6095 lt_cv_file_magic_cmd=/usr/bin/file
6096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6100 lt_cv_deplibs_check_method=pass_all
6105 lt_cv_deplibs_check_method=pass_all
6108 hpux10.20* | hpux11*)
6109 lt_cv_file_magic_cmd=/usr/bin/file
6112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6113 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6116 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]'
6117 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6120 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6121 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6127 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6131 irix5* | irix6* | nonstopux*)
6133 *-32|*"-32 ") libmagic=32-bit;;
6134 *-n32|*"-n32 ") libmagic=N32;;
6135 *-64|*"-64 ") libmagic=64-bit;;
6136 *) libmagic=never-match;;
6138 lt_cv_deplibs_check_method=pass_all
6141 # This must be Linux ELF.
6142 linux* | k*bsd*-gnu)
6143 lt_cv_deplibs_check_method=pass_all
6146 netbsd* | netbsdelf*-gnu)
6147 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6156 lt_cv_file_magic_cmd=/usr/bin/file
6157 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6161 lt_cv_deplibs_check_method=unknown
6165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6172 osf3* | osf4* | osf5*)
6173 lt_cv_deplibs_check_method=pass_all
6177 lt_cv_deplibs_check_method=pass_all
6181 case $host_vendor in
6183 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]'
6184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6187 lt_cv_deplibs_check_method=pass_all
6190 lt_cv_file_magic_cmd='/bin/file'
6191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6194 lt_cv_file_magic_cmd='/bin/file'
6195 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6196 lt_cv_file_magic_test_file=/lib/libc.so
6199 lt_cv_deplibs_check_method=pass_all
6202 lt_cv_deplibs_check_method=pass_all
6207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6208 lt_cv_deplibs_check_method=pass_all
6213 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6214 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6215 file_magic_cmd=$lt_cv_file_magic_cmd
6216 deplibs_check_method=$lt_cv_deplibs_check_method
6217 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6221 # If no C compiler was specified, use CC.
6224 # If no C compiler flags were specified, use CFLAGS.
6225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6227 # Allow CC to be a program name with arguments.
6230 # Check whether --enable-libtool-lock was given.
6231 if test "${enable_libtool_lock+set}" = set; then
6232 enableval=$enable_libtool_lock;
6235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6237 # Some flags need to be propagated to the compiler or linker for good
6241 # Find out which ABI we are using.
6242 echo 'int i;' > conftest.$ac_ext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; then
6248 case `/usr/bin/file conftest.$ac_objext` in
6260 # Find out which ABI we are using.
6261 echo '#line 6261 "configure"' > conftest.$ac_ext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; then
6267 if test "$lt_cv_prog_gnu_ld" = yes; then
6268 case `/usr/bin/file conftest.$ac_objext` in
6270 LD="${LD-ld} -melf32bsmip"
6273 LD="${LD-ld} -melf32bmipn32"
6276 LD="${LD-ld} -melf64bmip"
6280 case `/usr/bin/file conftest.$ac_objext` in
6296 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6297 # Find out which ABI we are using.
6298 echo 'int i;' > conftest.$ac_ext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; then
6304 case `/usr/bin/file conftest.o` in
6308 LD="${LD-ld} -m elf_i386"
6310 ppc64-*linux*|powerpc64-*linux*)
6311 LD="${LD-ld} -m elf32ppclinux"
6314 LD="${LD-ld} -m elf_s390"
6317 LD="${LD-ld} -m elf32_sparc"
6324 LD="${LD-ld} -m elf_x86_64"
6326 ppc*-*linux*|powerpc*-*linux*)
6327 LD="${LD-ld} -m elf64ppc"
6330 LD="${LD-ld} -m elf64_s390"
6333 LD="${LD-ld} -m elf64_sparc"
6343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6344 SAVE_CFLAGS="$CFLAGS"
6345 CFLAGS="$CFLAGS -belf"
6346 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6347 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6348 if test "${lt_cv_cc_needs_belf+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 ac_cpp='$CPP $CPPFLAGS'
6353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6357 cat >conftest.$ac_ext <<_ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6372 rm -f conftest.$ac_objext conftest$ac_exeext
6373 if { (ac_try="$ac_link"
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_link") 2>conftest.er1
6381 grep -v '^ *+' conftest.er1 >conftest.err
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } && {
6386 test -z "$ac_c_werror_flag" ||
6387 test ! -s conftest.err
6388 } && test -s conftest$ac_exeext &&
6389 $as_test_x conftest$ac_exeext; then
6390 lt_cv_cc_needs_belf=yes
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 lt_cv_cc_needs_belf=no
6398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6399 conftest$ac_exeext conftest.$ac_ext
6401 ac_cpp='$CPP $CPPFLAGS'
6402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6408 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6409 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6411 CFLAGS="$SAVE_CFLAGS"
6415 # Find out which ABI we are using.
6416 echo 'int i;' > conftest.$ac_ext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; then
6422 case `/usr/bin/file conftest.o` in
6424 case $lt_cv_prog_gnu_ld in
6425 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6426 *) LD="${LD-ld} -64" ;;
6437 need_locks="$enable_libtool_lock"
6441 for ac_header in dlfcn.h
6443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_res=`eval echo '${'$as_ac_Header'}'`
6451 { echo "$as_me:$LINENO: result: $ac_res" >&5
6452 echo "${ECHO_T}$ac_res" >&6; }
6454 # Is the header compilable?
6455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6464 #include <$ac_header>
6466 rm -f conftest.$ac_objext
6467 if { (ac_try="$ac_compile"
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_compile") 2>conftest.er1
6475 grep -v '^ *+' conftest.er1 >conftest.err
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && {
6480 test -z "$ac_c_werror_flag" ||
6481 test ! -s conftest.err
6482 } && test -s conftest.$ac_objext; then
6483 ac_header_compiler=yes
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_header_compiler=no
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6493 echo "${ECHO_T}$ac_header_compiler" >&6; }
6495 # Is the header present?
6496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 #include <$ac_header>
6506 if { (ac_try="$ac_cpp conftest.$ac_ext"
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } >/dev/null && {
6519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6522 ac_header_preproc=yes
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 ac_header_preproc=no
6530 rm -f conftest.err conftest.$ac_ext
6531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6532 echo "${ECHO_T}$ac_header_preproc" >&6; }
6534 # So? What about this header?
6535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6541 ac_header_preproc=yes
6544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 eval "$as_ac_Header=\$ac_header_preproc"
6566 ac_res=`eval echo '${'$as_ac_Header'}'`
6567 { echo "$as_me:$LINENO: result: $ac_res" >&5
6568 echo "${ECHO_T}$ac_res" >&6; }
6571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6572 cat >>confdefs.h <<_ACEOF
6573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6581 ac_cpp='$CXXCPP $CPPFLAGS'
6582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6585 if test -z "$CXX"; then
6586 if test -n "$CCC"; then
6589 if test -n "$ac_tool_prefix"; then
6590 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_prog_CXX+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 if test -n "$CXX"; then
6600 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 if test -n "$CXX"; then
6621 { echo "$as_me:$LINENO: result: $CXX" >&5
6622 echo "${ECHO_T}$CXX" >&6; }
6624 { echo "$as_me:$LINENO: result: no" >&5
6625 echo "${ECHO_T}no" >&6; }
6629 test -n "$CXX" && break
6632 if test -z "$CXX"; then
6634 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6636 # Extract the first word of "$ac_prog", so it can be a program name with args.
6637 set dummy $ac_prog; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 if test -n "$ac_ct_CXX"; then
6644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_ac_ct_CXX="$ac_prog"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6664 if test -n "$ac_ct_CXX"; then
6665 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6666 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6668 { echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6; }
6673 test -n "$ac_ct_CXX" && break
6676 if test "x$ac_ct_CXX" = x; then
6679 case $cross_compiling:$ac_tool_warned in
6681 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6682 whose name does not start with the host triplet. If you think this
6683 configuration is useful to you, please write to autoconf@gnu.org." >&5
6684 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6685 whose name does not start with the host triplet. If you think this
6686 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6687 ac_tool_warned=yes ;;
6695 # Provide some information about the compiler.
6696 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6697 ac_compiler=`set X $ac_compile; echo $2`
6698 { (ac_try="$ac_compiler --version >&5"
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_compiler --version >&5") 2>&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }
6708 { (ac_try="$ac_compiler -v >&5"
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compiler -v >&5") 2>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }
6718 { (ac_try="$ac_compiler -V >&5"
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_compiler -V >&5") 2>&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }
6729 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6730 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6731 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.$ac_ext <<_ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_compile") 2>conftest.er1
6761 grep -v '^ *+' conftest.er1 >conftest.err
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && {
6766 test -z "$ac_cxx_werror_flag" ||
6767 test ! -s conftest.err
6768 } && test -s conftest.$ac_objext; then
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6781 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6782 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6783 GXX=`test $ac_compiler_gnu = yes && echo yes`
6784 ac_test_CXXFLAGS=${CXXFLAGS+set}
6785 ac_save_CXXFLAGS=$CXXFLAGS
6786 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6787 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6788 if test "${ac_cv_prog_cxx_g+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6792 ac_cxx_werror_flag=yes
6795 cat >conftest.$ac_ext <<_ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6810 rm -f conftest.$ac_objext
6811 if { (ac_try="$ac_compile"
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_compile") 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && {
6824 test -z "$ac_cxx_werror_flag" ||
6825 test ! -s conftest.err
6826 } && test -s conftest.$ac_objext; then
6827 ac_cv_prog_cxx_g=yes
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6848 rm -f conftest.$ac_objext
6849 if { (ac_try="$ac_compile"
6851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852 *) ac_try_echo=$ac_try;;
6854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6855 (eval "$ac_compile") 2>conftest.er1
6857 grep -v '^ *+' conftest.er1 >conftest.err
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && {
6862 test -z "$ac_cxx_werror_flag" ||
6863 test ! -s conftest.err
6864 } && test -s conftest.$ac_objext; then
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6896 grep -v '^ *+' conftest.er1 >conftest.err
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_cxx_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 ac_cv_prog_cxx_g=yes
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6922 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6923 if test "$ac_test_CXXFLAGS" = set; then
6924 CXXFLAGS=$ac_save_CXXFLAGS
6925 elif test $ac_cv_prog_cxx_g = yes; then
6926 if test "$GXX" = yes; then
6932 if test "$GXX" = yes; then
6939 ac_cpp='$CXXCPP $CPPFLAGS'
6940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6944 depcc="$CXX" am_compiler_list=
6946 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6947 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6948 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6952 # We make a subdir and do the tests there. Otherwise we can end up
6953 # making bogus files that we don't know about and never remove. For
6954 # instance it was reported that on HP-UX the gcc test will end up
6955 # making a dummy file named `D' -- because `-MD' means `put the output
6958 # Copy depcomp to subdir because otherwise we won't find it if we're
6959 # using a relative directory.
6960 cp "$am_depcomp" conftest.dir
6962 # We will build objects and dependencies in a subdirectory because
6963 # it helps to detect inapplicable dependency modes. For instance
6964 # both Tru64's cc and ICC support -MD to output dependencies as a
6965 # side effect of compilation, but ICC will put the dependencies in
6966 # the current directory while Tru64 will put them in the object
6970 am_cv_CXX_dependencies_compiler_type=none
6971 if test "$am_compiler_list" = ""; then
6972 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6974 for depmode in $am_compiler_list; do
6975 # Setup a source with many dependencies, because some compilers
6976 # like to wrap large dependency lists on column 80 (with \), and
6977 # we should not choose a depcomp mode which is confused by this.
6979 # We need to recreate these files for each test, as the compiler may
6980 # overwrite some of them when testing with obscure command lines.
6981 # This happens at least with the AIX C compiler.
6983 for i in 1 2 3 4 5 6; do
6984 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6985 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6986 # Solaris 8's {/usr,}/bin/sh.
6987 touch sub/conftst$i.h
6989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6993 # after this tag, mechanisms are not by side-effect, so they'll
6994 # only be used when explicitly requested
6995 if test "x$enable_dependency_tracking" = xyes; then
7003 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7004 # mode. It turns out that the SunPro C++ compiler does not properly
7005 # handle `-M -o', and we need to detect this.
7006 if depmode=$depmode \
7007 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7009 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7010 >/dev/null 2>conftest.err &&
7011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7013 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7015 # icc doesn't choke on unknown options, it will just issue warnings
7016 # or remarks (even with -Werror). So we grep stderr for any message
7017 # that says an option was ignored or not supported.
7018 # When given -MP, icc 7.0 and 7.1 complain thusly:
7019 # icc: Command line warning: ignoring option '-M'; no argument required
7020 # The diagnosis changed in icc 8.0:
7021 # icc: Command line remark: option '-MP' not supported
7022 if (grep 'ignoring option' conftest.err ||
7023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7024 am_cv_CXX_dependencies_compiler_type=$depmode
7033 am_cv_CXX_dependencies_compiler_type=none
7037 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7038 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7039 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7042 test "x$enable_dependency_tracking" != xno \
7043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7044 am__fastdepCXX_TRUE=
7045 am__fastdepCXX_FALSE='#'
7047 am__fastdepCXX_TRUE='#'
7048 am__fastdepCXX_FALSE=
7054 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7056 (test "X$CXX" != "Xg++"))) ; then
7058 ac_cpp='$CXXCPP $CPPFLAGS'
7059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7062 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7063 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7064 if test -z "$CXXCPP"; then
7065 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 # Double quotes because CXXCPP needs to be expanded
7069 for CXXCPP in "$CXX -E" "/lib/cpp"
7072 for ac_cxx_preproc_warn_flag in '' yes
7074 # Use a header file that comes with gcc, so configuring glibc
7075 # with a fresh cross-compiler works.
7076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077 # <limits.h> exists even on freestanding compilers.
7078 # On the NeXT, cc -E runs the code through the compiler's parser,
7079 # not just through cpp. "Syntax error" is here to catch this case.
7080 cat >conftest.$ac_ext <<_ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7087 # include <limits.h>
7089 # include <assert.h>
7093 if { (ac_try="$ac_cpp conftest.$ac_ext"
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7101 grep -v '^ *+' conftest.er1 >conftest.err
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } >/dev/null && {
7106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7107 test ! -s conftest.err
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7114 # Broken: fails on valid input.
7118 rm -f conftest.err conftest.$ac_ext
7120 # OK, works on sane cases. Now check whether nonexistent headers
7121 # can be detected and how.
7122 cat >conftest.$ac_ext <<_ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #include <ac_nonexistent.h>
7130 if { (ac_try="$ac_cpp conftest.$ac_ext"
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7138 grep -v '^ *+' conftest.er1 >conftest.err
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } >/dev/null && {
7143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7144 test ! -s conftest.err
7146 # Broken: success on invalid input.
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 # Passes both tests.
7157 rm -f conftest.err conftest.$ac_ext
7160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7161 rm -f conftest.err conftest.$ac_ext
7162 if $ac_preproc_ok; then
7167 ac_cv_prog_CXXCPP=$CXXCPP
7170 CXXCPP=$ac_cv_prog_CXXCPP
7172 ac_cv_prog_CXXCPP=$CXXCPP
7174 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7175 echo "${ECHO_T}$CXXCPP" >&6; }
7177 for ac_cxx_preproc_warn_flag in '' yes
7179 # Use a header file that comes with gcc, so configuring glibc
7180 # with a fresh cross-compiler works.
7181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7182 # <limits.h> exists even on freestanding compilers.
7183 # On the NeXT, cc -E runs the code through the compiler's parser,
7184 # not just through cpp. "Syntax error" is here to catch this case.
7185 cat >conftest.$ac_ext <<_ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7192 # include <limits.h>
7194 # include <assert.h>
7198 if { (ac_try="$ac_cpp conftest.$ac_ext"
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7206 grep -v '^ *+' conftest.er1 >conftest.err
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } >/dev/null && {
7211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7212 test ! -s conftest.err
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 # Broken: fails on valid input.
7223 rm -f conftest.err conftest.$ac_ext
7225 # OK, works on sane cases. Now check whether nonexistent headers
7226 # can be detected and how.
7227 cat >conftest.$ac_ext <<_ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 #include <ac_nonexistent.h>
7235 if { (ac_try="$ac_cpp conftest.$ac_ext"
7237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238 *) ac_try_echo=$ac_try;;
7240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7243 grep -v '^ *+' conftest.er1 >conftest.err
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } >/dev/null && {
7248 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7249 test ! -s conftest.err
7251 # Broken: success on invalid input.
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7257 # Passes both tests.
7262 rm -f conftest.err conftest.$ac_ext
7265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7266 rm -f conftest.err conftest.$ac_ext
7267 if $ac_preproc_ok; then
7270 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7271 See \`config.log' for more details." >&5
7272 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7273 See \`config.log' for more details." >&2;}
7274 { (exit 1); exit 1; }; }
7278 ac_cpp='$CXXCPP $CPPFLAGS'
7279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7287 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7288 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7290 if test -n "$ac_tool_prefix"; then
7291 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
7293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_prog_F77+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 if test -n "$F77"; then
7301 ac_cv_prog_F77="$F77" # Let the user override the test.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 if test -n "$F77"; then
7322 { echo "$as_me:$LINENO: result: $F77" >&5
7323 echo "${ECHO_T}$F77" >&6; }
7325 { echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6; }
7330 test -n "$F77" && break
7333 if test -z "$F77"; then
7335 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
7337 # Extract the first word of "$ac_prog", so it can be a program name with args.
7338 set dummy $ac_prog; ac_word=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 if test -n "$ac_ct_F77"; then
7345 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_ac_ct_F77="$ac_prog"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7365 if test -n "$ac_ct_F77"; then
7366 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7367 echo "${ECHO_T}$ac_ct_F77" >&6; }
7369 { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7374 test -n "$ac_ct_F77" && break
7377 if test "x$ac_ct_F77" = x; then
7380 case $cross_compiling:$ac_tool_warned in
7382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7383 whose name does not start with the host triplet. If you think this
7384 configuration is useful to you, please write to autoconf@gnu.org." >&5
7385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7386 whose name does not start with the host triplet. If you think this
7387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7388 ac_tool_warned=yes ;;
7395 # Provide some information about the compiler.
7396 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7397 ac_compiler=`set X $ac_compile; echo $2`
7398 { (ac_try="$ac_compiler --version >&5"
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_compiler --version >&5") 2>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }
7408 { (ac_try="$ac_compiler -v >&5"
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compiler -v >&5") 2>&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }
7418 { (ac_try="$ac_compiler -V >&5"
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424 (eval "$ac_compiler -V >&5") 2>&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }
7430 # If we don't use `.F' as extension, the preprocessor is not run on the
7431 # input file. (Note that this only needs to work for GNU compilers.)
7434 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7435 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7436 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 cat >conftest.$ac_ext <<_ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_f77_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7476 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7477 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7479 ac_test_FFLAGS=${FFLAGS+set}
7480 ac_save_FFLAGS=$FFLAGS
7482 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7483 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7484 if test "${ac_cv_prog_f77_g+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.$ac_ext <<_ACEOF
7493 rm -f conftest.$ac_objext
7494 if { (ac_try="$ac_compile"
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500 (eval "$ac_compile") 2>conftest.er1
7502 grep -v '^ *+' conftest.er1 >conftest.err
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } && {
7507 test -z "$ac_f77_werror_flag" ||
7508 test ! -s conftest.err
7509 } && test -s conftest.$ac_objext; then
7510 ac_cv_prog_f77_g=yes
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7522 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7523 if test "$ac_test_FFLAGS" = set; then
7524 FFLAGS=$ac_save_FFLAGS
7525 elif test $ac_cv_prog_f77_g = yes; then
7526 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7532 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7539 G77=`test $ac_compiler_gnu = yes && echo yes`
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7550 # find the maximum length of command line arguments
7551 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7552 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7553 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 # On DJGPP, this test can blow up pretty badly due to problems in libc
7562 # (any single argument exceeding 2000 bytes causes a buffer overrun
7563 # during glob expansion). Even if it were fixed, the result of this
7564 # check would be larger than it should be.
7565 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7569 # Under GNU Hurd, this test is not required because there is
7570 # no limit to the length of command line arguments.
7571 # Libtool will interpret -1 as no limit whatsoever
7572 lt_cv_sys_max_cmd_len=-1;
7576 # On Win9x/ME, this test blows up -- it succeeds, but takes
7577 # about 5 minutes as the teststring grows exponentially.
7578 # Worse, since 9x/ME are not pre-emptively multitasking,
7579 # you end up with a "frozen" computer, even though with patience
7580 # the test eventually succeeds (with a max line length of 256k).
7581 # Instead, let's just punt: use the minimum linelength reported by
7582 # all of the supported platforms: 8192 (on NT/2K/XP).
7583 lt_cv_sys_max_cmd_len=8192;
7587 # On AmigaOS with pdksh, this test takes hours, literally.
7588 # So we just punt and use a minimum line length of 8192.
7589 lt_cv_sys_max_cmd_len=8192;
7592 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7593 # This has been around since 386BSD, at least. Likely further.
7594 if test -x /sbin/sysctl; then
7595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7596 elif test -x /usr/sbin/sysctl; then
7597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7601 # And add a safety zone
7602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7607 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7608 lt_cv_sys_max_cmd_len=196608
7612 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7613 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7614 # nice to cause kernel panics so lets avoid the loop below.
7615 # First set a reasonable default.
7616 lt_cv_sys_max_cmd_len=16384
7618 if test -x /sbin/sysconfig; then
7619 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7620 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7625 lt_cv_sys_max_cmd_len=102400
7627 sysv5* | sco5v6* | sysv4.2uw2*)
7628 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7629 if test -n "$kargmax"; then
7630 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7632 lt_cv_sys_max_cmd_len=32768
7636 # If test is not a shell built-in, we'll probably end up computing a
7637 # maximum length that is only half of the actual maximum length, but
7639 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7640 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7641 = "XX$teststring") >/dev/null 2>&1 &&
7642 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7643 lt_cv_sys_max_cmd_len=$new_result &&
7644 test $i != 17 # 1/2 MB should be enough
7647 teststring=$teststring$teststring
7650 # Add a significant safety factor because C++ compilers can tack on massive
7651 # amounts of additional arguments before passing them to the linker.
7652 # It appears as though 1/2 is a usable value.
7653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7659 if test -n $lt_cv_sys_max_cmd_len ; then
7660 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7661 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7663 { echo "$as_me:$LINENO: result: none" >&5
7664 echo "${ECHO_T}none" >&6; }
7670 # Check for command to grab the raw symbol name followed by C symbol from nm.
7671 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7672 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7673 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 # These are sane defaults that work on at least a few old systems.
7678 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7680 # Character class describing NM global symbol codes.
7681 symcode='[BCDEGRST]'
7683 # Regexp to match symbols that can be accessed directly from C.
7684 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7686 # Transform an extracted symbol line into a proper C declaration
7687 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7689 # Transform an extracted symbol line into symbol name and symbol address
7690 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'"
7692 # Define system-specific variables.
7697 cygwin* | mingw* | pw32*)
7698 symcode='[ABCDGISTW]'
7700 hpux*) # Its linker distinguishes data from code symbols
7701 if test "$host_cpu" = ia64; then
7702 symcode='[ABCDEGRST]'
7704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7705 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'"
7707 linux* | k*bsd*-gnu)
7708 if test "$host_cpu" = ia64; then
7709 symcode='[ABCDGIRSTW]'
7710 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7711 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'"
7715 symcode='[BCDEGRST]'
7718 symcode='[BCDEGQRST]'
7729 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7737 # Handle CRLF in mingw tool chain
7741 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7745 # If we're using GNU nm, then use its standard symbol codes.
7746 case `$NM -V 2>&1` in
7747 *GNU* | *'with BFD'*)
7748 symcode='[ABCDGIRSTW]' ;;
7751 # Try without a prefix undercore, then with it.
7752 for ac_symprfx in "" "_"; do
7754 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7755 symxfrm="\\1 $ac_symprfx\\2 \\2"
7757 # Write the raw and C identifiers.
7758 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7760 # Check to see that the pipe works correctly.
7764 cat > conftest.$ac_ext <<EOF
7769 void nm_test_func(){}
7773 int main(){nm_test_var='a';nm_test_func();return(0);}
7776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777 (eval $ac_compile) 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; then
7781 # Now try to grab the symbols.
7783 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7784 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && test -s "$nlist"; then
7788 # Try sorting and uniquifying the output.
7789 if sort "$nlist" | uniq > "$nlist"T; then
7790 mv -f "$nlist"T "$nlist"
7795 # Make sure that we snagged all the symbols we need.
7796 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7797 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7798 cat <<EOF > conftest.$ac_ext
7804 # Now generate the symbol file.
7805 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7807 cat <<EOF >> conftest.$ac_ext
7808 #if defined (__STDC__) && __STDC__
7809 # define lt_ptr_t void *
7811 # define lt_ptr_t char *
7815 /* The mapping between symbol names and symbols. */
7820 lt_preloaded_symbols[] =
7823 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7824 cat <<\EOF >> conftest.$ac_ext
7832 # Now try linking the two files.
7833 mv conftest.$ac_objext conftstm.$ac_objext
7834 lt_save_LIBS="$LIBS"
7835 lt_save_CFLAGS="$CFLAGS"
7836 LIBS="conftstm.$ac_objext"
7837 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7845 LIBS="$lt_save_LIBS"
7846 CFLAGS="$lt_save_CFLAGS"
7848 echo "cannot find nm_test_func in $nlist" >&5
7851 echo "cannot find nm_test_var in $nlist" >&5
7854 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7857 echo "$progname: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7860 rm -f conftest* conftst*
7862 # Do not use the global_symbol_pipe unless it works.
7863 if test "$pipe_works" = yes; then
7866 lt_cv_sys_global_symbol_pipe=
7872 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7873 lt_cv_sys_global_symbol_to_cdecl=
7875 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7876 { echo "$as_me:$LINENO: result: failed" >&5
7877 echo "${ECHO_T}failed" >&6; }
7879 { echo "$as_me:$LINENO: result: ok" >&5
7880 echo "${ECHO_T}ok" >&6; }
7883 { echo "$as_me:$LINENO: checking for objdir" >&5
7884 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7885 if test "${lt_cv_objdir+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 rm -f .libs 2>/dev/null
7889 mkdir .libs 2>/dev/null
7890 if test -d .libs; then
7893 # MS-DOS does not allow filenames that begin with a dot.
7896 rmdir .libs 2>/dev/null
7898 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7899 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7900 objdir=$lt_cv_objdir
7908 # AIX sometimes has problems with the GCC collect2 program. For some
7909 # reason, if we set the COLLECT_NAMES environment variable, the problems
7910 # vanish in a puff of smoke.
7911 if test "X${COLLECT_NAMES+set}" != Xset; then
7913 export COLLECT_NAMES
7918 # Sed substitution that helps us do robust quoting. It backslashifies
7919 # metacharacters that are still active within double-quoted strings.
7920 Xsed='sed -e 1s/^X//'
7921 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7923 # Same as above, but do not quote variable references.
7924 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7926 # Sed substitution to delay expansion of an escaped shell variable in a
7927 # double_quote_subst'ed string.
7928 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7930 # Sed substitution to avoid accidental globbing in evaled expressions
7931 no_glob_subst='s/\*/\\\*/g'
7937 default_ofile=libtool
7938 can_build_shared=yes
7940 # All known linkers require a `.a' archive for static linking (except MSVC,
7941 # which needs '.lib').
7943 ltmain="$ac_aux_dir/ltmain.sh"
7944 ofile="$default_ofile"
7945 with_gnu_ld="$lt_cv_prog_gnu_ld"
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}ar; ac_word=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_prog_AR+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 if test -n "$AR"; then
7956 ac_cv_prog_AR="$AR" # Let the user override the test.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_AR="${ac_tool_prefix}ar"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 if test -n "$AR"; then
7977 { echo "$as_me:$LINENO: result: $AR" >&5
7978 echo "${ECHO_T}$AR" >&6; }
7980 { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7986 if test -z "$ac_cv_prog_AR"; then
7988 # Extract the first word of "ar", so it can be a program name with args.
7989 set dummy ar; ac_word=$2
7990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7992 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 if test -n "$ac_ct_AR"; then
7996 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_prog_ac_ct_AR="ar"
8006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8016 if test -n "$ac_ct_AR"; then
8017 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8018 echo "${ECHO_T}$ac_ct_AR" >&6; }
8020 { echo "$as_me:$LINENO: result: no" >&5
8021 echo "${ECHO_T}no" >&6; }
8024 if test "x$ac_ct_AR" = x; then
8027 case $cross_compiling:$ac_tool_warned in
8029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8030 whose name does not start with the host triplet. If you think this
8031 configuration is useful to you, please write to autoconf@gnu.org." >&5
8032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8033 whose name does not start with the host triplet. If you think this
8034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8035 ac_tool_warned=yes ;;
8043 if test -n "$ac_tool_prefix"; then
8044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048 if test "${ac_cv_prog_RANLIB+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 if test -n "$RANLIB"; then
8052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 RANLIB=$ac_cv_prog_RANLIB
8072 if test -n "$RANLIB"; then
8073 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8074 echo "${ECHO_T}$RANLIB" >&6; }
8076 { echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6; }
8082 if test -z "$ac_cv_prog_RANLIB"; then
8083 ac_ct_RANLIB=$RANLIB
8084 # Extract the first word of "ranlib", so it can be a program name with args.
8085 set dummy ranlib; ac_word=$2
8086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8088 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 if test -n "$ac_ct_RANLIB"; then
8092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101 ac_cv_prog_ac_ct_RANLIB="ranlib"
8102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8112 if test -n "$ac_ct_RANLIB"; then
8113 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8114 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8116 { echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6; }
8120 if test "x$ac_ct_RANLIB" = x; then
8123 case $cross_compiling:$ac_tool_warned in
8125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8126 whose name does not start with the host triplet. If you think this
8127 configuration is useful to you, please write to autoconf@gnu.org." >&5
8128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8129 whose name does not start with the host triplet. If you think this
8130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8131 ac_tool_warned=yes ;;
8133 RANLIB=$ac_ct_RANLIB
8136 RANLIB="$ac_cv_prog_RANLIB"
8139 if test -n "$ac_tool_prefix"; then
8140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8141 set dummy ${ac_tool_prefix}strip; ac_word=$2
8142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8144 if test "${ac_cv_prog_STRIP+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 if test -n "$STRIP"; then
8148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 STRIP=$ac_cv_prog_STRIP
8168 if test -n "$STRIP"; then
8169 { echo "$as_me:$LINENO: result: $STRIP" >&5
8170 echo "${ECHO_T}$STRIP" >&6; }
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8178 if test -z "$ac_cv_prog_STRIP"; then
8180 # Extract the first word of "strip", so it can be a program name with args.
8181 set dummy strip; ac_word=$2
8182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8184 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 if test -n "$ac_ct_STRIP"; then
8188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8197 ac_cv_prog_ac_ct_STRIP="strip"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8208 if test -n "$ac_ct_STRIP"; then
8209 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8210 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8212 { echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6; }
8216 if test "x$ac_ct_STRIP" = x; then
8219 case $cross_compiling:$ac_tool_warned in
8221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8222 whose name does not start with the host triplet. If you think this
8223 configuration is useful to you, please write to autoconf@gnu.org." >&5
8224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8225 whose name does not start with the host triplet. If you think this
8226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8227 ac_tool_warned=yes ;;
8232 STRIP="$ac_cv_prog_STRIP"
8237 old_CFLAGS="$CFLAGS"
8239 # Set sane defaults for various variables
8240 test -z "$AR" && AR=ar
8241 test -z "$AR_FLAGS" && AR_FLAGS=cru
8242 test -z "$AS" && AS=as
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$DLLTOOL" && DLLTOOL=dlltool
8247 test -z "$LD" && LD=ld
8248 test -z "$LN_S" && LN_S="ln -s"
8249 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8250 test -z "$NM" && NM=nm
8251 test -z "$SED" && SED=sed
8252 test -z "$OBJDUMP" && OBJDUMP=objdump
8253 test -z "$RANLIB" && RANLIB=:
8254 test -z "$STRIP" && STRIP=:
8255 test -z "$ac_objext" && ac_objext=o
8257 # Determine commands to create old-style static archives.
8258 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8259 old_postinstall_cmds='chmod 644 $oldlib'
8260 old_postuninstall_cmds=
8262 if test -n "$RANLIB"; then
8265 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8271 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8274 for cc_temp in $compiler""; do
8276 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8277 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8282 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8285 # Only perform the check for file, if the check method requires it
8286 case $deplibs_check_method in
8288 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8289 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8290 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8291 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8299 lt_save_MAGIC_CMD="$MAGIC_CMD"
8300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8302 for ac_dir in $ac_dummy; do
8304 test -z "$ac_dir" && ac_dir=.
8305 if test -f $ac_dir/${ac_tool_prefix}file; then
8306 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8307 if test -n "$file_magic_test_file"; then
8308 case $deplibs_check_method in
8310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8313 $EGREP "$file_magic_regex" > /dev/null; then
8318 *** Warning: the command libtool uses to detect shared libraries,
8319 *** $file_magic_cmd, produces output that libtool cannot recognize.
8320 *** The result is that libtool may fail to recognize shared libraries
8321 *** as such. This will affect the creation of libtool libraries that
8322 *** depend on shared libraries, but programs linked with such libtool
8323 *** libraries will work regardless of this problem. Nevertheless, you
8324 *** may want to report the problem to your system manager and/or to
8325 *** bug-libtool@gnu.org
8335 MAGIC_CMD="$lt_save_MAGIC_CMD"
8340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8341 if test -n "$MAGIC_CMD"; then
8342 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8343 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8345 { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8349 if test -z "$lt_cv_path_MAGIC_CMD"; then
8350 if test -n "$ac_tool_prefix"; then
8351 { echo "$as_me:$LINENO: checking for file" >&5
8352 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8353 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8361 lt_save_MAGIC_CMD="$MAGIC_CMD"
8362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8364 for ac_dir in $ac_dummy; do
8366 test -z "$ac_dir" && ac_dir=.
8367 if test -f $ac_dir/file; then
8368 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8369 if test -n "$file_magic_test_file"; then
8370 case $deplibs_check_method in
8372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8375 $EGREP "$file_magic_regex" > /dev/null; then
8380 *** Warning: the command libtool uses to detect shared libraries,
8381 *** $file_magic_cmd, produces output that libtool cannot recognize.
8382 *** The result is that libtool may fail to recognize shared libraries
8383 *** as such. This will affect the creation of libtool libraries that
8384 *** depend on shared libraries, but programs linked with such libtool
8385 *** libraries will work regardless of this problem. Nevertheless, you
8386 *** may want to report the problem to your system manager and/or to
8387 *** bug-libtool@gnu.org
8397 MAGIC_CMD="$lt_save_MAGIC_CMD"
8402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8403 if test -n "$MAGIC_CMD"; then
8404 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8405 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8407 { echo "$as_me:$LINENO: result: no" >&5
8408 echo "${ECHO_T}no" >&6; }
8423 # Check whether --enable-libtool-lock was given.
8424 if test "${enable_libtool_lock+set}" = set; then
8425 enableval=$enable_libtool_lock;
8428 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8431 # Check whether --with-pic was given.
8432 if test "${with_pic+set}" = set; then
8433 withval=$with_pic; pic_mode="$withval"
8438 test -z "$pic_mode" && pic_mode=default
8440 # Use C for the default configuration in the libtool script
8444 ac_cpp='$CPP $CPPFLAGS'
8445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450 # Source file extension for C test sources.
8453 # Object file extension for compiled C test sources.
8457 # Code to be used in simple compile tests
8458 lt_simple_compile_test_code="int some_variable = 0;\n"
8460 # Code to be used in simple link tests
8461 lt_simple_link_test_code='int main(){return(0);}\n'
8464 # If no C compiler was specified, use CC.
8467 # If no C compiler flags were specified, use CFLAGS.
8468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8470 # Allow CC to be a program name with arguments.
8474 # save warnings/boilerplate of simple test code
8475 ac_outfile=conftest.$ac_objext
8476 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8477 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8478 _lt_compiler_boilerplate=`cat conftest.err`
8481 ac_outfile=conftest.$ac_objext
8482 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8483 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8484 _lt_linker_boilerplate=`cat conftest.err`
8489 lt_prog_compiler_no_builtin_flag=
8491 if test "$GCC" = yes; then
8492 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8495 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8497 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 lt_cv_prog_compiler_rtti_exceptions=no
8501 ac_outfile=conftest.$ac_objext
8502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8503 lt_compiler_flag="-fno-rtti -fno-exceptions"
8504 # Insert the option either (1) after the last *FLAGS variable, or
8505 # (2) before a word containing "conftest.", or (3) at the end.
8506 # Note that $ac_compile itself does not contain backslashes and begins
8507 # with a dollar sign (not a hyphen), so the echo should work correctly.
8508 # The option is referenced via a variable to avoid confusing sed.
8509 lt_compile=`echo "$ac_compile" | $SED \
8510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8512 -e 's:$: $lt_compiler_flag:'`
8513 (eval echo "\"\$as_me:8513: $lt_compile\"" >&5)
8514 (eval "$lt_compile" 2>conftest.err)
8516 cat conftest.err >&5
8517 echo "$as_me:8517: \$? = $ac_status" >&5
8518 if (exit $ac_status) && test -s "$ac_outfile"; then
8519 # The compiler can only warn and ignore the option if not recognized
8520 # So say no if there are warnings other than the usual output.
8521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8524 lt_cv_prog_compiler_rtti_exceptions=yes
8530 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8531 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8533 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8534 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8541 lt_prog_compiler_wl=
8542 lt_prog_compiler_pic=
8543 lt_prog_compiler_static=
8545 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8546 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8548 if test "$GCC" = yes; then
8549 lt_prog_compiler_wl='-Wl,'
8550 lt_prog_compiler_static='-static'
8554 # All AIX code is PIC.
8555 if test "$host_cpu" = ia64; then
8556 # AIX 5 now supports IA64 processor
8557 lt_prog_compiler_static='-Bstatic'
8562 # FIXME: we need at least 68020 code to build shared libraries, but
8563 # adding the `-m68020' flag to GCC prevents building anything better,
8565 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8568 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8569 # PIC is the default for these OSes.
8572 mingw* | pw32* | os2*)
8573 # This hack is so that the source file can tell whether it is being
8574 # built for inclusion in a dll (and should export symbols for example).
8575 lt_prog_compiler_pic='-DDLL_EXPORT'
8578 darwin* | rhapsody*)
8579 # PIC is the default on this platform
8580 # Common symbols not allowed in MH_DYLIB files
8581 lt_prog_compiler_pic='-fno-common'
8585 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8586 # Instead, we relocate shared libraries at runtime.
8590 # Just because we use GCC doesn't mean we suddenly get shared libraries
8591 # on systems that don't support them.
8592 lt_prog_compiler_can_build_shared=no
8597 if test -d /usr/nec; then
8598 lt_prog_compiler_pic=-Kconform_pic
8603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8610 lt_prog_compiler_pic='-fPIC'
8616 lt_prog_compiler_pic='-fPIC'
8620 # PORTME Check for flag to pass linker flags through the system compiler.
8623 lt_prog_compiler_wl='-Wl,'
8624 if test "$host_cpu" = ia64; then
8625 # AIX 5 now supports IA64 processor
8626 lt_prog_compiler_static='-Bstatic'
8628 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8632 # PIC is the default on this platform
8633 # Common symbols not allowed in MH_DYLIB files
8634 case $cc_basename in
8636 lt_prog_compiler_pic='-qnocommon'
8637 lt_prog_compiler_wl='-Wl,'
8642 mingw* | pw32* | os2*)
8643 # This hack is so that the source file can tell whether it is being
8644 # built for inclusion in a dll (and should export symbols for example).
8645 lt_prog_compiler_pic='-DDLL_EXPORT'
8648 hpux9* | hpux10* | hpux11*)
8649 lt_prog_compiler_wl='-Wl,'
8650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8657 lt_prog_compiler_pic='+Z'
8660 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8661 lt_prog_compiler_static='${wl}-a ${wl}archive'
8664 irix5* | irix6* | nonstopux*)
8665 lt_prog_compiler_wl='-Wl,'
8666 # PIC (with -KPIC) is the default.
8667 lt_prog_compiler_static='-non_shared'
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8675 linux* | k*bsd*-gnu)
8676 case $cc_basename in
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-static'
8682 pgcc* | pgf77* | pgf90* | pgf95*)
8683 # Portland Group compilers (*not* the Pentium gcc compiler,
8684 # which looks to be a dead project)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-fpic'
8687 lt_prog_compiler_static='-Bstatic'
8690 lt_prog_compiler_wl='-Wl,'
8691 # All Alpha code is PIC.
8692 lt_prog_compiler_static='-non_shared'
8697 osf3* | osf4* | osf5*)
8698 lt_prog_compiler_wl='-Wl,'
8699 # All OSF/1 code is PIC.
8700 lt_prog_compiler_static='-non_shared'
8704 lt_prog_compiler_pic='-KPIC'
8705 lt_prog_compiler_static='-Bstatic'
8706 case $cc_basename in
8708 lt_prog_compiler_wl='-Qoption ld ';;
8710 lt_prog_compiler_wl='-Wl,';;
8715 lt_prog_compiler_wl='-Qoption ld '
8716 lt_prog_compiler_pic='-PIC'
8717 lt_prog_compiler_static='-Bstatic'
8720 sysv4 | sysv4.2uw2* | sysv4.3*)
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8727 if test -d /usr/nec ;then
8728 lt_prog_compiler_pic='-Kconform_pic'
8729 lt_prog_compiler_static='-Bstatic'
8733 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-Bstatic'
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_can_build_shared=no
8745 lt_prog_compiler_pic='-pic'
8746 lt_prog_compiler_static='-Bstatic'
8750 lt_prog_compiler_can_build_shared=no
8755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8756 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8759 # Check to make sure the PIC flag actually works.
8761 if test -n "$lt_prog_compiler_pic"; then
8763 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8764 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8765 if test "${lt_prog_compiler_pic_works+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 lt_prog_compiler_pic_works=no
8769 ac_outfile=conftest.$ac_objext
8770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8771 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8772 # Insert the option either (1) after the last *FLAGS variable, or
8773 # (2) before a word containing "conftest.", or (3) at the end.
8774 # Note that $ac_compile itself does not contain backslashes and begins
8775 # with a dollar sign (not a hyphen), so the echo should work correctly.
8776 # The option is referenced via a variable to avoid confusing sed.
8777 lt_compile=`echo "$ac_compile" | $SED \
8778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8780 -e 's:$: $lt_compiler_flag:'`
8781 (eval echo "\"\$as_me:8781: $lt_compile\"" >&5)
8782 (eval "$lt_compile" 2>conftest.err)
8784 cat conftest.err >&5
8785 echo "$as_me:8785: \$? = $ac_status" >&5
8786 if (exit $ac_status) && test -s "$ac_outfile"; then
8787 # The compiler can only warn and ignore the option if not recognized
8788 # So say no if there are warnings other than the usual output.
8789 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8792 lt_prog_compiler_pic_works=yes
8798 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8799 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8801 if test x"$lt_prog_compiler_pic_works" = xyes; then
8802 case $lt_prog_compiler_pic in
8804 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8807 lt_prog_compiler_pic=
8808 lt_prog_compiler_can_build_shared=no
8813 # For platforms which do not support PIC, -DPIC is meaningless:
8815 lt_prog_compiler_pic=
8818 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8823 # Check to make sure the static flag actually works.
8825 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8826 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8827 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8828 if test "${lt_prog_compiler_static_works+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 lt_prog_compiler_static_works=no
8832 save_LDFLAGS="$LDFLAGS"
8833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8834 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8836 # The linker can only warn and ignore the option if not recognized
8837 # So say no if there are warnings
8838 if test -s conftest.err; then
8839 # Append any errors to the config.log.
8840 cat conftest.err 1>&5
8841 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8843 if diff conftest.exp conftest.er2 >/dev/null; then
8844 lt_prog_compiler_static_works=yes
8847 lt_prog_compiler_static_works=yes
8851 LDFLAGS="$save_LDFLAGS"
8854 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8855 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8857 if test x"$lt_prog_compiler_static_works" = xyes; then
8860 lt_prog_compiler_static=
8864 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8865 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8866 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 lt_cv_prog_compiler_c_o=no
8870 $rm -r conftest 2>/dev/null
8874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8876 lt_compiler_flag="-o out/conftest2.$ac_objext"
8877 # Insert the option either (1) after the last *FLAGS variable, or
8878 # (2) before a word containing "conftest.", or (3) at the end.
8879 # Note that $ac_compile itself does not contain backslashes and begins
8880 # with a dollar sign (not a hyphen), so the echo should work correctly.
8881 lt_compile=`echo "$ac_compile" | $SED \
8882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884 -e 's:$: $lt_compiler_flag:'`
8885 (eval echo "\"\$as_me:8885: $lt_compile\"" >&5)
8886 (eval "$lt_compile" 2>out/conftest.err)
8888 cat out/conftest.err >&5
8889 echo "$as_me:8889: \$? = $ac_status" >&5
8890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8892 # The compiler can only warn and ignore the option if not recognized
8893 # So say no if there are warnings
8894 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8897 lt_cv_prog_compiler_c_o=yes
8902 # SGI C++ compiler will create directory out/ii_files/ for
8903 # template instantiation
8904 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8905 $rm out/* && rmdir out
8911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8915 hard_links="nottested"
8916 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8917 # do not overwrite the value of need_locks provided by the user
8918 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8919 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8924 ln conftest.a conftest.b 2>&5 || hard_links=no
8925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8926 { echo "$as_me:$LINENO: result: $hard_links" >&5
8927 echo "${ECHO_T}$hard_links" >&6; }
8928 if test "$hard_links" = no; then
8929 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8930 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8937 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8941 allow_undefined_flag=
8942 enable_shared_with_static_runtimes=no
8944 archive_expsym_cmds=
8945 old_archive_From_new_cmds=
8946 old_archive_from_expsyms_cmds=
8947 export_dynamic_flag_spec=
8948 whole_archive_flag_spec=
8949 thread_safe_flag_spec=
8950 hardcode_libdir_flag_spec=
8951 hardcode_libdir_flag_spec_ld=
8952 hardcode_libdir_separator=
8955 hardcode_shlibpath_var=unsupported
8956 link_all_deplibs=unknown
8957 hardcode_automatic=no
8960 always_export_symbols=no
8961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8962 # include_expsyms should be a list of space-separated symbols to be *always*
8963 # included in the symbol list
8965 # exclude_expsyms can be an extended regexp of symbols to exclude
8966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8968 # as well as any symbol that contains `d'.
8969 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8971 # platforms (ab)use it in PIC code, but their linkers get confused if
8972 # the symbol is explicitly referenced. Since portable code cannot
8973 # rely on this symbol name, it's probably fine to never include it in
8974 # preloaded symbol tables.
8975 extract_expsyms_cmds=
8976 # Just being paranoid about ensuring that cc_basename is set.
8977 for cc_temp in $compiler""; do
8979 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8980 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8985 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8988 cygwin* | mingw* | pw32*)
8989 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8990 # When not using gcc, we currently assume that we are using
8991 # Microsoft Visual C++.
8992 if test "$GCC" != yes; then
8997 # we just hope/assume this is gcc and not c89 (= MSVC++)
9006 if test "$with_gnu_ld" = yes; then
9007 # If archive_cmds runs LD, not CC, wlarc should be empty
9010 # Set some defaults for GNU ld with shared library support. These
9011 # are reset later if shared libraries are not supported. Putting them
9012 # here allows them to be overridden if necessary.
9013 runpath_var=LD_RUN_PATH
9014 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9015 export_dynamic_flag_spec='${wl}--export-dynamic'
9016 # ancient GNU ld didn't support --whole-archive et. al.
9017 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9018 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9020 whole_archive_flag_spec=
9022 supports_anon_versioning=no
9023 case `$LD -v 2>/dev/null` in
9024 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9025 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9026 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9027 *\ 2.11.*) ;; # other 2.11 versions
9028 *) supports_anon_versioning=yes ;;
9031 # See if GNU ld supports shared libraries.
9033 aix3* | aix4* | aix5*)
9034 # On AIX/PPC, the GNU linker is very broken
9035 if test "$host_cpu" != ia64; then
9039 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9040 *** to be unable to reliably create shared libraries on AIX.
9041 *** Therefore, libtool is disabling shared libraries support. If you
9042 *** really care for shared libraries, you may want to modify your PATH
9043 *** so that a non-GNU linker is found, and then restart.
9050 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)'
9051 hardcode_libdir_flag_spec='-L$libdir'
9052 hardcode_minus_L=yes
9054 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9055 # that the semantics of dynamic libraries on AmigaOS, at least up
9056 # to version 4, is to share data among multiple programs linked
9057 # with the same dynamic library. Since this doesn't match the
9058 # behavior of shared libraries on other platforms, we can't use
9064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9065 allow_undefined_flag=unsupported
9066 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9067 # support --undefined. This deserves some investigation. FIXME
9068 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074 cygwin* | mingw* | pw32*)
9075 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9076 # as there is no search path for DLLs.
9077 hardcode_libdir_flag_spec='-L$libdir'
9078 allow_undefined_flag=unsupported
9079 always_export_symbols=no
9080 enable_shared_with_static_runtimes=yes
9081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9083 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9085 # If the export-symbols file already is a .def file (1st line
9086 # is EXPORTS), use it as is; otherwise, prepend...
9087 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9088 cp $export_symbols $output_objdir/$soname.def;
9090 echo EXPORTS > $output_objdir/$soname.def;
9091 cat $export_symbols >> $output_objdir/$soname.def;
9093 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9101 hardcode_shlibpath_var=no
9102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9103 export_dynamic_flag_spec='${wl}-E'
9104 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9105 # Instead, shared libraries are loaded at an image base (0x10000000 by
9106 # default) and relocated if they conflict, which is a slow very memory
9107 # consuming and fragmenting process. To avoid this, we pick a random,
9108 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9109 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9111 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'
9114 linux* | k*bsd*-gnu)
9115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9117 case $cc_basename,$host_cpu in
9118 pgcc*) # Portland Group C compiler
9119 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'
9120 tmp_addflag=' $pic_flag'
9122 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9123 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'
9124 tmp_addflag=' $pic_flag -Mnomain' ;;
9125 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9126 tmp_addflag=' -i_dynamic' ;;
9127 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9128 tmp_addflag=' -i_dynamic -nofor_main' ;;
9129 ifc* | ifort*) # Intel Fortran compiler
9130 tmp_addflag=' -nofor_main' ;;
9132 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 if test $supports_anon_versioning = yes; then
9135 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9137 $echo "local: *; };" >> $output_objdir/$libname.ver~
9138 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9146 netbsd* | netbsdelf*-gnu)
9147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9148 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9157 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9161 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9162 *** create shared libraries on Solaris systems. Therefore, libtool
9163 *** is disabling shared libraries support. We urge you to upgrade GNU
9164 *** binutils to release 2.9.1 or newer. Another option is to modify
9165 *** your PATH or compiler configuration so that the native linker is
9166 *** used, and then restart.
9169 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9178 case `$LD -v 2>&1` in
9179 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9183 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9184 *** reliably create shared libraries on SCO systems. Therefore, libtool
9185 *** is disabling shared libraries support. We urge you to upgrade GNU
9186 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9187 *** your PATH or compiler configuration so that the native linker is
9188 *** used, and then restart.
9193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9194 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9205 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9208 hardcode_shlibpath_var=no
9212 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9221 if test "$ld_shlibs" = no; then
9223 hardcode_libdir_flag_spec=
9224 export_dynamic_flag_spec=
9225 whole_archive_flag_spec=
9228 # PORTME fill in a description of your system's linker (not GNU ld)
9231 allow_undefined_flag=unsupported
9232 always_export_symbols=yes
9233 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'
9234 # Note: this linker hardcodes the directories in LIBPATH if there
9235 # are no directories specified by -L.
9236 hardcode_minus_L=yes
9237 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9238 # Neither direct hardcoding nor static linking is supported with a
9240 hardcode_direct=unsupported
9245 if test "$host_cpu" = ia64; then
9246 # On IA64, the linker does run time linking by default, so we don't
9247 # have to do anything special.
9248 aix_use_runtimelinking=no
9249 exp_sym_flag='-Bexport'
9252 # If we're using GNU nm, then we don't want the "-C" option.
9253 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9254 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9255 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'
9257 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'
9259 aix_use_runtimelinking=no
9261 # Test if we are trying to use run time linking or normal
9262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9263 # need to do runtime linking.
9264 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9265 for ld_flag in $LDFLAGS; do
9266 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9267 aix_use_runtimelinking=yes
9274 exp_sym_flag='-bexport'
9275 no_entry_flag='-bnoentry'
9278 # When large executables or shared objects are built, AIX ld can
9279 # have problems creating the table of contents. If linking a library
9280 # or program results in "error TOC overflow" add -mminimal-toc to
9281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9286 hardcode_libdir_separator=':'
9287 link_all_deplibs=yes
9289 if test "$GCC" = yes; then
9290 case $host_os in aix4.[012]|aix4.[012].*)
9291 # We only want to do this on AIX 4.2 and lower, the check
9292 # below for broken collect2 doesn't work under 4.3+
9293 collect2name=`${CC} -print-prog-name=collect2`
9294 if test -f "$collect2name" && \
9295 strings "$collect2name" | grep resolve_lib_name >/dev/null
9297 # We have reworked collect2
9300 # We have old collect2
9301 hardcode_direct=unsupported
9302 # It fails to find uninstalled libraries when the uninstalled
9303 # path is not listed in the libpath. Setting hardcode_minus_L
9304 # to unsupported forces relinking
9305 hardcode_minus_L=yes
9306 hardcode_libdir_flag_spec='-L$libdir'
9307 hardcode_libdir_separator=
9311 shared_flag='-shared'
9312 if test "$aix_use_runtimelinking" = yes; then
9313 shared_flag="$shared_flag "'${wl}-G'
9317 if test "$host_cpu" = ia64; then
9318 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9319 # chokes on -Wl,-G. The following line is correct:
9322 if test "$aix_use_runtimelinking" = yes; then
9323 shared_flag='${wl}-G'
9325 shared_flag='${wl}-bM:SRE'
9330 # It seems that -bexpall does not export symbols beginning with
9331 # underscore (_), so it is better to generate a list of symbols to export.
9332 always_export_symbols=yes
9333 if test "$aix_use_runtimelinking" = yes; then
9334 # Warning - without using the other runtime loading flags (-brtl),
9335 # -berok will link without error, but may produce a broken library.
9336 allow_undefined_flag='-berok'
9337 # Determine the default libpath from the value encoded in an empty executable.
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (ac_try="$ac_link"
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_link") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1 >conftest.err
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest$ac_exeext &&
9370 $as_test_x conftest$ac_exeext; then
9372 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9374 # Check for a 64-bit object if we didn't find anything.
9375 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9385 conftest$ac_exeext conftest.$ac_ext
9386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9389 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"
9391 if test "$host_cpu" = ia64; then
9392 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9393 allow_undefined_flag="-z nodefs"
9394 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"
9396 # Determine the default libpath from the value encoded in an empty executable.
9397 cat >conftest.$ac_ext <<_ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9412 rm -f conftest.$ac_objext conftest$ac_exeext
9413 if { (ac_try="$ac_link"
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_link") 2>conftest.er1
9421 grep -v '^ *+' conftest.er1 >conftest.err
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } && {
9426 test -z "$ac_c_werror_flag" ||
9427 test ! -s conftest.err
9428 } && test -s conftest$ac_exeext &&
9429 $as_test_x conftest$ac_exeext; then
9431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9433 # Check for a 64-bit object if we didn't find anything.
9434 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444 conftest$ac_exeext conftest.$ac_ext
9445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9447 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9448 # Warning - without using the other run time loading flags,
9449 # -berok will link without error, but may produce a broken library.
9450 no_undefined_flag=' ${wl}-bernotok'
9451 allow_undefined_flag=' ${wl}-berok'
9452 # Exported symbols can be pulled into shared objects from archives
9453 whole_archive_flag_spec='$convenience'
9454 archive_cmds_need_lc=yes
9455 # This is similar to how AIX traditionally builds its shared libraries.
9456 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'
9462 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)'
9463 hardcode_libdir_flag_spec='-L$libdir'
9464 hardcode_minus_L=yes
9465 # see comment about different semantics on the GNU ld section
9470 export_dynamic_flag_spec=-rdynamic
9473 cygwin* | mingw* | pw32*)
9474 # When not using gcc, we currently assume that we are using
9475 # Microsoft Visual C++.
9476 # hardcode_libdir_flag_spec is actually meaningless, as there is
9477 # no search path for DLLs.
9478 hardcode_libdir_flag_spec=' '
9479 allow_undefined_flag=unsupported
9480 # Tell ltmain to make .lib files, not .a files.
9482 # Tell ltmain to make .dll files, not .so files.
9484 # FIXME: Setting linknames here is a bad hack.
9485 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9486 # The linker will automatically build a .lib file if we build a DLL.
9487 old_archive_From_new_cmds='true'
9488 # FIXME: Should let the user specify the lib program.
9489 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9490 fix_srcfile_path='`cygpath -w "$srcfile"`'
9491 enable_shared_with_static_runtimes=yes
9494 darwin* | rhapsody*)
9496 rhapsody* | darwin1.[012])
9497 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9500 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9501 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9503 case ${MACOSX_DEPLOYMENT_TARGET} in
9505 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9508 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9514 archive_cmds_need_lc=no
9516 hardcode_automatic=yes
9517 hardcode_shlibpath_var=unsupported
9518 whole_archive_flag_spec=''
9519 link_all_deplibs=yes
9520 if test "$GCC" = yes ; then
9521 output_verbose_link_cmd='echo'
9522 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9523 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9524 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9525 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}'
9526 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}'
9528 case $cc_basename in
9530 output_verbose_link_cmd='echo'
9531 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9532 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9533 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9534 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9535 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}'
9545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='-L$libdir'
9547 hardcode_shlibpath_var=no
9554 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9555 # support. Future versions do this automatically, but an explicit c++rt0.o
9556 # does not break anything, and helps significantly (at the cost of a little
9559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9560 hardcode_libdir_flag_spec='-R$libdir'
9562 hardcode_shlibpath_var=no
9565 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9569 hardcode_minus_L=yes
9570 hardcode_shlibpath_var=no
9573 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9574 freebsd* | dragonfly*)
9575 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9576 hardcode_libdir_flag_spec='-R$libdir'
9578 hardcode_shlibpath_var=no
9582 if test "$GCC" = yes; then
9583 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'
9585 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'
9587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588 hardcode_libdir_separator=:
9591 # hardcode_minus_L: Not really in the search PATH,
9592 # but as the default location of the library.
9593 hardcode_minus_L=yes
9594 export_dynamic_flag_spec='${wl}-E'
9598 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9603 if test "$with_gnu_ld" = no; then
9604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9605 hardcode_libdir_separator=:
9608 export_dynamic_flag_spec='${wl}-E'
9610 # hardcode_minus_L: Not really in the search PATH,
9611 # but as the default location of the library.
9612 hardcode_minus_L=yes
9617 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9620 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9642 if test "$with_gnu_ld" = no; then
9643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9644 hardcode_libdir_separator=:
9648 hardcode_libdir_flag_spec_ld='+b $libdir'
9650 hardcode_shlibpath_var=no
9654 export_dynamic_flag_spec='${wl}-E'
9656 # hardcode_minus_L: Not really in the search PATH,
9657 # but as the default location of the library.
9658 hardcode_minus_L=yes
9664 irix5* | irix6* | nonstopux*)
9665 if test "$GCC" = yes; then
9666 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'
9668 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'
9669 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9672 hardcode_libdir_separator=:
9673 link_all_deplibs=yes
9676 netbsd* | netbsdelf*-gnu)
9677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9680 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9682 hardcode_libdir_flag_spec='-R$libdir'
9684 hardcode_shlibpath_var=no
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9691 hardcode_libdir_separator=:
9692 hardcode_shlibpath_var=no
9697 hardcode_shlibpath_var=no
9698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9702 export_dynamic_flag_spec='${wl}-E'
9705 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_libdir_flag_spec='-R$libdir'
9710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9718 hardcode_libdir_flag_spec='-L$libdir'
9719 hardcode_minus_L=yes
9720 allow_undefined_flag=unsupported
9721 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'
9722 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9726 if test "$GCC" = yes; then
9727 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9728 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'
9730 allow_undefined_flag=' -expect_unresolved \*'
9731 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'
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator=:
9737 osf4* | osf5*) # as osf3* with the addition of -msym flag
9738 if test "$GCC" = yes; then
9739 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9740 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'
9741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743 allow_undefined_flag=' -expect_unresolved \*'
9744 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'
9745 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9746 $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'
9748 # Both c and cxx compiler support -rpath directly
9749 hardcode_libdir_flag_spec='-rpath $libdir'
9751 hardcode_libdir_separator=:
9755 no_undefined_flag=' -z text'
9756 if test "$GCC" = yes; then
9758 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9760 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9763 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9765 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9767 hardcode_libdir_flag_spec='-R$libdir'
9768 hardcode_shlibpath_var=no
9770 solaris2.[0-5] | solaris2.[0-5].*) ;;
9772 # The compiler driver will combine linker options so we
9773 # cannot just pass the convience library names through
9774 # without $wl, iff we do not link with $LD.
9775 # Luckily, gcc supports the same syntax we need for Sun Studio.
9776 # Supported since Solaris 2.6 (maybe 2.5.1?)
9779 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9781 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9784 link_all_deplibs=yes
9788 if test "x$host_vendor" = xsequent; then
9789 # Use $CC to link under sequent, because it throws in some extra .o
9790 # files that make .init and .fini sections work.
9791 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9793 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9795 hardcode_libdir_flag_spec='-L$libdir'
9797 hardcode_minus_L=yes
9798 hardcode_shlibpath_var=no
9802 case $host_vendor in
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_direct=yes # is this really true???
9808 ## LD is ld it makes a PLAMLIB
9809 ## CC just makes a GrossModule.
9810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9811 reload_cmds='$CC -r -o $output$reload_objs'
9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9819 runpath_var='LD_RUN_PATH'
9820 hardcode_shlibpath_var=no
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_shlibpath_var=no
9826 export_dynamic_flag_spec='-Bexport'
9830 if test -d /usr/nec; then
9831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_shlibpath_var=no
9833 runpath_var=LD_RUN_PATH
9834 hardcode_runpath_var=yes
9839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9840 no_undefined_flag='${wl}-z,text'
9841 archive_cmds_need_lc=no
9842 hardcode_shlibpath_var=no
9843 runpath_var='LD_RUN_PATH'
9845 if test "$GCC" = yes; then
9846 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 sysv5* | sco3.2v5* | sco5v6*)
9855 # Note: We can NOT use -z defs as we might desire, because we do not
9856 # link with -lc, and that would cause any symbols used from libc to
9857 # always be unresolved, which means just about no library would
9858 # ever link correctly. If we're not using GNU ld we use -z text
9859 # though, which does catch some bad symbols but isn't as heavy-handed
9861 no_undefined_flag='${wl}-z,text'
9862 allow_undefined_flag='${wl}-z,nodefs'
9863 archive_cmds_need_lc=no
9864 hardcode_shlibpath_var=no
9865 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9866 hardcode_libdir_separator=':'
9867 link_all_deplibs=yes
9868 export_dynamic_flag_spec='${wl}-Bexport'
9869 runpath_var='LD_RUN_PATH'
9871 if test "$GCC" = yes; then
9872 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_shlibpath_var=no
9892 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9893 echo "${ECHO_T}$ld_shlibs" >&6; }
9894 test "$ld_shlibs" = no && can_build_shared=no
9897 # Do we need to explicitly link libc?
9899 case "x$archive_cmds_need_lc" in
9901 # Assume -lc should be added
9902 archive_cmds_need_lc=yes
9904 if test "$enable_shared" = yes && test "$GCC" = yes; then
9905 case $archive_cmds in
9907 # FIXME: we may have to deal with multi-command sequences.
9910 # Test whether the compiler implicitly links with -lc since on some
9911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9912 # to ld, don't add -lc before -lgcc.
9913 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9914 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9916 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9919 (eval $ac_compile) 2>&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } 2>conftest.err; then
9925 libobjs=conftest.$ac_objext
9927 wl=$lt_prog_compiler_wl
9928 pic_flag=$lt_prog_compiler_pic
9934 lt_save_allow_undefined_flag=$allow_undefined_flag
9935 allow_undefined_flag=
9936 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9937 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }
9942 archive_cmds_need_lc=no
9944 archive_cmds_need_lc=yes
9946 allow_undefined_flag=$lt_save_allow_undefined_flag
9948 cat conftest.err 1>&5
9951 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9952 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9959 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9960 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9962 libname_spec='lib$name'
9970 shlibpath_overrides_runpath=unknown
9972 dynamic_linker="$host_os ld.so"
9973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9974 if test "$GCC" = yes; then
9975 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9976 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9977 # if the path contains ";" then we assume it to be the separator
9978 # otherwise default to the standard path separator (i.e. ":") - it is
9979 # assumed that no part of a normal pathname contains ";" but that should
9980 # okay in the real world where ";" in dirpaths is itself problematic.
9981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9988 need_lib_prefix=unknown
9989 hardcode_into_libs=no
9991 # when you set need_version to no, make sure it does not cause -set_version
9992 # flags to be left without arguments
9993 need_version=unknown
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9999 shlibpath_var=LIBPATH
10001 # AIX 3 has no versioning support, so we append a major version to the name.
10002 soname_spec='${libname}${release}${shared_ext}$major'
10009 hardcode_into_libs=yes
10010 if test "$host_cpu" = ia64; then
10011 # AIX 5 supports IA64
10012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10013 shlibpath_var=LD_LIBRARY_PATH
10015 # With GCC up to 2.95.x, collect2 would create an import file
10016 # for dependence libraries. The import file would start with
10017 # the line `#! .'. This would cause the generated library to
10018 # depend on `.', always an invalid library. This was fixed in
10019 # development snapshots of GCC prior to 3.0.
10021 aix4 | aix4.[01] | aix4.[01].*)
10022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10024 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10027 can_build_shared=no
10031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10032 # soname into executable. Probably we can add versioning support to
10033 # collect2, so additional links can be useful in future.
10034 if test "$aix_use_runtimelinking" = yes; then
10035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10036 # instead of lib<name>.a to let people know that these are not
10037 # typical AIX shared libraries.
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040 # We preserve .a as extension for shared libraries through AIX4.2
10041 # and later when we are not doing run time linking.
10042 library_names_spec='${libname}${release}.a $libname.a'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LIBPATH
10050 library_names_spec='$libname.ixlibrary $libname.a'
10051 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10052 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'
10056 library_names_spec='${libname}${shared_ext}'
10057 dynamic_linker="$host_os ld.so"
10058 shlibpath_var=LIBRARY_PATH
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10070 # the default ld.so.conf also contains /usr/contrib/lib and
10071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10072 # libtool to hard-code these into programs
10075 cygwin* | mingw* | pw32*)
10076 version_type=windows
10081 case $GCC,$host_os in
10082 yes,cygwin* | yes,mingw* | yes,pw32*)
10083 library_names_spec='$libname.dll.a'
10084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10085 postinstall_cmds='base_file=`basename \${file}`~
10086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10087 dldir=$destdir/`dirname \$dlpath`~
10088 test -d \$dldir || mkdir -p \$dldir~
10089 $install_prog $dir/$dlname \$dldir/$dlname~
10090 chmod a+x \$dldir/$dlname'
10091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10092 dlpath=$dir/\$dldll~
10094 shlibpath_overrides_runpath=yes
10098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10100 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10103 # MinGW DLLs use traditional 'lib' prefix
10104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10107 # It is most probably a Windows format PATH printed by
10108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10109 # path with ; separators, and with drive letters. We can handle the
10110 # drive letters (cygwin fileutils understands them), so leave them,
10111 # especially as we might pass files found there to a mingw objdump,
10112 # which wouldn't understand a cygwinified path. Ahh.
10113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10119 # pw32 DLLs use 'pw' prefix rather than 'lib'
10120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10126 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10129 dynamic_linker='Win32 ld.exe'
10130 # FIXME: first we should search . and the directory the executable is in
10134 darwin* | rhapsody*)
10135 dynamic_linker="$host_os dyld"
10136 version_type=darwin
10139 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10140 soname_spec='${libname}${release}${major}$shared_ext'
10141 shlibpath_overrides_runpath=yes
10142 shlibpath_var=DYLD_LIBRARY_PATH
10143 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10144 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10145 if test "$GCC" = yes; then
10146 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10148 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 shlibpath_var=LD_LIBRARY_PATH
10166 freebsd* | dragonfly*)
10167 # DragonFly does not have aout. When/if they implement a new
10168 # versioning mechanism, adjust this.
10169 if test -x /usr/bin/objformat; then
10170 objformat=`/usr/bin/objformat`
10173 freebsd[123]*) objformat=aout ;;
10174 *) objformat=elf ;;
10177 version_type=freebsd-$objformat
10178 case $version_type in
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10189 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes
10194 freebsd3.[01]* | freebsdelf3.[01]*)
10195 shlibpath_overrides_runpath=yes
10196 hardcode_into_libs=yes
10198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10200 shlibpath_overrides_runpath=no
10201 hardcode_into_libs=yes
10203 freebsd*) # from 4.6 on
10204 shlibpath_overrides_runpath=yes
10205 hardcode_into_libs=yes
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 hardcode_into_libs=yes
10220 hpux9* | hpux10* | hpux11*)
10221 # Give a soname corresponding to the major version so that dld.sl refuses to
10222 # link against other versions.
10229 hardcode_into_libs=yes
10230 dynamic_linker="$host_os dld.so"
10231 shlibpath_var=LD_LIBRARY_PATH
10232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 if test "X$HPUX_IA64_MODE" = X32; then
10236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10244 hardcode_into_libs=yes
10245 dynamic_linker="$host_os dld.sl"
10246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10255 dynamic_linker="$host_os dld.sl"
10256 shlibpath_var=SHLIB_PATH
10257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10263 postinstall_cmds='chmod 555 $lib'
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 shlibpath_overrides_runpath=no
10275 hardcode_into_libs=yes
10278 irix5* | irix6* | nonstopux*)
10280 nonstopux*) version_type=nonstopux ;;
10282 if test "$lt_cv_prog_gnu_ld" = yes; then
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10293 irix5* | nonstopux*)
10294 libsuff= shlibsuff=
10297 case $LD in # libtool.m4 will add one of these switches to LD
10298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10299 libsuff= shlibsuff= libmagic=32-bit;;
10300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10301 libsuff=32 shlibsuff=N32 libmagic=N32;;
10302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10304 *) libsuff= shlibsuff= libmagic=never-match;;
10308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10309 shlibpath_overrides_runpath=no
10310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10312 hardcode_into_libs=yes
10315 # No shared lib support for Linux oldld, aout, or coff.
10316 linux*oldld* | linux*aout* | linux*coff*)
10320 # This must be Linux ELF.
10321 linux* | k*bsd*-gnu)
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=no
10330 # This implies no fast_install, which is unacceptable.
10331 # Some rework will be needed to allow for fast_install
10332 # before this can be enabled.
10333 hardcode_into_libs=yes
10335 # Append ld.so.conf contents to the search path
10336 if test -f /etc/ld.so.conf; then
10337 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10341 # We used to test for /lib/ld.so.1 and disable shared libraries on
10342 # powerpc, because MkLinux only supported shared libraries with the
10343 # GNU dynamic linker. Since this was broken with cross compilers,
10344 # most powerpc-linux boxes support dynamic linking these days and
10345 # people can always --disable-shared, the test was removed, and we
10346 # assume the GNU/Linux dynamic linker is in use.
10347 dynamic_linker='GNU/Linux ld.so'
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=no
10358 hardcode_into_libs=yes
10359 dynamic_linker='NetBSD ld.elf_so'
10366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10369 dynamic_linker='NetBSD (a.out) ld.so'
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 dynamic_linker='NetBSD ld.elf_so'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=yes
10377 hardcode_into_libs=yes
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=yes
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 shlibpath_overrides_runpath=yes
10399 sys_lib_dlsearch_path_spec="/usr/lib"
10401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10403 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10404 *) need_version=no ;;
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10411 openbsd2.[89] | openbsd2.[89].*)
10412 shlibpath_overrides_runpath=no
10415 shlibpath_overrides_runpath=yes
10419 shlibpath_overrides_runpath=yes
10424 libname_spec='$name'
10427 library_names_spec='$libname${shared_ext} $libname.a'
10428 dynamic_linker='OS/2 ld.exe'
10429 shlibpath_var=LIBPATH
10432 osf3* | osf4* | osf5*)
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10452 # ldd complains unless libraries are executable
10453 postinstall_cmds='chmod +x $lib'
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10462 if test "$with_gnu_ld" = yes; then
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 case $host_vendor in
10475 shlibpath_overrides_runpath=no
10477 export_dynamic_flag_spec='${wl}-Blargedynsym'
10478 runpath_var=LD_RUN_PATH
10486 shlibpath_overrides_runpath=no
10487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10493 if test -d /usr/nec ;then
10495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10496 soname_spec='$libname${shared_ext}.$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10502 version_type=freebsd-elf
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 shlibpath_var=LD_LIBRARY_PATH
10508 hardcode_into_libs=yes
10509 if test "$with_gnu_ld" = yes; then
10510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10511 shlibpath_overrides_runpath=no
10513 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10514 shlibpath_overrides_runpath=yes
10517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10521 sys_lib_dlsearch_path_spec='/usr/lib'
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10535 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10536 echo "${ECHO_T}$dynamic_linker" >&6; }
10537 test "$dynamic_linker" = no && can_build_shared=no
10539 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10540 if test "$GCC" = yes; then
10541 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10544 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10545 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10547 if test -n "$hardcode_libdir_flag_spec" || \
10548 test -n "$runpath_var" || \
10549 test "X$hardcode_automatic" = "Xyes" ; then
10551 # We can hardcode non-existant directories.
10552 if test "$hardcode_direct" != no &&
10553 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10554 # have to relink, otherwise we might link with an installed library
10555 # when we should be linking with a yet-to-be-installed one
10556 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10557 test "$hardcode_minus_L" != no; then
10558 # Linking always hardcodes the temporary library directory.
10559 hardcode_action=relink
10561 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10562 hardcode_action=immediate
10565 # We cannot hardcode anything, or else we can only hardcode existing
10567 hardcode_action=unsupported
10569 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10570 echo "${ECHO_T}$hardcode_action" >&6; }
10572 if test "$hardcode_action" = relink; then
10573 # Fast installation is not supported
10574 enable_fast_install=no
10575 elif test "$shlibpath_overrides_runpath" = yes ||
10576 test "$enable_shared" = no; then
10577 # Fast installation is not necessary
10578 enable_fast_install=needless
10583 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10584 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10585 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10586 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10587 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10588 { echo "$as_me:$LINENO: result: yes" >&5
10589 echo "${ECHO_T}yes" >&6; }
10591 # FIXME - insert some real tests, host_os isn't really good enough
10594 if test -n "$STRIP" ; then
10595 striplib="$STRIP -x"
10596 { echo "$as_me:$LINENO: result: yes" >&5
10597 echo "${ECHO_T}yes" >&6; }
10599 { echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6; }
10604 { echo "$as_me:$LINENO: result: no" >&5
10605 echo "${ECHO_T}no" >&6; }
10610 if test "x$enable_dlopen" != xyes; then
10611 enable_dlopen=unknown
10612 enable_dlopen_self=unknown
10613 enable_dlopen_self_static=unknown
10620 lt_cv_dlopen="load_add_on"
10622 lt_cv_dlopen_self=yes
10626 lt_cv_dlopen="LoadLibrary"
10631 lt_cv_dlopen="dlopen"
10636 # if libdl is installed we need to link against it
10637 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10638 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10639 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 ac_check_lib_save_LIBS=$LIBS
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_link") 2>conftest.er1
10675 grep -v '^ *+' conftest.er1 >conftest.err
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest$ac_exeext &&
10683 $as_test_x conftest$ac_exeext; then
10684 ac_cv_lib_dl_dlopen=yes
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 ac_cv_lib_dl_dlopen=no
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10696 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10698 if test $ac_cv_lib_dl_dlopen = yes; then
10699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10702 lt_cv_dlopen="dyld"
10704 lt_cv_dlopen_self=yes
10711 { echo "$as_me:$LINENO: checking for shl_load" >&5
10712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10713 if test "${ac_cv_func_shl_load+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 cat >conftest.$ac_ext <<_ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10724 #define shl_load innocuous_shl_load
10726 /* System header to define __stub macros and hopefully few prototypes,
10727 which can conflict with char shl_load (); below.
10728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729 <limits.h> exists even on freestanding compilers. */
10732 # include <limits.h>
10734 # include <assert.h>
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10746 /* The GNU C library defines this for functions which it implements
10747 to always fail with ENOSYS. Some functions are actually named
10748 something starting with __ and the normal name is an alias. */
10749 #if defined __stub_shl_load || defined __stub___shl_load
10756 return shl_load ();
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_link") 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext &&
10778 $as_test_x conftest$ac_exeext; then
10779 ac_cv_func_shl_load=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_cv_func_shl_load=no
10787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10788 conftest$ac_exeext conftest.$ac_ext
10790 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10791 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10792 if test $ac_cv_func_shl_load = yes; then
10793 lt_cv_dlopen="shl_load"
10795 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10796 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10797 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 ac_check_lib_save_LIBS=$LIBS
10802 cat >conftest.$ac_ext <<_ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10819 return shl_load ();
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest$ac_exeext &&
10841 $as_test_x conftest$ac_exeext; then
10842 ac_cv_lib_dld_shl_load=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 ac_cv_lib_dld_shl_load=no
10850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10852 LIBS=$ac_check_lib_save_LIBS
10854 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10855 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10856 if test $ac_cv_lib_dld_shl_load = yes; then
10857 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10859 { echo "$as_me:$LINENO: checking for dlopen" >&5
10860 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10861 if test "${ac_cv_func_dlopen+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10872 #define dlopen innocuous_dlopen
10874 /* System header to define __stub macros and hopefully few prototypes,
10875 which can conflict with char dlopen (); below.
10876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10877 <limits.h> exists even on freestanding compilers. */
10880 # include <limits.h>
10882 # include <assert.h>
10887 /* Override any GCC internal prototype to avoid an error.
10888 Use char because int might match the return type of a GCC
10889 builtin and then its argument prototype would still apply. */
10894 /* The GNU C library defines this for functions which it implements
10895 to always fail with ENOSYS. Some functions are actually named
10896 something starting with __ and the normal name is an alias. */
10897 #if defined __stub_dlopen || defined __stub___dlopen
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_link") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest$ac_exeext &&
10926 $as_test_x conftest$ac_exeext; then
10927 ac_cv_func_dlopen=yes
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 ac_cv_func_dlopen=no
10935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10936 conftest$ac_exeext conftest.$ac_ext
10938 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10939 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10940 if test $ac_cv_func_dlopen = yes; then
10941 lt_cv_dlopen="dlopen"
10943 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10944 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 ac_check_lib_save_LIBS=$LIBS
10950 cat >conftest.$ac_ext <<_ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10957 /* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (ac_try="$ac_link"
10974 case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_link") 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest$ac_exeext &&
10989 $as_test_x conftest$ac_exeext; then
10990 ac_cv_lib_dl_dlopen=yes
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 ac_cv_lib_dl_dlopen=no
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11002 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11003 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11004 if test $ac_cv_lib_dl_dlopen = yes; then
11005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11008 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lsvld $LIBS"
11014 cat >conftest.$ac_ext <<_ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest$ac_exeext &&
11053 $as_test_x conftest$ac_exeext; then
11054 ac_cv_lib_svld_dlopen=yes
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_cv_lib_svld_dlopen=no
11062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11066 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11067 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11068 if test $ac_cv_lib_svld_dlopen = yes; then
11069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11071 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11072 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11073 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 ac_check_lib_save_LIBS=$LIBS
11078 cat >conftest.$ac_ext <<_ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11085 /* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
11095 return dld_link ();
11100 rm -f conftest.$ac_objext conftest$ac_exeext
11101 if { (ac_try="$ac_link"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_link") 2>conftest.er1
11109 grep -v '^ *+' conftest.er1 >conftest.err
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } && {
11114 test -z "$ac_c_werror_flag" ||
11115 test ! -s conftest.err
11116 } && test -s conftest$ac_exeext &&
11117 $as_test_x conftest$ac_exeext; then
11118 ac_cv_lib_dld_dld_link=yes
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ac_cv_lib_dld_dld_link=no
11126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11131 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11132 if test $ac_cv_lib_dld_dld_link = yes; then
11133 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11154 if test "x$lt_cv_dlopen" != xno; then
11160 case $lt_cv_dlopen in
11162 save_CPPFLAGS="$CPPFLAGS"
11163 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11165 save_LDFLAGS="$LDFLAGS"
11166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11169 LIBS="$lt_cv_dlopen_libs $LIBS"
11171 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11172 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11173 if test "${lt_cv_dlopen_self+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 if test "$cross_compiling" = yes; then :
11177 lt_cv_dlopen_self=cross
11179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11180 lt_status=$lt_dlunknown
11181 cat > conftest.$ac_ext <<EOF
11182 #line 11182 "configure"
11183 #include "confdefs.h"
11192 # define LT_DLGLOBAL RTLD_GLOBAL
11195 # define LT_DLGLOBAL DL_GLOBAL
11197 # define LT_DLGLOBAL 0
11201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11202 find out it does not work in some platform. */
11203 #ifndef LT_DLLAZY_OR_NOW
11205 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11208 # define LT_DLLAZY_OR_NOW DL_LAZY
11211 # define LT_DLLAZY_OR_NOW RTLD_NOW
11214 # define LT_DLLAZY_OR_NOW DL_NOW
11216 # define LT_DLLAZY_OR_NOW 0
11224 extern "C" void exit (int);
11227 void fnord() { int i=42;}
11230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231 int status = $lt_dlunknown;
11235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11236 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11237 /* dlclose (self); */
11245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246 (eval $ac_link) 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11250 (./conftest; exit; ) >&5 2>/dev/null
11252 case x$lt_status in
11253 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11254 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11255 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11258 # compilation failed
11259 lt_cv_dlopen_self=no
11266 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11267 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11269 if test "x$lt_cv_dlopen_self" = xyes; then
11270 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11271 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11272 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11273 if test "${lt_cv_dlopen_self_static+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 if test "$cross_compiling" = yes; then :
11277 lt_cv_dlopen_self_static=cross
11279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11280 lt_status=$lt_dlunknown
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11282 "configure"
11283 #include "confdefs.h"
11292 # define LT_DLGLOBAL RTLD_GLOBAL
11295 # define LT_DLGLOBAL DL_GLOBAL
11297 # define LT_DLGLOBAL 0
11301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11302 find out it does not work in some platform. */
11303 #ifndef LT_DLLAZY_OR_NOW
11305 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11308 # define LT_DLLAZY_OR_NOW DL_LAZY
11311 # define LT_DLLAZY_OR_NOW RTLD_NOW
11314 # define LT_DLLAZY_OR_NOW DL_NOW
11316 # define LT_DLLAZY_OR_NOW 0
11324 extern "C" void exit (int);
11327 void fnord() { int i=42;}
11330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11331 int status = $lt_dlunknown;
11335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11336 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11337 /* dlclose (self); */
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11350 (./conftest; exit; ) >&5 2>/dev/null
11352 case x$lt_status in
11353 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11354 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11355 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11358 # compilation failed
11359 lt_cv_dlopen_self_static=no
11366 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11367 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11370 CPPFLAGS="$save_CPPFLAGS"
11371 LDFLAGS="$save_LDFLAGS"
11376 case $lt_cv_dlopen_self in
11377 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11378 *) enable_dlopen_self=unknown ;;
11381 case $lt_cv_dlopen_self_static in
11382 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11383 *) enable_dlopen_self_static=unknown ;;
11388 # Report which library types will actually be built
11389 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11390 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11391 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11392 echo "${ECHO_T}$can_build_shared" >&6; }
11394 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11395 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11396 test "$can_build_shared" = "no" && enable_shared=no
11398 # On AIX, shared libraries and static libraries use the same namespace, and
11399 # are all built from PIC.
11402 test "$enable_shared" = yes && enable_static=no
11403 if test -n "$RANLIB"; then
11404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11405 postinstall_cmds='$RANLIB $lib'
11410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11411 test "$enable_shared" = yes && enable_static=no
11415 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11416 echo "${ECHO_T}$enable_shared" >&6; }
11418 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11419 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11420 # Make sure either enable_shared or enable_static is yes.
11421 test "$enable_shared" = yes || enable_static=yes
11422 { echo "$as_me:$LINENO: result: $enable_static" >&5
11423 echo "${ECHO_T}$enable_static" >&6; }
11425 # The else clause should only fire when bootstrapping the
11426 # libtool distribution, otherwise you forgot to ship ltmain.sh
11427 # with your package, and you will get complaints that there are
11428 # no rules to generate ltmain.sh.
11429 if test -f "$ltmain"; then
11430 # See if we are running on zsh, and set the options which allow our commands through
11431 # without removal of \ escapes.
11432 if test -n "${ZSH_VERSION+set}" ; then
11433 setopt NO_GLOB_SUBST
11435 # Now quote all the things that may contain metacharacters while being
11436 # careful not to overquote the AC_SUBSTed values. We take copies of the
11437 # variables and quote the copies for generation of the libtool script.
11438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11440 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11441 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11442 deplibs_check_method reload_flag reload_cmds need_locks \
11443 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11444 lt_cv_sys_global_symbol_to_c_name_address \
11445 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11446 old_postinstall_cmds old_postuninstall_cmds \
11450 lt_prog_compiler_wl \
11451 lt_prog_compiler_pic \
11452 lt_prog_compiler_static \
11453 lt_prog_compiler_no_builtin_flag \
11454 export_dynamic_flag_spec \
11455 thread_safe_flag_spec \
11456 whole_archive_flag_spec \
11457 enable_shared_with_static_runtimes \
11459 old_archive_from_new_cmds \
11464 compiler_lib_search_path \
11466 archive_expsym_cmds \
11468 postuninstall_cmds \
11469 old_archive_from_expsyms_cmds \
11470 allow_undefined_flag \
11471 no_undefined_flag \
11472 export_symbols_cmds \
11473 hardcode_libdir_flag_spec \
11474 hardcode_libdir_flag_spec_ld \
11475 hardcode_libdir_separator \
11476 hardcode_automatic \
11478 module_expsym_cmds \
11479 lt_cv_prog_compiler_c_o \
11481 include_expsyms; do
11484 old_archive_cmds | \
11485 old_archive_from_new_cmds | \
11487 archive_expsym_cmds | \
11489 module_expsym_cmds | \
11490 old_archive_from_expsyms_cmds | \
11491 export_symbols_cmds | \
11492 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11493 postinstall_cmds | postuninstall_cmds | \
11494 old_postinstall_cmds | old_postuninstall_cmds | \
11495 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11496 # Double-quote double-evaled strings.
11497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11506 *'\$0 --fallback-echo"')
11507 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11511 cfgfile="${ofile}T"
11512 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11514 { echo "$as_me:$LINENO: creating $ofile" >&5
11515 echo "$as_me: creating $ofile" >&6;}
11517 cat <<__EOF__ >> "$cfgfile"
11520 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11521 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11522 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11524 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11525 # Free Software Foundation, Inc.
11527 # This file is part of GNU Libtool:
11528 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11530 # This program is free software; you can redistribute it and/or modify
11531 # it under the terms of the GNU General Public License as published by
11532 # the Free Software Foundation; either version 2 of the License, or
11533 # (at your option) any later version.
11535 # This program is distributed in the hope that it will be useful, but
11536 # WITHOUT ANY WARRANTY; without even the implied warranty of
11537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11538 # General Public License for more details.
11540 # You should have received a copy of the GNU General Public License
11541 # along with this program; if not, write to the Free Software
11542 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11544 # As a special exception to the GNU General Public License, if you
11545 # distribute this file as part of a program that contains a
11546 # configuration script generated by Autoconf, you may include it under
11547 # the same distribution terms that you use for the rest of that program.
11549 # A sed program that does not truncate output.
11552 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11553 Xsed="$SED -e 1s/^X//"
11555 # The HP-UX ksh and POSIX shell print the target directory to stdout
11556 # if CDPATH is set.
11557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11559 # The names of the tagged configurations supported by this script.
11562 # ### BEGIN LIBTOOL CONFIG
11564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11566 # Shell to use when invoking shell scripts.
11569 # Whether or not to build shared libraries.
11570 build_libtool_libs=$enable_shared
11572 # Whether or not to build static libraries.
11573 build_old_libs=$enable_static
11575 # Whether or not to add -lc for building shared libraries.
11576 build_libtool_need_lc=$archive_cmds_need_lc
11578 # Whether or not to disallow shared libs when runtime libs are static
11579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11581 # Whether or not to optimize for fast installation.
11582 fast_install=$enable_fast_install
11585 host_alias=$host_alias
11589 # The build system.
11590 build_alias=$build_alias
11594 # An echo program that does not interpret backslashes.
11599 AR_FLAGS=$lt_AR_FLAGS
11604 # LTCC compiler flags.
11605 LTCFLAGS=$lt_LTCFLAGS
11607 # A language-specific compiler.
11610 # Is the compiler the GNU C compiler?
11616 # The linker used to build libraries.
11619 # Whether we need hard or soft links.
11622 # A BSD-compatible nm program.
11625 # A symbol stripping program
11628 # Used to examine libraries when file_magic_cmd begins "file"
11629 MAGIC_CMD=$MAGIC_CMD
11631 # Used on cygwin: DLL creation program.
11634 # Used on cygwin: object dumper.
11637 # Used on cygwin: assembler.
11640 # The name of the directory that contains temporary libtool files.
11643 # How to create reloadable object files.
11644 reload_flag=$lt_reload_flag
11645 reload_cmds=$lt_reload_cmds
11647 # How to pass a linker flag through the compiler.
11648 wl=$lt_lt_prog_compiler_wl
11650 # Object file suffix (normally "o").
11651 objext="$ac_objext"
11653 # Old archive suffix (normally "a").
11656 # Shared library suffix (normally ".so").
11657 shrext_cmds='$shrext_cmds'
11659 # Executable file suffix (normally "").
11662 # Additional compiler flags for building library objects.
11663 pic_flag=$lt_lt_prog_compiler_pic
11666 # What is the maximum length of a command?
11667 max_cmd_len=$lt_cv_sys_max_cmd_len
11669 # Does compiler simultaneously support -c and -o options?
11670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11672 # Must we lock files when doing compilation?
11673 need_locks=$lt_need_locks
11675 # Do we need the lib prefix for modules?
11676 need_lib_prefix=$need_lib_prefix
11678 # Do we need a version for libraries?
11679 need_version=$need_version
11681 # Whether dlopen is supported.
11682 dlopen_support=$enable_dlopen
11684 # Whether dlopen of programs is supported.
11685 dlopen_self=$enable_dlopen_self
11687 # Whether dlopen of statically linked programs is supported.
11688 dlopen_self_static=$enable_dlopen_self_static
11690 # Compiler flag to prevent dynamic linking.
11691 link_static_flag=$lt_lt_prog_compiler_static
11693 # Compiler flag to turn off builtin functions.
11694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11696 # Compiler flag to allow reflexive dlopens.
11697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11699 # Compiler flag to generate shared objects directly from archives.
11700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11702 # Compiler flag to generate thread-safe objects.
11703 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11705 # Library versioning type.
11706 version_type=$version_type
11708 # Format of library name prefix.
11709 libname_spec=$lt_libname_spec
11711 # List of archive names. First name is the real one, the rest are links.
11712 # The last name is the one that the linker finds with -lNAME.
11713 library_names_spec=$lt_library_names_spec
11715 # The coded name of the library, if different from the real name.
11716 soname_spec=$lt_soname_spec
11718 # Commands used to build and install an old-style archive.
11720 old_archive_cmds=$lt_old_archive_cmds
11721 old_postinstall_cmds=$lt_old_postinstall_cmds
11722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11724 # Create an old-style archive from a shared archive.
11725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11727 # Create a temporary old-style archive to link instead of a shared archive.
11728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11730 # Commands used to build and install a shared archive.
11731 archive_cmds=$lt_archive_cmds
11732 archive_expsym_cmds=$lt_archive_expsym_cmds
11733 postinstall_cmds=$lt_postinstall_cmds
11734 postuninstall_cmds=$lt_postuninstall_cmds
11736 # Commands used to build a loadable module (assumed same as above if empty)
11737 module_cmds=$lt_module_cmds
11738 module_expsym_cmds=$lt_module_expsym_cmds
11740 # Commands to strip libraries.
11741 old_striplib=$lt_old_striplib
11742 striplib=$lt_striplib
11744 # Dependencies to place before the objects being linked to create a
11746 predep_objects=$lt_predep_objects
11748 # Dependencies to place after the objects being linked to create a
11750 postdep_objects=$lt_postdep_objects
11752 # Dependencies to place before the objects being linked to create a
11754 predeps=$lt_predeps
11756 # Dependencies to place after the objects being linked to create a
11758 postdeps=$lt_postdeps
11760 # The library search path used internally by the compiler when linking
11761 # a shared library.
11762 compiler_lib_search_path=$lt_compiler_lib_search_path
11764 # Method to check whether dependent libraries are shared objects.
11765 deplibs_check_method=$lt_deplibs_check_method
11767 # Command to use when deplibs_check_method == file_magic.
11768 file_magic_cmd=$lt_file_magic_cmd
11770 # Flag that allows shared libraries with undefined symbols to be built.
11771 allow_undefined_flag=$lt_allow_undefined_flag
11773 # Flag that forces no undefined symbols.
11774 no_undefined_flag=$lt_no_undefined_flag
11776 # Commands used to finish a libtool library installation in a directory.
11777 finish_cmds=$lt_finish_cmds
11779 # Same as above, but a single script fragment to be evaled but not shown.
11780 finish_eval=$lt_finish_eval
11782 # Take the output of nm and produce a listing of raw symbols and C names.
11783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11785 # Transform the output of nm in a proper C declaration
11786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11788 # Transform the output of nm in a C name address pair
11789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11791 # This is the shared library runtime path variable.
11792 runpath_var=$runpath_var
11794 # This is the shared library path variable.
11795 shlibpath_var=$shlibpath_var
11797 # Is shlibpath searched before the hard-coded library search path?
11798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11800 # How to hardcode a shared library path into an executable.
11801 hardcode_action=$hardcode_action
11803 # Whether we should hardcode library paths into libraries.
11804 hardcode_into_libs=$hardcode_into_libs
11806 # Flag to hardcode \$libdir into a binary during linking.
11807 # This must work even if \$libdir does not exist.
11808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11810 # If ld is used when linking, flag to hardcode \$libdir into
11811 # a binary during linking. This must work even if \$libdir does
11813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11815 # Whether we need a single -rpath flag with a separated argument.
11816 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11819 # resulting binary.
11820 hardcode_direct=$hardcode_direct
11822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11823 # resulting binary.
11824 hardcode_minus_L=$hardcode_minus_L
11826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11827 # the resulting binary.
11828 hardcode_shlibpath_var=$hardcode_shlibpath_var
11830 # Set to yes if building a shared library automatically hardcodes DIR into the library
11831 # and all subsequent libraries and executables linked against it.
11832 hardcode_automatic=$hardcode_automatic
11834 # Variables whose values should be saved in libtool wrapper scripts and
11835 # restored at relink time.
11836 variables_saved_for_relink="$variables_saved_for_relink"
11838 # Whether libtool must link a program against all its dependency libraries.
11839 link_all_deplibs=$link_all_deplibs
11841 # Compile-time system search path for libraries
11842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11844 # Run-time system search path for libraries
11845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11847 # Fix the shell variable \$srcfile for the compiler.
11848 fix_srcfile_path="$fix_srcfile_path"
11850 # Set to yes if exported symbols are required.
11851 always_export_symbols=$always_export_symbols
11853 # The commands to list exported symbols.
11854 export_symbols_cmds=$lt_export_symbols_cmds
11856 # The commands to extract the exported symbol list from a shared archive.
11857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11859 # Symbols that should not be listed in the preloaded symbols.
11860 exclude_expsyms=$lt_exclude_expsyms
11862 # Symbols that must always be exported.
11863 include_expsyms=$lt_include_expsyms
11865 # ### END LIBTOOL CONFIG
11872 cat <<\EOF >> "$cfgfile"
11874 # AIX sometimes has problems with the GCC collect2 program. For some
11875 # reason, if we set the COLLECT_NAMES environment variable, the problems
11876 # vanish in a puff of smoke.
11877 if test "X${COLLECT_NAMES+set}" != Xset; then
11879 export COLLECT_NAMES
11885 # We use sed instead of cat because bash on DJGPP gets confused if
11886 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11887 # text mode, it properly converts lines to CR/LF. This bash problem
11888 # is reportedly fixed, but why not run on old versions too?
11889 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11891 mv -f "$cfgfile" "$ofile" || \
11892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11896 # If there is no Makefile yet, we rely on a make rule to execute
11897 # `config.status --recheck' to rerun these tests and create the
11898 # libtool script then.
11899 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11900 if test -f "$ltmain_in"; then
11901 test -f Makefile && make "$ltmain"
11907 ac_cpp='$CPP $CPPFLAGS'
11908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11915 # Check whether --with-tags was given.
11916 if test "${with_tags+set}" = set; then
11917 withval=$with_tags; tagnames="$withval"
11921 if test -f "$ltmain" && test -n "$tagnames"; then
11922 if test ! -f "${ofile}"; then
11923 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11924 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11927 if test -z "$LTCC"; then
11928 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11929 if test -z "$LTCC"; then
11930 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11931 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11934 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11937 if test -z "$LTCFLAGS"; then
11938 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11941 # Extract list of available tagged configurations in $ofile.
11942 # Note that this assumes the entire list is on one line.
11943 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11946 for tagname in $tagnames; do
11948 # Check whether tagname contains only valid characters
11949 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11951 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11952 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11953 { (exit 1); exit 1; }; }
11957 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11959 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11960 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11961 { (exit 1); exit 1; }; }
11964 # Update the list of available tags.
11965 if test -n "$tagname"; then
11966 echo appending configuration tag \"$tagname\" to $ofile
11970 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11971 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11972 (test "X$CXX" != "Xg++"))) ; then
11974 ac_cpp='$CXXCPP $CPPFLAGS'
11975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11982 archive_cmds_need_lc_CXX=no
11983 allow_undefined_flag_CXX=
11984 always_export_symbols_CXX=no
11985 archive_expsym_cmds_CXX=
11986 export_dynamic_flag_spec_CXX=
11987 hardcode_direct_CXX=no
11988 hardcode_libdir_flag_spec_CXX=
11989 hardcode_libdir_flag_spec_ld_CXX=
11990 hardcode_libdir_separator_CXX=
11991 hardcode_minus_L_CXX=no
11992 hardcode_shlibpath_var_CXX=unsupported
11993 hardcode_automatic_CXX=no
11995 module_expsym_cmds_CXX=
11996 link_all_deplibs_CXX=unknown
11997 old_archive_cmds_CXX=$old_archive_cmds
11998 no_undefined_flag_CXX=
11999 whole_archive_flag_spec_CXX=
12000 enable_shared_with_static_runtimes_CXX=no
12002 # Dependencies to place before and after the object being linked:
12003 predep_objects_CXX=
12004 postdep_objects_CXX=
12007 compiler_lib_search_path_CXX=
12009 # Source file extension for C++ test sources.
12012 # Object file extension for compiled C++ test sources.
12016 # Code to be used in simple compile tests
12017 lt_simple_compile_test_code="int some_variable = 0;\n"
12019 # Code to be used in simple link tests
12020 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12024 # If no C compiler was specified, use CC.
12027 # If no C compiler flags were specified, use CFLAGS.
12028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12030 # Allow CC to be a program name with arguments.
12034 # save warnings/boilerplate of simple test code
12035 ac_outfile=conftest.$ac_objext
12036 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12038 _lt_compiler_boilerplate=`cat conftest.err`
12041 ac_outfile=conftest.$ac_objext
12042 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12044 _lt_linker_boilerplate=`cat conftest.err`
12048 # Allow CC to be a program name with arguments.
12053 lt_save_with_gnu_ld=$with_gnu_ld
12054 lt_save_path_LD=$lt_cv_path_LD
12055 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12056 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12058 $as_unset lt_cv_prog_gnu_ld
12060 if test -n "${lt_cv_path_LDCXX+set}"; then
12061 lt_cv_path_LD=$lt_cv_path_LDCXX
12063 $as_unset lt_cv_path_LD
12065 test -z "${LDCXX+set}" || LD=$LDCXX
12069 for cc_temp in $compiler""; do
12071 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12072 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12077 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12080 # We don't want -fno-exception wen compiling C++ code, so set the
12081 # no_builtin_flag separately
12082 if test "$GXX" = yes; then
12083 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12085 lt_prog_compiler_no_builtin_flag_CXX=
12088 if test "$GXX" = yes; then
12089 # Set up default GNU C++ configuration
12092 # Check whether --with-gnu-ld was given.
12093 if test "${with_gnu_ld+set}" = set; then
12094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12100 if test "$GCC" = yes; then
12101 # Check if gcc -print-prog-name=ld gives a path.
12102 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12103 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12106 # gcc leaves a trailing carriage return which upsets mingw
12107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12112 # Accept absolute paths.
12114 re_direlt='/[^/][^/]*/\.\./'
12115 # Canonicalize the pathname of ld
12116 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12118 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12120 test -z "$LD" && LD="$ac_prog"
12123 # If it fails, then pretend we aren't using GCC.
12127 # If it is relative, then search for the first ld in PATH.
12128 with_gnu_ld=unknown
12131 elif test "$with_gnu_ld" = yes; then
12132 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12135 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12138 if test "${lt_cv_path_LD+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 if test -z "$LD"; then
12142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12143 for ac_dir in $PATH; do
12145 test -z "$ac_dir" && ac_dir=.
12146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12147 lt_cv_path_LD="$ac_dir/$ac_prog"
12148 # Check to see if the program is GNU ld. I'd rather use --version,
12149 # but apparently some variants of GNU ld only accept -v.
12150 # Break only if it was the GNU/non-GNU ld that we prefer.
12151 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12152 *GNU* | *'with BFD'*)
12153 test "$with_gnu_ld" != no && break
12156 test "$with_gnu_ld" != yes && break
12163 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12167 LD="$lt_cv_path_LD"
12168 if test -n "$LD"; then
12169 { echo "$as_me:$LINENO: result: $LD" >&5
12170 echo "${ECHO_T}$LD" >&6; }
12172 { echo "$as_me:$LINENO: result: no" >&5
12173 echo "${ECHO_T}no" >&6; }
12175 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12176 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12177 { (exit 1); exit 1; }; }
12178 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12179 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12180 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12184 case `$LD -v 2>&1 </dev/null` in
12185 *GNU* | *'with BFD'*)
12186 lt_cv_prog_gnu_ld=yes
12189 lt_cv_prog_gnu_ld=no
12193 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12194 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12195 with_gnu_ld=$lt_cv_prog_gnu_ld
12199 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12200 # archiving commands below assume that GNU ld is being used.
12201 if test "$with_gnu_ld" = yes; then
12202 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203 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'
12205 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12208 # If archive_cmds runs LD, not CC, wlarc should be empty
12209 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12210 # investigate it a little bit more. (MM)
12213 # ancient GNU ld didn't support --whole-archive et. al.
12214 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12215 grep 'no-whole-archive' > /dev/null; then
12216 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12218 whole_archive_flag_spec_CXX=
12224 # A generic and very simple default shared library creation
12225 # command for GNU C++ for the case where it uses the native
12226 # linker, instead of GNU ld. If possible, this setting should
12227 # overridden to take advantage of the native linker features on
12228 # the platform it is being used on.
12229 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12232 # Commands to make compiler produce verbose output that lists
12233 # what "hidden" libraries, object files and flags are used when
12234 # linking a shared library.
12235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12243 # PORTME: fill in a description of your system's C++ link characteristics
12244 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12249 # FIXME: insert proper C++ library support
12253 if test "$host_cpu" = ia64; then
12254 # On IA64, the linker does run time linking by default, so we don't
12255 # have to do anything special.
12256 aix_use_runtimelinking=no
12257 exp_sym_flag='-Bexport'
12260 aix_use_runtimelinking=no
12262 # Test if we are trying to use run time linking or normal
12263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12264 # need to do runtime linking.
12265 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12266 for ld_flag in $LDFLAGS; do
12269 aix_use_runtimelinking=yes
12277 exp_sym_flag='-bexport'
12278 no_entry_flag='-bnoentry'
12281 # When large executables or shared objects are built, AIX ld can
12282 # have problems creating the table of contents. If linking a library
12283 # or program results in "error TOC overflow" add -mminimal-toc to
12284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12287 archive_cmds_CXX=''
12288 hardcode_direct_CXX=yes
12289 hardcode_libdir_separator_CXX=':'
12290 link_all_deplibs_CXX=yes
12292 if test "$GXX" = yes; then
12293 case $host_os in aix4.[012]|aix4.[012].*)
12294 # We only want to do this on AIX 4.2 and lower, the check
12295 # below for broken collect2 doesn't work under 4.3+
12296 collect2name=`${CC} -print-prog-name=collect2`
12297 if test -f "$collect2name" && \
12298 strings "$collect2name" | grep resolve_lib_name >/dev/null
12300 # We have reworked collect2
12301 hardcode_direct_CXX=yes
12303 # We have old collect2
12304 hardcode_direct_CXX=unsupported
12305 # It fails to find uninstalled libraries when the uninstalled
12306 # path is not listed in the libpath. Setting hardcode_minus_L
12307 # to unsupported forces relinking
12308 hardcode_minus_L_CXX=yes
12309 hardcode_libdir_flag_spec_CXX='-L$libdir'
12310 hardcode_libdir_separator_CXX=
12314 shared_flag='-shared'
12315 if test "$aix_use_runtimelinking" = yes; then
12316 shared_flag="$shared_flag "'${wl}-G'
12320 if test "$host_cpu" = ia64; then
12321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12322 # chokes on -Wl,-G. The following line is correct:
12325 if test "$aix_use_runtimelinking" = yes; then
12326 shared_flag='${wl}-G'
12328 shared_flag='${wl}-bM:SRE'
12333 # It seems that -bexpall does not export symbols beginning with
12334 # underscore (_), so it is better to generate a list of symbols to export.
12335 always_export_symbols_CXX=yes
12336 if test "$aix_use_runtimelinking" = yes; then
12337 # Warning - without using the other runtime loading flags (-brtl),
12338 # -berok will link without error, but may produce a broken library.
12339 allow_undefined_flag_CXX='-berok'
12340 # Determine the default libpath from the value encoded in an empty executable.
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12356 rm -f conftest.$ac_objext conftest$ac_exeext
12357 if { (ac_try="$ac_link"
12358 case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_link") 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } && {
12370 test -z "$ac_cxx_werror_flag" ||
12371 test ! -s conftest.err
12372 } && test -s conftest$ac_exeext &&
12373 $as_test_x conftest$ac_exeext; then
12375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12377 # Check for a 64-bit object if we didn't find anything.
12378 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12388 conftest$ac_exeext conftest.$ac_ext
12389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12391 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12393 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"
12395 if test "$host_cpu" = ia64; then
12396 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12397 allow_undefined_flag_CXX="-z nodefs"
12398 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"
12400 # Determine the default libpath from the value encoded in an empty executable.
12401 cat >conftest.$ac_ext <<_ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (ac_try="$ac_link"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_link") 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && {
12430 test -z "$ac_cxx_werror_flag" ||
12431 test ! -s conftest.err
12432 } && test -s conftest$ac_exeext &&
12433 $as_test_x conftest$ac_exeext; then
12435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12437 # Check for a 64-bit object if we didn't find anything.
12438 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12451 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12452 # Warning - without using the other run time loading flags,
12453 # -berok will link without error, but may produce a broken library.
12454 no_undefined_flag_CXX=' ${wl}-bernotok'
12455 allow_undefined_flag_CXX=' ${wl}-berok'
12456 # Exported symbols can be pulled into shared objects from archives
12457 whole_archive_flag_spec_CXX='$convenience'
12458 archive_cmds_need_lc_CXX=yes
12459 # This is similar to how AIX traditionally builds its shared libraries.
12460 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'
12466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12467 allow_undefined_flag_CXX=unsupported
12468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12469 # support --undefined. This deserves some investigation. FIXME
12470 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12477 case $cc_basename in
12479 # FIXME: insert proper C++ library support
12485 cygwin* | mingw* | pw32*)
12486 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12487 # as there is no search path for DLLs.
12488 hardcode_libdir_flag_spec_CXX='-L$libdir'
12489 allow_undefined_flag_CXX=unsupported
12490 always_export_symbols_CXX=no
12491 enable_shared_with_static_runtimes_CXX=yes
12493 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12494 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'
12495 # If the export-symbols file already is a .def file (1st line
12496 # is EXPORTS), use it as is; otherwise, prepend...
12497 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12498 cp $export_symbols $output_objdir/$soname.def;
12500 echo EXPORTS > $output_objdir/$soname.def;
12501 cat $export_symbols >> $output_objdir/$soname.def;
12503 $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'
12508 darwin* | rhapsody*)
12510 rhapsody* | darwin1.[012])
12511 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12514 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12515 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12517 case ${MACOSX_DEPLOYMENT_TARGET} in
12519 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12522 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12528 archive_cmds_need_lc_CXX=no
12529 hardcode_direct_CXX=no
12530 hardcode_automatic_CXX=yes
12531 hardcode_shlibpath_var_CXX=unsupported
12532 whole_archive_flag_spec_CXX=''
12533 link_all_deplibs_CXX=yes
12535 if test "$GXX" = yes ; then
12536 lt_int_apple_cc_single_mod=no
12537 output_verbose_link_cmd='echo'
12538 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12539 lt_int_apple_cc_single_mod=yes
12541 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12542 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12544 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'
12546 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12548 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12549 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}'
12551 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}'
12553 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}'
12555 case $cc_basename in
12557 output_verbose_link_cmd='echo'
12558 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12559 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12560 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12561 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12562 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}'
12572 case $cc_basename in
12574 # FIXME: insert proper C++ library support
12578 # Green Hills C++ Compiler
12579 # FIXME: insert proper C++ library support
12583 # FIXME: insert proper C++ library support
12589 # C++ shared libraries reported to be fairly broken before switch to ELF
12593 archive_cmds_need_lc_CXX=no
12595 freebsd* | dragonfly*)
12596 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12603 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12604 hardcode_libdir_separator_CXX=:
12605 export_dynamic_flag_spec_CXX='${wl}-E'
12606 hardcode_direct_CXX=yes
12607 hardcode_minus_L_CXX=yes # Not in the search PATH,
12608 # but as the default
12609 # location of the library.
12611 case $cc_basename in
12613 # FIXME: insert proper C++ library support
12617 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'
12618 # Commands to make compiler produce verbose output that lists
12619 # what "hidden" libraries, object files and flags are used when
12620 # linking a shared library.
12622 # There doesn't appear to be a way to prevent this compiler from
12623 # explicitly linking system object files so we need to strip them
12624 # from the output so that they don't get included in the library
12626 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'
12629 if test "$GXX" = yes; then
12630 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'
12632 # FIXME: insert proper C++ library support
12639 if test $with_gnu_ld = no; then
12640 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12641 hardcode_libdir_separator_CXX=:
12645 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12648 export_dynamic_flag_spec_CXX='${wl}-E'
12654 hardcode_direct_CXX=no
12655 hardcode_shlibpath_var_CXX=no
12658 hardcode_direct_CXX=yes
12659 hardcode_minus_L_CXX=yes # Not in the search PATH,
12660 # but as the default
12661 # location of the library.
12665 case $cc_basename in
12667 # FIXME: insert proper C++ library support
12673 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12676 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12679 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12682 # Commands to make compiler produce verbose output that lists
12683 # what "hidden" libraries, object files and flags are used when
12684 # linking a shared library.
12686 # There doesn't appear to be a way to prevent this compiler from
12687 # explicitly linking system object files so we need to strip them
12688 # from the output so that they don't get included in the library
12690 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'
12693 if test "$GXX" = yes; then
12694 if test $with_gnu_ld = no; then
12697 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12700 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12703 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'
12708 # FIXME: insert proper C++ library support
12715 hardcode_direct_CXX=no
12716 hardcode_shlibpath_var_CXX=no
12717 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12718 export_dynamic_flag_spec_CXX='${wl}-E'
12719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12720 # Instead, shared libraries are loaded at an image base (0x10000000 by
12721 # default) and relocated if they conflict, which is a slow very memory
12722 # consuming and fragmenting process. To avoid this, we pick a random,
12723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12725 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'
12726 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'
12729 case $cc_basename in
12732 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'
12734 # Archives containing C++ object files must be created using
12735 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12736 # necessary to make sure instantiated templates are included
12738 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12741 if test "$GXX" = yes; then
12742 if test "$with_gnu_ld" = no; then
12743 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'
12745 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'
12748 link_all_deplibs_CXX=yes
12751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12752 hardcode_libdir_separator_CXX=:
12754 linux* | k*bsd*-gnu)
12755 case $cc_basename in
12757 # Kuck and Associates, Inc. (KAI) C++ Compiler
12759 # KCC will only create a shared library if the output file
12760 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12761 # to its proper name (with version) after linking.
12762 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'
12763 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'
12764 # Commands to make compiler produce verbose output that lists
12765 # what "hidden" libraries, object files and flags are used when
12766 # linking a shared library.
12768 # There doesn't appear to be a way to prevent this compiler from
12769 # explicitly linking system object files so we need to strip them
12770 # from the output so that they don't get included in the library
12772 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'
12774 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12777 # Archives containing C++ object files must be created using
12778 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12779 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12784 # version 8.0 and above of icpc choke on multiply defined symbols
12785 # if we add $predep_objects and $postdep_objects, however 7.1 and
12786 # earlier do not add the objects themselves.
12787 case `$CC -V 2>&1` in
12789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790 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'
12792 *) # Version 8.0 or newer
12795 ia64*) tmp_idyn=' -i_dynamic';;
12797 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798 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'
12801 archive_cmds_need_lc_CXX=no
12802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12803 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12804 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12807 # Portland Group C++ compiler
12808 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12809 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'
12811 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12813 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'
12817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12818 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'
12820 runpath_var=LD_RUN_PATH
12821 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12822 hardcode_libdir_separator_CXX=:
12824 # Commands to make compiler produce verbose output that lists
12825 # what "hidden" libraries, object files and flags are used when
12826 # linking a shared library.
12828 # There doesn't appear to be a way to prevent this compiler from
12829 # explicitly linking system object files so we need to strip them
12830 # from the output so that they don't get included in the library
12832 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'
12837 # FIXME: insert proper C++ library support
12841 # FIXME: insert proper C++ library support
12845 case $cc_basename in
12847 # FIXME: insert proper C++ library support
12851 # FIXME: insert proper C++ library support
12856 netbsd* | netbsdelf*-gnu)
12857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12858 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12860 hardcode_libdir_flag_spec_CXX='-R$libdir'
12861 hardcode_direct_CXX=yes
12862 hardcode_shlibpath_var_CXX=no
12864 # Workaround some broken pre-1.5 toolchains
12865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12868 # C++ shared libraries are fairly broken
12872 hardcode_direct_CXX=yes
12873 hardcode_shlibpath_var_CXX=no
12874 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12876 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12877 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12878 export_dynamic_flag_spec_CXX='${wl}-E'
12879 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12881 output_verbose_link_cmd='echo'
12884 case $cc_basename in
12886 # Kuck and Associates, Inc. (KAI) C++ Compiler
12888 # KCC will only create a shared library if the output file
12889 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12890 # to its proper name (with version) after linking.
12891 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'
12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12894 hardcode_libdir_separator_CXX=:
12896 # Archives containing C++ object files must be created using
12897 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12898 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12902 # Rational C++ 2.4.1
12903 # FIXME: insert proper C++ library support
12907 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12908 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'
12910 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12911 hardcode_libdir_separator_CXX=:
12913 # Commands to make compiler produce verbose output that lists
12914 # what "hidden" libraries, object files and flags are used when
12915 # linking a shared library.
12917 # There doesn't appear to be a way to prevent this compiler from
12918 # explicitly linking system object files so we need to strip them
12919 # from the output so that they don't get included in the library
12921 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'
12924 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12925 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12926 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'
12928 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12929 hardcode_libdir_separator_CXX=:
12931 # Commands to make compiler produce verbose output that lists
12932 # what "hidden" libraries, object files and flags are used when
12933 # linking a shared library.
12934 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12937 # FIXME: insert proper C++ library support
12944 case $cc_basename in
12946 # Kuck and Associates, Inc. (KAI) C++ Compiler
12948 # KCC will only create a shared library if the output file
12949 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12950 # to its proper name (with version) after linking.
12951 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'
12953 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12954 hardcode_libdir_separator_CXX=:
12956 # Archives containing C++ object files must be created using
12957 # the KAI C++ compiler.
12958 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12961 # Rational C++ 2.4.1
12962 # FIXME: insert proper C++ library support
12966 allow_undefined_flag_CXX=' -expect_unresolved \*'
12967 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'
12968 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12969 echo "-hidden">> $lib.exp~
12970 $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~
12973 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12974 hardcode_libdir_separator_CXX=:
12976 # Commands to make compiler produce verbose output that lists
12977 # what "hidden" libraries, object files and flags are used when
12978 # linking a shared library.
12980 # There doesn't appear to be a way to prevent this compiler from
12981 # explicitly linking system object files so we need to strip them
12982 # from the output so that they don't get included in the library
12984 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'
12987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12989 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'
12991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12992 hardcode_libdir_separator_CXX=:
12994 # Commands to make compiler produce verbose output that lists
12995 # what "hidden" libraries, object files and flags are used when
12996 # linking a shared library.
12997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13000 # FIXME: insert proper C++ library support
13007 # FIXME: insert proper C++ library support
13011 case $cc_basename in
13014 # FIXME: insert proper C++ library support
13019 # FIXME: insert proper C++ library support
13023 # FIXME: insert proper C++ library support
13029 case $cc_basename in
13031 # Sun C++ 4.2, 5.x and Centerline C++
13032 archive_cmds_need_lc_CXX=yes
13033 no_undefined_flag_CXX=' -zdefs'
13034 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13035 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13036 $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'
13038 hardcode_libdir_flag_spec_CXX='-R$libdir'
13039 hardcode_shlibpath_var_CXX=no
13041 solaris2.[0-5] | solaris2.[0-5].*) ;;
13043 # The C++ compiler is used as linker so we must use $wl
13044 # flag to pass the commands to the underlying system
13045 # linker. We must also pass each convience library through
13046 # to the system linker between allextract/defaultextract.
13047 # The C++ compiler will combine linker options so we
13048 # cannot just pass the convience library names through
13050 # Supported since Solaris 2.6 (maybe 2.5.1?)
13051 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13054 link_all_deplibs_CXX=yes
13056 output_verbose_link_cmd='echo'
13058 # Archives containing C++ object files must be created using
13059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13060 # necessary to make sure instantiated templates are included
13062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13065 # Green Hills C++ Compiler
13066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13068 # The C++ compiler must be used to create the archive.
13069 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13072 # GNU C++ compiler with Solaris linker
13073 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13074 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13075 if $CC --version | grep -v '^2\.7' > /dev/null; then
13076 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13077 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13078 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13080 # Commands to make compiler produce verbose output that lists
13081 # what "hidden" libraries, object files and flags are used when
13082 # linking a shared library.
13083 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13085 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13087 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13088 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13089 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13091 # Commands to make compiler produce verbose output that lists
13092 # what "hidden" libraries, object files and flags are used when
13093 # linking a shared library.
13094 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13097 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13103 no_undefined_flag_CXX='${wl}-z,text'
13104 archive_cmds_need_lc_CXX=no
13105 hardcode_shlibpath_var_CXX=no
13106 runpath_var='LD_RUN_PATH'
13108 case $cc_basename in
13110 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13111 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13115 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13119 sysv5* | sco3.2v5* | sco5v6*)
13120 # Note: We can NOT use -z defs as we might desire, because we do not
13121 # link with -lc, and that would cause any symbols used from libc to
13122 # always be unresolved, which means just about no library would
13123 # ever link correctly. If we're not using GNU ld we use -z text
13124 # though, which does catch some bad symbols but isn't as heavy-handed
13126 # For security reasons, it is highly recommended that you always
13127 # use absolute paths for naming shared libraries, and exclude the
13128 # DT_RUNPATH tag from executables and libraries. But doing so
13129 # requires that you compile everything twice, which is a pain.
13130 # So that behaviour is only enabled if SCOABSPATH is set to a
13131 # non-empty value in the environment. Most likely only useful for
13132 # creating official distributions of packages.
13133 # This is a hack until libtool officially supports absolute path
13134 # names for shared libraries.
13135 no_undefined_flag_CXX='${wl}-z,text'
13136 allow_undefined_flag_CXX='${wl}-z,nodefs'
13137 archive_cmds_need_lc_CXX=no
13138 hardcode_shlibpath_var_CXX=no
13139 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13140 hardcode_libdir_separator_CXX=':'
13141 link_all_deplibs_CXX=yes
13142 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13143 runpath_var='LD_RUN_PATH'
13145 case $cc_basename in
13147 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13148 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13151 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13152 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13157 case $cc_basename in
13159 # NonStop-UX NCC 3.20
13160 # FIXME: insert proper C++ library support
13164 # FIXME: insert proper C++ library support
13170 # FIXME: insert proper C++ library support
13174 # FIXME: insert proper C++ library support
13178 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13179 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13180 test "$ld_shlibs_CXX" = no && can_build_shared=no
13186 cat > conftest.$ac_ext <<EOF
13190 Foo (void) { a = 0; }
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; then
13201 # Parse the compiler output and extract the necessary
13202 # objects, libraries and library flags.
13204 # Sentinel used to keep track of whether or not we are before
13205 # the conftest object file.
13206 pre_test_object_deps_done=no
13208 # The `*' in the case matches for architectures that use `case' in
13209 # $output_verbose_cmd can trigger glob expansion during the loop
13210 # eval without this substitution.
13211 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13213 for p in `eval $output_verbose_link_cmd`; do
13217 # Some compilers place space between "-{L,R}" and the path.
13218 # Remove the space.
13219 if test $p = "-L" \
13220 || test $p = "-R"; then
13227 if test "$pre_test_object_deps_done" = no; then
13230 # Internal compiler library paths should come after those
13231 # provided the user. The postdeps already come after the
13232 # user supplied libs so there is no need to process them.
13233 if test -z "$compiler_lib_search_path_CXX"; then
13234 compiler_lib_search_path_CXX="${prev}${p}"
13236 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13239 # The "-l" case would never come before the object being
13240 # linked, so don't bother handling this case.
13243 if test -z "$postdeps_CXX"; then
13244 postdeps_CXX="${prev}${p}"
13246 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13252 # This assumes that the test object file only shows up
13253 # once in the compiler output.
13254 if test "$p" = "conftest.$objext"; then
13255 pre_test_object_deps_done=yes
13259 if test "$pre_test_object_deps_done" = no; then
13260 if test -z "$predep_objects_CXX"; then
13261 predep_objects_CXX="$p"
13263 predep_objects_CXX="$predep_objects_CXX $p"
13266 if test -z "$postdep_objects_CXX"; then
13267 postdep_objects_CXX="$p"
13269 postdep_objects_CXX="$postdep_objects_CXX $p"
13274 *) ;; # Ignore the rest.
13282 echo "libtool.m4: error: problem compiling CXX test program"
13285 $rm -f confest.$objext
13287 # PORTME: override above test on systems where it is broken
13290 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13291 # hack all around it, let's just trust "g++" to DTRT.
13292 predep_objects_CXX=
13293 postdep_objects_CXX=
13298 case $cc_basename in
13300 # Adding this requires a known-good setup of shared libraries for
13301 # Sun compiler versions before 5.6, else PIC objects from an old
13302 # archive will be linked into the output, leading to subtle bugs.
13303 postdeps_CXX='-lCstd -lCrun'
13310 case " $postdeps_CXX " in
13311 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13314 lt_prog_compiler_wl_CXX=
13315 lt_prog_compiler_pic_CXX=
13316 lt_prog_compiler_static_CXX=
13318 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13319 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13321 # C++ specific cases for pic, static, wl, etc.
13322 if test "$GXX" = yes; then
13323 lt_prog_compiler_wl_CXX='-Wl,'
13324 lt_prog_compiler_static_CXX='-static'
13328 # All AIX code is PIC.
13329 if test "$host_cpu" = ia64; then
13330 # AIX 5 now supports IA64 processor
13331 lt_prog_compiler_static_CXX='-Bstatic'
13335 # FIXME: we need at least 68020 code to build shared libraries, but
13336 # adding the `-m68020' flag to GCC prevents building anything better,
13338 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13340 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13341 # PIC is the default for these OSes.
13343 mingw* | os2* | pw32*)
13344 # This hack is so that the source file can tell whether it is being
13345 # built for inclusion in a dll (and should export symbols for example).
13346 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13348 darwin* | rhapsody*)
13349 # PIC is the default on this platform
13350 # Common symbols not allowed in MH_DYLIB files
13351 lt_prog_compiler_pic_CXX='-fno-common'
13354 # DJGPP does not support shared libraries at all
13355 lt_prog_compiler_pic_CXX=
13358 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13359 # Instead, we relocate shared libraries at runtime.
13362 if test -d /usr/nec; then
13363 lt_prog_compiler_pic_CXX=-Kconform_pic
13367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13368 # not for PA HP-UX.
13373 lt_prog_compiler_pic_CXX='-fPIC'
13378 lt_prog_compiler_pic_CXX='-fPIC'
13384 # All AIX code is PIC.
13385 if test "$host_cpu" = ia64; then
13386 # AIX 5 now supports IA64 processor
13387 lt_prog_compiler_static_CXX='-Bstatic'
13389 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13393 case $cc_basename in
13395 # Green Hills C++ Compiler
13396 # _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"
13401 # PIC is the default on this platform
13402 # Common symbols not allowed in MH_DYLIB files
13403 case $cc_basename in
13405 lt_prog_compiler_pic_CXX='-qnocommon'
13406 lt_prog_compiler_wl_CXX='-Wl,'
13411 case $cc_basename in
13413 lt_prog_compiler_pic_CXX='-KPIC'
13416 # Green Hills C++ Compiler
13417 lt_prog_compiler_pic_CXX='-pic'
13423 freebsd* | dragonfly*)
13424 # FreeBSD uses GNU C++
13426 hpux9* | hpux10* | hpux11*)
13427 case $cc_basename in
13429 lt_prog_compiler_wl_CXX='-Wl,'
13430 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13431 if test "$host_cpu" != ia64; then
13432 lt_prog_compiler_pic_CXX='+Z'
13436 lt_prog_compiler_wl_CXX='-Wl,'
13437 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13443 lt_prog_compiler_pic_CXX='+Z'
13452 # This is c89, which is MS Visual C++ (no shared libs)
13453 # Anyone wants to do a port?
13455 irix5* | irix6* | nonstopux*)
13456 case $cc_basename in
13458 lt_prog_compiler_wl_CXX='-Wl,'
13459 lt_prog_compiler_static_CXX='-non_shared'
13460 # CC pic flag -KPIC is the default.
13466 linux* | k*bsd*-gnu)
13467 case $cc_basename in
13470 lt_prog_compiler_wl_CXX='--backend -Wl,'
13471 lt_prog_compiler_pic_CXX='-fPIC'
13475 lt_prog_compiler_wl_CXX='-Wl,'
13476 lt_prog_compiler_pic_CXX='-KPIC'
13477 lt_prog_compiler_static_CXX='-static'
13480 # Portland Group C++ compiler.
13481 lt_prog_compiler_wl_CXX='-Wl,'
13482 lt_prog_compiler_pic_CXX='-fpic'
13483 lt_prog_compiler_static_CXX='-Bstatic'
13487 # Make sure the PIC flag is empty. It appears that all Alpha
13488 # Linux and Compaq Tru64 Unix objects are PIC.
13489 lt_prog_compiler_pic_CXX=
13490 lt_prog_compiler_static_CXX='-non_shared'
13501 case $cc_basename in
13503 lt_prog_compiler_pic_CXX='-W c,exportall'
13509 netbsd* | netbsdelf*-gnu)
13511 osf3* | osf4* | osf5*)
13512 case $cc_basename in
13514 lt_prog_compiler_wl_CXX='--backend -Wl,'
13517 # Rational C++ 2.4.1
13518 lt_prog_compiler_pic_CXX='-pic'
13521 # Digital/Compaq C++
13522 lt_prog_compiler_wl_CXX='-Wl,'
13523 # Make sure the PIC flag is empty. It appears that all Alpha
13524 # Linux and Compaq Tru64 Unix objects are PIC.
13525 lt_prog_compiler_pic_CXX=
13526 lt_prog_compiler_static_CXX='-non_shared'
13535 case $cc_basename in
13537 # Sun C++ 4.2, 5.x and Centerline C++
13538 lt_prog_compiler_pic_CXX='-KPIC'
13539 lt_prog_compiler_static_CXX='-Bstatic'
13540 lt_prog_compiler_wl_CXX='-Qoption ld '
13543 # Green Hills C++ Compiler
13544 lt_prog_compiler_pic_CXX='-PIC'
13551 case $cc_basename in
13554 lt_prog_compiler_pic_CXX='-pic'
13555 lt_prog_compiler_static_CXX='-Bstatic'
13559 lt_prog_compiler_pic_CXX='-pic'
13566 case $cc_basename in
13568 # NonStop-UX NCC 3.20
13569 lt_prog_compiler_pic_CXX='-KPIC'
13575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13576 case $cc_basename in
13578 lt_prog_compiler_wl_CXX='-Wl,'
13579 lt_prog_compiler_pic_CXX='-KPIC'
13580 lt_prog_compiler_static_CXX='-Bstatic'
13587 lt_prog_compiler_can_build_shared_CXX=no
13592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13593 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13596 # Check to make sure the PIC flag actually works.
13598 if test -n "$lt_prog_compiler_pic_CXX"; then
13600 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13601 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13602 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 lt_prog_compiler_pic_works_CXX=no
13606 ac_outfile=conftest.$ac_objext
13607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13608 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13609 # Insert the option either (1) after the last *FLAGS variable, or
13610 # (2) before a word containing "conftest.", or (3) at the end.
13611 # Note that $ac_compile itself does not contain backslashes and begins
13612 # with a dollar sign (not a hyphen), so the echo should work correctly.
13613 # The option is referenced via a variable to avoid confusing sed.
13614 lt_compile=`echo "$ac_compile" | $SED \
13615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13617 -e 's:$: $lt_compiler_flag:'`
13618 (eval echo "\"\$as_me:13618: $lt_compile\"" >&5)
13619 (eval "$lt_compile" 2>conftest.err)
13621 cat conftest.err >&5
13622 echo "$as_me:13622: \$? = $ac_status" >&5
13623 if (exit $ac_status) && test -s "$ac_outfile"; then
13624 # The compiler can only warn and ignore the option if not recognized
13625 # So say no if there are warnings other than the usual output.
13626 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13629 lt_prog_compiler_pic_works_CXX=yes
13635 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13636 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13638 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13639 case $lt_prog_compiler_pic_CXX in
13641 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13644 lt_prog_compiler_pic_CXX=
13645 lt_prog_compiler_can_build_shared_CXX=no
13650 # For platforms which do not support PIC, -DPIC is meaningless:
13652 lt_prog_compiler_pic_CXX=
13655 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13660 # Check to make sure the static flag actually works.
13662 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13663 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13664 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13665 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 lt_prog_compiler_static_works_CXX=no
13669 save_LDFLAGS="$LDFLAGS"
13670 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13671 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13673 # The linker can only warn and ignore the option if not recognized
13674 # So say no if there are warnings
13675 if test -s conftest.err; then
13676 # Append any errors to the config.log.
13677 cat conftest.err 1>&5
13678 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13680 if diff conftest.exp conftest.er2 >/dev/null; then
13681 lt_prog_compiler_static_works_CXX=yes
13684 lt_prog_compiler_static_works_CXX=yes
13688 LDFLAGS="$save_LDFLAGS"
13691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13692 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13694 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13697 lt_prog_compiler_static_CXX=
13701 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13702 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13703 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 lt_cv_prog_compiler_c_o_CXX=no
13707 $rm -r conftest 2>/dev/null
13711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13713 lt_compiler_flag="-o out/conftest2.$ac_objext"
13714 # Insert the option either (1) after the last *FLAGS variable, or
13715 # (2) before a word containing "conftest.", or (3) at the end.
13716 # Note that $ac_compile itself does not contain backslashes and begins
13717 # with a dollar sign (not a hyphen), so the echo should work correctly.
13718 lt_compile=`echo "$ac_compile" | $SED \
13719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13721 -e 's:$: $lt_compiler_flag:'`
13722 (eval echo "\"\$as_me:13722: $lt_compile\"" >&5)
13723 (eval "$lt_compile" 2>out/conftest.err)
13725 cat out/conftest.err >&5
13726 echo "$as_me:13726: \$? = $ac_status" >&5
13727 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13729 # The compiler can only warn and ignore the option if not recognized
13730 # So say no if there are warnings
13731 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13732 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13733 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13734 lt_cv_prog_compiler_c_o_CXX=yes
13739 # SGI C++ compiler will create directory out/ii_files/ for
13740 # template instantiation
13741 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13742 $rm out/* && rmdir out
13748 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13749 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13752 hard_links="nottested"
13753 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13754 # do not overwrite the value of need_locks provided by the user
13755 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13756 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13761 ln conftest.a conftest.b 2>&5 || hard_links=no
13762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13763 { echo "$as_me:$LINENO: result: $hard_links" >&5
13764 echo "${ECHO_T}$hard_links" >&6; }
13765 if test "$hard_links" = no; then
13766 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13767 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13774 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13775 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13777 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13780 # If we're using GNU nm, then we don't want the "-C" option.
13781 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13782 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13783 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'
13785 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'
13789 export_symbols_cmds_CXX="$ltdll_cmds"
13792 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'
13794 linux* | k*bsd*-gnu)
13795 link_all_deplibs_CXX=no
13798 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13802 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13803 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13804 test "$ld_shlibs_CXX" = no && can_build_shared=no
13807 # Do we need to explicitly link libc?
13809 case "x$archive_cmds_need_lc_CXX" in
13811 # Assume -lc should be added
13812 archive_cmds_need_lc_CXX=yes
13814 if test "$enable_shared" = yes && test "$GCC" = yes; then
13815 case $archive_cmds_CXX in
13817 # FIXME: we may have to deal with multi-command sequences.
13820 # Test whether the compiler implicitly links with -lc since on some
13821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13822 # to ld, don't add -lc before -lgcc.
13823 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13829 (eval $ac_compile) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } 2>conftest.err; then
13835 libobjs=conftest.$ac_objext
13837 wl=$lt_prog_compiler_wl_CXX
13838 pic_flag=$lt_prog_compiler_pic_CXX
13844 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13845 allow_undefined_flag_CXX=
13846 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13847 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }
13852 archive_cmds_need_lc_CXX=no
13854 archive_cmds_need_lc_CXX=yes
13856 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13858 cat conftest.err 1>&5
13861 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13862 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13869 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13871 library_names_spec=
13872 libname_spec='lib$name'
13876 postuninstall_cmds=
13880 shlibpath_overrides_runpath=unknown
13882 dynamic_linker="$host_os ld.so"
13883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13884 if test "$GCC" = yes; then
13885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13886 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13887 # if the path contains ";" then we assume it to be the separator
13888 # otherwise default to the standard path separator (i.e. ":") - it is
13889 # assumed that no part of a normal pathname contains ";" but that should
13890 # okay in the real world where ";" in dirpaths is itself problematic.
13891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13898 need_lib_prefix=unknown
13899 hardcode_into_libs=no
13901 # when you set need_version to no, make sure it does not cause -set_version
13902 # flags to be left without arguments
13903 need_version=unknown
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13909 shlibpath_var=LIBPATH
13911 # AIX 3 has no versioning support, so we append a major version to the name.
13912 soname_spec='${libname}${release}${shared_ext}$major'
13919 hardcode_into_libs=yes
13920 if test "$host_cpu" = ia64; then
13921 # AIX 5 supports IA64
13922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13923 shlibpath_var=LD_LIBRARY_PATH
13925 # With GCC up to 2.95.x, collect2 would create an import file
13926 # for dependence libraries. The import file would start with
13927 # the line `#! .'. This would cause the generated library to
13928 # depend on `.', always an invalid library. This was fixed in
13929 # development snapshots of GCC prior to 3.0.
13931 aix4 | aix4.[01] | aix4.[01].*)
13932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13934 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13937 can_build_shared=no
13941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13942 # soname into executable. Probably we can add versioning support to
13943 # collect2, so additional links can be useful in future.
13944 if test "$aix_use_runtimelinking" = yes; then
13945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13946 # instead of lib<name>.a to let people know that these are not
13947 # typical AIX shared libraries.
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950 # We preserve .a as extension for shared libraries through AIX4.2
13951 # and later when we are not doing run time linking.
13952 library_names_spec='${libname}${release}.a $libname.a'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13955 shlibpath_var=LIBPATH
13960 library_names_spec='$libname.ixlibrary $libname.a'
13961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13962 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'
13966 library_names_spec='${libname}${shared_ext}'
13967 dynamic_linker="$host_os ld.so"
13968 shlibpath_var=LIBRARY_PATH
13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975 soname_spec='${libname}${release}${shared_ext}$major'
13976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13977 shlibpath_var=LD_LIBRARY_PATH
13978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13980 # the default ld.so.conf also contains /usr/contrib/lib and
13981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13982 # libtool to hard-code these into programs
13985 cygwin* | mingw* | pw32*)
13986 version_type=windows
13991 case $GCC,$host_os in
13992 yes,cygwin* | yes,mingw* | yes,pw32*)
13993 library_names_spec='$libname.dll.a'
13994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13995 postinstall_cmds='base_file=`basename \${file}`~
13996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13997 dldir=$destdir/`dirname \$dlpath`~
13998 test -d \$dldir || mkdir -p \$dldir~
13999 $install_prog $dir/$dlname \$dldir/$dlname~
14000 chmod a+x \$dldir/$dlname'
14001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14002 dlpath=$dir/\$dldll~
14004 shlibpath_overrides_runpath=yes
14008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14010 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14013 # MinGW DLLs use traditional 'lib' prefix
14014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14017 # It is most probably a Windows format PATH printed by
14018 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14019 # path with ; separators, and with drive letters. We can handle the
14020 # drive letters (cygwin fileutils understands them), so leave them,
14021 # especially as we might pass files found there to a mingw objdump,
14022 # which wouldn't understand a cygwinified path. Ahh.
14023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14029 # pw32 DLLs use 'pw' prefix rather than 'lib'
14030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14039 dynamic_linker='Win32 ld.exe'
14040 # FIXME: first we should search . and the directory the executable is in
14044 darwin* | rhapsody*)
14045 dynamic_linker="$host_os dyld"
14046 version_type=darwin
14049 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14050 soname_spec='${libname}${release}${major}$shared_ext'
14051 shlibpath_overrides_runpath=yes
14052 shlibpath_var=DYLD_LIBRARY_PATH
14053 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14054 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14055 if test "$GCC" = yes; then
14056 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14058 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 shlibpath_var=LD_LIBRARY_PATH
14076 freebsd* | dragonfly*)
14077 # DragonFly does not have aout. When/if they implement a new
14078 # versioning mechanism, adjust this.
14079 if test -x /usr/bin/objformat; then
14080 objformat=`/usr/bin/objformat`
14083 freebsd[123]*) objformat=aout ;;
14084 *) objformat=elf ;;
14087 version_type=freebsd-$objformat
14088 case $version_type in
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14099 shlibpath_var=LD_LIBRARY_PATH
14102 shlibpath_overrides_runpath=yes
14104 freebsd3.[01]* | freebsdelf3.[01]*)
14105 shlibpath_overrides_runpath=yes
14106 hardcode_into_libs=yes
14108 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14109 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14110 shlibpath_overrides_runpath=no
14111 hardcode_into_libs=yes
14113 freebsd*) # from 4.6 on
14114 shlibpath_overrides_runpath=yes
14115 hardcode_into_libs=yes
14124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14125 soname_spec='${libname}${release}${shared_ext}$major'
14126 shlibpath_var=LD_LIBRARY_PATH
14127 hardcode_into_libs=yes
14130 hpux9* | hpux10* | hpux11*)
14131 # Give a soname corresponding to the major version so that dld.sl refuses to
14132 # link against other versions.
14139 hardcode_into_libs=yes
14140 dynamic_linker="$host_os dld.so"
14141 shlibpath_var=LD_LIBRARY_PATH
14142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144 soname_spec='${libname}${release}${shared_ext}$major'
14145 if test "X$HPUX_IA64_MODE" = X32; then
14146 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14148 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14154 hardcode_into_libs=yes
14155 dynamic_linker="$host_os dld.sl"
14156 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14159 soname_spec='${libname}${release}${shared_ext}$major'
14160 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14165 dynamic_linker="$host_os dld.sl"
14166 shlibpath_var=SHLIB_PATH
14167 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169 soname_spec='${libname}${release}${shared_ext}$major'
14172 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14173 postinstall_cmds='chmod 555 $lib'
14180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14183 shlibpath_var=LD_LIBRARY_PATH
14184 shlibpath_overrides_runpath=no
14185 hardcode_into_libs=yes
14188 irix5* | irix6* | nonstopux*)
14190 nonstopux*) version_type=nonstopux ;;
14192 if test "$lt_cv_prog_gnu_ld" = yes; then
14200 soname_spec='${libname}${release}${shared_ext}$major'
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14203 irix5* | nonstopux*)
14204 libsuff= shlibsuff=
14207 case $LD in # libtool.m4 will add one of these switches to LD
14208 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14209 libsuff= shlibsuff= libmagic=32-bit;;
14210 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14211 libsuff=32 shlibsuff=N32 libmagic=N32;;
14212 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14213 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14214 *) libsuff= shlibsuff= libmagic=never-match;;
14218 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14219 shlibpath_overrides_runpath=no
14220 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14221 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14222 hardcode_into_libs=yes
14225 # No shared lib support for Linux oldld, aout, or coff.
14226 linux*oldld* | linux*aout* | linux*coff*)
14230 # This must be Linux ELF.
14231 linux* | k*bsd*-gnu)
14235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14236 soname_spec='${libname}${release}${shared_ext}$major'
14237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14238 shlibpath_var=LD_LIBRARY_PATH
14239 shlibpath_overrides_runpath=no
14240 # This implies no fast_install, which is unacceptable.
14241 # Some rework will be needed to allow for fast_install
14242 # before this can be enabled.
14243 hardcode_into_libs=yes
14245 # Append ld.so.conf contents to the search path
14246 if test -f /etc/ld.so.conf; then
14247 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14248 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14251 # We used to test for /lib/ld.so.1 and disable shared libraries on
14252 # powerpc, because MkLinux only supported shared libraries with the
14253 # GNU dynamic linker. Since this was broken with cross compilers,
14254 # most powerpc-linux boxes support dynamic linking these days and
14255 # people can always --disable-shared, the test was removed, and we
14256 # assume the GNU/Linux dynamic linker is in use.
14257 dynamic_linker='GNU/Linux ld.so'
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14266 shlibpath_var=LD_LIBRARY_PATH
14267 shlibpath_overrides_runpath=no
14268 hardcode_into_libs=yes
14269 dynamic_linker='NetBSD ld.elf_so'
14276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14279 dynamic_linker='NetBSD (a.out) ld.so'
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 dynamic_linker='NetBSD ld.elf_so'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 shlibpath_overrides_runpath=yes
14287 hardcode_into_libs=yes
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293 shlibpath_var=LD_LIBRARY_PATH
14294 shlibpath_overrides_runpath=yes
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 shlibpath_overrides_runpath=yes
14309 sys_lib_dlsearch_path_spec="/usr/lib"
14311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14314 *) need_version=no ;;
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14321 openbsd2.[89] | openbsd2.[89].*)
14322 shlibpath_overrides_runpath=no
14325 shlibpath_overrides_runpath=yes
14329 shlibpath_overrides_runpath=yes
14334 libname_spec='$name'
14337 library_names_spec='$libname${shared_ext} $libname.a'
14338 dynamic_linker='OS/2 ld.exe'
14339 shlibpath_var=LIBPATH
14342 osf3* | osf4* | osf5*)
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348 shlibpath_var=LD_LIBRARY_PATH
14349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358 soname_spec='${libname}${release}${shared_ext}$major'
14359 shlibpath_var=LD_LIBRARY_PATH
14360 shlibpath_overrides_runpath=yes
14361 hardcode_into_libs=yes
14362 # ldd complains unless libraries are executable
14363 postinstall_cmds='chmod +x $lib'
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 shlibpath_overrides_runpath=yes
14372 if test "$with_gnu_ld" = yes; then
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 case $host_vendor in
14385 shlibpath_overrides_runpath=no
14387 export_dynamic_flag_spec='${wl}-Blargedynsym'
14388 runpath_var=LD_RUN_PATH
14396 shlibpath_overrides_runpath=no
14397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14403 if test -d /usr/nec ;then
14405 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14406 soname_spec='$libname${shared_ext}.$major'
14407 shlibpath_var=LD_LIBRARY_PATH
14411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14412 version_type=freebsd-elf
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14416 soname_spec='${libname}${release}${shared_ext}$major'
14417 shlibpath_var=LD_LIBRARY_PATH
14418 hardcode_into_libs=yes
14419 if test "$with_gnu_ld" = yes; then
14420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14421 shlibpath_overrides_runpath=no
14423 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14424 shlibpath_overrides_runpath=yes
14427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14431 sys_lib_dlsearch_path_spec='/usr/lib'
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 shlibpath_var=LD_LIBRARY_PATH
14445 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14446 echo "${ECHO_T}$dynamic_linker" >&6; }
14447 test "$dynamic_linker" = no && can_build_shared=no
14449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14450 if test "$GCC" = yes; then
14451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14454 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14455 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14456 hardcode_action_CXX=
14457 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14458 test -n "$runpath_var_CXX" || \
14459 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14461 # We can hardcode non-existant directories.
14462 if test "$hardcode_direct_CXX" != no &&
14463 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14464 # have to relink, otherwise we might link with an installed library
14465 # when we should be linking with a yet-to-be-installed one
14466 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14467 test "$hardcode_minus_L_CXX" != no; then
14468 # Linking always hardcodes the temporary library directory.
14469 hardcode_action_CXX=relink
14471 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14472 hardcode_action_CXX=immediate
14475 # We cannot hardcode anything, or else we can only hardcode existing
14477 hardcode_action_CXX=unsupported
14479 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14480 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14482 if test "$hardcode_action_CXX" = relink; then
14483 # Fast installation is not supported
14484 enable_fast_install=no
14485 elif test "$shlibpath_overrides_runpath" = yes ||
14486 test "$enable_shared" = no; then
14487 # Fast installation is not necessary
14488 enable_fast_install=needless
14492 # The else clause should only fire when bootstrapping the
14493 # libtool distribution, otherwise you forgot to ship ltmain.sh
14494 # with your package, and you will get complaints that there are
14495 # no rules to generate ltmain.sh.
14496 if test -f "$ltmain"; then
14497 # See if we are running on zsh, and set the options which allow our commands through
14498 # without removal of \ escapes.
14499 if test -n "${ZSH_VERSION+set}" ; then
14500 setopt NO_GLOB_SUBST
14502 # Now quote all the things that may contain metacharacters while being
14503 # careful not to overquote the AC_SUBSTed values. We take copies of the
14504 # variables and quote the copies for generation of the libtool script.
14505 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14507 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14508 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14509 deplibs_check_method reload_flag reload_cmds need_locks \
14510 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14511 lt_cv_sys_global_symbol_to_c_name_address \
14512 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14513 old_postinstall_cmds old_postuninstall_cmds \
14517 lt_prog_compiler_wl_CXX \
14518 lt_prog_compiler_pic_CXX \
14519 lt_prog_compiler_static_CXX \
14520 lt_prog_compiler_no_builtin_flag_CXX \
14521 export_dynamic_flag_spec_CXX \
14522 thread_safe_flag_spec_CXX \
14523 whole_archive_flag_spec_CXX \
14524 enable_shared_with_static_runtimes_CXX \
14525 old_archive_cmds_CXX \
14526 old_archive_from_new_cmds_CXX \
14527 predep_objects_CXX \
14528 postdep_objects_CXX \
14531 compiler_lib_search_path_CXX \
14533 archive_expsym_cmds_CXX \
14534 postinstall_cmds_CXX \
14535 postuninstall_cmds_CXX \
14536 old_archive_from_expsyms_cmds_CXX \
14537 allow_undefined_flag_CXX \
14538 no_undefined_flag_CXX \
14539 export_symbols_cmds_CXX \
14540 hardcode_libdir_flag_spec_CXX \
14541 hardcode_libdir_flag_spec_ld_CXX \
14542 hardcode_libdir_separator_CXX \
14543 hardcode_automatic_CXX \
14545 module_expsym_cmds_CXX \
14546 lt_cv_prog_compiler_c_o_CXX \
14547 exclude_expsyms_CXX \
14548 include_expsyms_CXX; do
14551 old_archive_cmds_CXX | \
14552 old_archive_from_new_cmds_CXX | \
14553 archive_cmds_CXX | \
14554 archive_expsym_cmds_CXX | \
14555 module_cmds_CXX | \
14556 module_expsym_cmds_CXX | \
14557 old_archive_from_expsyms_cmds_CXX | \
14558 export_symbols_cmds_CXX | \
14559 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14560 postinstall_cmds | postuninstall_cmds | \
14561 old_postinstall_cmds | old_postuninstall_cmds | \
14562 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14563 # Double-quote double-evaled strings.
14564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14573 *'\$0 --fallback-echo"')
14574 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14580 cat <<__EOF__ >> "$cfgfile"
14581 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14585 # Shell to use when invoking shell scripts.
14588 # Whether or not to build shared libraries.
14589 build_libtool_libs=$enable_shared
14591 # Whether or not to build static libraries.
14592 build_old_libs=$enable_static
14594 # Whether or not to add -lc for building shared libraries.
14595 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14597 # Whether or not to disallow shared libs when runtime libs are static
14598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14600 # Whether or not to optimize for fast installation.
14601 fast_install=$enable_fast_install
14604 host_alias=$host_alias
14608 # The build system.
14609 build_alias=$build_alias
14613 # An echo program that does not interpret backslashes.
14618 AR_FLAGS=$lt_AR_FLAGS
14623 # LTCC compiler flags.
14624 LTCFLAGS=$lt_LTCFLAGS
14626 # A language-specific compiler.
14627 CC=$lt_compiler_CXX
14629 # Is the compiler the GNU C compiler?
14635 # The linker used to build libraries.
14638 # Whether we need hard or soft links.
14641 # A BSD-compatible nm program.
14644 # A symbol stripping program
14647 # Used to examine libraries when file_magic_cmd begins "file"
14648 MAGIC_CMD=$MAGIC_CMD
14650 # Used on cygwin: DLL creation program.
14653 # Used on cygwin: object dumper.
14656 # Used on cygwin: assembler.
14659 # The name of the directory that contains temporary libtool files.
14662 # How to create reloadable object files.
14663 reload_flag=$lt_reload_flag
14664 reload_cmds=$lt_reload_cmds
14666 # How to pass a linker flag through the compiler.
14667 wl=$lt_lt_prog_compiler_wl_CXX
14669 # Object file suffix (normally "o").
14670 objext="$ac_objext"
14672 # Old archive suffix (normally "a").
14675 # Shared library suffix (normally ".so").
14676 shrext_cmds='$shrext_cmds'
14678 # Executable file suffix (normally "").
14681 # Additional compiler flags for building library objects.
14682 pic_flag=$lt_lt_prog_compiler_pic_CXX
14685 # What is the maximum length of a command?
14686 max_cmd_len=$lt_cv_sys_max_cmd_len
14688 # Does compiler simultaneously support -c and -o options?
14689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14691 # Must we lock files when doing compilation?
14692 need_locks=$lt_need_locks
14694 # Do we need the lib prefix for modules?
14695 need_lib_prefix=$need_lib_prefix
14697 # Do we need a version for libraries?
14698 need_version=$need_version
14700 # Whether dlopen is supported.
14701 dlopen_support=$enable_dlopen
14703 # Whether dlopen of programs is supported.
14704 dlopen_self=$enable_dlopen_self
14706 # Whether dlopen of statically linked programs is supported.
14707 dlopen_self_static=$enable_dlopen_self_static
14709 # Compiler flag to prevent dynamic linking.
14710 link_static_flag=$lt_lt_prog_compiler_static_CXX
14712 # Compiler flag to turn off builtin functions.
14713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14715 # Compiler flag to allow reflexive dlopens.
14716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14718 # Compiler flag to generate shared objects directly from archives.
14719 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14721 # Compiler flag to generate thread-safe objects.
14722 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14724 # Library versioning type.
14725 version_type=$version_type
14727 # Format of library name prefix.
14728 libname_spec=$lt_libname_spec
14730 # List of archive names. First name is the real one, the rest are links.
14731 # The last name is the one that the linker finds with -lNAME.
14732 library_names_spec=$lt_library_names_spec
14734 # The coded name of the library, if different from the real name.
14735 soname_spec=$lt_soname_spec
14737 # Commands used to build and install an old-style archive.
14739 old_archive_cmds=$lt_old_archive_cmds_CXX
14740 old_postinstall_cmds=$lt_old_postinstall_cmds
14741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14743 # Create an old-style archive from a shared archive.
14744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14746 # Create a temporary old-style archive to link instead of a shared archive.
14747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14749 # Commands used to build and install a shared archive.
14750 archive_cmds=$lt_archive_cmds_CXX
14751 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14752 postinstall_cmds=$lt_postinstall_cmds
14753 postuninstall_cmds=$lt_postuninstall_cmds
14755 # Commands used to build a loadable module (assumed same as above if empty)
14756 module_cmds=$lt_module_cmds_CXX
14757 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14759 # Commands to strip libraries.
14760 old_striplib=$lt_old_striplib
14761 striplib=$lt_striplib
14763 # Dependencies to place before the objects being linked to create a
14765 predep_objects=$lt_predep_objects_CXX
14767 # Dependencies to place after the objects being linked to create a
14769 postdep_objects=$lt_postdep_objects_CXX
14771 # Dependencies to place before the objects being linked to create a
14773 predeps=$lt_predeps_CXX
14775 # Dependencies to place after the objects being linked to create a
14777 postdeps=$lt_postdeps_CXX
14779 # The library search path used internally by the compiler when linking
14780 # a shared library.
14781 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14783 # Method to check whether dependent libraries are shared objects.
14784 deplibs_check_method=$lt_deplibs_check_method
14786 # Command to use when deplibs_check_method == file_magic.
14787 file_magic_cmd=$lt_file_magic_cmd
14789 # Flag that allows shared libraries with undefined symbols to be built.
14790 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14792 # Flag that forces no undefined symbols.
14793 no_undefined_flag=$lt_no_undefined_flag_CXX
14795 # Commands used to finish a libtool library installation in a directory.
14796 finish_cmds=$lt_finish_cmds
14798 # Same as above, but a single script fragment to be evaled but not shown.
14799 finish_eval=$lt_finish_eval
14801 # Take the output of nm and produce a listing of raw symbols and C names.
14802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14804 # Transform the output of nm in a proper C declaration
14805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14807 # Transform the output of nm in a C name address pair
14808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14810 # This is the shared library runtime path variable.
14811 runpath_var=$runpath_var
14813 # This is the shared library path variable.
14814 shlibpath_var=$shlibpath_var
14816 # Is shlibpath searched before the hard-coded library search path?
14817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14819 # How to hardcode a shared library path into an executable.
14820 hardcode_action=$hardcode_action_CXX
14822 # Whether we should hardcode library paths into libraries.
14823 hardcode_into_libs=$hardcode_into_libs
14825 # Flag to hardcode \$libdir into a binary during linking.
14826 # This must work even if \$libdir does not exist.
14827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14829 # If ld is used when linking, flag to hardcode \$libdir into
14830 # a binary during linking. This must work even if \$libdir does
14832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14834 # Whether we need a single -rpath flag with a separated argument.
14835 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14838 # resulting binary.
14839 hardcode_direct=$hardcode_direct_CXX
14841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14842 # resulting binary.
14843 hardcode_minus_L=$hardcode_minus_L_CXX
14845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14846 # the resulting binary.
14847 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14849 # Set to yes if building a shared library automatically hardcodes DIR into the library
14850 # and all subsequent libraries and executables linked against it.
14851 hardcode_automatic=$hardcode_automatic_CXX
14853 # Variables whose values should be saved in libtool wrapper scripts and
14854 # restored at relink time.
14855 variables_saved_for_relink="$variables_saved_for_relink"
14857 # Whether libtool must link a program against all its dependency libraries.
14858 link_all_deplibs=$link_all_deplibs_CXX
14860 # Compile-time system search path for libraries
14861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14863 # Run-time system search path for libraries
14864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14866 # Fix the shell variable \$srcfile for the compiler.
14867 fix_srcfile_path="$fix_srcfile_path_CXX"
14869 # Set to yes if exported symbols are required.
14870 always_export_symbols=$always_export_symbols_CXX
14872 # The commands to list exported symbols.
14873 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14875 # The commands to extract the exported symbol list from a shared archive.
14876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14878 # Symbols that should not be listed in the preloaded symbols.
14879 exclude_expsyms=$lt_exclude_expsyms_CXX
14881 # Symbols that must always be exported.
14882 include_expsyms=$lt_include_expsyms_CXX
14884 # ### END LIBTOOL TAG CONFIG: $tagname
14890 # If there is no Makefile yet, we rely on a make rule to execute
14891 # `config.status --recheck' to rerun these tests and create the
14892 # libtool script then.
14893 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14894 if test -f "$ltmain_in"; then
14895 test -f Makefile && make "$ltmain"
14901 ac_cpp='$CPP $CPPFLAGS'
14902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14910 with_gnu_ldcxx=$with_gnu_ld
14911 with_gnu_ld=$lt_save_with_gnu_ld
14912 lt_cv_path_LDCXX=$lt_cv_path_LD
14913 lt_cv_path_LD=$lt_save_path_LD
14914 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14915 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14923 if test -n "$F77" && test "X$F77" != "Xno"; then
14926 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14927 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14928 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14931 archive_cmds_need_lc_F77=no
14932 allow_undefined_flag_F77=
14933 always_export_symbols_F77=no
14934 archive_expsym_cmds_F77=
14935 export_dynamic_flag_spec_F77=
14936 hardcode_direct_F77=no
14937 hardcode_libdir_flag_spec_F77=
14938 hardcode_libdir_flag_spec_ld_F77=
14939 hardcode_libdir_separator_F77=
14940 hardcode_minus_L_F77=no
14941 hardcode_automatic_F77=no
14943 module_expsym_cmds_F77=
14944 link_all_deplibs_F77=unknown
14945 old_archive_cmds_F77=$old_archive_cmds
14946 no_undefined_flag_F77=
14947 whole_archive_flag_spec_F77=
14948 enable_shared_with_static_runtimes_F77=no
14950 # Source file extension for f77 test sources.
14953 # Object file extension for compiled f77 test sources.
14957 # Code to be used in simple compile tests
14958 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14960 # Code to be used in simple link tests
14961 lt_simple_link_test_code=" program t\n end\n"
14963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14965 # If no C compiler was specified, use CC.
14968 # If no C compiler flags were specified, use CFLAGS.
14969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14971 # Allow CC to be a program name with arguments.
14975 # save warnings/boilerplate of simple test code
14976 ac_outfile=conftest.$ac_objext
14977 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14979 _lt_compiler_boilerplate=`cat conftest.err`
14982 ac_outfile=conftest.$ac_objext
14983 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14985 _lt_linker_boilerplate=`cat conftest.err`
14989 # Allow CC to be a program name with arguments.
14994 for cc_temp in $compiler""; do
14996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15005 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15006 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15007 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15008 echo "${ECHO_T}$can_build_shared" >&6; }
15010 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15011 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15012 test "$can_build_shared" = "no" && enable_shared=no
15014 # On AIX, shared libraries and static libraries use the same namespace, and
15015 # are all built from PIC.
15018 test "$enable_shared" = yes && enable_static=no
15019 if test -n "$RANLIB"; then
15020 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15021 postinstall_cmds='$RANLIB $lib'
15025 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15026 test "$enable_shared" = yes && enable_static=no
15030 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15031 echo "${ECHO_T}$enable_shared" >&6; }
15033 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15034 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15035 # Make sure either enable_shared or enable_static is yes.
15036 test "$enable_shared" = yes || enable_static=yes
15037 { echo "$as_me:$LINENO: result: $enable_static" >&5
15038 echo "${ECHO_T}$enable_static" >&6; }
15043 lt_prog_compiler_wl_F77=
15044 lt_prog_compiler_pic_F77=
15045 lt_prog_compiler_static_F77=
15047 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15048 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15050 if test "$GCC" = yes; then
15051 lt_prog_compiler_wl_F77='-Wl,'
15052 lt_prog_compiler_static_F77='-static'
15056 # All AIX code is PIC.
15057 if test "$host_cpu" = ia64; then
15058 # AIX 5 now supports IA64 processor
15059 lt_prog_compiler_static_F77='-Bstatic'
15064 # FIXME: we need at least 68020 code to build shared libraries, but
15065 # adding the `-m68020' flag to GCC prevents building anything better,
15067 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15070 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15071 # PIC is the default for these OSes.
15074 mingw* | pw32* | os2*)
15075 # This hack is so that the source file can tell whether it is being
15076 # built for inclusion in a dll (and should export symbols for example).
15077 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15080 darwin* | rhapsody*)
15081 # PIC is the default on this platform
15082 # Common symbols not allowed in MH_DYLIB files
15083 lt_prog_compiler_pic_F77='-fno-common'
15087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15088 # Instead, we relocate shared libraries at runtime.
15092 # Just because we use GCC doesn't mean we suddenly get shared libraries
15093 # on systems that don't support them.
15094 lt_prog_compiler_can_build_shared_F77=no
15099 if test -d /usr/nec; then
15100 lt_prog_compiler_pic_F77=-Kconform_pic
15105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15106 # not for PA HP-UX.
15112 lt_prog_compiler_pic_F77='-fPIC'
15118 lt_prog_compiler_pic_F77='-fPIC'
15122 # PORTME Check for flag to pass linker flags through the system compiler.
15125 lt_prog_compiler_wl_F77='-Wl,'
15126 if test "$host_cpu" = ia64; then
15127 # AIX 5 now supports IA64 processor
15128 lt_prog_compiler_static_F77='-Bstatic'
15130 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15134 # PIC is the default on this platform
15135 # Common symbols not allowed in MH_DYLIB files
15136 case $cc_basename in
15138 lt_prog_compiler_pic_F77='-qnocommon'
15139 lt_prog_compiler_wl_F77='-Wl,'
15144 mingw* | pw32* | os2*)
15145 # This hack is so that the source file can tell whether it is being
15146 # built for inclusion in a dll (and should export symbols for example).
15147 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15150 hpux9* | hpux10* | hpux11*)
15151 lt_prog_compiler_wl_F77='-Wl,'
15152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15153 # not for PA HP-UX.
15159 lt_prog_compiler_pic_F77='+Z'
15162 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15163 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15166 irix5* | irix6* | nonstopux*)
15167 lt_prog_compiler_wl_F77='-Wl,'
15168 # PIC (with -KPIC) is the default.
15169 lt_prog_compiler_static_F77='-non_shared'
15173 lt_prog_compiler_pic_F77='-KPIC'
15174 lt_prog_compiler_static_F77='-Bstatic'
15177 linux* | k*bsd*-gnu)
15178 case $cc_basename in
15180 lt_prog_compiler_wl_F77='-Wl,'
15181 lt_prog_compiler_pic_F77='-KPIC'
15182 lt_prog_compiler_static_F77='-static'
15184 pgcc* | pgf77* | pgf90* | pgf95*)
15185 # Portland Group compilers (*not* the Pentium gcc compiler,
15186 # which looks to be a dead project)
15187 lt_prog_compiler_wl_F77='-Wl,'
15188 lt_prog_compiler_pic_F77='-fpic'
15189 lt_prog_compiler_static_F77='-Bstatic'
15192 lt_prog_compiler_wl_F77='-Wl,'
15193 # All Alpha code is PIC.
15194 lt_prog_compiler_static_F77='-non_shared'
15199 osf3* | osf4* | osf5*)
15200 lt_prog_compiler_wl_F77='-Wl,'
15201 # All OSF/1 code is PIC.
15202 lt_prog_compiler_static_F77='-non_shared'
15206 lt_prog_compiler_pic_F77='-KPIC'
15207 lt_prog_compiler_static_F77='-Bstatic'
15208 case $cc_basename in
15209 f77* | f90* | f95*)
15210 lt_prog_compiler_wl_F77='-Qoption ld ';;
15212 lt_prog_compiler_wl_F77='-Wl,';;
15217 lt_prog_compiler_wl_F77='-Qoption ld '
15218 lt_prog_compiler_pic_F77='-PIC'
15219 lt_prog_compiler_static_F77='-Bstatic'
15222 sysv4 | sysv4.2uw2* | sysv4.3*)
15223 lt_prog_compiler_wl_F77='-Wl,'
15224 lt_prog_compiler_pic_F77='-KPIC'
15225 lt_prog_compiler_static_F77='-Bstatic'
15229 if test -d /usr/nec ;then
15230 lt_prog_compiler_pic_F77='-Kconform_pic'
15231 lt_prog_compiler_static_F77='-Bstatic'
15235 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15236 lt_prog_compiler_wl_F77='-Wl,'
15237 lt_prog_compiler_pic_F77='-KPIC'
15238 lt_prog_compiler_static_F77='-Bstatic'
15242 lt_prog_compiler_wl_F77='-Wl,'
15243 lt_prog_compiler_can_build_shared_F77=no
15247 lt_prog_compiler_pic_F77='-pic'
15248 lt_prog_compiler_static_F77='-Bstatic'
15252 lt_prog_compiler_can_build_shared_F77=no
15257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15258 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15261 # Check to make sure the PIC flag actually works.
15263 if test -n "$lt_prog_compiler_pic_F77"; then
15265 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15266 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15267 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 lt_prog_compiler_pic_works_F77=no
15271 ac_outfile=conftest.$ac_objext
15272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15273 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15274 # Insert the option either (1) after the last *FLAGS variable, or
15275 # (2) before a word containing "conftest.", or (3) at the end.
15276 # Note that $ac_compile itself does not contain backslashes and begins
15277 # with a dollar sign (not a hyphen), so the echo should work correctly.
15278 # The option is referenced via a variable to avoid confusing sed.
15279 lt_compile=`echo "$ac_compile" | $SED \
15280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15282 -e 's:$: $lt_compiler_flag:'`
15283 (eval echo "\"\$as_me:15283: $lt_compile\"" >&5)
15284 (eval "$lt_compile" 2>conftest.err)
15286 cat conftest.err >&5
15287 echo "$as_me:15287: \$? = $ac_status" >&5
15288 if (exit $ac_status) && test -s "$ac_outfile"; then
15289 # The compiler can only warn and ignore the option if not recognized
15290 # So say no if there are warnings other than the usual output.
15291 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15294 lt_prog_compiler_pic_works_F77=yes
15300 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15301 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15303 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15304 case $lt_prog_compiler_pic_F77 in
15306 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15309 lt_prog_compiler_pic_F77=
15310 lt_prog_compiler_can_build_shared_F77=no
15315 # For platforms which do not support PIC, -DPIC is meaningless:
15317 lt_prog_compiler_pic_F77=
15320 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15325 # Check to make sure the static flag actually works.
15327 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15328 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15329 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15330 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 lt_prog_compiler_static_works_F77=no
15334 save_LDFLAGS="$LDFLAGS"
15335 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15336 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15338 # The linker can only warn and ignore the option if not recognized
15339 # So say no if there are warnings
15340 if test -s conftest.err; then
15341 # Append any errors to the config.log.
15342 cat conftest.err 1>&5
15343 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15345 if diff conftest.exp conftest.er2 >/dev/null; then
15346 lt_prog_compiler_static_works_F77=yes
15349 lt_prog_compiler_static_works_F77=yes
15353 LDFLAGS="$save_LDFLAGS"
15356 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15357 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15359 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15362 lt_prog_compiler_static_F77=
15366 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15367 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15368 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 lt_cv_prog_compiler_c_o_F77=no
15372 $rm -r conftest 2>/dev/null
15376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15378 lt_compiler_flag="-o out/conftest2.$ac_objext"
15379 # Insert the option either (1) after the last *FLAGS variable, or
15380 # (2) before a word containing "conftest.", or (3) at the end.
15381 # Note that $ac_compile itself does not contain backslashes and begins
15382 # with a dollar sign (not a hyphen), so the echo should work correctly.
15383 lt_compile=`echo "$ac_compile" | $SED \
15384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15386 -e 's:$: $lt_compiler_flag:'`
15387 (eval echo "\"\$as_me:15387: $lt_compile\"" >&5)
15388 (eval "$lt_compile" 2>out/conftest.err)
15390 cat out/conftest.err >&5
15391 echo "$as_me:15391: \$? = $ac_status" >&5
15392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15394 # The compiler can only warn and ignore the option if not recognized
15395 # So say no if there are warnings
15396 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15399 lt_cv_prog_compiler_c_o_F77=yes
15404 # SGI C++ compiler will create directory out/ii_files/ for
15405 # template instantiation
15406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15407 $rm out/* && rmdir out
15413 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15414 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15417 hard_links="nottested"
15418 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15419 # do not overwrite the value of need_locks provided by the user
15420 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15421 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15426 ln conftest.a conftest.b 2>&5 || hard_links=no
15427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15428 { echo "$as_me:$LINENO: result: $hard_links" >&5
15429 echo "${ECHO_T}$hard_links" >&6; }
15430 if test "$hard_links" = no; then
15431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15432 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15439 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15443 allow_undefined_flag_F77=
15444 enable_shared_with_static_runtimes_F77=no
15446 archive_expsym_cmds_F77=
15447 old_archive_From_new_cmds_F77=
15448 old_archive_from_expsyms_cmds_F77=
15449 export_dynamic_flag_spec_F77=
15450 whole_archive_flag_spec_F77=
15451 thread_safe_flag_spec_F77=
15452 hardcode_libdir_flag_spec_F77=
15453 hardcode_libdir_flag_spec_ld_F77=
15454 hardcode_libdir_separator_F77=
15455 hardcode_direct_F77=no
15456 hardcode_minus_L_F77=no
15457 hardcode_shlibpath_var_F77=unsupported
15458 link_all_deplibs_F77=unknown
15459 hardcode_automatic_F77=no
15461 module_expsym_cmds_F77=
15462 always_export_symbols_F77=no
15463 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15464 # include_expsyms should be a list of space-separated symbols to be *always*
15465 # included in the symbol list
15466 include_expsyms_F77=
15467 # exclude_expsyms can be an extended regexp of symbols to exclude
15468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15470 # as well as any symbol that contains `d'.
15471 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15473 # platforms (ab)use it in PIC code, but their linkers get confused if
15474 # the symbol is explicitly referenced. Since portable code cannot
15475 # rely on this symbol name, it's probably fine to never include it in
15476 # preloaded symbol tables.
15477 extract_expsyms_cmds=
15478 # Just being paranoid about ensuring that cc_basename is set.
15479 for cc_temp in $compiler""; do
15481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15487 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15490 cygwin* | mingw* | pw32*)
15491 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15492 # When not using gcc, we currently assume that we are using
15493 # Microsoft Visual C++.
15494 if test "$GCC" != yes; then
15499 # we just hope/assume this is gcc and not c89 (= MSVC++)
15508 if test "$with_gnu_ld" = yes; then
15509 # If archive_cmds runs LD, not CC, wlarc should be empty
15512 # Set some defaults for GNU ld with shared library support. These
15513 # are reset later if shared libraries are not supported. Putting them
15514 # here allows them to be overridden if necessary.
15515 runpath_var=LD_RUN_PATH
15516 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15517 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15518 # ancient GNU ld didn't support --whole-archive et. al.
15519 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15520 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15522 whole_archive_flag_spec_F77=
15524 supports_anon_versioning=no
15525 case `$LD -v 2>/dev/null` in
15526 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15527 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15528 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15529 *\ 2.11.*) ;; # other 2.11 versions
15530 *) supports_anon_versioning=yes ;;
15533 # See if GNU ld supports shared libraries.
15535 aix3* | aix4* | aix5*)
15536 # On AIX/PPC, the GNU linker is very broken
15537 if test "$host_cpu" != ia64; then
15541 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15542 *** to be unable to reliably create shared libraries on AIX.
15543 *** Therefore, libtool is disabling shared libraries support. If you
15544 *** really care for shared libraries, you may want to modify your PATH
15545 *** so that a non-GNU linker is found, and then restart.
15552 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)'
15553 hardcode_libdir_flag_spec_F77='-L$libdir'
15554 hardcode_minus_L_F77=yes
15556 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15557 # that the semantics of dynamic libraries on AmigaOS, at least up
15558 # to version 4, is to share data among multiple programs linked
15559 # with the same dynamic library. Since this doesn't match the
15560 # behavior of shared libraries on other platforms, we can't use
15566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15567 allow_undefined_flag_F77=unsupported
15568 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15569 # support --undefined. This deserves some investigation. FIXME
15570 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15576 cygwin* | mingw* | pw32*)
15577 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15578 # as there is no search path for DLLs.
15579 hardcode_libdir_flag_spec_F77='-L$libdir'
15580 allow_undefined_flag_F77=unsupported
15581 always_export_symbols_F77=no
15582 enable_shared_with_static_runtimes_F77=yes
15583 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15585 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15586 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15587 # If the export-symbols file already is a .def file (1st line
15588 # is EXPORTS), use it as is; otherwise, prepend...
15589 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15590 cp $export_symbols $output_objdir/$soname.def;
15592 echo EXPORTS > $output_objdir/$soname.def;
15593 cat $export_symbols >> $output_objdir/$soname.def;
15595 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15602 hardcode_direct_F77=no
15603 hardcode_shlibpath_var_F77=no
15604 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15605 export_dynamic_flag_spec_F77='${wl}-E'
15606 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15607 # Instead, shared libraries are loaded at an image base (0x10000000 by
15608 # default) and relocated if they conflict, which is a slow very memory
15609 # consuming and fragmenting process. To avoid this, we pick a random,
15610 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15611 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15612 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'
15613 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'
15616 linux* | k*bsd*-gnu)
15617 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15619 case $cc_basename,$host_cpu in
15620 pgcc*) # Portland Group C compiler
15621 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'
15622 tmp_addflag=' $pic_flag'
15624 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15625 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'
15626 tmp_addflag=' $pic_flag -Mnomain' ;;
15627 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15628 tmp_addflag=' -i_dynamic' ;;
15629 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15630 tmp_addflag=' -i_dynamic -nofor_main' ;;
15631 ifc* | ifort*) # Intel Fortran compiler
15632 tmp_addflag=' -nofor_main' ;;
15634 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15636 if test $supports_anon_versioning = yes; then
15637 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15639 $echo "local: *; };" >> $output_objdir/$libname.ver~
15640 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15642 link_all_deplibs_F77=no
15648 netbsd* | netbsdelf*-gnu)
15649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15650 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15653 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15659 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15663 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15664 *** create shared libraries on Solaris systems. Therefore, libtool
15665 *** is disabling shared libraries support. We urge you to upgrade GNU
15666 *** binutils to release 2.9.1 or newer. Another option is to modify
15667 *** your PATH or compiler configuration so that the native linker is
15668 *** used, and then restart.
15671 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15672 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15673 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15680 case `$LD -v 2>&1` in
15681 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15685 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15686 *** reliably create shared libraries on SCO systems. Therefore, libtool
15687 *** is disabling shared libraries support. We urge you to upgrade GNU
15688 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15689 *** your PATH or compiler configuration so that the native linker is
15690 *** used, and then restart.
15695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15696 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15697 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15698 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15707 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15709 hardcode_direct_F77=yes
15710 hardcode_shlibpath_var_F77=no
15714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15715 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15716 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15723 if test "$ld_shlibs_F77" = no; then
15725 hardcode_libdir_flag_spec_F77=
15726 export_dynamic_flag_spec_F77=
15727 whole_archive_flag_spec_F77=
15730 # PORTME fill in a description of your system's linker (not GNU ld)
15733 allow_undefined_flag_F77=unsupported
15734 always_export_symbols_F77=yes
15735 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'
15736 # Note: this linker hardcodes the directories in LIBPATH if there
15737 # are no directories specified by -L.
15738 hardcode_minus_L_F77=yes
15739 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15740 # Neither direct hardcoding nor static linking is supported with a
15742 hardcode_direct_F77=unsupported
15747 if test "$host_cpu" = ia64; then
15748 # On IA64, the linker does run time linking by default, so we don't
15749 # have to do anything special.
15750 aix_use_runtimelinking=no
15751 exp_sym_flag='-Bexport'
15754 # If we're using GNU nm, then we don't want the "-C" option.
15755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15756 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15757 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'
15759 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'
15761 aix_use_runtimelinking=no
15763 # Test if we are trying to use run time linking or normal
15764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15765 # need to do runtime linking.
15766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15767 for ld_flag in $LDFLAGS; do
15768 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15769 aix_use_runtimelinking=yes
15776 exp_sym_flag='-bexport'
15777 no_entry_flag='-bnoentry'
15780 # When large executables or shared objects are built, AIX ld can
15781 # have problems creating the table of contents. If linking a library
15782 # or program results in "error TOC overflow" add -mminimal-toc to
15783 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15784 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15786 archive_cmds_F77=''
15787 hardcode_direct_F77=yes
15788 hardcode_libdir_separator_F77=':'
15789 link_all_deplibs_F77=yes
15791 if test "$GCC" = yes; then
15792 case $host_os in aix4.[012]|aix4.[012].*)
15793 # We only want to do this on AIX 4.2 and lower, the check
15794 # below for broken collect2 doesn't work under 4.3+
15795 collect2name=`${CC} -print-prog-name=collect2`
15796 if test -f "$collect2name" && \
15797 strings "$collect2name" | grep resolve_lib_name >/dev/null
15799 # We have reworked collect2
15800 hardcode_direct_F77=yes
15802 # We have old collect2
15803 hardcode_direct_F77=unsupported
15804 # It fails to find uninstalled libraries when the uninstalled
15805 # path is not listed in the libpath. Setting hardcode_minus_L
15806 # to unsupported forces relinking
15807 hardcode_minus_L_F77=yes
15808 hardcode_libdir_flag_spec_F77='-L$libdir'
15809 hardcode_libdir_separator_F77=
15813 shared_flag='-shared'
15814 if test "$aix_use_runtimelinking" = yes; then
15815 shared_flag="$shared_flag "'${wl}-G'
15819 if test "$host_cpu" = ia64; then
15820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15821 # chokes on -Wl,-G. The following line is correct:
15824 if test "$aix_use_runtimelinking" = yes; then
15825 shared_flag='${wl}-G'
15827 shared_flag='${wl}-bM:SRE'
15832 # It seems that -bexpall does not export symbols beginning with
15833 # underscore (_), so it is better to generate a list of symbols to export.
15834 always_export_symbols_F77=yes
15835 if test "$aix_use_runtimelinking" = yes; then
15836 # Warning - without using the other runtime loading flags (-brtl),
15837 # -berok will link without error, but may produce a broken library.
15838 allow_undefined_flag_F77='-berok'
15839 # Determine the default libpath from the value encoded in an empty executable.
15840 cat >conftest.$ac_ext <<_ACEOF
15845 rm -f conftest.$ac_objext conftest$ac_exeext
15846 if { (ac_try="$ac_link"
15847 case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_link") 2>conftest.er1
15854 grep -v '^ *+' conftest.er1 >conftest.err
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } && {
15859 test -z "$ac_f77_werror_flag" ||
15860 test ! -s conftest.err
15861 } && test -s conftest$ac_exeext &&
15862 $as_test_x conftest$ac_exeext; then
15864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15866 # Check for a 64-bit object if we didn't find anything.
15867 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15877 conftest$ac_exeext conftest.$ac_ext
15878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15880 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15881 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"
15883 if test "$host_cpu" = ia64; then
15884 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15885 allow_undefined_flag_F77="-z nodefs"
15886 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"
15888 # Determine the default libpath from the value encoded in an empty executable.
15889 cat >conftest.$ac_ext <<_ACEOF
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (ac_try="$ac_link"
15896 case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_link") 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && {
15908 test -z "$ac_f77_werror_flag" ||
15909 test ! -s conftest.err
15910 } && test -s conftest$ac_exeext &&
15911 $as_test_x conftest$ac_exeext; then
15913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15915 # Check for a 64-bit object if we didn't find anything.
15916 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15926 conftest$ac_exeext conftest.$ac_ext
15927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15929 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15930 # Warning - without using the other run time loading flags,
15931 # -berok will link without error, but may produce a broken library.
15932 no_undefined_flag_F77=' ${wl}-bernotok'
15933 allow_undefined_flag_F77=' ${wl}-berok'
15934 # Exported symbols can be pulled into shared objects from archives
15935 whole_archive_flag_spec_F77='$convenience'
15936 archive_cmds_need_lc_F77=yes
15937 # This is similar to how AIX traditionally builds its shared libraries.
15938 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'
15944 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)'
15945 hardcode_libdir_flag_spec_F77='-L$libdir'
15946 hardcode_minus_L_F77=yes
15947 # see comment about different semantics on the GNU ld section
15952 export_dynamic_flag_spec_F77=-rdynamic
15955 cygwin* | mingw* | pw32*)
15956 # When not using gcc, we currently assume that we are using
15957 # Microsoft Visual C++.
15958 # hardcode_libdir_flag_spec is actually meaningless, as there is
15959 # no search path for DLLs.
15960 hardcode_libdir_flag_spec_F77=' '
15961 allow_undefined_flag_F77=unsupported
15962 # Tell ltmain to make .lib files, not .a files.
15964 # Tell ltmain to make .dll files, not .so files.
15966 # FIXME: Setting linknames here is a bad hack.
15967 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15968 # The linker will automatically build a .lib file if we build a DLL.
15969 old_archive_From_new_cmds_F77='true'
15970 # FIXME: Should let the user specify the lib program.
15971 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15972 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15973 enable_shared_with_static_runtimes_F77=yes
15976 darwin* | rhapsody*)
15978 rhapsody* | darwin1.[012])
15979 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15982 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15983 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15985 case ${MACOSX_DEPLOYMENT_TARGET} in
15987 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15990 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15996 archive_cmds_need_lc_F77=no
15997 hardcode_direct_F77=no
15998 hardcode_automatic_F77=yes
15999 hardcode_shlibpath_var_F77=unsupported
16000 whole_archive_flag_spec_F77=''
16001 link_all_deplibs_F77=yes
16002 if test "$GCC" = yes ; then
16003 output_verbose_link_cmd='echo'
16004 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16005 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16007 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}'
16008 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}'
16010 case $cc_basename in
16012 output_verbose_link_cmd='echo'
16013 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16014 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16015 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16016 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16017 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}'
16027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16028 hardcode_libdir_flag_spec_F77='-L$libdir'
16029 hardcode_shlibpath_var_F77=no
16036 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16037 # support. Future versions do this automatically, but an explicit c++rt0.o
16038 # does not break anything, and helps significantly (at the cost of a little
16041 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16042 hardcode_libdir_flag_spec_F77='-R$libdir'
16043 hardcode_direct_F77=yes
16044 hardcode_shlibpath_var_F77=no
16047 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16049 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16050 hardcode_direct_F77=yes
16051 hardcode_minus_L_F77=yes
16052 hardcode_shlibpath_var_F77=no
16055 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16056 freebsd* | dragonfly*)
16057 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16058 hardcode_libdir_flag_spec_F77='-R$libdir'
16059 hardcode_direct_F77=yes
16060 hardcode_shlibpath_var_F77=no
16064 if test "$GCC" = yes; then
16065 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'
16067 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'
16069 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16070 hardcode_libdir_separator_F77=:
16071 hardcode_direct_F77=yes
16073 # hardcode_minus_L: Not really in the search PATH,
16074 # but as the default location of the library.
16075 hardcode_minus_L_F77=yes
16076 export_dynamic_flag_spec_F77='${wl}-E'
16080 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16081 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16083 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16085 if test "$with_gnu_ld" = no; then
16086 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16087 hardcode_libdir_separator_F77=:
16089 hardcode_direct_F77=yes
16090 export_dynamic_flag_spec_F77='${wl}-E'
16092 # hardcode_minus_L: Not really in the search PATH,
16093 # but as the default location of the library.
16094 hardcode_minus_L_F77=yes
16099 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16102 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16105 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16108 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16114 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16124 if test "$with_gnu_ld" = no; then
16125 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16126 hardcode_libdir_separator_F77=:
16130 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16131 hardcode_direct_F77=no
16132 hardcode_shlibpath_var_F77=no
16135 hardcode_direct_F77=yes
16136 export_dynamic_flag_spec_F77='${wl}-E'
16138 # hardcode_minus_L: Not really in the search PATH,
16139 # but as the default location of the library.
16140 hardcode_minus_L_F77=yes
16146 irix5* | irix6* | nonstopux*)
16147 if test "$GCC" = yes; then
16148 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'
16150 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'
16151 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16153 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16154 hardcode_libdir_separator_F77=:
16155 link_all_deplibs_F77=yes
16158 netbsd* | netbsdelf*-gnu)
16159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16160 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16162 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16164 hardcode_libdir_flag_spec_F77='-R$libdir'
16165 hardcode_direct_F77=yes
16166 hardcode_shlibpath_var_F77=no
16170 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_direct_F77=yes
16172 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16173 hardcode_libdir_separator_F77=:
16174 hardcode_shlibpath_var_F77=no
16178 hardcode_direct_F77=yes
16179 hardcode_shlibpath_var_F77=no
16180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16181 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16182 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16183 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16184 export_dynamic_flag_spec_F77='${wl}-E'
16187 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16188 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_libdir_flag_spec_F77='-R$libdir'
16192 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16193 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16200 hardcode_libdir_flag_spec_F77='-L$libdir'
16201 hardcode_minus_L_F77=yes
16202 allow_undefined_flag_F77=unsupported
16203 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'
16204 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16208 if test "$GCC" = yes; then
16209 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16210 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'
16212 allow_undefined_flag_F77=' -expect_unresolved \*'
16213 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'
16215 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16216 hardcode_libdir_separator_F77=:
16219 osf4* | osf5*) # as osf3* with the addition of -msym flag
16220 if test "$GCC" = yes; then
16221 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16222 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'
16223 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16225 allow_undefined_flag_F77=' -expect_unresolved \*'
16226 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'
16227 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~
16228 $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'
16230 # Both c and cxx compiler support -rpath directly
16231 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16233 hardcode_libdir_separator_F77=:
16237 no_undefined_flag_F77=' -z text'
16238 if test "$GCC" = yes; then
16240 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16241 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16242 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16245 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16246 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16247 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16249 hardcode_libdir_flag_spec_F77='-R$libdir'
16250 hardcode_shlibpath_var_F77=no
16252 solaris2.[0-5] | solaris2.[0-5].*) ;;
16254 # The compiler driver will combine linker options so we
16255 # cannot just pass the convience library names through
16256 # without $wl, iff we do not link with $LD.
16257 # Luckily, gcc supports the same syntax we need for Sun Studio.
16258 # Supported since Solaris 2.6 (maybe 2.5.1?)
16261 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16263 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16266 link_all_deplibs_F77=yes
16270 if test "x$host_vendor" = xsequent; then
16271 # Use $CC to link under sequent, because it throws in some extra .o
16272 # files that make .init and .fini sections work.
16273 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16275 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16277 hardcode_libdir_flag_spec_F77='-L$libdir'
16278 hardcode_direct_F77=yes
16279 hardcode_minus_L_F77=yes
16280 hardcode_shlibpath_var_F77=no
16284 case $host_vendor in
16286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16287 hardcode_direct_F77=yes # is this really true???
16290 ## LD is ld it makes a PLAMLIB
16291 ## CC just makes a GrossModule.
16292 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16293 reload_cmds_F77='$CC -r -o $output$reload_objs'
16294 hardcode_direct_F77=no
16297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16301 runpath_var='LD_RUN_PATH'
16302 hardcode_shlibpath_var_F77=no
16306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16307 hardcode_shlibpath_var_F77=no
16308 export_dynamic_flag_spec_F77='-Bexport'
16312 if test -d /usr/nec; then
16313 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16314 hardcode_shlibpath_var_F77=no
16315 runpath_var=LD_RUN_PATH
16316 hardcode_runpath_var=yes
16321 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16322 no_undefined_flag_F77='${wl}-z,text'
16323 archive_cmds_need_lc_F77=no
16324 hardcode_shlibpath_var_F77=no
16325 runpath_var='LD_RUN_PATH'
16327 if test "$GCC" = yes; then
16328 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16329 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16331 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16332 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16336 sysv5* | sco3.2v5* | sco5v6*)
16337 # Note: We can NOT use -z defs as we might desire, because we do not
16338 # link with -lc, and that would cause any symbols used from libc to
16339 # always be unresolved, which means just about no library would
16340 # ever link correctly. If we're not using GNU ld we use -z text
16341 # though, which does catch some bad symbols but isn't as heavy-handed
16343 no_undefined_flag_F77='${wl}-z,text'
16344 allow_undefined_flag_F77='${wl}-z,nodefs'
16345 archive_cmds_need_lc_F77=no
16346 hardcode_shlibpath_var_F77=no
16347 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16348 hardcode_libdir_separator_F77=':'
16349 link_all_deplibs_F77=yes
16350 export_dynamic_flag_spec_F77='${wl}-Bexport'
16351 runpath_var='LD_RUN_PATH'
16353 if test "$GCC" = yes; then
16354 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16355 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16357 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16358 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16363 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16364 hardcode_libdir_flag_spec_F77='-L$libdir'
16365 hardcode_shlibpath_var_F77=no
16374 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16375 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16376 test "$ld_shlibs_F77" = no && can_build_shared=no
16379 # Do we need to explicitly link libc?
16381 case "x$archive_cmds_need_lc_F77" in
16383 # Assume -lc should be added
16384 archive_cmds_need_lc_F77=yes
16386 if test "$enable_shared" = yes && test "$GCC" = yes; then
16387 case $archive_cmds_F77 in
16389 # FIXME: we may have to deal with multi-command sequences.
16392 # Test whether the compiler implicitly links with -lc since on some
16393 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16394 # to ld, don't add -lc before -lgcc.
16395 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16396 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16398 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401 (eval $ac_compile) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } 2>conftest.err; then
16407 libobjs=conftest.$ac_objext
16409 wl=$lt_prog_compiler_wl_F77
16410 pic_flag=$lt_prog_compiler_pic_F77
16416 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16417 allow_undefined_flag_F77=
16418 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16419 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }
16424 archive_cmds_need_lc_F77=no
16426 archive_cmds_need_lc_F77=yes
16428 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16430 cat conftest.err 1>&5
16433 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16434 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16441 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16442 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16443 library_names_spec=
16444 libname_spec='lib$name'
16448 postuninstall_cmds=
16452 shlibpath_overrides_runpath=unknown
16454 dynamic_linker="$host_os ld.so"
16455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16456 if test "$GCC" = yes; then
16457 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16458 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16459 # if the path contains ";" then we assume it to be the separator
16460 # otherwise default to the standard path separator (i.e. ":") - it is
16461 # assumed that no part of a normal pathname contains ";" but that should
16462 # okay in the real world where ";" in dirpaths is itself problematic.
16463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16468 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16470 need_lib_prefix=unknown
16471 hardcode_into_libs=no
16473 # when you set need_version to no, make sure it does not cause -set_version
16474 # flags to be left without arguments
16475 need_version=unknown
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16481 shlibpath_var=LIBPATH
16483 # AIX 3 has no versioning support, so we append a major version to the name.
16484 soname_spec='${libname}${release}${shared_ext}$major'
16491 hardcode_into_libs=yes
16492 if test "$host_cpu" = ia64; then
16493 # AIX 5 supports IA64
16494 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16495 shlibpath_var=LD_LIBRARY_PATH
16497 # With GCC up to 2.95.x, collect2 would create an import file
16498 # for dependence libraries. The import file would start with
16499 # the line `#! .'. This would cause the generated library to
16500 # depend on `.', always an invalid library. This was fixed in
16501 # development snapshots of GCC prior to 3.0.
16503 aix4 | aix4.[01] | aix4.[01].*)
16504 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16506 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16509 can_build_shared=no
16513 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16514 # soname into executable. Probably we can add versioning support to
16515 # collect2, so additional links can be useful in future.
16516 if test "$aix_use_runtimelinking" = yes; then
16517 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16518 # instead of lib<name>.a to let people know that these are not
16519 # typical AIX shared libraries.
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16522 # We preserve .a as extension for shared libraries through AIX4.2
16523 # and later when we are not doing run time linking.
16524 library_names_spec='${libname}${release}.a $libname.a'
16525 soname_spec='${libname}${release}${shared_ext}$major'
16527 shlibpath_var=LIBPATH
16532 library_names_spec='$libname.ixlibrary $libname.a'
16533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16534 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'
16538 library_names_spec='${libname}${shared_ext}'
16539 dynamic_linker="$host_os ld.so"
16540 shlibpath_var=LIBRARY_PATH
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16551 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16552 # the default ld.so.conf also contains /usr/contrib/lib and
16553 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16554 # libtool to hard-code these into programs
16557 cygwin* | mingw* | pw32*)
16558 version_type=windows
16563 case $GCC,$host_os in
16564 yes,cygwin* | yes,mingw* | yes,pw32*)
16565 library_names_spec='$libname.dll.a'
16566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16567 postinstall_cmds='base_file=`basename \${file}`~
16568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16569 dldir=$destdir/`dirname \$dlpath`~
16570 test -d \$dldir || mkdir -p \$dldir~
16571 $install_prog $dir/$dlname \$dldir/$dlname~
16572 chmod a+x \$dldir/$dlname'
16573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16574 dlpath=$dir/\$dldll~
16576 shlibpath_overrides_runpath=yes
16580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16582 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16585 # MinGW DLLs use traditional 'lib' prefix
16586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16587 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16588 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16589 # It is most probably a Windows format PATH printed by
16590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16591 # path with ; separators, and with drive letters. We can handle the
16592 # drive letters (cygwin fileutils understands them), so leave them,
16593 # especially as we might pass files found there to a mingw objdump,
16594 # which wouldn't understand a cygwinified path. Ahh.
16595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16601 # pw32 DLLs use 'pw' prefix rather than 'lib'
16602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16611 dynamic_linker='Win32 ld.exe'
16612 # FIXME: first we should search . and the directory the executable is in
16616 darwin* | rhapsody*)
16617 dynamic_linker="$host_os dyld"
16618 version_type=darwin
16621 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16622 soname_spec='${libname}${release}${major}$shared_ext'
16623 shlibpath_overrides_runpath=yes
16624 shlibpath_var=DYLD_LIBRARY_PATH
16625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16626 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16627 if test "$GCC" = yes; then
16628 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16630 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16632 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 shlibpath_var=LD_LIBRARY_PATH
16648 freebsd* | dragonfly*)
16649 # DragonFly does not have aout. When/if they implement a new
16650 # versioning mechanism, adjust this.
16651 if test -x /usr/bin/objformat; then
16652 objformat=`/usr/bin/objformat`
16655 freebsd[123]*) objformat=aout ;;
16656 *) objformat=elf ;;
16659 version_type=freebsd-$objformat
16660 case $version_type in
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16671 shlibpath_var=LD_LIBRARY_PATH
16674 shlibpath_overrides_runpath=yes
16676 freebsd3.[01]* | freebsdelf3.[01]*)
16677 shlibpath_overrides_runpath=yes
16678 hardcode_into_libs=yes
16680 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16681 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16682 shlibpath_overrides_runpath=no
16683 hardcode_into_libs=yes
16685 freebsd*) # from 4.6 on
16686 shlibpath_overrides_runpath=yes
16687 hardcode_into_libs=yes
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 shlibpath_var=LD_LIBRARY_PATH
16699 hardcode_into_libs=yes
16702 hpux9* | hpux10* | hpux11*)
16703 # Give a soname corresponding to the major version so that dld.sl refuses to
16704 # link against other versions.
16711 hardcode_into_libs=yes
16712 dynamic_linker="$host_os dld.so"
16713 shlibpath_var=LD_LIBRARY_PATH
16714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 soname_spec='${libname}${release}${shared_ext}$major'
16717 if test "X$HPUX_IA64_MODE" = X32; then
16718 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16726 hardcode_into_libs=yes
16727 dynamic_linker="$host_os dld.sl"
16728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731 soname_spec='${libname}${release}${shared_ext}$major'
16732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16737 dynamic_linker="$host_os dld.sl"
16738 shlibpath_var=SHLIB_PATH
16739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 soname_spec='${libname}${release}${shared_ext}$major'
16744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16745 postinstall_cmds='chmod 555 $lib'
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=no
16757 hardcode_into_libs=yes
16760 irix5* | irix6* | nonstopux*)
16762 nonstopux*) version_type=nonstopux ;;
16764 if test "$lt_cv_prog_gnu_ld" = yes; then
16772 soname_spec='${libname}${release}${shared_ext}$major'
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16775 irix5* | nonstopux*)
16776 libsuff= shlibsuff=
16779 case $LD in # libtool.m4 will add one of these switches to LD
16780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16781 libsuff= shlibsuff= libmagic=32-bit;;
16782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16783 libsuff=32 shlibsuff=N32 libmagic=N32;;
16784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16786 *) libsuff= shlibsuff= libmagic=never-match;;
16790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16791 shlibpath_overrides_runpath=no
16792 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16793 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16794 hardcode_into_libs=yes
16797 # No shared lib support for Linux oldld, aout, or coff.
16798 linux*oldld* | linux*aout* | linux*coff*)
16802 # This must be Linux ELF.
16803 linux* | k*bsd*-gnu)
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 shlibpath_overrides_runpath=no
16812 # This implies no fast_install, which is unacceptable.
16813 # Some rework will be needed to allow for fast_install
16814 # before this can be enabled.
16815 hardcode_into_libs=yes
16817 # Append ld.so.conf contents to the search path
16818 if test -f /etc/ld.so.conf; then
16819 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16820 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16823 # We used to test for /lib/ld.so.1 and disable shared libraries on
16824 # powerpc, because MkLinux only supported shared libraries with the
16825 # GNU dynamic linker. Since this was broken with cross compilers,
16826 # most powerpc-linux boxes support dynamic linking these days and
16827 # people can always --disable-shared, the test was removed, and we
16828 # assume the GNU/Linux dynamic linker is in use.
16829 dynamic_linker='GNU/Linux ld.so'
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 shlibpath_overrides_runpath=no
16840 hardcode_into_libs=yes
16841 dynamic_linker='NetBSD ld.elf_so'
16848 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16851 dynamic_linker='NetBSD (a.out) ld.so'
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 dynamic_linker='NetBSD ld.elf_so'
16857 shlibpath_var=LD_LIBRARY_PATH
16858 shlibpath_overrides_runpath=yes
16859 hardcode_into_libs=yes
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 shlibpath_overrides_runpath=yes
16881 sys_lib_dlsearch_path_spec="/usr/lib"
16883 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16885 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16886 *) need_version=no ;;
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16893 openbsd2.[89] | openbsd2.[89].*)
16894 shlibpath_overrides_runpath=no
16897 shlibpath_overrides_runpath=yes
16901 shlibpath_overrides_runpath=yes
16906 libname_spec='$name'
16909 library_names_spec='$libname${shared_ext} $libname.a'
16910 dynamic_linker='OS/2 ld.exe'
16911 shlibpath_var=LIBPATH
16914 osf3* | osf4* | osf5*)
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16922 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=yes
16933 hardcode_into_libs=yes
16934 # ldd complains unless libraries are executable
16935 postinstall_cmds='chmod +x $lib'
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16942 shlibpath_var=LD_LIBRARY_PATH
16943 shlibpath_overrides_runpath=yes
16944 if test "$with_gnu_ld" = yes; then
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 soname_spec='${libname}${release}${shared_ext}$major'
16954 shlibpath_var=LD_LIBRARY_PATH
16955 case $host_vendor in
16957 shlibpath_overrides_runpath=no
16959 export_dynamic_flag_spec='${wl}-Blargedynsym'
16960 runpath_var=LD_RUN_PATH
16968 shlibpath_overrides_runpath=no
16969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16975 if test -d /usr/nec ;then
16977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16978 soname_spec='$libname${shared_ext}.$major'
16979 shlibpath_var=LD_LIBRARY_PATH
16983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16984 version_type=freebsd-elf
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16988 soname_spec='${libname}${release}${shared_ext}$major'
16989 shlibpath_var=LD_LIBRARY_PATH
16990 hardcode_into_libs=yes
16991 if test "$with_gnu_ld" = yes; then
16992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16993 shlibpath_overrides_runpath=no
16995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16996 shlibpath_overrides_runpath=yes
16999 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17003 sys_lib_dlsearch_path_spec='/usr/lib'
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009 soname_spec='${libname}${release}${shared_ext}$major'
17010 shlibpath_var=LD_LIBRARY_PATH
17017 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17018 echo "${ECHO_T}$dynamic_linker" >&6; }
17019 test "$dynamic_linker" = no && can_build_shared=no
17021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17022 if test "$GCC" = yes; then
17023 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17026 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17028 hardcode_action_F77=
17029 if test -n "$hardcode_libdir_flag_spec_F77" || \
17030 test -n "$runpath_var_F77" || \
17031 test "X$hardcode_automatic_F77" = "Xyes" ; then
17033 # We can hardcode non-existant directories.
17034 if test "$hardcode_direct_F77" != no &&
17035 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17036 # have to relink, otherwise we might link with an installed library
17037 # when we should be linking with a yet-to-be-installed one
17038 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17039 test "$hardcode_minus_L_F77" != no; then
17040 # Linking always hardcodes the temporary library directory.
17041 hardcode_action_F77=relink
17043 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17044 hardcode_action_F77=immediate
17047 # We cannot hardcode anything, or else we can only hardcode existing
17049 hardcode_action_F77=unsupported
17051 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17052 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17054 if test "$hardcode_action_F77" = relink; then
17055 # Fast installation is not supported
17056 enable_fast_install=no
17057 elif test "$shlibpath_overrides_runpath" = yes ||
17058 test "$enable_shared" = no; then
17059 # Fast installation is not necessary
17060 enable_fast_install=needless
17064 # The else clause should only fire when bootstrapping the
17065 # libtool distribution, otherwise you forgot to ship ltmain.sh
17066 # with your package, and you will get complaints that there are
17067 # no rules to generate ltmain.sh.
17068 if test -f "$ltmain"; then
17069 # See if we are running on zsh, and set the options which allow our commands through
17070 # without removal of \ escapes.
17071 if test -n "${ZSH_VERSION+set}" ; then
17072 setopt NO_GLOB_SUBST
17074 # Now quote all the things that may contain metacharacters while being
17075 # careful not to overquote the AC_SUBSTed values. We take copies of the
17076 # variables and quote the copies for generation of the libtool script.
17077 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17079 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17080 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17081 deplibs_check_method reload_flag reload_cmds need_locks \
17082 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17083 lt_cv_sys_global_symbol_to_c_name_address \
17084 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17085 old_postinstall_cmds old_postuninstall_cmds \
17089 lt_prog_compiler_wl_F77 \
17090 lt_prog_compiler_pic_F77 \
17091 lt_prog_compiler_static_F77 \
17092 lt_prog_compiler_no_builtin_flag_F77 \
17093 export_dynamic_flag_spec_F77 \
17094 thread_safe_flag_spec_F77 \
17095 whole_archive_flag_spec_F77 \
17096 enable_shared_with_static_runtimes_F77 \
17097 old_archive_cmds_F77 \
17098 old_archive_from_new_cmds_F77 \
17099 predep_objects_F77 \
17100 postdep_objects_F77 \
17103 compiler_lib_search_path_F77 \
17105 archive_expsym_cmds_F77 \
17106 postinstall_cmds_F77 \
17107 postuninstall_cmds_F77 \
17108 old_archive_from_expsyms_cmds_F77 \
17109 allow_undefined_flag_F77 \
17110 no_undefined_flag_F77 \
17111 export_symbols_cmds_F77 \
17112 hardcode_libdir_flag_spec_F77 \
17113 hardcode_libdir_flag_spec_ld_F77 \
17114 hardcode_libdir_separator_F77 \
17115 hardcode_automatic_F77 \
17117 module_expsym_cmds_F77 \
17118 lt_cv_prog_compiler_c_o_F77 \
17119 exclude_expsyms_F77 \
17120 include_expsyms_F77; do
17123 old_archive_cmds_F77 | \
17124 old_archive_from_new_cmds_F77 | \
17125 archive_cmds_F77 | \
17126 archive_expsym_cmds_F77 | \
17127 module_cmds_F77 | \
17128 module_expsym_cmds_F77 | \
17129 old_archive_from_expsyms_cmds_F77 | \
17130 export_symbols_cmds_F77 | \
17131 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17132 postinstall_cmds | postuninstall_cmds | \
17133 old_postinstall_cmds | old_postuninstall_cmds | \
17134 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17135 # Double-quote double-evaled strings.
17136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17145 *'\$0 --fallback-echo"')
17146 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17152 cat <<__EOF__ >> "$cfgfile"
17153 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17157 # Shell to use when invoking shell scripts.
17160 # Whether or not to build shared libraries.
17161 build_libtool_libs=$enable_shared
17163 # Whether or not to build static libraries.
17164 build_old_libs=$enable_static
17166 # Whether or not to add -lc for building shared libraries.
17167 build_libtool_need_lc=$archive_cmds_need_lc_F77
17169 # Whether or not to disallow shared libs when runtime libs are static
17170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17172 # Whether or not to optimize for fast installation.
17173 fast_install=$enable_fast_install
17176 host_alias=$host_alias
17180 # The build system.
17181 build_alias=$build_alias
17185 # An echo program that does not interpret backslashes.
17190 AR_FLAGS=$lt_AR_FLAGS
17195 # LTCC compiler flags.
17196 LTCFLAGS=$lt_LTCFLAGS
17198 # A language-specific compiler.
17199 CC=$lt_compiler_F77
17201 # Is the compiler the GNU C compiler?
17207 # The linker used to build libraries.
17210 # Whether we need hard or soft links.
17213 # A BSD-compatible nm program.
17216 # A symbol stripping program
17219 # Used to examine libraries when file_magic_cmd begins "file"
17220 MAGIC_CMD=$MAGIC_CMD
17222 # Used on cygwin: DLL creation program.
17225 # Used on cygwin: object dumper.
17228 # Used on cygwin: assembler.
17231 # The name of the directory that contains temporary libtool files.
17234 # How to create reloadable object files.
17235 reload_flag=$lt_reload_flag
17236 reload_cmds=$lt_reload_cmds
17238 # How to pass a linker flag through the compiler.
17239 wl=$lt_lt_prog_compiler_wl_F77
17241 # Object file suffix (normally "o").
17242 objext="$ac_objext"
17244 # Old archive suffix (normally "a").
17247 # Shared library suffix (normally ".so").
17248 shrext_cmds='$shrext_cmds'
17250 # Executable file suffix (normally "").
17253 # Additional compiler flags for building library objects.
17254 pic_flag=$lt_lt_prog_compiler_pic_F77
17257 # What is the maximum length of a command?
17258 max_cmd_len=$lt_cv_sys_max_cmd_len
17260 # Does compiler simultaneously support -c and -o options?
17261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17263 # Must we lock files when doing compilation?
17264 need_locks=$lt_need_locks
17266 # Do we need the lib prefix for modules?
17267 need_lib_prefix=$need_lib_prefix
17269 # Do we need a version for libraries?
17270 need_version=$need_version
17272 # Whether dlopen is supported.
17273 dlopen_support=$enable_dlopen
17275 # Whether dlopen of programs is supported.
17276 dlopen_self=$enable_dlopen_self
17278 # Whether dlopen of statically linked programs is supported.
17279 dlopen_self_static=$enable_dlopen_self_static
17281 # Compiler flag to prevent dynamic linking.
17282 link_static_flag=$lt_lt_prog_compiler_static_F77
17284 # Compiler flag to turn off builtin functions.
17285 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17287 # Compiler flag to allow reflexive dlopens.
17288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17290 # Compiler flag to generate shared objects directly from archives.
17291 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17293 # Compiler flag to generate thread-safe objects.
17294 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17296 # Library versioning type.
17297 version_type=$version_type
17299 # Format of library name prefix.
17300 libname_spec=$lt_libname_spec
17302 # List of archive names. First name is the real one, the rest are links.
17303 # The last name is the one that the linker finds with -lNAME.
17304 library_names_spec=$lt_library_names_spec
17306 # The coded name of the library, if different from the real name.
17307 soname_spec=$lt_soname_spec
17309 # Commands used to build and install an old-style archive.
17311 old_archive_cmds=$lt_old_archive_cmds_F77
17312 old_postinstall_cmds=$lt_old_postinstall_cmds
17313 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17315 # Create an old-style archive from a shared archive.
17316 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17318 # Create a temporary old-style archive to link instead of a shared archive.
17319 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17321 # Commands used to build and install a shared archive.
17322 archive_cmds=$lt_archive_cmds_F77
17323 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17324 postinstall_cmds=$lt_postinstall_cmds
17325 postuninstall_cmds=$lt_postuninstall_cmds
17327 # Commands used to build a loadable module (assumed same as above if empty)
17328 module_cmds=$lt_module_cmds_F77
17329 module_expsym_cmds=$lt_module_expsym_cmds_F77
17331 # Commands to strip libraries.
17332 old_striplib=$lt_old_striplib
17333 striplib=$lt_striplib
17335 # Dependencies to place before the objects being linked to create a
17337 predep_objects=$lt_predep_objects_F77
17339 # Dependencies to place after the objects being linked to create a
17341 postdep_objects=$lt_postdep_objects_F77
17343 # Dependencies to place before the objects being linked to create a
17345 predeps=$lt_predeps_F77
17347 # Dependencies to place after the objects being linked to create a
17349 postdeps=$lt_postdeps_F77
17351 # The library search path used internally by the compiler when linking
17352 # a shared library.
17353 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17355 # Method to check whether dependent libraries are shared objects.
17356 deplibs_check_method=$lt_deplibs_check_method
17358 # Command to use when deplibs_check_method == file_magic.
17359 file_magic_cmd=$lt_file_magic_cmd
17361 # Flag that allows shared libraries with undefined symbols to be built.
17362 allow_undefined_flag=$lt_allow_undefined_flag_F77
17364 # Flag that forces no undefined symbols.
17365 no_undefined_flag=$lt_no_undefined_flag_F77
17367 # Commands used to finish a libtool library installation in a directory.
17368 finish_cmds=$lt_finish_cmds
17370 # Same as above, but a single script fragment to be evaled but not shown.
17371 finish_eval=$lt_finish_eval
17373 # Take the output of nm and produce a listing of raw symbols and C names.
17374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17376 # Transform the output of nm in a proper C declaration
17377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17379 # Transform the output of nm in a C name address pair
17380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17382 # This is the shared library runtime path variable.
17383 runpath_var=$runpath_var
17385 # This is the shared library path variable.
17386 shlibpath_var=$shlibpath_var
17388 # Is shlibpath searched before the hard-coded library search path?
17389 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17391 # How to hardcode a shared library path into an executable.
17392 hardcode_action=$hardcode_action_F77
17394 # Whether we should hardcode library paths into libraries.
17395 hardcode_into_libs=$hardcode_into_libs
17397 # Flag to hardcode \$libdir into a binary during linking.
17398 # This must work even if \$libdir does not exist.
17399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17401 # If ld is used when linking, flag to hardcode \$libdir into
17402 # a binary during linking. This must work even if \$libdir does
17404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17406 # Whether we need a single -rpath flag with a separated argument.
17407 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17409 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17410 # resulting binary.
17411 hardcode_direct=$hardcode_direct_F77
17413 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17414 # resulting binary.
17415 hardcode_minus_L=$hardcode_minus_L_F77
17417 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17418 # the resulting binary.
17419 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17421 # Set to yes if building a shared library automatically hardcodes DIR into the library
17422 # and all subsequent libraries and executables linked against it.
17423 hardcode_automatic=$hardcode_automatic_F77
17425 # Variables whose values should be saved in libtool wrapper scripts and
17426 # restored at relink time.
17427 variables_saved_for_relink="$variables_saved_for_relink"
17429 # Whether libtool must link a program against all its dependency libraries.
17430 link_all_deplibs=$link_all_deplibs_F77
17432 # Compile-time system search path for libraries
17433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17435 # Run-time system search path for libraries
17436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17438 # Fix the shell variable \$srcfile for the compiler.
17439 fix_srcfile_path="$fix_srcfile_path_F77"
17441 # Set to yes if exported symbols are required.
17442 always_export_symbols=$always_export_symbols_F77
17444 # The commands to list exported symbols.
17445 export_symbols_cmds=$lt_export_symbols_cmds_F77
17447 # The commands to extract the exported symbol list from a shared archive.
17448 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17450 # Symbols that should not be listed in the preloaded symbols.
17451 exclude_expsyms=$lt_exclude_expsyms_F77
17453 # Symbols that must always be exported.
17454 include_expsyms=$lt_include_expsyms_F77
17456 # ### END LIBTOOL TAG CONFIG: $tagname
17462 # If there is no Makefile yet, we rely on a make rule to execute
17463 # `config.status --recheck' to rerun these tests and create the
17464 # libtool script then.
17465 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17466 if test -f "$ltmain_in"; then
17467 test -f Makefile && make "$ltmain"
17473 ac_cpp='$CPP $CPPFLAGS'
17474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17486 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17489 # Source file extension for Java test sources.
17492 # Object file extension for compiled Java test sources.
17496 # Code to be used in simple compile tests
17497 lt_simple_compile_test_code="class foo {}\n"
17499 # Code to be used in simple link tests
17500 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17502 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17504 # If no C compiler was specified, use CC.
17507 # If no C compiler flags were specified, use CFLAGS.
17508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17510 # Allow CC to be a program name with arguments.
17514 # save warnings/boilerplate of simple test code
17515 ac_outfile=conftest.$ac_objext
17516 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17518 _lt_compiler_boilerplate=`cat conftest.err`
17521 ac_outfile=conftest.$ac_objext
17522 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17524 _lt_linker_boilerplate=`cat conftest.err`
17528 # Allow CC to be a program name with arguments.
17533 for cc_temp in $compiler""; do
17535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17541 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17544 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17545 archive_cmds_need_lc_GCJ=no
17547 old_archive_cmds_GCJ=$old_archive_cmds
17550 lt_prog_compiler_no_builtin_flag_GCJ=
17552 if test "$GCC" = yes; then
17553 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17556 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17557 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17558 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 lt_cv_prog_compiler_rtti_exceptions=no
17562 ac_outfile=conftest.$ac_objext
17563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17564 lt_compiler_flag="-fno-rtti -fno-exceptions"
17565 # Insert the option either (1) after the last *FLAGS variable, or
17566 # (2) before a word containing "conftest.", or (3) at the end.
17567 # Note that $ac_compile itself does not contain backslashes and begins
17568 # with a dollar sign (not a hyphen), so the echo should work correctly.
17569 # The option is referenced via a variable to avoid confusing sed.
17570 lt_compile=`echo "$ac_compile" | $SED \
17571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17573 -e 's:$: $lt_compiler_flag:'`
17574 (eval echo "\"\$as_me:17574: $lt_compile\"" >&5)
17575 (eval "$lt_compile" 2>conftest.err)
17577 cat conftest.err >&5
17578 echo "$as_me:17578: \$? = $ac_status" >&5
17579 if (exit $ac_status) && test -s "$ac_outfile"; then
17580 # The compiler can only warn and ignore the option if not recognized
17581 # So say no if there are warnings other than the usual output.
17582 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17585 lt_cv_prog_compiler_rtti_exceptions=yes
17591 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17592 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17594 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17595 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17602 lt_prog_compiler_wl_GCJ=
17603 lt_prog_compiler_pic_GCJ=
17604 lt_prog_compiler_static_GCJ=
17606 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17607 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17609 if test "$GCC" = yes; then
17610 lt_prog_compiler_wl_GCJ='-Wl,'
17611 lt_prog_compiler_static_GCJ='-static'
17615 # All AIX code is PIC.
17616 if test "$host_cpu" = ia64; then
17617 # AIX 5 now supports IA64 processor
17618 lt_prog_compiler_static_GCJ='-Bstatic'
17623 # FIXME: we need at least 68020 code to build shared libraries, but
17624 # adding the `-m68020' flag to GCC prevents building anything better,
17626 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17629 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17630 # PIC is the default for these OSes.
17633 mingw* | pw32* | os2*)
17634 # This hack is so that the source file can tell whether it is being
17635 # built for inclusion in a dll (and should export symbols for example).
17636 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17639 darwin* | rhapsody*)
17640 # PIC is the default on this platform
17641 # Common symbols not allowed in MH_DYLIB files
17642 lt_prog_compiler_pic_GCJ='-fno-common'
17646 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17647 # Instead, we relocate shared libraries at runtime.
17651 # Just because we use GCC doesn't mean we suddenly get shared libraries
17652 # on systems that don't support them.
17653 lt_prog_compiler_can_build_shared_GCJ=no
17658 if test -d /usr/nec; then
17659 lt_prog_compiler_pic_GCJ=-Kconform_pic
17664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17665 # not for PA HP-UX.
17671 lt_prog_compiler_pic_GCJ='-fPIC'
17677 lt_prog_compiler_pic_GCJ='-fPIC'
17681 # PORTME Check for flag to pass linker flags through the system compiler.
17684 lt_prog_compiler_wl_GCJ='-Wl,'
17685 if test "$host_cpu" = ia64; then
17686 # AIX 5 now supports IA64 processor
17687 lt_prog_compiler_static_GCJ='-Bstatic'
17689 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17693 # PIC is the default on this platform
17694 # Common symbols not allowed in MH_DYLIB files
17695 case $cc_basename in
17697 lt_prog_compiler_pic_GCJ='-qnocommon'
17698 lt_prog_compiler_wl_GCJ='-Wl,'
17703 mingw* | pw32* | os2*)
17704 # This hack is so that the source file can tell whether it is being
17705 # built for inclusion in a dll (and should export symbols for example).
17706 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17709 hpux9* | hpux10* | hpux11*)
17710 lt_prog_compiler_wl_GCJ='-Wl,'
17711 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17712 # not for PA HP-UX.
17718 lt_prog_compiler_pic_GCJ='+Z'
17721 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17722 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17725 irix5* | irix6* | nonstopux*)
17726 lt_prog_compiler_wl_GCJ='-Wl,'
17727 # PIC (with -KPIC) is the default.
17728 lt_prog_compiler_static_GCJ='-non_shared'
17732 lt_prog_compiler_pic_GCJ='-KPIC'
17733 lt_prog_compiler_static_GCJ='-Bstatic'
17736 linux* | k*bsd*-gnu)
17737 case $cc_basename in
17739 lt_prog_compiler_wl_GCJ='-Wl,'
17740 lt_prog_compiler_pic_GCJ='-KPIC'
17741 lt_prog_compiler_static_GCJ='-static'
17743 pgcc* | pgf77* | pgf90* | pgf95*)
17744 # Portland Group compilers (*not* the Pentium gcc compiler,
17745 # which looks to be a dead project)
17746 lt_prog_compiler_wl_GCJ='-Wl,'
17747 lt_prog_compiler_pic_GCJ='-fpic'
17748 lt_prog_compiler_static_GCJ='-Bstatic'
17751 lt_prog_compiler_wl_GCJ='-Wl,'
17752 # All Alpha code is PIC.
17753 lt_prog_compiler_static_GCJ='-non_shared'
17758 osf3* | osf4* | osf5*)
17759 lt_prog_compiler_wl_GCJ='-Wl,'
17760 # All OSF/1 code is PIC.
17761 lt_prog_compiler_static_GCJ='-non_shared'
17765 lt_prog_compiler_pic_GCJ='-KPIC'
17766 lt_prog_compiler_static_GCJ='-Bstatic'
17767 case $cc_basename in
17768 f77* | f90* | f95*)
17769 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17771 lt_prog_compiler_wl_GCJ='-Wl,';;
17776 lt_prog_compiler_wl_GCJ='-Qoption ld '
17777 lt_prog_compiler_pic_GCJ='-PIC'
17778 lt_prog_compiler_static_GCJ='-Bstatic'
17781 sysv4 | sysv4.2uw2* | sysv4.3*)
17782 lt_prog_compiler_wl_GCJ='-Wl,'
17783 lt_prog_compiler_pic_GCJ='-KPIC'
17784 lt_prog_compiler_static_GCJ='-Bstatic'
17788 if test -d /usr/nec ;then
17789 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17790 lt_prog_compiler_static_GCJ='-Bstatic'
17794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17795 lt_prog_compiler_wl_GCJ='-Wl,'
17796 lt_prog_compiler_pic_GCJ='-KPIC'
17797 lt_prog_compiler_static_GCJ='-Bstatic'
17801 lt_prog_compiler_wl_GCJ='-Wl,'
17802 lt_prog_compiler_can_build_shared_GCJ=no
17806 lt_prog_compiler_pic_GCJ='-pic'
17807 lt_prog_compiler_static_GCJ='-Bstatic'
17811 lt_prog_compiler_can_build_shared_GCJ=no
17816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17817 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17820 # Check to make sure the PIC flag actually works.
17822 if test -n "$lt_prog_compiler_pic_GCJ"; then
17824 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17825 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17826 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17827 echo $ECHO_N "(cached) $ECHO_C" >&6
17829 lt_prog_compiler_pic_works_GCJ=no
17830 ac_outfile=conftest.$ac_objext
17831 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17832 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17833 # Insert the option either (1) after the last *FLAGS variable, or
17834 # (2) before a word containing "conftest.", or (3) at the end.
17835 # Note that $ac_compile itself does not contain backslashes and begins
17836 # with a dollar sign (not a hyphen), so the echo should work correctly.
17837 # The option is referenced via a variable to avoid confusing sed.
17838 lt_compile=`echo "$ac_compile" | $SED \
17839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17841 -e 's:$: $lt_compiler_flag:'`
17842 (eval echo "\"\$as_me:17842: $lt_compile\"" >&5)
17843 (eval "$lt_compile" 2>conftest.err)
17845 cat conftest.err >&5
17846 echo "$as_me:17846: \$? = $ac_status" >&5
17847 if (exit $ac_status) && test -s "$ac_outfile"; then
17848 # The compiler can only warn and ignore the option if not recognized
17849 # So say no if there are warnings other than the usual output.
17850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17852 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17853 lt_prog_compiler_pic_works_GCJ=yes
17859 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17860 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17862 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17863 case $lt_prog_compiler_pic_GCJ in
17865 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17868 lt_prog_compiler_pic_GCJ=
17869 lt_prog_compiler_can_build_shared_GCJ=no
17874 # For platforms which do not support PIC, -DPIC is meaningless:
17876 lt_prog_compiler_pic_GCJ=
17879 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17884 # Check to make sure the static flag actually works.
17886 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17887 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17888 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17889 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 lt_prog_compiler_static_works_GCJ=no
17893 save_LDFLAGS="$LDFLAGS"
17894 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17895 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17896 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17897 # The linker can only warn and ignore the option if not recognized
17898 # So say no if there are warnings
17899 if test -s conftest.err; then
17900 # Append any errors to the config.log.
17901 cat conftest.err 1>&5
17902 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17904 if diff conftest.exp conftest.er2 >/dev/null; then
17905 lt_prog_compiler_static_works_GCJ=yes
17908 lt_prog_compiler_static_works_GCJ=yes
17912 LDFLAGS="$save_LDFLAGS"
17915 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17916 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17918 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17921 lt_prog_compiler_static_GCJ=
17925 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17927 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 lt_cv_prog_compiler_c_o_GCJ=no
17931 $rm -r conftest 2>/dev/null
17935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17937 lt_compiler_flag="-o out/conftest2.$ac_objext"
17938 # Insert the option either (1) after the last *FLAGS variable, or
17939 # (2) before a word containing "conftest.", or (3) at the end.
17940 # Note that $ac_compile itself does not contain backslashes and begins
17941 # with a dollar sign (not a hyphen), so the echo should work correctly.
17942 lt_compile=`echo "$ac_compile" | $SED \
17943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17945 -e 's:$: $lt_compiler_flag:'`
17946 (eval echo "\"\$as_me:17946: $lt_compile\"" >&5)
17947 (eval "$lt_compile" 2>out/conftest.err)
17949 cat out/conftest.err >&5
17950 echo "$as_me:17950: \$? = $ac_status" >&5
17951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17953 # The compiler can only warn and ignore the option if not recognized
17954 # So say no if there are warnings
17955 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17956 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17957 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17958 lt_cv_prog_compiler_c_o_GCJ=yes
17963 # SGI C++ compiler will create directory out/ii_files/ for
17964 # template instantiation
17965 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17966 $rm out/* && rmdir out
17972 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17973 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17976 hard_links="nottested"
17977 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17978 # do not overwrite the value of need_locks provided by the user
17979 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17980 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17985 ln conftest.a conftest.b 2>&5 || hard_links=no
17986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17987 { echo "$as_me:$LINENO: result: $hard_links" >&5
17988 echo "${ECHO_T}$hard_links" >&6; }
17989 if test "$hard_links" = no; then
17990 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17991 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17998 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18002 allow_undefined_flag_GCJ=
18003 enable_shared_with_static_runtimes_GCJ=no
18005 archive_expsym_cmds_GCJ=
18006 old_archive_From_new_cmds_GCJ=
18007 old_archive_from_expsyms_cmds_GCJ=
18008 export_dynamic_flag_spec_GCJ=
18009 whole_archive_flag_spec_GCJ=
18010 thread_safe_flag_spec_GCJ=
18011 hardcode_libdir_flag_spec_GCJ=
18012 hardcode_libdir_flag_spec_ld_GCJ=
18013 hardcode_libdir_separator_GCJ=
18014 hardcode_direct_GCJ=no
18015 hardcode_minus_L_GCJ=no
18016 hardcode_shlibpath_var_GCJ=unsupported
18017 link_all_deplibs_GCJ=unknown
18018 hardcode_automatic_GCJ=no
18020 module_expsym_cmds_GCJ=
18021 always_export_symbols_GCJ=no
18022 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18023 # include_expsyms should be a list of space-separated symbols to be *always*
18024 # included in the symbol list
18025 include_expsyms_GCJ=
18026 # exclude_expsyms can be an extended regexp of symbols to exclude
18027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18029 # as well as any symbol that contains `d'.
18030 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18032 # platforms (ab)use it in PIC code, but their linkers get confused if
18033 # the symbol is explicitly referenced. Since portable code cannot
18034 # rely on this symbol name, it's probably fine to never include it in
18035 # preloaded symbol tables.
18036 extract_expsyms_cmds=
18037 # Just being paranoid about ensuring that cc_basename is set.
18038 for cc_temp in $compiler""; do
18040 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18041 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18046 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18049 cygwin* | mingw* | pw32*)
18050 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18051 # When not using gcc, we currently assume that we are using
18052 # Microsoft Visual C++.
18053 if test "$GCC" != yes; then
18058 # we just hope/assume this is gcc and not c89 (= MSVC++)
18067 if test "$with_gnu_ld" = yes; then
18068 # If archive_cmds runs LD, not CC, wlarc should be empty
18071 # Set some defaults for GNU ld with shared library support. These
18072 # are reset later if shared libraries are not supported. Putting them
18073 # here allows them to be overridden if necessary.
18074 runpath_var=LD_RUN_PATH
18075 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18076 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18077 # ancient GNU ld didn't support --whole-archive et. al.
18078 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18079 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18081 whole_archive_flag_spec_GCJ=
18083 supports_anon_versioning=no
18084 case `$LD -v 2>/dev/null` in
18085 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18088 *\ 2.11.*) ;; # other 2.11 versions
18089 *) supports_anon_versioning=yes ;;
18092 # See if GNU ld supports shared libraries.
18094 aix3* | aix4* | aix5*)
18095 # On AIX/PPC, the GNU linker is very broken
18096 if test "$host_cpu" != ia64; then
18100 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18101 *** to be unable to reliably create shared libraries on AIX.
18102 *** Therefore, libtool is disabling shared libraries support. If you
18103 *** really care for shared libraries, you may want to modify your PATH
18104 *** so that a non-GNU linker is found, and then restart.
18111 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)'
18112 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18113 hardcode_minus_L_GCJ=yes
18115 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18116 # that the semantics of dynamic libraries on AmigaOS, at least up
18117 # to version 4, is to share data among multiple programs linked
18118 # with the same dynamic library. Since this doesn't match the
18119 # behavior of shared libraries on other platforms, we can't use
18125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18126 allow_undefined_flag_GCJ=unsupported
18127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18128 # support --undefined. This deserves some investigation. FIXME
18129 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18135 cygwin* | mingw* | pw32*)
18136 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18137 # as there is no search path for DLLs.
18138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18139 allow_undefined_flag_GCJ=unsupported
18140 always_export_symbols_GCJ=no
18141 enable_shared_with_static_runtimes_GCJ=yes
18142 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18144 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18145 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18146 # If the export-symbols file already is a .def file (1st line
18147 # is EXPORTS), use it as is; otherwise, prepend...
18148 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18149 cp $export_symbols $output_objdir/$soname.def;
18151 echo EXPORTS > $output_objdir/$soname.def;
18152 cat $export_symbols >> $output_objdir/$soname.def;
18154 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18161 hardcode_direct_GCJ=no
18162 hardcode_shlibpath_var_GCJ=no
18163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18164 export_dynamic_flag_spec_GCJ='${wl}-E'
18165 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18166 # Instead, shared libraries are loaded at an image base (0x10000000 by
18167 # default) and relocated if they conflict, which is a slow very memory
18168 # consuming and fragmenting process. To avoid this, we pick a random,
18169 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18170 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18171 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'
18172 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'
18175 linux* | k*bsd*-gnu)
18176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18178 case $cc_basename,$host_cpu in
18179 pgcc*) # Portland Group C compiler
18180 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'
18181 tmp_addflag=' $pic_flag'
18183 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18184 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'
18185 tmp_addflag=' $pic_flag -Mnomain' ;;
18186 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18187 tmp_addflag=' -i_dynamic' ;;
18188 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18189 tmp_addflag=' -i_dynamic -nofor_main' ;;
18190 ifc* | ifort*) # Intel Fortran compiler
18191 tmp_addflag=' -nofor_main' ;;
18193 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18195 if test $supports_anon_versioning = yes; then
18196 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18198 $echo "local: *; };" >> $output_objdir/$libname.ver~
18199 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18201 link_all_deplibs_GCJ=no
18207 netbsd* | netbsdelf*-gnu)
18208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18209 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18212 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18213 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18218 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18222 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18223 *** create shared libraries on Solaris systems. Therefore, libtool
18224 *** is disabling shared libraries support. We urge you to upgrade GNU
18225 *** binutils to release 2.9.1 or newer. Another option is to modify
18226 *** your PATH or compiler configuration so that the native linker is
18227 *** used, and then restart.
18230 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18231 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18232 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18239 case `$LD -v 2>&1` in
18240 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18244 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18245 *** reliably create shared libraries on SCO systems. Therefore, libtool
18246 *** is disabling shared libraries support. We urge you to upgrade GNU
18247 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18248 *** your PATH or compiler configuration so that the native linker is
18249 *** used, and then restart.
18254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18255 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18256 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18257 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18266 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18268 hardcode_direct_GCJ=yes
18269 hardcode_shlibpath_var_GCJ=no
18273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18275 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18282 if test "$ld_shlibs_GCJ" = no; then
18284 hardcode_libdir_flag_spec_GCJ=
18285 export_dynamic_flag_spec_GCJ=
18286 whole_archive_flag_spec_GCJ=
18289 # PORTME fill in a description of your system's linker (not GNU ld)
18292 allow_undefined_flag_GCJ=unsupported
18293 always_export_symbols_GCJ=yes
18294 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'
18295 # Note: this linker hardcodes the directories in LIBPATH if there
18296 # are no directories specified by -L.
18297 hardcode_minus_L_GCJ=yes
18298 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18299 # Neither direct hardcoding nor static linking is supported with a
18301 hardcode_direct_GCJ=unsupported
18306 if test "$host_cpu" = ia64; then
18307 # On IA64, the linker does run time linking by default, so we don't
18308 # have to do anything special.
18309 aix_use_runtimelinking=no
18310 exp_sym_flag='-Bexport'
18313 # If we're using GNU nm, then we don't want the "-C" option.
18314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18316 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'
18318 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'
18320 aix_use_runtimelinking=no
18322 # Test if we are trying to use run time linking or normal
18323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18324 # need to do runtime linking.
18325 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18326 for ld_flag in $LDFLAGS; do
18327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18328 aix_use_runtimelinking=yes
18335 exp_sym_flag='-bexport'
18336 no_entry_flag='-bnoentry'
18339 # When large executables or shared objects are built, AIX ld can
18340 # have problems creating the table of contents. If linking a library
18341 # or program results in "error TOC overflow" add -mminimal-toc to
18342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18345 archive_cmds_GCJ=''
18346 hardcode_direct_GCJ=yes
18347 hardcode_libdir_separator_GCJ=':'
18348 link_all_deplibs_GCJ=yes
18350 if test "$GCC" = yes; then
18351 case $host_os in aix4.[012]|aix4.[012].*)
18352 # We only want to do this on AIX 4.2 and lower, the check
18353 # below for broken collect2 doesn't work under 4.3+
18354 collect2name=`${CC} -print-prog-name=collect2`
18355 if test -f "$collect2name" && \
18356 strings "$collect2name" | grep resolve_lib_name >/dev/null
18358 # We have reworked collect2
18359 hardcode_direct_GCJ=yes
18361 # We have old collect2
18362 hardcode_direct_GCJ=unsupported
18363 # It fails to find uninstalled libraries when the uninstalled
18364 # path is not listed in the libpath. Setting hardcode_minus_L
18365 # to unsupported forces relinking
18366 hardcode_minus_L_GCJ=yes
18367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18368 hardcode_libdir_separator_GCJ=
18372 shared_flag='-shared'
18373 if test "$aix_use_runtimelinking" = yes; then
18374 shared_flag="$shared_flag "'${wl}-G'
18378 if test "$host_cpu" = ia64; then
18379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18380 # chokes on -Wl,-G. The following line is correct:
18383 if test "$aix_use_runtimelinking" = yes; then
18384 shared_flag='${wl}-G'
18386 shared_flag='${wl}-bM:SRE'
18391 # It seems that -bexpall does not export symbols beginning with
18392 # underscore (_), so it is better to generate a list of symbols to export.
18393 always_export_symbols_GCJ=yes
18394 if test "$aix_use_runtimelinking" = yes; then
18395 # Warning - without using the other runtime loading flags (-brtl),
18396 # -berok will link without error, but may produce a broken library.
18397 allow_undefined_flag_GCJ='-berok'
18398 # Determine the default libpath from the value encoded in an empty executable.
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18414 rm -f conftest.$ac_objext conftest$ac_exeext
18415 if { (ac_try="$ac_link"
18416 case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_link") 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } && {
18428 test -z "$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18430 } && test -s conftest$ac_exeext &&
18431 $as_test_x conftest$ac_exeext; then
18433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18435 # Check for a 64-bit object if we didn't find anything.
18436 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18446 conftest$ac_exeext conftest.$ac_ext
18447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18449 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18450 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"
18452 if test "$host_cpu" = ia64; then
18453 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18454 allow_undefined_flag_GCJ="-z nodefs"
18455 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"
18457 # Determine the default libpath from the value encoded in an empty executable.
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18473 rm -f conftest.$ac_objext conftest$ac_exeext
18474 if { (ac_try="$ac_link"
18475 case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_link") 2>conftest.er1
18482 grep -v '^ *+' conftest.er1 >conftest.err
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } && {
18487 test -z "$ac_c_werror_flag" ||
18488 test ! -s conftest.err
18489 } && test -s conftest$ac_exeext &&
18490 $as_test_x conftest$ac_exeext; then
18492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18494 # Check for a 64-bit object if we didn't find anything.
18495 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18498 echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505 conftest$ac_exeext conftest.$ac_ext
18506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18508 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18509 # Warning - without using the other run time loading flags,
18510 # -berok will link without error, but may produce a broken library.
18511 no_undefined_flag_GCJ=' ${wl}-bernotok'
18512 allow_undefined_flag_GCJ=' ${wl}-berok'
18513 # Exported symbols can be pulled into shared objects from archives
18514 whole_archive_flag_spec_GCJ='$convenience'
18515 archive_cmds_need_lc_GCJ=yes
18516 # This is similar to how AIX traditionally builds its shared libraries.
18517 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'
18523 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)'
18524 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525 hardcode_minus_L_GCJ=yes
18526 # see comment about different semantics on the GNU ld section
18531 export_dynamic_flag_spec_GCJ=-rdynamic
18534 cygwin* | mingw* | pw32*)
18535 # When not using gcc, we currently assume that we are using
18536 # Microsoft Visual C++.
18537 # hardcode_libdir_flag_spec is actually meaningless, as there is
18538 # no search path for DLLs.
18539 hardcode_libdir_flag_spec_GCJ=' '
18540 allow_undefined_flag_GCJ=unsupported
18541 # Tell ltmain to make .lib files, not .a files.
18543 # Tell ltmain to make .dll files, not .so files.
18545 # FIXME: Setting linknames here is a bad hack.
18546 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18547 # The linker will automatically build a .lib file if we build a DLL.
18548 old_archive_From_new_cmds_GCJ='true'
18549 # FIXME: Should let the user specify the lib program.
18550 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18551 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18552 enable_shared_with_static_runtimes_GCJ=yes
18555 darwin* | rhapsody*)
18557 rhapsody* | darwin1.[012])
18558 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18561 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18562 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18564 case ${MACOSX_DEPLOYMENT_TARGET} in
18566 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18569 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18575 archive_cmds_need_lc_GCJ=no
18576 hardcode_direct_GCJ=no
18577 hardcode_automatic_GCJ=yes
18578 hardcode_shlibpath_var_GCJ=unsupported
18579 whole_archive_flag_spec_GCJ=''
18580 link_all_deplibs_GCJ=yes
18581 if test "$GCC" = yes ; then
18582 output_verbose_link_cmd='echo'
18583 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18584 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18586 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}'
18587 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}'
18589 case $cc_basename in
18591 output_verbose_link_cmd='echo'
18592 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18593 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18594 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18595 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18596 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}'
18606 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18607 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18608 hardcode_shlibpath_var_GCJ=no
18615 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18616 # support. Future versions do this automatically, but an explicit c++rt0.o
18617 # does not break anything, and helps significantly (at the cost of a little
18620 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18621 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18622 hardcode_direct_GCJ=yes
18623 hardcode_shlibpath_var_GCJ=no
18626 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18628 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18629 hardcode_direct_GCJ=yes
18630 hardcode_minus_L_GCJ=yes
18631 hardcode_shlibpath_var_GCJ=no
18634 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18635 freebsd* | dragonfly*)
18636 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18637 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18638 hardcode_direct_GCJ=yes
18639 hardcode_shlibpath_var_GCJ=no
18643 if test "$GCC" = yes; then
18644 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'
18646 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'
18648 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18649 hardcode_libdir_separator_GCJ=:
18650 hardcode_direct_GCJ=yes
18652 # hardcode_minus_L: Not really in the search PATH,
18653 # but as the default location of the library.
18654 hardcode_minus_L_GCJ=yes
18655 export_dynamic_flag_spec_GCJ='${wl}-E'
18659 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18660 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18662 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18664 if test "$with_gnu_ld" = no; then
18665 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18666 hardcode_libdir_separator_GCJ=:
18668 hardcode_direct_GCJ=yes
18669 export_dynamic_flag_spec_GCJ='${wl}-E'
18671 # hardcode_minus_L: Not really in the search PATH,
18672 # but as the default location of the library.
18673 hardcode_minus_L_GCJ=yes
18678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18681 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18684 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18687 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18693 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18696 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18699 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18703 if test "$with_gnu_ld" = no; then
18704 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18705 hardcode_libdir_separator_GCJ=:
18709 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18710 hardcode_direct_GCJ=no
18711 hardcode_shlibpath_var_GCJ=no
18714 hardcode_direct_GCJ=yes
18715 export_dynamic_flag_spec_GCJ='${wl}-E'
18717 # hardcode_minus_L: Not really in the search PATH,
18718 # but as the default location of the library.
18719 hardcode_minus_L_GCJ=yes
18725 irix5* | irix6* | nonstopux*)
18726 if test "$GCC" = yes; then
18727 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'
18729 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'
18730 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18733 hardcode_libdir_separator_GCJ=:
18734 link_all_deplibs_GCJ=yes
18737 netbsd* | netbsdelf*-gnu)
18738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18739 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18741 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18743 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18744 hardcode_direct_GCJ=yes
18745 hardcode_shlibpath_var_GCJ=no
18749 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18750 hardcode_direct_GCJ=yes
18751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18752 hardcode_libdir_separator_GCJ=:
18753 hardcode_shlibpath_var_GCJ=no
18757 hardcode_direct_GCJ=yes
18758 hardcode_shlibpath_var_GCJ=no
18759 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18760 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18761 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18762 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18763 export_dynamic_flag_spec_GCJ='${wl}-E'
18766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18767 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18768 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18771 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18780 hardcode_minus_L_GCJ=yes
18781 allow_undefined_flag_GCJ=unsupported
18782 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'
18783 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18787 if test "$GCC" = yes; then
18788 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18789 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'
18791 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18792 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'
18794 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18795 hardcode_libdir_separator_GCJ=:
18798 osf4* | osf5*) # as osf3* with the addition of -msym flag
18799 if test "$GCC" = yes; then
18800 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18801 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'
18802 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18804 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18805 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'
18806 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~
18807 $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'
18809 # Both c and cxx compiler support -rpath directly
18810 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18812 hardcode_libdir_separator_GCJ=:
18816 no_undefined_flag_GCJ=' -z text'
18817 if test "$GCC" = yes; then
18819 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18820 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18821 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18824 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18825 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18828 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18829 hardcode_shlibpath_var_GCJ=no
18831 solaris2.[0-5] | solaris2.[0-5].*) ;;
18833 # The compiler driver will combine linker options so we
18834 # cannot just pass the convience library names through
18835 # without $wl, iff we do not link with $LD.
18836 # Luckily, gcc supports the same syntax we need for Sun Studio.
18837 # Supported since Solaris 2.6 (maybe 2.5.1?)
18840 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18842 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18845 link_all_deplibs_GCJ=yes
18849 if test "x$host_vendor" = xsequent; then
18850 # Use $CC to link under sequent, because it throws in some extra .o
18851 # files that make .init and .fini sections work.
18852 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18854 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18856 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18857 hardcode_direct_GCJ=yes
18858 hardcode_minus_L_GCJ=yes
18859 hardcode_shlibpath_var_GCJ=no
18863 case $host_vendor in
18865 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18866 hardcode_direct_GCJ=yes # is this really true???
18869 ## LD is ld it makes a PLAMLIB
18870 ## CC just makes a GrossModule.
18871 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18872 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18873 hardcode_direct_GCJ=no
18876 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18877 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18880 runpath_var='LD_RUN_PATH'
18881 hardcode_shlibpath_var_GCJ=no
18885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18886 hardcode_shlibpath_var_GCJ=no
18887 export_dynamic_flag_spec_GCJ='-Bexport'
18891 if test -d /usr/nec; then
18892 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18893 hardcode_shlibpath_var_GCJ=no
18894 runpath_var=LD_RUN_PATH
18895 hardcode_runpath_var=yes
18900 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18901 no_undefined_flag_GCJ='${wl}-z,text'
18902 archive_cmds_need_lc_GCJ=no
18903 hardcode_shlibpath_var_GCJ=no
18904 runpath_var='LD_RUN_PATH'
18906 if test "$GCC" = yes; then
18907 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18908 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18910 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18911 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18915 sysv5* | sco3.2v5* | sco5v6*)
18916 # Note: We can NOT use -z defs as we might desire, because we do not
18917 # link with -lc, and that would cause any symbols used from libc to
18918 # always be unresolved, which means just about no library would
18919 # ever link correctly. If we're not using GNU ld we use -z text
18920 # though, which does catch some bad symbols but isn't as heavy-handed
18922 no_undefined_flag_GCJ='${wl}-z,text'
18923 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18924 archive_cmds_need_lc_GCJ=no
18925 hardcode_shlibpath_var_GCJ=no
18926 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18927 hardcode_libdir_separator_GCJ=':'
18928 link_all_deplibs_GCJ=yes
18929 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18930 runpath_var='LD_RUN_PATH'
18932 if test "$GCC" = yes; then
18933 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18934 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18936 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18937 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18943 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18944 hardcode_shlibpath_var_GCJ=no
18953 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18954 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18955 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18958 # Do we need to explicitly link libc?
18960 case "x$archive_cmds_need_lc_GCJ" in
18962 # Assume -lc should be added
18963 archive_cmds_need_lc_GCJ=yes
18965 if test "$enable_shared" = yes && test "$GCC" = yes; then
18966 case $archive_cmds_GCJ in
18968 # FIXME: we may have to deal with multi-command sequences.
18971 # Test whether the compiler implicitly links with -lc since on some
18972 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18973 # to ld, don't add -lc before -lgcc.
18974 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18975 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18980 (eval $ac_compile) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } 2>conftest.err; then
18986 libobjs=conftest.$ac_objext
18988 wl=$lt_prog_compiler_wl_GCJ
18989 pic_flag=$lt_prog_compiler_pic_GCJ
18995 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18996 allow_undefined_flag_GCJ=
18997 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18998 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }
19003 archive_cmds_need_lc_GCJ=no
19005 archive_cmds_need_lc_GCJ=yes
19007 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19009 cat conftest.err 1>&5
19012 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19013 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19020 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19021 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19022 library_names_spec=
19023 libname_spec='lib$name'
19027 postuninstall_cmds=
19031 shlibpath_overrides_runpath=unknown
19033 dynamic_linker="$host_os ld.so"
19034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19035 if test "$GCC" = yes; then
19036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19037 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19038 # if the path contains ";" then we assume it to be the separator
19039 # otherwise default to the standard path separator (i.e. ":") - it is
19040 # assumed that no part of a normal pathname contains ";" but that should
19041 # okay in the real world where ";" in dirpaths is itself problematic.
19042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19047 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19049 need_lib_prefix=unknown
19050 hardcode_into_libs=no
19052 # when you set need_version to no, make sure it does not cause -set_version
19053 # flags to be left without arguments
19054 need_version=unknown
19059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19060 shlibpath_var=LIBPATH
19062 # AIX 3 has no versioning support, so we append a major version to the name.
19063 soname_spec='${libname}${release}${shared_ext}$major'
19070 hardcode_into_libs=yes
19071 if test "$host_cpu" = ia64; then
19072 # AIX 5 supports IA64
19073 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19074 shlibpath_var=LD_LIBRARY_PATH
19076 # With GCC up to 2.95.x, collect2 would create an import file
19077 # for dependence libraries. The import file would start with
19078 # the line `#! .'. This would cause the generated library to
19079 # depend on `.', always an invalid library. This was fixed in
19080 # development snapshots of GCC prior to 3.0.
19082 aix4 | aix4.[01] | aix4.[01].*)
19083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19085 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19088 can_build_shared=no
19092 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19093 # soname into executable. Probably we can add versioning support to
19094 # collect2, so additional links can be useful in future.
19095 if test "$aix_use_runtimelinking" = yes; then
19096 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19097 # instead of lib<name>.a to let people know that these are not
19098 # typical AIX shared libraries.
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 # We preserve .a as extension for shared libraries through AIX4.2
19102 # and later when we are not doing run time linking.
19103 library_names_spec='${libname}${release}.a $libname.a'
19104 soname_spec='${libname}${release}${shared_ext}$major'
19106 shlibpath_var=LIBPATH
19111 library_names_spec='$libname.ixlibrary $libname.a'
19112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19113 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'
19117 library_names_spec='${libname}${shared_ext}'
19118 dynamic_linker="$host_os ld.so"
19119 shlibpath_var=LIBRARY_PATH
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126 soname_spec='${libname}${release}${shared_ext}$major'
19127 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19128 shlibpath_var=LD_LIBRARY_PATH
19129 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19130 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19131 # the default ld.so.conf also contains /usr/contrib/lib and
19132 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19133 # libtool to hard-code these into programs
19136 cygwin* | mingw* | pw32*)
19137 version_type=windows
19142 case $GCC,$host_os in
19143 yes,cygwin* | yes,mingw* | yes,pw32*)
19144 library_names_spec='$libname.dll.a'
19145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19146 postinstall_cmds='base_file=`basename \${file}`~
19147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19148 dldir=$destdir/`dirname \$dlpath`~
19149 test -d \$dldir || mkdir -p \$dldir~
19150 $install_prog $dir/$dlname \$dldir/$dlname~
19151 chmod a+x \$dldir/$dlname'
19152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19153 dlpath=$dir/\$dldll~
19155 shlibpath_overrides_runpath=yes
19159 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19160 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19161 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19164 # MinGW DLLs use traditional 'lib' prefix
19165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19166 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19167 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19168 # It is most probably a Windows format PATH printed by
19169 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19170 # path with ; separators, and with drive letters. We can handle the
19171 # drive letters (cygwin fileutils understands them), so leave them,
19172 # especially as we might pass files found there to a mingw objdump,
19173 # which wouldn't understand a cygwinified path. Ahh.
19174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19180 # pw32 DLLs use 'pw' prefix rather than 'lib'
19181 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19187 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19190 dynamic_linker='Win32 ld.exe'
19191 # FIXME: first we should search . and the directory the executable is in
19195 darwin* | rhapsody*)
19196 dynamic_linker="$host_os dyld"
19197 version_type=darwin
19200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19201 soname_spec='${libname}${release}${major}$shared_ext'
19202 shlibpath_overrides_runpath=yes
19203 shlibpath_var=DYLD_LIBRARY_PATH
19204 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19205 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19206 if test "$GCC" = yes; then
19207 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19209 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19219 soname_spec='${libname}${release}${shared_ext}$major'
19220 shlibpath_var=LD_LIBRARY_PATH
19227 freebsd* | dragonfly*)
19228 # DragonFly does not have aout. When/if they implement a new
19229 # versioning mechanism, adjust this.
19230 if test -x /usr/bin/objformat; then
19231 objformat=`/usr/bin/objformat`
19234 freebsd[123]*) objformat=aout ;;
19235 *) objformat=elf ;;
19238 version_type=freebsd-$objformat
19239 case $version_type in
19241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19250 shlibpath_var=LD_LIBRARY_PATH
19253 shlibpath_overrides_runpath=yes
19255 freebsd3.[01]* | freebsdelf3.[01]*)
19256 shlibpath_overrides_runpath=yes
19257 hardcode_into_libs=yes
19259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19261 shlibpath_overrides_runpath=no
19262 hardcode_into_libs=yes
19264 freebsd*) # from 4.6 on
19265 shlibpath_overrides_runpath=yes
19266 hardcode_into_libs=yes
19275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19276 soname_spec='${libname}${release}${shared_ext}$major'
19277 shlibpath_var=LD_LIBRARY_PATH
19278 hardcode_into_libs=yes
19281 hpux9* | hpux10* | hpux11*)
19282 # Give a soname corresponding to the major version so that dld.sl refuses to
19283 # link against other versions.
19290 hardcode_into_libs=yes
19291 dynamic_linker="$host_os dld.so"
19292 shlibpath_var=LD_LIBRARY_PATH
19293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19295 soname_spec='${libname}${release}${shared_ext}$major'
19296 if test "X$HPUX_IA64_MODE" = X32; then
19297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19305 hardcode_into_libs=yes
19306 dynamic_linker="$host_os dld.sl"
19307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19316 dynamic_linker="$host_os dld.sl"
19317 shlibpath_var=SHLIB_PATH
19318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19320 soname_spec='${libname}${release}${shared_ext}$major'
19323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19324 postinstall_cmds='chmod 555 $lib'
19331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19332 soname_spec='${libname}${release}${shared_ext}$major'
19333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19334 shlibpath_var=LD_LIBRARY_PATH
19335 shlibpath_overrides_runpath=no
19336 hardcode_into_libs=yes
19339 irix5* | irix6* | nonstopux*)
19341 nonstopux*) version_type=nonstopux ;;
19343 if test "$lt_cv_prog_gnu_ld" = yes; then
19351 soname_spec='${libname}${release}${shared_ext}$major'
19352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19354 irix5* | nonstopux*)
19355 libsuff= shlibsuff=
19358 case $LD in # libtool.m4 will add one of these switches to LD
19359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19360 libsuff= shlibsuff= libmagic=32-bit;;
19361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19362 libsuff=32 shlibsuff=N32 libmagic=N32;;
19363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19365 *) libsuff= shlibsuff= libmagic=never-match;;
19369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19370 shlibpath_overrides_runpath=no
19371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19373 hardcode_into_libs=yes
19376 # No shared lib support for Linux oldld, aout, or coff.
19377 linux*oldld* | linux*aout* | linux*coff*)
19381 # This must be Linux ELF.
19382 linux* | k*bsd*-gnu)
19386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19387 soname_spec='${libname}${release}${shared_ext}$major'
19388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19389 shlibpath_var=LD_LIBRARY_PATH
19390 shlibpath_overrides_runpath=no
19391 # This implies no fast_install, which is unacceptable.
19392 # Some rework will be needed to allow for fast_install
19393 # before this can be enabled.
19394 hardcode_into_libs=yes
19396 # Append ld.so.conf contents to the search path
19397 if test -f /etc/ld.so.conf; then
19398 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19402 # We used to test for /lib/ld.so.1 and disable shared libraries on
19403 # powerpc, because MkLinux only supported shared libraries with the
19404 # GNU dynamic linker. Since this was broken with cross compilers,
19405 # most powerpc-linux boxes support dynamic linking these days and
19406 # people can always --disable-shared, the test was removed, and we
19407 # assume the GNU/Linux dynamic linker is in use.
19408 dynamic_linker='GNU/Linux ld.so'
19415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19416 soname_spec='${libname}${release}${shared_ext}$major'
19417 shlibpath_var=LD_LIBRARY_PATH
19418 shlibpath_overrides_runpath=no
19419 hardcode_into_libs=yes
19420 dynamic_linker='NetBSD ld.elf_so'
19427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19430 dynamic_linker='NetBSD (a.out) ld.so'
19432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19433 soname_spec='${libname}${release}${shared_ext}$major'
19434 dynamic_linker='NetBSD ld.elf_so'
19436 shlibpath_var=LD_LIBRARY_PATH
19437 shlibpath_overrides_runpath=yes
19438 hardcode_into_libs=yes
19443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19444 shlibpath_var=LD_LIBRARY_PATH
19445 shlibpath_overrides_runpath=yes
19452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19453 soname_spec='${libname}${release}${shared_ext}$major'
19454 shlibpath_var=LD_LIBRARY_PATH
19455 shlibpath_overrides_runpath=yes
19460 sys_lib_dlsearch_path_spec="/usr/lib"
19462 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19464 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19465 *) need_version=no ;;
19467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19469 shlibpath_var=LD_LIBRARY_PATH
19470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19472 openbsd2.[89] | openbsd2.[89].*)
19473 shlibpath_overrides_runpath=no
19476 shlibpath_overrides_runpath=yes
19480 shlibpath_overrides_runpath=yes
19485 libname_spec='$name'
19488 library_names_spec='$libname${shared_ext} $libname.a'
19489 dynamic_linker='OS/2 ld.exe'
19490 shlibpath_var=LIBPATH
19493 osf3* | osf4* | osf5*)
19497 soname_spec='${libname}${release}${shared_ext}$major'
19498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19499 shlibpath_var=LD_LIBRARY_PATH
19500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19501 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19509 soname_spec='${libname}${release}${shared_ext}$major'
19510 shlibpath_var=LD_LIBRARY_PATH
19511 shlibpath_overrides_runpath=yes
19512 hardcode_into_libs=yes
19513 # ldd complains unless libraries are executable
19514 postinstall_cmds='chmod +x $lib'
19519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19521 shlibpath_var=LD_LIBRARY_PATH
19522 shlibpath_overrides_runpath=yes
19523 if test "$with_gnu_ld" = yes; then
19531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19532 soname_spec='${libname}${release}${shared_ext}$major'
19533 shlibpath_var=LD_LIBRARY_PATH
19534 case $host_vendor in
19536 shlibpath_overrides_runpath=no
19538 export_dynamic_flag_spec='${wl}-Blargedynsym'
19539 runpath_var=LD_RUN_PATH
19547 shlibpath_overrides_runpath=no
19548 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19554 if test -d /usr/nec ;then
19556 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19557 soname_spec='$libname${shared_ext}.$major'
19558 shlibpath_var=LD_LIBRARY_PATH
19562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19563 version_type=freebsd-elf
19566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19567 soname_spec='${libname}${release}${shared_ext}$major'
19568 shlibpath_var=LD_LIBRARY_PATH
19569 hardcode_into_libs=yes
19570 if test "$with_gnu_ld" = yes; then
19571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19572 shlibpath_overrides_runpath=no
19574 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19575 shlibpath_overrides_runpath=yes
19578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19582 sys_lib_dlsearch_path_spec='/usr/lib'
19587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19588 soname_spec='${libname}${release}${shared_ext}$major'
19589 shlibpath_var=LD_LIBRARY_PATH
19596 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19597 echo "${ECHO_T}$dynamic_linker" >&6; }
19598 test "$dynamic_linker" = no && can_build_shared=no
19600 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19601 if test "$GCC" = yes; then
19602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19605 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19606 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19607 hardcode_action_GCJ=
19608 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19609 test -n "$runpath_var_GCJ" || \
19610 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19612 # We can hardcode non-existant directories.
19613 if test "$hardcode_direct_GCJ" != no &&
19614 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19615 # have to relink, otherwise we might link with an installed library
19616 # when we should be linking with a yet-to-be-installed one
19617 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19618 test "$hardcode_minus_L_GCJ" != no; then
19619 # Linking always hardcodes the temporary library directory.
19620 hardcode_action_GCJ=relink
19622 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19623 hardcode_action_GCJ=immediate
19626 # We cannot hardcode anything, or else we can only hardcode existing
19628 hardcode_action_GCJ=unsupported
19630 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19631 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19633 if test "$hardcode_action_GCJ" = relink; then
19634 # Fast installation is not supported
19635 enable_fast_install=no
19636 elif test "$shlibpath_overrides_runpath" = yes ||
19637 test "$enable_shared" = no; then
19638 # Fast installation is not necessary
19639 enable_fast_install=needless
19643 # The else clause should only fire when bootstrapping the
19644 # libtool distribution, otherwise you forgot to ship ltmain.sh
19645 # with your package, and you will get complaints that there are
19646 # no rules to generate ltmain.sh.
19647 if test -f "$ltmain"; then
19648 # See if we are running on zsh, and set the options which allow our commands through
19649 # without removal of \ escapes.
19650 if test -n "${ZSH_VERSION+set}" ; then
19651 setopt NO_GLOB_SUBST
19653 # Now quote all the things that may contain metacharacters while being
19654 # careful not to overquote the AC_SUBSTed values. We take copies of the
19655 # variables and quote the copies for generation of the libtool script.
19656 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19658 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19659 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19660 deplibs_check_method reload_flag reload_cmds need_locks \
19661 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19662 lt_cv_sys_global_symbol_to_c_name_address \
19663 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19664 old_postinstall_cmds old_postuninstall_cmds \
19668 lt_prog_compiler_wl_GCJ \
19669 lt_prog_compiler_pic_GCJ \
19670 lt_prog_compiler_static_GCJ \
19671 lt_prog_compiler_no_builtin_flag_GCJ \
19672 export_dynamic_flag_spec_GCJ \
19673 thread_safe_flag_spec_GCJ \
19674 whole_archive_flag_spec_GCJ \
19675 enable_shared_with_static_runtimes_GCJ \
19676 old_archive_cmds_GCJ \
19677 old_archive_from_new_cmds_GCJ \
19678 predep_objects_GCJ \
19679 postdep_objects_GCJ \
19682 compiler_lib_search_path_GCJ \
19684 archive_expsym_cmds_GCJ \
19685 postinstall_cmds_GCJ \
19686 postuninstall_cmds_GCJ \
19687 old_archive_from_expsyms_cmds_GCJ \
19688 allow_undefined_flag_GCJ \
19689 no_undefined_flag_GCJ \
19690 export_symbols_cmds_GCJ \
19691 hardcode_libdir_flag_spec_GCJ \
19692 hardcode_libdir_flag_spec_ld_GCJ \
19693 hardcode_libdir_separator_GCJ \
19694 hardcode_automatic_GCJ \
19696 module_expsym_cmds_GCJ \
19697 lt_cv_prog_compiler_c_o_GCJ \
19698 exclude_expsyms_GCJ \
19699 include_expsyms_GCJ; do
19702 old_archive_cmds_GCJ | \
19703 old_archive_from_new_cmds_GCJ | \
19704 archive_cmds_GCJ | \
19705 archive_expsym_cmds_GCJ | \
19706 module_cmds_GCJ | \
19707 module_expsym_cmds_GCJ | \
19708 old_archive_from_expsyms_cmds_GCJ | \
19709 export_symbols_cmds_GCJ | \
19710 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19711 postinstall_cmds | postuninstall_cmds | \
19712 old_postinstall_cmds | old_postuninstall_cmds | \
19713 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19714 # Double-quote double-evaled strings.
19715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19724 *'\$0 --fallback-echo"')
19725 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19731 cat <<__EOF__ >> "$cfgfile"
19732 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19736 # Shell to use when invoking shell scripts.
19739 # Whether or not to build shared libraries.
19740 build_libtool_libs=$enable_shared
19742 # Whether or not to build static libraries.
19743 build_old_libs=$enable_static
19745 # Whether or not to add -lc for building shared libraries.
19746 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19748 # Whether or not to disallow shared libs when runtime libs are static
19749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19751 # Whether or not to optimize for fast installation.
19752 fast_install=$enable_fast_install
19755 host_alias=$host_alias
19759 # The build system.
19760 build_alias=$build_alias
19764 # An echo program that does not interpret backslashes.
19769 AR_FLAGS=$lt_AR_FLAGS
19774 # LTCC compiler flags.
19775 LTCFLAGS=$lt_LTCFLAGS
19777 # A language-specific compiler.
19778 CC=$lt_compiler_GCJ
19780 # Is the compiler the GNU C compiler?
19786 # The linker used to build libraries.
19789 # Whether we need hard or soft links.
19792 # A BSD-compatible nm program.
19795 # A symbol stripping program
19798 # Used to examine libraries when file_magic_cmd begins "file"
19799 MAGIC_CMD=$MAGIC_CMD
19801 # Used on cygwin: DLL creation program.
19804 # Used on cygwin: object dumper.
19807 # Used on cygwin: assembler.
19810 # The name of the directory that contains temporary libtool files.
19813 # How to create reloadable object files.
19814 reload_flag=$lt_reload_flag
19815 reload_cmds=$lt_reload_cmds
19817 # How to pass a linker flag through the compiler.
19818 wl=$lt_lt_prog_compiler_wl_GCJ
19820 # Object file suffix (normally "o").
19821 objext="$ac_objext"
19823 # Old archive suffix (normally "a").
19826 # Shared library suffix (normally ".so").
19827 shrext_cmds='$shrext_cmds'
19829 # Executable file suffix (normally "").
19832 # Additional compiler flags for building library objects.
19833 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19836 # What is the maximum length of a command?
19837 max_cmd_len=$lt_cv_sys_max_cmd_len
19839 # Does compiler simultaneously support -c and -o options?
19840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19842 # Must we lock files when doing compilation?
19843 need_locks=$lt_need_locks
19845 # Do we need the lib prefix for modules?
19846 need_lib_prefix=$need_lib_prefix
19848 # Do we need a version for libraries?
19849 need_version=$need_version
19851 # Whether dlopen is supported.
19852 dlopen_support=$enable_dlopen
19854 # Whether dlopen of programs is supported.
19855 dlopen_self=$enable_dlopen_self
19857 # Whether dlopen of statically linked programs is supported.
19858 dlopen_self_static=$enable_dlopen_self_static
19860 # Compiler flag to prevent dynamic linking.
19861 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19863 # Compiler flag to turn off builtin functions.
19864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19866 # Compiler flag to allow reflexive dlopens.
19867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19869 # Compiler flag to generate shared objects directly from archives.
19870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19872 # Compiler flag to generate thread-safe objects.
19873 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19875 # Library versioning type.
19876 version_type=$version_type
19878 # Format of library name prefix.
19879 libname_spec=$lt_libname_spec
19881 # List of archive names. First name is the real one, the rest are links.
19882 # The last name is the one that the linker finds with -lNAME.
19883 library_names_spec=$lt_library_names_spec
19885 # The coded name of the library, if different from the real name.
19886 soname_spec=$lt_soname_spec
19888 # Commands used to build and install an old-style archive.
19890 old_archive_cmds=$lt_old_archive_cmds_GCJ
19891 old_postinstall_cmds=$lt_old_postinstall_cmds
19892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19894 # Create an old-style archive from a shared archive.
19895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19897 # Create a temporary old-style archive to link instead of a shared archive.
19898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19900 # Commands used to build and install a shared archive.
19901 archive_cmds=$lt_archive_cmds_GCJ
19902 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19903 postinstall_cmds=$lt_postinstall_cmds
19904 postuninstall_cmds=$lt_postuninstall_cmds
19906 # Commands used to build a loadable module (assumed same as above if empty)
19907 module_cmds=$lt_module_cmds_GCJ
19908 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19910 # Commands to strip libraries.
19911 old_striplib=$lt_old_striplib
19912 striplib=$lt_striplib
19914 # Dependencies to place before the objects being linked to create a
19916 predep_objects=$lt_predep_objects_GCJ
19918 # Dependencies to place after the objects being linked to create a
19920 postdep_objects=$lt_postdep_objects_GCJ
19922 # Dependencies to place before the objects being linked to create a
19924 predeps=$lt_predeps_GCJ
19926 # Dependencies to place after the objects being linked to create a
19928 postdeps=$lt_postdeps_GCJ
19930 # The library search path used internally by the compiler when linking
19931 # a shared library.
19932 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19934 # Method to check whether dependent libraries are shared objects.
19935 deplibs_check_method=$lt_deplibs_check_method
19937 # Command to use when deplibs_check_method == file_magic.
19938 file_magic_cmd=$lt_file_magic_cmd
19940 # Flag that allows shared libraries with undefined symbols to be built.
19941 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19943 # Flag that forces no undefined symbols.
19944 no_undefined_flag=$lt_no_undefined_flag_GCJ
19946 # Commands used to finish a libtool library installation in a directory.
19947 finish_cmds=$lt_finish_cmds
19949 # Same as above, but a single script fragment to be evaled but not shown.
19950 finish_eval=$lt_finish_eval
19952 # Take the output of nm and produce a listing of raw symbols and C names.
19953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19955 # Transform the output of nm in a proper C declaration
19956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19958 # Transform the output of nm in a C name address pair
19959 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19961 # This is the shared library runtime path variable.
19962 runpath_var=$runpath_var
19964 # This is the shared library path variable.
19965 shlibpath_var=$shlibpath_var
19967 # Is shlibpath searched before the hard-coded library search path?
19968 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19970 # How to hardcode a shared library path into an executable.
19971 hardcode_action=$hardcode_action_GCJ
19973 # Whether we should hardcode library paths into libraries.
19974 hardcode_into_libs=$hardcode_into_libs
19976 # Flag to hardcode \$libdir into a binary during linking.
19977 # This must work even if \$libdir does not exist.
19978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19980 # If ld is used when linking, flag to hardcode \$libdir into
19981 # a binary during linking. This must work even if \$libdir does
19983 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19985 # Whether we need a single -rpath flag with a separated argument.
19986 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19988 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19989 # resulting binary.
19990 hardcode_direct=$hardcode_direct_GCJ
19992 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19993 # resulting binary.
19994 hardcode_minus_L=$hardcode_minus_L_GCJ
19996 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19997 # the resulting binary.
19998 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20000 # Set to yes if building a shared library automatically hardcodes DIR into the library
20001 # and all subsequent libraries and executables linked against it.
20002 hardcode_automatic=$hardcode_automatic_GCJ
20004 # Variables whose values should be saved in libtool wrapper scripts and
20005 # restored at relink time.
20006 variables_saved_for_relink="$variables_saved_for_relink"
20008 # Whether libtool must link a program against all its dependency libraries.
20009 link_all_deplibs=$link_all_deplibs_GCJ
20011 # Compile-time system search path for libraries
20012 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20014 # Run-time system search path for libraries
20015 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20017 # Fix the shell variable \$srcfile for the compiler.
20018 fix_srcfile_path="$fix_srcfile_path_GCJ"
20020 # Set to yes if exported symbols are required.
20021 always_export_symbols=$always_export_symbols_GCJ
20023 # The commands to list exported symbols.
20024 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20026 # The commands to extract the exported symbol list from a shared archive.
20027 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20029 # Symbols that should not be listed in the preloaded symbols.
20030 exclude_expsyms=$lt_exclude_expsyms_GCJ
20032 # Symbols that must always be exported.
20033 include_expsyms=$lt_include_expsyms_GCJ
20035 # ### END LIBTOOL TAG CONFIG: $tagname
20041 # If there is no Makefile yet, we rely on a make rule to execute
20042 # `config.status --recheck' to rerun these tests and create the
20043 # libtool script then.
20044 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20045 if test -f "$ltmain_in"; then
20046 test -f Makefile && make "$ltmain"
20052 ac_cpp='$CPP $CPPFLAGS'
20053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20067 # Source file extension for RC test sources.
20070 # Object file extension for compiled RC test sources.
20074 # Code to be used in simple compile tests
20075 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20077 # Code to be used in simple link tests
20078 lt_simple_link_test_code="$lt_simple_compile_test_code"
20080 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20082 # If no C compiler was specified, use CC.
20085 # If no C compiler flags were specified, use CFLAGS.
20086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20088 # Allow CC to be a program name with arguments.
20092 # save warnings/boilerplate of simple test code
20093 ac_outfile=conftest.$ac_objext
20094 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20096 _lt_compiler_boilerplate=`cat conftest.err`
20099 ac_outfile=conftest.$ac_objext
20100 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20102 _lt_linker_boilerplate=`cat conftest.err`
20106 # Allow CC to be a program name with arguments.
20111 for cc_temp in $compiler""; do
20113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20121 lt_cv_prog_compiler_c_o_RC=yes
20123 # The else clause should only fire when bootstrapping the
20124 # libtool distribution, otherwise you forgot to ship ltmain.sh
20125 # with your package, and you will get complaints that there are
20126 # no rules to generate ltmain.sh.
20127 if test -f "$ltmain"; then
20128 # See if we are running on zsh, and set the options which allow our commands through
20129 # without removal of \ escapes.
20130 if test -n "${ZSH_VERSION+set}" ; then
20131 setopt NO_GLOB_SUBST
20133 # Now quote all the things that may contain metacharacters while being
20134 # careful not to overquote the AC_SUBSTed values. We take copies of the
20135 # variables and quote the copies for generation of the libtool script.
20136 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20138 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20139 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20140 deplibs_check_method reload_flag reload_cmds need_locks \
20141 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20142 lt_cv_sys_global_symbol_to_c_name_address \
20143 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20144 old_postinstall_cmds old_postuninstall_cmds \
20148 lt_prog_compiler_wl_RC \
20149 lt_prog_compiler_pic_RC \
20150 lt_prog_compiler_static_RC \
20151 lt_prog_compiler_no_builtin_flag_RC \
20152 export_dynamic_flag_spec_RC \
20153 thread_safe_flag_spec_RC \
20154 whole_archive_flag_spec_RC \
20155 enable_shared_with_static_runtimes_RC \
20156 old_archive_cmds_RC \
20157 old_archive_from_new_cmds_RC \
20158 predep_objects_RC \
20159 postdep_objects_RC \
20162 compiler_lib_search_path_RC \
20164 archive_expsym_cmds_RC \
20165 postinstall_cmds_RC \
20166 postuninstall_cmds_RC \
20167 old_archive_from_expsyms_cmds_RC \
20168 allow_undefined_flag_RC \
20169 no_undefined_flag_RC \
20170 export_symbols_cmds_RC \
20171 hardcode_libdir_flag_spec_RC \
20172 hardcode_libdir_flag_spec_ld_RC \
20173 hardcode_libdir_separator_RC \
20174 hardcode_automatic_RC \
20176 module_expsym_cmds_RC \
20177 lt_cv_prog_compiler_c_o_RC \
20178 exclude_expsyms_RC \
20179 include_expsyms_RC; do
20182 old_archive_cmds_RC | \
20183 old_archive_from_new_cmds_RC | \
20184 archive_cmds_RC | \
20185 archive_expsym_cmds_RC | \
20187 module_expsym_cmds_RC | \
20188 old_archive_from_expsyms_cmds_RC | \
20189 export_symbols_cmds_RC | \
20190 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20191 postinstall_cmds | postuninstall_cmds | \
20192 old_postinstall_cmds | old_postuninstall_cmds | \
20193 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20194 # Double-quote double-evaled strings.
20195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20204 *'\$0 --fallback-echo"')
20205 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20211 cat <<__EOF__ >> "$cfgfile"
20212 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20216 # Shell to use when invoking shell scripts.
20219 # Whether or not to build shared libraries.
20220 build_libtool_libs=$enable_shared
20222 # Whether or not to build static libraries.
20223 build_old_libs=$enable_static
20225 # Whether or not to add -lc for building shared libraries.
20226 build_libtool_need_lc=$archive_cmds_need_lc_RC
20228 # Whether or not to disallow shared libs when runtime libs are static
20229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20231 # Whether or not to optimize for fast installation.
20232 fast_install=$enable_fast_install
20235 host_alias=$host_alias
20239 # The build system.
20240 build_alias=$build_alias
20244 # An echo program that does not interpret backslashes.
20249 AR_FLAGS=$lt_AR_FLAGS
20254 # LTCC compiler flags.
20255 LTCFLAGS=$lt_LTCFLAGS
20257 # A language-specific compiler.
20260 # Is the compiler the GNU C compiler?
20266 # The linker used to build libraries.
20269 # Whether we need hard or soft links.
20272 # A BSD-compatible nm program.
20275 # A symbol stripping program
20278 # Used to examine libraries when file_magic_cmd begins "file"
20279 MAGIC_CMD=$MAGIC_CMD
20281 # Used on cygwin: DLL creation program.
20284 # Used on cygwin: object dumper.
20287 # Used on cygwin: assembler.
20290 # The name of the directory that contains temporary libtool files.
20293 # How to create reloadable object files.
20294 reload_flag=$lt_reload_flag
20295 reload_cmds=$lt_reload_cmds
20297 # How to pass a linker flag through the compiler.
20298 wl=$lt_lt_prog_compiler_wl_RC
20300 # Object file suffix (normally "o").
20301 objext="$ac_objext"
20303 # Old archive suffix (normally "a").
20306 # Shared library suffix (normally ".so").
20307 shrext_cmds='$shrext_cmds'
20309 # Executable file suffix (normally "").
20312 # Additional compiler flags for building library objects.
20313 pic_flag=$lt_lt_prog_compiler_pic_RC
20316 # What is the maximum length of a command?
20317 max_cmd_len=$lt_cv_sys_max_cmd_len
20319 # Does compiler simultaneously support -c and -o options?
20320 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20322 # Must we lock files when doing compilation?
20323 need_locks=$lt_need_locks
20325 # Do we need the lib prefix for modules?
20326 need_lib_prefix=$need_lib_prefix
20328 # Do we need a version for libraries?
20329 need_version=$need_version
20331 # Whether dlopen is supported.
20332 dlopen_support=$enable_dlopen
20334 # Whether dlopen of programs is supported.
20335 dlopen_self=$enable_dlopen_self
20337 # Whether dlopen of statically linked programs is supported.
20338 dlopen_self_static=$enable_dlopen_self_static
20340 # Compiler flag to prevent dynamic linking.
20341 link_static_flag=$lt_lt_prog_compiler_static_RC
20343 # Compiler flag to turn off builtin functions.
20344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20346 # Compiler flag to allow reflexive dlopens.
20347 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20349 # Compiler flag to generate shared objects directly from archives.
20350 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20352 # Compiler flag to generate thread-safe objects.
20353 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20355 # Library versioning type.
20356 version_type=$version_type
20358 # Format of library name prefix.
20359 libname_spec=$lt_libname_spec
20361 # List of archive names. First name is the real one, the rest are links.
20362 # The last name is the one that the linker finds with -lNAME.
20363 library_names_spec=$lt_library_names_spec
20365 # The coded name of the library, if different from the real name.
20366 soname_spec=$lt_soname_spec
20368 # Commands used to build and install an old-style archive.
20370 old_archive_cmds=$lt_old_archive_cmds_RC
20371 old_postinstall_cmds=$lt_old_postinstall_cmds
20372 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20374 # Create an old-style archive from a shared archive.
20375 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20377 # Create a temporary old-style archive to link instead of a shared archive.
20378 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20380 # Commands used to build and install a shared archive.
20381 archive_cmds=$lt_archive_cmds_RC
20382 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20383 postinstall_cmds=$lt_postinstall_cmds
20384 postuninstall_cmds=$lt_postuninstall_cmds
20386 # Commands used to build a loadable module (assumed same as above if empty)
20387 module_cmds=$lt_module_cmds_RC
20388 module_expsym_cmds=$lt_module_expsym_cmds_RC
20390 # Commands to strip libraries.
20391 old_striplib=$lt_old_striplib
20392 striplib=$lt_striplib
20394 # Dependencies to place before the objects being linked to create a
20396 predep_objects=$lt_predep_objects_RC
20398 # Dependencies to place after the objects being linked to create a
20400 postdep_objects=$lt_postdep_objects_RC
20402 # Dependencies to place before the objects being linked to create a
20404 predeps=$lt_predeps_RC
20406 # Dependencies to place after the objects being linked to create a
20408 postdeps=$lt_postdeps_RC
20410 # The library search path used internally by the compiler when linking
20411 # a shared library.
20412 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20414 # Method to check whether dependent libraries are shared objects.
20415 deplibs_check_method=$lt_deplibs_check_method
20417 # Command to use when deplibs_check_method == file_magic.
20418 file_magic_cmd=$lt_file_magic_cmd
20420 # Flag that allows shared libraries with undefined symbols to be built.
20421 allow_undefined_flag=$lt_allow_undefined_flag_RC
20423 # Flag that forces no undefined symbols.
20424 no_undefined_flag=$lt_no_undefined_flag_RC
20426 # Commands used to finish a libtool library installation in a directory.
20427 finish_cmds=$lt_finish_cmds
20429 # Same as above, but a single script fragment to be evaled but not shown.
20430 finish_eval=$lt_finish_eval
20432 # Take the output of nm and produce a listing of raw symbols and C names.
20433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20435 # Transform the output of nm in a proper C declaration
20436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20438 # Transform the output of nm in a C name address pair
20439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20441 # This is the shared library runtime path variable.
20442 runpath_var=$runpath_var
20444 # This is the shared library path variable.
20445 shlibpath_var=$shlibpath_var
20447 # Is shlibpath searched before the hard-coded library search path?
20448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20450 # How to hardcode a shared library path into an executable.
20451 hardcode_action=$hardcode_action_RC
20453 # Whether we should hardcode library paths into libraries.
20454 hardcode_into_libs=$hardcode_into_libs
20456 # Flag to hardcode \$libdir into a binary during linking.
20457 # This must work even if \$libdir does not exist.
20458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20460 # If ld is used when linking, flag to hardcode \$libdir into
20461 # a binary during linking. This must work even if \$libdir does
20463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20465 # Whether we need a single -rpath flag with a separated argument.
20466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20468 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20469 # resulting binary.
20470 hardcode_direct=$hardcode_direct_RC
20472 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20473 # resulting binary.
20474 hardcode_minus_L=$hardcode_minus_L_RC
20476 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20477 # the resulting binary.
20478 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20480 # Set to yes if building a shared library automatically hardcodes DIR into the library
20481 # and all subsequent libraries and executables linked against it.
20482 hardcode_automatic=$hardcode_automatic_RC
20484 # Variables whose values should be saved in libtool wrapper scripts and
20485 # restored at relink time.
20486 variables_saved_for_relink="$variables_saved_for_relink"
20488 # Whether libtool must link a program against all its dependency libraries.
20489 link_all_deplibs=$link_all_deplibs_RC
20491 # Compile-time system search path for libraries
20492 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20494 # Run-time system search path for libraries
20495 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20497 # Fix the shell variable \$srcfile for the compiler.
20498 fix_srcfile_path="$fix_srcfile_path_RC"
20500 # Set to yes if exported symbols are required.
20501 always_export_symbols=$always_export_symbols_RC
20503 # The commands to list exported symbols.
20504 export_symbols_cmds=$lt_export_symbols_cmds_RC
20506 # The commands to extract the exported symbol list from a shared archive.
20507 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20509 # Symbols that should not be listed in the preloaded symbols.
20510 exclude_expsyms=$lt_exclude_expsyms_RC
20512 # Symbols that must always be exported.
20513 include_expsyms=$lt_include_expsyms_RC
20515 # ### END LIBTOOL TAG CONFIG: $tagname
20521 # If there is no Makefile yet, we rely on a make rule to execute
20522 # `config.status --recheck' to rerun these tests and create the
20523 # libtool script then.
20524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20525 if test -f "$ltmain_in"; then
20526 test -f Makefile && make "$ltmain"
20532 ac_cpp='$CPP $CPPFLAGS'
20533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20542 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20543 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20544 { (exit 1); exit 1; }; }
20548 # Append the new tag name to the list of available tags.
20549 if test -n "$tagname" ; then
20550 available_tags="$available_tags $tagname"
20556 # Now substitute the updated list of available tags.
20557 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20558 mv "${ofile}T" "$ofile"
20562 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20563 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20564 { (exit 1); exit 1; }; }
20570 # This can be used to rebuild libtool when needed
20571 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20573 # Always use our own libtool.
20574 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20576 # Prevent multiple expansion
20600 cat >>confdefs.h <<_ACEOF
20601 #define DEFAULT_GLOBALCONFIG "${sysconfdir}/smi.conf"
20606 cat >>confdefs.h <<\_ACEOF
20607 #define DEFAULT_USERCONFIG ".smirc"
20611 if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
20642 ac_config_files="$ac_config_files Makefile lib/Makefile tools/Makefile mibs/Makefile mibs/iana/Makefile mibs/ietf/Makefile mibs/irtf/Makefile mibs/tubs/Makefile mibs/site/Makefile pibs/Makefile pibs/ietf/Makefile pibs/tubs/Makefile pibs/site/Makefile test/Makefile test/mibs/Makefile test/smidiff/Makefile test/dumps/Makefile test/dumps/corba/Makefile test/dumps/imports/Makefile test/dumps/jax/Makefile test/dumps/netsnmp/Makefile test/dumps/mosy/Makefile test/dumps/orig-smiv2/Makefile test/dumps/smilint-smiv2/Makefile test/dumps/sming/Makefile test/dumps/smiv1/Makefile test/dumps/smiv2/Makefile test/dumps/smiv2-smiv2/Makefile test/dumps/tree/Makefile test/dumps/types/Makefile test/dumps/identifiers/Makefile test/dumps/metrics/Makefile test/dumps/xml/Makefile test/dumps/cm/Makefile test/dumps/python/Makefile test/dumps/yang/Makefile doc/Makefile lib/smi.h lib/libsmi.3 lib/smi_macro.3 lib/smi_module.3 lib/smi_node.3 lib/smi_type.3 lib/smi_config.3 lib/smi_render.3 lib/smi_util.3 lib/smi_class.3 lib/smi_attribute.3 lib/smi_event.3 lib/smi_identity.3 tools/smistrip tools/smicache tools/smiquery.1 tools/smilint.1 tools/smidump.1 tools/smidiff.1 tools/smistrip.1 tools/smicache.1 tools/smixlate.1 tools/mib2svg.cgi test/parser.test test/smidump-corba.test test/smidump-jax.test test/smidump-netsnmp.test test/smidump-imports.test test/smidump-mosy.test test/smidump-orig-smiv2.test test/smidump-sming.test test/smidump-yang.test test/smidump-smiv1.test test/smidump-smiv2-smiv2.test test/smidump-smiv2.test test/smidump-tree.test test/smidump-types.test test/smidump-identifiers.test test/smidump-metrics.test test/smidump-xml.test test/smidump-cm.test test/smidump-python.test test/smilint-smiv2.test test/smidiff.test libsmi.pc win/config.h"
20644 ac_config_commands="$ac_config_commands default"
20646 cat >confcache <<\_ACEOF
20647 # This file is a shell script that caches the results of configure
20648 # tests run on this system so they can be shared between configure
20649 # scripts and configure runs, see configure's option --config-cache.
20650 # It is not useful on other systems. If it contains results you don't
20651 # want to keep, you may remove or edit it.
20653 # config.status only pays attention to the cache file if you give it
20654 # the --recheck option to rerun configure.
20656 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20657 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20658 # following values.
20662 # The following way of writing the cache mishandles newlines in values,
20663 # but we know of no workaround that is simple, portable, and efficient.
20664 # So, we kill variables containing newlines.
20665 # Ultrix sh set writes to stderr and can't be redirected directly,
20666 # and sets the high bit in the cache file unless we assign to the vars.
20668 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20669 eval ac_val=\$$ac_var
20673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20677 _ | IFS | as_nl) ;; #(
20678 *) $as_unset $ac_var ;;
20684 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20685 *${as_nl}ac_space=\ *)
20686 # `set' does not quote correctly, so add quotes (double-quote
20687 # substitution turns \\\\ into \\, and sed turns \\ into \).
20690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20693 # `set' quotes correctly as required by POSIX, so do not add quotes.
20694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20708 if test -w "$cache_file"; then
20709 test "x$cache_file" != "x/dev/null" &&
20710 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20711 echo "$as_me: updating cache $cache_file" >&6;}
20712 cat confcache >$cache_file
20714 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20715 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20721 # Let make expand exec_prefix.
20722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20724 DEFS=-DHAVE_CONFIG_H
20728 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20729 # 1. Remove the extension, and $U if already installed.
20730 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20731 ac_i=`echo "$ac_i" | sed "$ac_script"`
20732 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20733 # will be set to the directory where LIBOBJS objects are built.
20734 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20735 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20737 LIBOBJS=$ac_libobjs
20739 LTLIBOBJS=$ac_ltlibobjs
20742 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20743 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20744 Usually this means the macro was only invoked conditionally." >&5
20745 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20746 Usually this means the macro was only invoked conditionally." >&2;}
20747 { (exit 1); exit 1; }; }
20749 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20750 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20751 Usually this means the macro was only invoked conditionally." >&5
20752 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20753 Usually this means the macro was only invoked conditionally." >&2;}
20754 { (exit 1); exit 1; }; }
20756 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20757 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20758 Usually this means the macro was only invoked conditionally." >&5
20759 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20760 Usually this means the macro was only invoked conditionally." >&2;}
20761 { (exit 1); exit 1; }; }
20764 : ${CONFIG_STATUS=./config.status}
20765 ac_clean_files_save=$ac_clean_files
20766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20767 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20768 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20769 cat >$CONFIG_STATUS <<_ACEOF
20771 # Generated by $as_me.
20772 # Run this file to recreate the current configuration.
20773 # Compiler output produced by configure, useful for debugging
20774 # configure, is in config.log if it exists.
20777 ac_cs_recheck=false
20779 SHELL=\${CONFIG_SHELL-$SHELL}
20782 cat >>$CONFIG_STATUS <<\_ACEOF
20783 ## --------------------- ##
20784 ## M4sh Initialization. ##
20785 ## --------------------- ##
20787 # Be more Bourne compatible
20788 DUALCASE=1; export DUALCASE # for MKS sh
20789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20792 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20793 # is contrary to our usage. Disable this feature.
20794 alias -g '${1+"$@"}'='"$@"'
20795 setopt NO_GLOB_SUBST
20797 case `(set -o) 2>/dev/null` in
20798 *posix*) set -o posix ;;
20807 # Avoid depending upon Character Ranges.
20808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20811 as_cr_digits='0123456789'
20812 as_cr_alnum=$as_cr_Letters$as_cr_digits
20814 # The user is always right.
20815 if test "${PATH_SEPARATOR+set}" != set; then
20816 echo "#! /bin/sh" >conf$$.sh
20817 echo "exit 0" >>conf$$.sh
20819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20827 # Support unset when possible.
20828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20836 # We need space, tab and new line, in precisely that order. Quoting is
20837 # there to prevent editors from complaining about space-tab.
20838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20839 # splitting by setting IFS to empty value.)
20844 # Find who we are. Look in the path if we contain no directory separator.
20846 *[\\/]* ) as_myself=$0 ;;
20847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20848 for as_dir in $PATH
20851 test -z "$as_dir" && as_dir=.
20852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20858 # We did not find ourselves, most probably we were run as `sh COMMAND'
20859 # in which case we are not to be found in the path.
20860 if test "x$as_myself" = x; then
20863 if test ! -f "$as_myself"; then
20864 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20865 { (exit 1); exit 1; }
20868 # Work around bugs in pre-3.0 UWIN ksh.
20869 for as_var in ENV MAIL MAILPATH
20870 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20878 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20879 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20880 LC_TELEPHONE LC_TIME
20882 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20883 eval $as_var=C; export $as_var
20885 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20889 # Required to use basename.
20890 if expr a : '\(a\)' >/dev/null 2>&1 &&
20891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20898 as_basename=basename
20904 # Name of the executable.
20905 as_me=`$as_basename -- "$0" ||
20906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20907 X"$0" : 'X\(//\)$' \| \
20908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20910 sed '/^.*\/\([^/][^/]*\)\/*$/{
20929 as_lineno_1=$LINENO
20930 as_lineno_2=$LINENO
20931 test "x$as_lineno_1" != "x$as_lineno_2" &&
20932 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20935 # uniformly replaced by the line number. The first 'sed' inserts a
20936 # line-number line after each line using $LINENO; the second 'sed'
20937 # does the real work. The second script uses 'N' to pair each
20938 # line-number line with the line containing $LINENO, and appends
20939 # trailing '-' during substitution so that $LINENO is not a special
20940 # case at line end.
20941 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20942 # scripts with optimization help from Paolo Bonzini. Blame Lee
20943 # E. McMahon (1931-1989) for sed's syntax. :-)
20955 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20958 ' >$as_me.lineno &&
20959 chmod +x "$as_me.lineno" ||
20960 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20961 { (exit 1); exit 1; }; }
20963 # Don't try to exec as it changes $[0], causing all sort of problems
20964 # (the dirname of $[0] is not the place where we might find the
20965 # original and so on. Autoconf is especially sensitive to this).
20966 . "./$as_me.lineno"
20967 # Exit status is that of the last command.
20972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20978 ECHO_C= ECHO_N= ECHO_T=
20979 case `echo -n x` in
20981 case `echo 'x\c'` in
20982 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20989 if expr a : '\(a\)' >/dev/null 2>&1 &&
20990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20996 rm -f conf$$ conf$$.exe conf$$.file
20997 if test -d conf$$.dir; then
20998 rm -f conf$$.dir/conf$$.file
21004 if ln -s conf$$.file conf$$ 2>/dev/null; then
21006 # ... but there are two gotchas:
21007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21009 # In both cases, we have to default to `cp -p'.
21010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21012 elif ln conf$$.file conf$$ 2>/dev/null; then
21017 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21018 rmdir conf$$.dir 2>/dev/null
21020 if mkdir -p . 2>/dev/null; then
21023 test -d ./-p && rmdir ./-p
21027 if test -x / >/dev/null 2>&1; then
21028 as_test_x='test -x'
21030 if ls -dL / >/dev/null 2>&1; then
21037 if test -d "$1"; then
21043 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21044 ???[sx]*):;;*)false;;esac;fi
21048 as_executable_p=$as_test_x
21050 # Sed expression to map a string onto a valid CPP name.
21051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21053 # Sed expression to map a string onto a valid variable name.
21054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21059 # Save the log message, to keep $[0] and so on meaningful, and to
21060 # report actual input values of CONFIG_FILES etc. instead of their
21061 # values after options handling.
21063 This file was extended by $as_me, which was
21064 generated by GNU Autoconf 2.61. Invocation command line was
21066 CONFIG_FILES = $CONFIG_FILES
21067 CONFIG_HEADERS = $CONFIG_HEADERS
21068 CONFIG_LINKS = $CONFIG_LINKS
21069 CONFIG_COMMANDS = $CONFIG_COMMANDS
21072 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21077 cat >>$CONFIG_STATUS <<_ACEOF
21078 # Files that config.status was made for.
21079 config_files="$ac_config_files"
21080 config_headers="$ac_config_headers"
21081 config_commands="$ac_config_commands"
21085 cat >>$CONFIG_STATUS <<\_ACEOF
21087 \`$as_me' instantiates files from templates according to the
21088 current configuration.
21090 Usage: $0 [OPTIONS] [FILE]...
21092 -h, --help print this help, then exit
21093 -V, --version print version number and configuration settings, then exit
21094 -q, --quiet do not print progress messages
21095 -d, --debug don't remove temporary files
21096 --recheck update $as_me by reconfiguring in the same conditions
21097 --file=FILE[:TEMPLATE]
21098 instantiate the configuration file FILE
21099 --header=FILE[:TEMPLATE]
21100 instantiate the configuration header FILE
21102 Configuration files:
21105 Configuration headers:
21108 Configuration commands:
21111 Report bugs to <bug-autoconf@gnu.org>."
21114 cat >>$CONFIG_STATUS <<_ACEOF
21117 configured by $0, generated by GNU Autoconf 2.61,
21118 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21120 Copyright (C) 2006 Free Software Foundation, Inc.
21121 This config.status script is free software; the Free Software Foundation
21122 gives unlimited permission to copy, distribute and modify it."
21130 cat >>$CONFIG_STATUS <<\_ACEOF
21131 # If no file are specified by the user, then we need to provide default
21132 # value. By we need to know if files were specified by the user.
21138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21139 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21150 # Handling of the options.
21151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21153 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21154 echo "$ac_cs_version"; exit ;;
21155 --debug | --debu | --deb | --de | --d | -d )
21157 --file | --fil | --fi | --f )
21159 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21160 ac_need_defaults=false;;
21161 --header | --heade | --head | --hea )
21163 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21164 ac_need_defaults=false;;
21166 # Conflict between --help and --header
21167 { echo "$as_me: error: ambiguous option: $1
21168 Try \`$0 --help' for more information." >&2
21169 { (exit 1); exit 1; }; };;
21170 --help | --hel | -h )
21171 echo "$ac_cs_usage"; exit ;;
21172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21173 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21176 # This is an error.
21177 -*) { echo "$as_me: error: unrecognized option: $1
21178 Try \`$0 --help' for more information." >&2
21179 { (exit 1); exit 1; }; } ;;
21181 *) ac_config_targets="$ac_config_targets $1"
21182 ac_need_defaults=false ;;
21188 ac_configure_extra_args=
21190 if $ac_cs_silent; then
21192 ac_configure_extra_args="$ac_configure_extra_args --silent"
21196 cat >>$CONFIG_STATUS <<_ACEOF
21197 if \$ac_cs_recheck; then
21198 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21199 CONFIG_SHELL=$SHELL
21200 export CONFIG_SHELL
21201 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21205 cat >>$CONFIG_STATUS <<\_ACEOF
21209 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21210 ## Running $as_me. ##
21216 cat >>$CONFIG_STATUS <<_ACEOF
21220 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21224 cat >>$CONFIG_STATUS <<\_ACEOF
21226 # Handling of arguments.
21227 for ac_config_target in $ac_config_targets
21229 case $ac_config_target in
21230 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21231 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21232 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21233 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21234 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21235 "mibs/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/Makefile" ;;
21236 "mibs/iana/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/iana/Makefile" ;;
21237 "mibs/ietf/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/ietf/Makefile" ;;
21238 "mibs/irtf/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/irtf/Makefile" ;;
21239 "mibs/tubs/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/tubs/Makefile" ;;
21240 "mibs/site/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/site/Makefile" ;;
21241 "pibs/Makefile") CONFIG_FILES="$CONFIG_FILES pibs/Makefile" ;;
21242 "pibs/ietf/Makefile") CONFIG_FILES="$CONFIG_FILES pibs/ietf/Makefile" ;;
21243 "pibs/tubs/Makefile") CONFIG_FILES="$CONFIG_FILES pibs/tubs/Makefile" ;;
21244 "pibs/site/Makefile") CONFIG_FILES="$CONFIG_FILES pibs/site/Makefile" ;;
21245 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21246 "test/mibs/Makefile") CONFIG_FILES="$CONFIG_FILES test/mibs/Makefile" ;;
21247 "test/smidiff/Makefile") CONFIG_FILES="$CONFIG_FILES test/smidiff/Makefile" ;;
21248 "test/dumps/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/Makefile" ;;
21249 "test/dumps/corba/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/corba/Makefile" ;;
21250 "test/dumps/imports/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/imports/Makefile" ;;
21251 "test/dumps/jax/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/jax/Makefile" ;;
21252 "test/dumps/netsnmp/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/netsnmp/Makefile" ;;
21253 "test/dumps/mosy/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/mosy/Makefile" ;;
21254 "test/dumps/orig-smiv2/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/orig-smiv2/Makefile" ;;
21255 "test/dumps/smilint-smiv2/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/smilint-smiv2/Makefile" ;;
21256 "test/dumps/sming/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/sming/Makefile" ;;
21257 "test/dumps/smiv1/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/smiv1/Makefile" ;;
21258 "test/dumps/smiv2/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/smiv2/Makefile" ;;
21259 "test/dumps/smiv2-smiv2/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/smiv2-smiv2/Makefile" ;;
21260 "test/dumps/tree/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/tree/Makefile" ;;
21261 "test/dumps/types/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/types/Makefile" ;;
21262 "test/dumps/identifiers/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/identifiers/Makefile" ;;
21263 "test/dumps/metrics/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/metrics/Makefile" ;;
21264 "test/dumps/xml/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/xml/Makefile" ;;
21265 "test/dumps/cm/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/cm/Makefile" ;;
21266 "test/dumps/python/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/python/Makefile" ;;
21267 "test/dumps/yang/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/yang/Makefile" ;;
21268 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21269 "lib/smi.h") CONFIG_FILES="$CONFIG_FILES lib/smi.h" ;;
21270 "lib/libsmi.3") CONFIG_FILES="$CONFIG_FILES lib/libsmi.3" ;;
21271 "lib/smi_macro.3") CONFIG_FILES="$CONFIG_FILES lib/smi_macro.3" ;;
21272 "lib/smi_module.3") CONFIG_FILES="$CONFIG_FILES lib/smi_module.3" ;;
21273 "lib/smi_node.3") CONFIG_FILES="$CONFIG_FILES lib/smi_node.3" ;;
21274 "lib/smi_type.3") CONFIG_FILES="$CONFIG_FILES lib/smi_type.3" ;;
21275 "lib/smi_config.3") CONFIG_FILES="$CONFIG_FILES lib/smi_config.3" ;;
21276 "lib/smi_render.3") CONFIG_FILES="$CONFIG_FILES lib/smi_render.3" ;;
21277 "lib/smi_util.3") CONFIG_FILES="$CONFIG_FILES lib/smi_util.3" ;;
21278 "lib/smi_class.3") CONFIG_FILES="$CONFIG_FILES lib/smi_class.3" ;;
21279 "lib/smi_attribute.3") CONFIG_FILES="$CONFIG_FILES lib/smi_attribute.3" ;;
21280 "lib/smi_event.3") CONFIG_FILES="$CONFIG_FILES lib/smi_event.3" ;;
21281 "lib/smi_identity.3") CONFIG_FILES="$CONFIG_FILES lib/smi_identity.3" ;;
21282 "tools/smistrip") CONFIG_FILES="$CONFIG_FILES tools/smistrip" ;;
21283 "tools/smicache") CONFIG_FILES="$CONFIG_FILES tools/smicache" ;;
21284 "tools/smiquery.1") CONFIG_FILES="$CONFIG_FILES tools/smiquery.1" ;;
21285 "tools/smilint.1") CONFIG_FILES="$CONFIG_FILES tools/smilint.1" ;;
21286 "tools/smidump.1") CONFIG_FILES="$CONFIG_FILES tools/smidump.1" ;;
21287 "tools/smidiff.1") CONFIG_FILES="$CONFIG_FILES tools/smidiff.1" ;;
21288 "tools/smistrip.1") CONFIG_FILES="$CONFIG_FILES tools/smistrip.1" ;;
21289 "tools/smicache.1") CONFIG_FILES="$CONFIG_FILES tools/smicache.1" ;;
21290 "tools/smixlate.1") CONFIG_FILES="$CONFIG_FILES tools/smixlate.1" ;;
21291 "tools/mib2svg.cgi") CONFIG_FILES="$CONFIG_FILES tools/mib2svg.cgi" ;;
21292 "test/parser.test") CONFIG_FILES="$CONFIG_FILES test/parser.test" ;;
21293 "test/smidump-corba.test") CONFIG_FILES="$CONFIG_FILES test/smidump-corba.test" ;;
21294 "test/smidump-jax.test") CONFIG_FILES="$CONFIG_FILES test/smidump-jax.test" ;;
21295 "test/smidump-netsnmp.test") CONFIG_FILES="$CONFIG_FILES test/smidump-netsnmp.test" ;;
21296 "test/smidump-imports.test") CONFIG_FILES="$CONFIG_FILES test/smidump-imports.test" ;;
21297 "test/smidump-mosy.test") CONFIG_FILES="$CONFIG_FILES test/smidump-mosy.test" ;;
21298 "test/smidump-orig-smiv2.test") CONFIG_FILES="$CONFIG_FILES test/smidump-orig-smiv2.test" ;;
21299 "test/smidump-sming.test") CONFIG_FILES="$CONFIG_FILES test/smidump-sming.test" ;;
21300 "test/smidump-yang.test") CONFIG_FILES="$CONFIG_FILES test/smidump-yang.test" ;;
21301 "test/smidump-smiv1.test") CONFIG_FILES="$CONFIG_FILES test/smidump-smiv1.test" ;;
21302 "test/smidump-smiv2-smiv2.test") CONFIG_FILES="$CONFIG_FILES test/smidump-smiv2-smiv2.test" ;;
21303 "test/smidump-smiv2.test") CONFIG_FILES="$CONFIG_FILES test/smidump-smiv2.test" ;;
21304 "test/smidump-tree.test") CONFIG_FILES="$CONFIG_FILES test/smidump-tree.test" ;;
21305 "test/smidump-types.test") CONFIG_FILES="$CONFIG_FILES test/smidump-types.test" ;;
21306 "test/smidump-identifiers.test") CONFIG_FILES="$CONFIG_FILES test/smidump-identifiers.test" ;;
21307 "test/smidump-metrics.test") CONFIG_FILES="$CONFIG_FILES test/smidump-metrics.test" ;;
21308 "test/smidump-xml.test") CONFIG_FILES="$CONFIG_FILES test/smidump-xml.test" ;;
21309 "test/smidump-cm.test") CONFIG_FILES="$CONFIG_FILES test/smidump-cm.test" ;;
21310 "test/smidump-python.test") CONFIG_FILES="$CONFIG_FILES test/smidump-python.test" ;;
21311 "test/smilint-smiv2.test") CONFIG_FILES="$CONFIG_FILES test/smilint-smiv2.test" ;;
21312 "test/smidiff.test") CONFIG_FILES="$CONFIG_FILES test/smidiff.test" ;;
21313 "libsmi.pc") CONFIG_FILES="$CONFIG_FILES libsmi.pc" ;;
21314 "win/config.h") CONFIG_FILES="$CONFIG_FILES win/config.h" ;;
21315 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21317 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21319 { (exit 1); exit 1; }; };;
21324 # If the user did not use the arguments to specify the items to instantiate,
21325 # then the envvar interface is used. Set only those that are not.
21326 # We use the long form for the default assignment because of an extremely
21327 # bizarre bug on SunOS 4.1.3.
21328 if $ac_need_defaults; then
21329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21334 # Have a temporary directory for convenience. Make it in the build tree
21335 # simply because there is no reason against having it here, and in addition,
21336 # creating and moving files from /tmp can sometimes cause problems.
21337 # Hook for its removal unless debugging.
21338 # Note that there is a small window in which the directory will not be cleaned:
21339 # after its creation but before its name has been assigned to `$tmp'.
21343 trap 'exit_status=$?
21344 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21346 trap '{ (exit 1); exit 1; }' 1 2 13 15
21348 # Create a (secure) tmp directory for tmp files.
21351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21352 test -n "$tmp" && test -d "$tmp"
21355 tmp=./conf$$-$RANDOM
21356 (umask 077 && mkdir "$tmp")
21359 echo "$me: cannot create a temporary directory in ." >&2
21360 { (exit 1); exit 1; }
21364 # Set up the sed scripts for CONFIG_FILES section.
21367 # No need to generate the scripts if there are no CONFIG_FILES.
21368 # This happens for instance when ./config.status config.h
21369 if test -n "$CONFIG_FILES"; then
21376 for ac_last_try in false false false false false :; do
21377 cat >conf$$subs.sed <<_ACEOF
21378 SHELL!$SHELL$ac_delim
21379 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21380 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21381 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21382 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21383 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21384 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21385 exec_prefix!$exec_prefix$ac_delim
21386 prefix!$prefix$ac_delim
21387 program_transform_name!$program_transform_name$ac_delim
21388 bindir!$bindir$ac_delim
21389 sbindir!$sbindir$ac_delim
21390 libexecdir!$libexecdir$ac_delim
21391 datarootdir!$datarootdir$ac_delim
21392 datadir!$datadir$ac_delim
21393 sysconfdir!$sysconfdir$ac_delim
21394 sharedstatedir!$sharedstatedir$ac_delim
21395 localstatedir!$localstatedir$ac_delim
21396 includedir!$includedir$ac_delim
21397 oldincludedir!$oldincludedir$ac_delim
21398 docdir!$docdir$ac_delim
21399 infodir!$infodir$ac_delim
21400 htmldir!$htmldir$ac_delim
21401 dvidir!$dvidir$ac_delim
21402 pdfdir!$pdfdir$ac_delim
21403 psdir!$psdir$ac_delim
21404 libdir!$libdir$ac_delim
21405 localedir!$localedir$ac_delim
21406 mandir!$mandir$ac_delim
21407 DEFS!$DEFS$ac_delim
21408 ECHO_C!$ECHO_C$ac_delim
21409 ECHO_N!$ECHO_N$ac_delim
21410 ECHO_T!$ECHO_T$ac_delim
21411 LIBS!$LIBS$ac_delim
21412 build_alias!$build_alias$ac_delim
21413 host_alias!$host_alias$ac_delim
21414 target_alias!$target_alias$ac_delim
21415 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21416 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21417 INSTALL_DATA!$INSTALL_DATA$ac_delim
21418 am__isrc!$am__isrc$ac_delim
21419 CYGPATH_W!$CYGPATH_W$ac_delim
21420 PACKAGE!$PACKAGE$ac_delim
21421 VERSION!$VERSION$ac_delim
21422 ACLOCAL!$ACLOCAL$ac_delim
21423 AUTOCONF!$AUTOCONF$ac_delim
21424 AUTOMAKE!$AUTOMAKE$ac_delim
21425 AUTOHEADER!$AUTOHEADER$ac_delim
21426 MAKEINFO!$MAKEINFO$ac_delim
21427 install_sh!$install_sh$ac_delim
21428 STRIP!$STRIP$ac_delim
21429 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21430 mkdir_p!$mkdir_p$ac_delim
21432 SET_MAKE!$SET_MAKE$ac_delim
21433 am__leading_dot!$am__leading_dot$ac_delim
21434 AMTAR!$AMTAR$ac_delim
21435 am__tar!$am__tar$ac_delim
21436 am__untar!$am__untar$ac_delim
21438 CFLAGS!$CFLAGS$ac_delim
21439 LDFLAGS!$LDFLAGS$ac_delim
21440 CPPFLAGS!$CPPFLAGS$ac_delim
21441 ac_ct_CC!$ac_ct_CC$ac_delim
21442 EXEEXT!$EXEEXT$ac_delim
21443 OBJEXT!$OBJEXT$ac_delim
21444 DEPDIR!$DEPDIR$ac_delim
21445 am__include!$am__include$ac_delim
21446 am__quote!$am__quote$ac_delim
21447 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21448 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21449 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21450 CCDEPMODE!$CCDEPMODE$ac_delim
21451 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21452 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21454 GREP!$GREP$ac_delim
21455 EGREP!$EGREP$ac_delim
21456 FLEX!$FLEX$ac_delim
21457 BISON!$BISON$ac_delim
21458 BASH!$BASH$ac_delim
21460 WGET!$WGET$ac_delim
21461 DIFF!$DIFF$ac_delim
21462 build!$build$ac_delim
21463 build_cpu!$build_cpu$ac_delim
21464 build_vendor!$build_vendor$ac_delim
21465 build_os!$build_os$ac_delim
21466 host!$host$ac_delim
21467 host_cpu!$host_cpu$ac_delim
21468 host_vendor!$host_vendor$ac_delim
21469 host_os!$host_os$ac_delim
21470 LN_S!$LN_S$ac_delim
21471 ECHO!$ECHO$ac_delim
21473 RANLIB!$RANLIB$ac_delim
21477 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21479 elif $ac_last_try; then
21480 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21481 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21482 { (exit 1); exit 1; }; }
21484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21488 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21489 if test -n "$ac_eof"; then
21490 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21491 ac_eof=`expr $ac_eof + 1`
21494 cat >>$CONFIG_STATUS <<_ACEOF
21495 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21499 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21500 s/^/s,@/; s/!/@,|#_!!_#|/
21503 s/'"$ac_delim"'$/,g/; t
21505 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21506 ' >>$CONFIG_STATUS <conf$$subs.sed
21507 rm -f conf$$subs.sed
21508 cat >>$CONFIG_STATUS <<_ACEOF
21514 for ac_last_try in false false false false false :; do
21515 cat >conf$$subs.sed <<_ACEOF
21516 CXXFLAGS!$CXXFLAGS$ac_delim
21517 ac_ct_CXX!$ac_ct_CXX$ac_delim
21518 CXXDEPMODE!$CXXDEPMODE$ac_delim
21519 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21520 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21521 CXXCPP!$CXXCPP$ac_delim
21523 FFLAGS!$FFLAGS$ac_delim
21524 ac_ct_F77!$ac_ct_F77$ac_delim
21525 LIBTOOL!$LIBTOOL$ac_delim
21526 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
21527 STATIC!$STATIC$ac_delim
21528 LIBSMI_MAJOR!$LIBSMI_MAJOR$ac_delim
21529 LIBSMI_MINOR!$LIBSMI_MINOR$ac_delim
21530 LIBSMI_PATCHLEVEL!$LIBSMI_PATCHLEVEL$ac_delim
21531 LIBTOOL_VERSION!$LIBTOOL_VERSION$ac_delim
21532 LIBTOOL_REVISION!$LIBTOOL_REVISION$ac_delim
21533 LIBTOOL_AGE!$LIBTOOL_AGE$ac_delim
21534 VERSION_STRING!$VERSION_STRING$ac_delim
21535 VERSION_LIBTOOL!$VERSION_LIBTOOL$ac_delim
21536 UINT64_TYPE!$UINT64_TYPE$ac_delim
21537 INT64_TYPE!$INT64_TYPE$ac_delim
21538 srcdir!$srcdir$ac_delim
21539 mibdir!$mibdir$ac_delim
21540 pibdir!$pibdir$ac_delim
21541 smipath!$smipath$ac_delim
21542 LIBOBJS!$LIBOBJS$ac_delim
21543 LTLIBOBJS!$LTLIBOBJS$ac_delim
21546 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
21548 elif $ac_last_try; then
21549 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21550 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21551 { (exit 1); exit 1; }; }
21553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21557 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21558 if test -n "$ac_eof"; then
21559 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21560 ac_eof=`expr $ac_eof + 1`
21563 cat >>$CONFIG_STATUS <<_ACEOF
21564 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21568 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21569 s/^/s,@/; s/!/@,|#_!!_#|/
21572 s/'"$ac_delim"'$/,g/; t
21574 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21575 ' >>$CONFIG_STATUS <conf$$subs.sed
21576 rm -f conf$$subs.sed
21577 cat >>$CONFIG_STATUS <<_ACEOF
21584 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21585 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21586 # trailing colons and then remove the whole line if VPATH becomes empty
21587 # (actually we leave an empty line to preserve line numbers).
21588 if test "x$srcdir" = x.; then
21589 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21590 s/:*\$(srcdir):*/:/
21591 s/:*\${srcdir}:*/:/
21593 s/^\([^=]*=[ ]*\):*/\1/
21599 cat >>$CONFIG_STATUS <<\_ACEOF
21600 fi # test -n "$CONFIG_FILES"
21603 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21606 :[FHLC]) ac_mode=$ac_tag; continue;;
21608 case $ac_mode$ac_tag in
21610 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21611 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21612 { (exit 1); exit 1; }; };;
21613 :[FH]-) ac_tag=-:-;;
21614 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21631 -) ac_f="$tmp/stdin";;
21632 *) # Look for the file first in the build tree, then in the source tree
21633 # (if the path is not absolute). The absolute path cannot be DOS-style,
21634 # because $ac_f cannot contain `:'.
21638 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21640 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21641 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21642 { (exit 1); exit 1; }; };;
21644 ac_file_inputs="$ac_file_inputs $ac_f"
21647 # Let's still pretend it is `configure' which instantiates (i.e., don't
21648 # use $as_me), people would be surprised to read:
21649 # /* config.h. Generated by config.status. */
21650 configure_input="Generated from "`IFS=:
21651 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21652 if test x"$ac_file" != x-; then
21653 configure_input="$ac_file. $configure_input"
21654 { echo "$as_me:$LINENO: creating $ac_file" >&5
21655 echo "$as_me: creating $ac_file" >&6;}
21659 *:-:* | *:-) cat >"$tmp/stdin";;
21664 ac_dir=`$as_dirname -- "$ac_file" ||
21665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21666 X"$ac_file" : 'X\(//\)[^/]' \| \
21667 X"$ac_file" : 'X\(//\)$' \| \
21668 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21674 /^X\(\/\/\)[^/].*/{
21689 -*) as_dir=./$as_dir;;
21691 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21695 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21696 *) as_qdir=$as_dir;;
21698 as_dirs="'$as_qdir' $as_dirs"
21699 as_dir=`$as_dirname -- "$as_dir" ||
21700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21701 X"$as_dir" : 'X\(//\)[^/]' \| \
21702 X"$as_dir" : 'X\(//\)$' \| \
21703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21709 /^X\(\/\/\)[^/].*/{
21722 test -d "$as_dir" && break
21724 test -z "$as_dirs" || eval "mkdir $as_dirs"
21725 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21726 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21727 { (exit 1); exit 1; }; }; }
21731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21733 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21734 # A ".." for each directory in $ac_dir_suffix.
21735 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21736 case $ac_top_builddir_sub in
21737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21741 ac_abs_top_builddir=$ac_pwd
21742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21743 # for backward compatibility:
21744 ac_top_builddir=$ac_top_build_prefix
21747 .) # We are building in place.
21749 ac_top_srcdir=$ac_top_builddir_sub
21750 ac_abs_top_srcdir=$ac_pwd ;;
21751 [\\/]* | ?:[\\/]* ) # Absolute name.
21752 ac_srcdir=$srcdir$ac_dir_suffix;
21753 ac_top_srcdir=$srcdir
21754 ac_abs_top_srcdir=$srcdir ;;
21755 *) # Relative name.
21756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21757 ac_top_srcdir=$ac_top_build_prefix$srcdir
21758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21771 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21773 ac_MKDIR_P=$MKDIR_P
21775 [\\/$]* | ?:[\\/]* ) ;;
21776 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21780 cat >>$CONFIG_STATUS <<\_ACEOF
21781 # If the template does not know about datarootdir, expand it.
21782 # FIXME: This hack should be removed a few years after 2.60.
21783 ac_datarootdir_hack=; ac_datarootdir_seen=
21785 case `sed -n '/datarootdir/ {
21794 ' $ac_file_inputs` in
21795 *datarootdir*) ac_datarootdir_seen=yes;;
21796 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21797 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21798 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21800 cat >>$CONFIG_STATUS <<_ACEOF
21801 ac_datarootdir_hack='
21802 s&@datadir@&$datadir&g
21803 s&@docdir@&$docdir&g
21804 s&@infodir@&$infodir&g
21805 s&@localedir@&$localedir&g
21806 s&@mandir@&$mandir&g
21807 s&\\\${datarootdir}&$datarootdir&g' ;;
21811 # Neutralize VPATH when `$srcdir' = `.'.
21812 # Shell code in configure.ac might set extrasub.
21813 # FIXME: do we really want to maintain this feature?
21814 cat >>$CONFIG_STATUS <<_ACEOF
21818 cat >>$CONFIG_STATUS <<\_ACEOF
21820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21821 s&@configure_input@&$configure_input&;t t
21822 s&@top_builddir@&$ac_top_builddir_sub&;t t
21823 s&@srcdir@&$ac_srcdir&;t t
21824 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21825 s&@top_srcdir@&$ac_top_srcdir&;t t
21826 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21827 s&@builddir@&$ac_builddir&;t t
21828 s&@abs_builddir@&$ac_abs_builddir&;t t
21829 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21830 s&@INSTALL@&$ac_INSTALL&;t t
21831 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21832 $ac_datarootdir_hack
21833 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21835 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21836 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21837 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21838 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21839 which seems to be undefined. Please make sure it is defined." >&5
21840 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21841 which seems to be undefined. Please make sure it is defined." >&2;}
21845 -) cat "$tmp/out"; rm -f "$tmp/out";;
21846 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21855 # Transform confdefs.h into a sed script `conftest.defines', that
21856 # substitutes the proper values into config.h.in to produce config.h.
21857 rm -f conftest.defines conftest.tail
21858 # First, append a space to every undef/define line, to ease matching.
21859 echo 's/$/ /' >conftest.defines
21860 # Then, protect against being on the right side of a sed subst, or in
21861 # an unquoted here document, in config.status. If some macros were
21862 # called several times there might be several #defines for the same
21863 # symbol, which is useless. But do not sort them, since the last
21864 # AC_DEFINE must be honored.
21865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21866 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21867 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21868 # PARAMS is the parameter list in the macro definition--in most cases, it's
21869 # just an empty string.
21870 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21871 ac_dB='\\)[ (].*,\\1define\\2'
21879 s/^[ ]*#[ ]*define[ ][ ]*//
21884 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21885 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21886 ' >>conftest.defines
21888 # Remove the space that was appended to ease matching.
21889 # Then replace #undef with comments. This is necessary, for
21890 # example, in the case of _POSIX_SOURCE, which is predefined and required
21891 # on some systems where configure will not decide to define it.
21892 # (The regexp can be short, since the line contains either #define or #undef.)
21894 s,^[ #]*u.*,/* & */,' >>conftest.defines
21896 # Break up conftest.defines:
21897 ac_max_sed_lines=50
21899 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21900 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21901 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21903 ac_in='$ac_file_inputs'
21904 ac_out='"$tmp/out1"'
21905 ac_nxt='"$tmp/out2"'
21909 # Write a here document:
21910 cat >>$CONFIG_STATUS <<_ACEOF
21911 # First, check the format of the line:
21912 cat >"\$tmp/defines.sed" <<\\CEOF
21913 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21914 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21918 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21920 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21921 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21922 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21923 grep . conftest.tail >/dev/null || break
21924 rm -f conftest.defines
21925 mv conftest.tail conftest.defines
21927 rm -f conftest.defines conftest.tail
21929 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21930 cat >>$CONFIG_STATUS <<\_ACEOF
21931 if test x"$ac_file" != x-; then
21932 echo "/* $configure_input */" >"$tmp/config.h"
21933 cat "$ac_result" >>"$tmp/config.h"
21934 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21935 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21936 echo "$as_me: $ac_file is unchanged" >&6;}
21939 mv "$tmp/config.h" $ac_file
21942 echo "/* $configure_input */"
21946 # Compute $ac_file's index in $config_headers.
21948 for _am_header in $config_headers :; do
21949 case $_am_header in
21950 $ac_file | $ac_file:* )
21953 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21956 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21957 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21958 X$ac_file : 'X\(//\)[^/]' \| \
21959 X$ac_file : 'X\(//\)$' \| \
21960 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21966 /^X\(\/\/\)[^/].*/{
21978 s/.*/./; q'`/stamp-h$_am_stamp_count
21981 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21982 echo "$as_me: executing $ac_file commands" >&6;}
21987 case $ac_file$ac_mode in
21988 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21989 # Strip MF so we end up with the name of the file.
21990 mf=`echo "$mf" | sed -e 's/:.*$//'`
21991 # Check whether this is an Automake generated Makefile or not.
21992 # We used to match only the files named `Makefile.in', but
21993 # some people rename them; so instead we look at the file content.
21994 # Grep'ing the first line is not enough: some people post-process
21995 # each Makefile.in and add a new line on top of each file to say so.
21996 # Grep'ing the whole file is not good either: AIX grep has a line
21997 # limit of 2048, but all sed's we know have understand at least 4000.
21998 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21999 dirpart=`$as_dirname -- "$mf" ||
22000 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22001 X"$mf" : 'X\(//\)[^/]' \| \
22002 X"$mf" : 'X\(//\)$' \| \
22003 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22009 /^X\(\/\/\)[^/].*/{
22025 # Extract the definition of DEPDIR, am__include, and am__quote
22026 # from the Makefile without running `make'.
22027 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22028 test -z "$DEPDIR" && continue
22029 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22030 test -z "am__include" && continue
22031 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22032 # When using ansi2knr, U may be empty or an underscore; expand it
22033 U=`sed -n 's/^U = //p' < "$mf"`
22034 # Find all dependency output files, they are included files with
22035 # $(DEPDIR) in their names. We invoke sed twice because it is the
22036 # simplest approach to changing $(DEPDIR) to its actual value in the
22038 for file in `sed -n "
22039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22041 # Make sure the directory exists.
22042 test -f "$dirpart/$file" && continue
22043 fdir=`$as_dirname -- "$file" ||
22044 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22045 X"$file" : 'X\(//\)[^/]' \| \
22046 X"$file" : 'X\(//\)$' \| \
22047 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22053 /^X\(\/\/\)[^/].*/{
22066 { as_dir=$dirpart/$fdir
22068 -*) as_dir=./$as_dir;;
22070 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22074 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22075 *) as_qdir=$as_dir;;
22077 as_dirs="'$as_qdir' $as_dirs"
22078 as_dir=`$as_dirname -- "$as_dir" ||
22079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22080 X"$as_dir" : 'X\(//\)[^/]' \| \
22081 X"$as_dir" : 'X\(//\)$' \| \
22082 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22088 /^X\(\/\/\)[^/].*/{
22101 test -d "$as_dir" && break
22103 test -z "$as_dirs" || eval "mkdir $as_dirs"
22104 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22105 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22106 { (exit 1); exit 1; }; }; }
22107 # echo "creating $dirpart/$file"
22108 echo '# dummy' > "$dirpart/$file"
22112 "default":C) chmod a+x test/*.test
22119 { (exit 0); exit 0; }
22121 chmod +x $CONFIG_STATUS
22122 ac_clean_files=$ac_clean_files_save
22125 # configure is writing to config.log, and then calls config.status.
22126 # config.status does its own redirection, appending to config.log.
22127 # Unfortunately, on DOS this fails, as config.log is still kept open
22128 # by configure, so config.status won't be able to write to it; its
22129 # output is simply discarded. So we exec the FD to /dev/null,
22130 # effectively closing config.log, so it can be properly (re)opened and
22131 # appended to by config.status. When coming back to configure, we
22132 # need to make the FD available again.
22133 if test "$no_create" != yes; then
22135 ac_config_status_args=
22136 test "$silent" = yes &&
22137 ac_config_status_args="$ac_config_status_args --quiet"
22139 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22141 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22142 # would make configure fail if this is the last instruction.
22143 $ac_cs_success || { (exit 1); exit 1; }