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="src/sysync/engineinterface.cpp"
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
892 ac_precious_vars='build_alias
918 # Initialize some variables set by options.
920 ac_init_version=false
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
930 program_transform_name=s,x,x,
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 # Accept the important Cygnus configure options, so we can diagnose typos.
982 case $ac_dashdash$ac_option in
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1006 -datadir | --datadir | --datadi | --datad)
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1018 -disable-* | --disable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044 eval enable_$ac_feature=\$ac_optarg ;;
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 htmldir=$ac_optarg ;;
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1089 -libdir | --libdir | --libdi | --libd)
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1180 -psdir | --psdir | --psdi | --psd | --ps)
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 sbindir=$ac_optarg ;;
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 sharedstatedir=$ac_optarg ;;
1206 -site | --site | --sit)
1208 -site=* | --site=* | --sit=*)
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1235 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid package name: $ac_package" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241 eval with_$ac_package=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid package name: $ac_package" >&2
1248 { (exit 1); exit 1; }; }
1249 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1250 eval with_$ac_package=no ;;
1253 # Obsolete; use --with-x.
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1270 -*) { echo "$as_me: error: unrecognized option: $ac_option
1271 Try \`$0 --help' for more information." >&2
1272 { (exit 1); exit 1; }; }
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280 { (exit 1); exit 1; }; }
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 { echo "$as_me: error: missing argument to $ac_option" >&2
1298 { (exit 1); exit 1; }; }
1301 # Be sure to have absolute directory names.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val=\$$ac_var
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$0" ||
1355 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$0" : 'X\(//\)[^/]' \| \
1357 X"$0" : 'X\(//\)$' \| \
1358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures this package to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 if test -n "$ac_init_help"; then
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --disable-dependency-tracking speeds up one-time build
1494 --enable-dependency-tracking do not reject slow dependency extractors
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --disable-libtool-lock avoid locking (might break parallel builds)
1500 --enable-evolution-compatibility
1501 build executables which only call Evolution via
1502 dlopen/dlsym: this avoids all hard dependencies on
1503 EDS shared objects, but might lead to crashes when
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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]
1513 --with-xmltok=<builtin|system|path>
1514 Chooses which xmltok/xmlparse gets used. "builtin" =
1515 compile code into libsynthesis. "system" = use
1516 header files and libxmlparse from standard search
1517 paths. "path" = use header files in "path/include"
1518 and libxmlparse in "path/lib". Default is system if
1519 header files are found, otherwise builtin.
1520 --with-expat=<system|path>
1521 Choose expat as the XML parser library. Replaces
1522 --with-xmltok. "system" = use header files and
1523 libexpat from standard search paths. "path" = use
1524 header files in "path/include", and libexpat in
1527 Some influential environment variables:
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 CC C compiler command
1536 CFLAGS C compiler flags
1538 CXXCPP C++ preprocessor
1539 F77 Fortran 77 compiler command
1540 FFLAGS Fortran 77 compiler flags
1541 PKG_CONFIG path to pkg-config utility
1542 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1543 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1545 C compiler flags for SQLITE3, overriding pkg-config
1547 linker flags for SQLITE3, overriding pkg-config
1549 C compiler flags for LIBICAL, overriding pkg-config
1551 linker flags for LIBICAL, overriding pkg-config
1553 C compiler flags for LIBECAL, overriding pkg-config
1555 linker flags for LIBECAL, overriding pkg-config
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" || continue
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1574 # A ".." for each directory in $ac_dir_suffix.
1575 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1587 .) # We are building in place.
1589 ac_top_srcdir=$ac_top_builddir_sub
1590 ac_abs_top_srcdir=$ac_pwd ;;
1591 [\\/]* | ?:[\\/]* ) # Absolute name.
1592 ac_srcdir=$srcdir$ac_dir_suffix;
1593 ac_top_srcdir=$srcdir
1594 ac_abs_top_srcdir=$srcdir ;;
1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602 cd "$ac_dir" || { ac_status=$?; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1621 generated by GNU Autoconf 2.61
1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1624 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1630 cat >config.log <<_ACEOF
1631 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake.
1634 It was created by $as_me, which was
1635 generated by GNU Autoconf 2.61. Invocation command line was
1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1654 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1656 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1657 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1659 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1660 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1661 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1662 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 echo "PATH: $as_dir"
1687 # Keep a trace of the command line.
1688 # Strip out --no-create and --no-recursion so they do not pile up.
1689 # Strip out --silent because we don't want to record it for future runs.
1690 # Also quote any args containing shell meta-characters.
1691 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_must_keep_next=false
1701 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1703 | -silent | --silent | --silen | --sile | --sil)
1706 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1709 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1711 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1712 if test $ac_must_keep_next = true; then
1713 ac_must_keep_next=false # Got value, back to normal.
1716 *=* | --config-cache | -C | -disable-* | --disable-* \
1717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1719 | -with-* | --with-* | -without-* | --without-* | --x)
1720 case "$ac_configure_args0 " in
1721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1724 -* ) ac_must_keep_next=true ;;
1727 ac_configure_args="$ac_configure_args '$ac_arg'"
1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1735 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log. We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1740 trap 'exit_status=$?
1741 # Save into config.log some information that might help in debugging.
1746 ## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##
1751 # The following way of writing the cache mishandles newlines in values,
1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754 eval ac_val=\$$ac_var
1758 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1759 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1762 _ | IFS | as_nl) ;; #(
1763 *) $as_unset $ac_var ;;
1768 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1769 *${as_nl}ac_space=\ *)
1771 "s/'\''/'\''\\\\'\'''\''/g;
1772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1783 ## ----------------- ##
1784 ## Output variables. ##
1785 ## ----------------- ##
1788 for ac_var in $ac_subst_vars
1790 eval ac_val=\$$ac_var
1792 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 echo "$ac_var='\''$ac_val'\''"
1798 if test -n "$ac_subst_files"; then
1800 ## ------------------- ##
1801 ## File substitutions. ##
1802 ## ------------------- ##
1805 for ac_var in $ac_subst_files
1807 eval ac_val=\$$ac_var
1809 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 echo "$ac_var='\''$ac_val'\''"
1816 if test -s confdefs.h; then
1826 test "$ac_signal" != 0 &&
1827 echo "$as_me: caught signal $ac_signal"
1828 echo "$as_me: exit $exit_status"
1830 rm -f core *.core core.conftest.* &&
1831 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1834 for ac_signal in 1 2 13 15; do
1835 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1840 rm -f -r conftest* confdefs.h
1842 # Predefined preprocessor variables.
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 # Let the site file select an alternate cache file if it wants to.
1870 # Prefer explicitly selected file to automatically selected ones.
1871 if test -n "$CONFIG_SITE"; then
1872 set x "$CONFIG_SITE"
1873 elif test "x$prefix" != xNONE; then
1874 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1876 set x "$ac_default_prefix/share/config.site" \
1877 "$ac_default_prefix/etc/config.site"
1882 if test -r "$ac_site_file"; then
1883 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 echo "$as_me: loading site script $ac_site_file" >&6;}
1885 sed 's/^/| /' "$ac_site_file" >&5
1890 if test -r "$cache_file"; then
1891 # Some versions of bash will fail to source /dev/null (special
1892 # files actually), so we avoid doing that.
1893 if test -f "$cache_file"; then
1894 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895 echo "$as_me: loading cache $cache_file" >&6;}
1897 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898 *) . "./$cache_file";;
1902 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903 echo "$as_me: creating cache $cache_file" >&6;}
1907 # Check that the precious variables saved in the cache have kept the same
1909 ac_cache_corrupted=false
1910 for ac_var in $ac_precious_vars; do
1911 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1912 eval ac_new_set=\$ac_env_${ac_var}_set
1913 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1914 eval ac_new_val=\$ac_env_${ac_var}_value
1915 case $ac_old_set,$ac_new_set in
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1919 ac_cache_corrupted=: ;;
1921 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1923 ac_cache_corrupted=: ;;
1926 if test "x$ac_old_val" != "x$ac_new_val"; then
1927 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1928 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1929 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1930 echo "$as_me: former value: $ac_old_val" >&2;}
1931 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1932 echo "$as_me: current value: $ac_new_val" >&2;}
1933 ac_cache_corrupted=:
1936 # Pass precious variables to config.status.
1937 if test "$ac_new_set" = set; then
1939 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 *) ac_arg=$ac_var=$ac_new_val ;;
1942 case " $ac_configure_args " in
1943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1944 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948 if $ac_cache_corrupted; then
1949 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953 { (exit 1); exit 1; }; }
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 am__api_version='1.10'
1983 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1984 if test -f "$ac_dir/install-sh"; then
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1988 elif test -f "$ac_dir/install.sh"; then
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1992 elif test -f "$ac_dir/shtool"; then
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1998 if test -z "$ac_aux_dir"; then
1999 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2001 { (exit 1); exit 1; }; }
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2013 # Find a good install program. We prefer a C program (faster),
2014 # so one script is as good as another. But avoid the broken or
2015 # incompatible versions:
2016 # SysV /etc/install, /usr/sbin/install
2017 # SunOS /usr/etc/install
2018 # IRIX /sbin/install
2020 # AmigaOS /C/install, which installs bootblocks on floppy discs
2021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2024 # OS/2's system install, which has a completely different semantic
2025 # ./install, which can be erroneously created by make from ./install.sh.
2026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2028 if test -z "$INSTALL"; then
2029 if test "${ac_cv_path_install+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 # Account for people who put trailing slashes in PATH elements.
2039 ./ | .// | /cC/* | \
2040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2044 # OSF1 and SCO ODT 3.0 have their own names for install.
2045 # Don't use installbsd from OSF since it installs stuff as root
2047 for ac_prog in ginstall scoinst install; do
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2050 if test $ac_prog = install &&
2051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052 # AIX install. It has an incompatible calling convention.
2054 elif test $ac_prog = install &&
2055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056 # program-specific install script used by HP pwplus--don't use.
2059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2072 if test "${ac_cv_path_install+set}" = set; then
2073 INSTALL=$ac_cv_path_install
2075 # As a last resort, use the slow shell script. Don't cache a
2076 # value for INSTALL within a source directory, because that will
2077 # break other packages using the cache if that directory is
2078 # removed, or if the value is a relative name.
2079 INSTALL=$ac_install_sh
2082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2083 echo "${ECHO_T}$INSTALL" >&6; }
2085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2086 # It thinks the first close brace ends the variable substitution.
2087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2093 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2094 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2097 echo timestamp > conftest.file
2098 # Do `set' in a subshell so we don't clobber the current shell's
2099 # arguments. Must try -L first in case configure is actually a
2100 # symlink; some systems play weird games with the mod time of symlinks
2101 # (eg FreeBSD returns the mod time of the symlink's containing
2104 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2105 if test "$*" = "X"; then
2107 set X `ls -t $srcdir/configure conftest.file`
2110 if test "$*" != "X $srcdir/configure conftest.file" \
2111 && test "$*" != "X conftest.file $srcdir/configure"; then
2113 # If neither matched, then we have a broken ls. This can happen
2114 # if, for instance, CONFIG_SHELL is bash and it inherits a
2115 # broken ls alias from the environment. This has actually
2116 # happened. Such a system could not be considered "sane".
2117 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2118 alias in your environment" >&5
2119 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2120 alias in your environment" >&2;}
2121 { (exit 1); exit 1; }; }
2124 test "$2" = conftest.file
2130 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2131 Check your system clock" >&5
2132 echo "$as_me: error: newly created file is older than distributed files!
2133 Check your system clock" >&2;}
2134 { (exit 1); exit 1; }; }
2136 { echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6; }
2138 test "$program_prefix" != NONE &&
2139 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2140 # Use a double $ so make ignores it.
2141 test "$program_suffix" != NONE &&
2142 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2143 # Double any \ or $. echo might interpret backslashes.
2144 # By default was `s,x,x', remove it if useless.
2145 cat <<\_ACEOF >conftest.sed
2146 s/[\\$]/&&/g;s/;s,x,x,$//
2148 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2151 # expand $ac_aux_dir to an absolute path
2152 am_aux_dir=`cd $ac_aux_dir && pwd`
2154 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2155 # Use eval to expand $SHELL
2156 if eval "$MISSING --run true"; then
2157 am_missing_run="$MISSING --run "
2160 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2161 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2164 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2165 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2166 if test -z "$MKDIR_P"; then
2167 if test "${ac_cv_path_mkdir+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2174 test -z "$as_dir" && as_dir=.
2175 for ac_prog in mkdir gmkdir; do
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2178 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2179 'mkdir (GNU coreutils) '* | \
2180 'mkdir (coreutils) '* | \
2181 'mkdir (fileutils) '4.1*)
2182 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2192 if test "${ac_cv_path_mkdir+set}" = set; then
2193 MKDIR_P="$ac_cv_path_mkdir -p"
2195 # As a last resort, use the slow shell script. Don't cache a
2196 # value for MKDIR_P within a source directory, because that will
2197 # break other packages using the cache if that directory is
2198 # removed, or if the value is a relative name.
2199 test -d ./--version && rmdir ./--version
2200 MKDIR_P="$ac_install_sh -d"
2203 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2204 echo "${ECHO_T}$MKDIR_P" >&6; }
2208 [\\/$]* | ?:[\\/]*) ;;
2209 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2212 for ac_prog in gawk mawk nawk awk
2214 # Extract the first word of "$ac_prog", so it can be a program name with args.
2215 set dummy $ac_prog; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_AWK+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$AWK"; then
2222 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_AWK="$ac_prog"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$AWK"; then
2243 { echo "$as_me:$LINENO: result: $AWK" >&5
2244 echo "${ECHO_T}$AWK" >&6; }
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2251 test -n "$AWK" && break
2254 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2256 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2257 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 cat >conftest.make <<\_ACEOF
2263 @echo '@@@%%%=$(MAKE)=@@@%%%'
2265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2268 eval ac_cv_prog_make_${ac_make}_set=yes;;
2270 eval ac_cv_prog_make_${ac_make}_set=no;;
2274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 SET_MAKE="MAKE=${MAKE-make}"
2284 rm -rf .tst 2>/dev/null
2285 mkdir .tst 2>/dev/null
2286 if test -d .tst; then
2291 rmdir .tst 2>/dev/null
2293 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2295 # is not polluted with repeated "-I."
2296 am__isrc=' -I$(srcdir)'
2297 # test to see if srcdir already configured
2298 if test -f $srcdir/config.status; then
2299 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2301 { (exit 1); exit 1; }; }
2305 # test whether we have cygpath
2306 if test -z "$CYGPATH_W"; then
2307 if (cygpath --version) >/dev/null 2>/dev/null; then
2308 CYGPATH_W='cygpath -w'
2315 # Define the identity of the package.
2316 PACKAGE=syncevolution
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE "$PACKAGE"
2325 cat >>confdefs.h <<_ACEOF
2326 #define VERSION "$VERSION"
2329 # Some tools Automake needs.
2331 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2334 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2337 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2340 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2343 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2345 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2347 # Installed binaries are usually stripped using `strip' when the user
2348 # run `make install-strip'. However `strip' might not be the right
2349 # tool to use in cross-compilation environments, therefore Automake
2350 # will honor the `STRIP' environment variable to overrule this program.
2351 if test "$cross_compiling" != no; then
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}strip; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_STRIP+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$STRIP"; then
2361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 STRIP=$ac_cv_prog_STRIP
2381 if test -n "$STRIP"; then
2382 { echo "$as_me:$LINENO: result: $STRIP" >&5
2383 echo "${ECHO_T}$STRIP" >&6; }
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2391 if test -z "$ac_cv_prog_STRIP"; then
2393 # Extract the first word of "strip", so it can be a program name with args.
2394 set dummy strip; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$ac_ct_STRIP"; then
2401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_STRIP="strip"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421 if test -n "$ac_ct_STRIP"; then
2422 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2423 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2429 if test "x$ac_ct_STRIP" = x; then
2432 case $cross_compiling:$ac_tool_warned in
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2445 STRIP="$ac_cv_prog_STRIP"
2449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2451 # We need awk for the "check" target. The system "awk" is bad on
2453 # Always define AMTAR for backward compatibility.
2455 AMTAR=${AMTAR-"${am_missing_run}tar"}
2457 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2463 ac_config_headers="$ac_config_headers config.h"
2469 ac_cpp='$CXXCPP $CPPFLAGS'
2470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2473 if test -z "$CXX"; then
2474 if test -n "$CCC"; then
2477 if test -n "$ac_tool_prefix"; then
2478 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_CXX+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$CXX"; then
2488 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 if test -n "$CXX"; then
2509 { echo "$as_me:$LINENO: result: $CXX" >&5
2510 echo "${ECHO_T}$CXX" >&6; }
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2517 test -n "$CXX" && break
2520 if test -z "$CXX"; then
2522 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2524 # Extract the first word of "$ac_prog", so it can be a program name with args.
2525 set dummy $ac_prog; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 if test -n "$ac_ct_CXX"; then
2532 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_ac_ct_CXX="$ac_prog"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2552 if test -n "$ac_ct_CXX"; then
2553 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2554 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2556 { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2561 test -n "$ac_ct_CXX" && break
2564 if test "x$ac_ct_CXX" = x; then
2567 case $cross_compiling:$ac_tool_warned in
2569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet. If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&5
2572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2573 whose name does not start with the host triplet. If you think this
2574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2575 ac_tool_warned=yes ;;
2583 # Provide some information about the compiler.
2584 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2585 ac_compiler=`set X $ac_compile; echo $2`
2586 { (ac_try="$ac_compiler --version >&5"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_compiler --version >&5") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }
2596 { (ac_try="$ac_compiler -v >&5"
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_compiler -v >&5") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }
2606 { (ac_try="$ac_compiler -V >&5"
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_compiler -V >&5") 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }
2617 cat >conftest.$ac_ext <<_ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2632 ac_clean_files_save=$ac_clean_files
2633 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2634 # Try to create an executable without -o first, disregard a.out.
2635 # It will help us diagnose broken compilers, and finding out an intuition
2637 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2638 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2639 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2641 # List of possible output files, starting from the most likely.
2642 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2643 # only as a last resort. b.out is created by i960 compilers.
2644 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2646 # The IRIX 6 linker writes into existing files which may not be
2647 # executable, retaining their permissions. Remove them first so a
2648 # subsequent execution test works.
2650 for ac_file in $ac_files
2653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2659 if { (ac_try="$ac_link_default"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_link_default") 2>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; then
2669 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2671 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2672 # so that the user can short-circuit this test for compilers unknown to
2674 for ac_file in $ac_files ''
2676 test -f "$ac_file" || continue
2678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2681 # We found the default executable, but exeext='' is most
2685 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2689 # We set ac_cv_exeext here because the later test for it is not
2690 # safe: cross compilers may not add the suffix if given an `-o'
2691 # argument, so we may need to know it at that point already.
2692 # Even if this section looks crufty: it has the advantage of
2699 test "$ac_cv_exeext" = no && ac_cv_exeext=
2705 { echo "$as_me:$LINENO: result: $ac_file" >&5
2706 echo "${ECHO_T}$ac_file" >&6; }
2707 if test -z "$ac_file"; then
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: C++ compiler cannot create executables
2714 See \`config.log' for more details." >&2;}
2715 { (exit 77); exit 77; }; }
2718 ac_exeext=$ac_cv_exeext
2720 # Check that the compiler produces executables we can run. If not, either
2721 # the compiler is broken, or we cross compile.
2722 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2723 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2724 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2725 # If not cross compiling, check that we can run a simple program.
2726 if test "$cross_compiling" != yes; then
2727 if { ac_try='./$ac_file'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2739 if test "$cross_compiling" = maybe; then
2742 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2743 If you meant to cross compile, use \`--host'.
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: cannot run C++ compiled programs.
2746 If you meant to cross compile, use \`--host'.
2747 See \`config.log' for more details." >&2;}
2748 { (exit 1); exit 1; }; }
2752 { echo "$as_me:$LINENO: result: yes" >&5
2753 echo "${ECHO_T}yes" >&6; }
2755 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2756 ac_clean_files=$ac_clean_files_save
2757 # Check that the compiler produces executables we can run. If not, either
2758 # the compiler is broken, or we cross compile.
2759 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2760 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2761 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2762 echo "${ECHO_T}$cross_compiling" >&6; }
2764 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2765 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2766 if { (ac_try="$ac_link"
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_link") 2>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; then
2776 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2777 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2778 # work properly (i.e., refer to `conftest.exe'), while it won't with
2780 for ac_file in conftest.exe conftest conftest.*; do
2781 test -f "$ac_file" || continue
2783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2790 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2793 See \`config.log' for more details." >&2;}
2794 { (exit 1); exit 1; }; }
2797 rm -f conftest$ac_cv_exeext
2798 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2799 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2801 rm -f conftest.$ac_ext
2802 EXEEXT=$ac_cv_exeext
2804 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2805 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2806 if test "${ac_cv_objext+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 cat >conftest.$ac_ext <<_ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2824 rm -f conftest.o conftest.obj
2825 if { (ac_try="$ac_compile"
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compile") 2>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; then
2835 for ac_file in conftest.o conftest.obj conftest.*; do
2836 test -f "$ac_file" || continue;
2838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2839 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2848 See \`config.log' for more details." >&5
2849 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2850 See \`config.log' for more details." >&2;}
2851 { (exit 1); exit 1; }; }
2854 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2856 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2857 echo "${ECHO_T}$ac_cv_objext" >&6; }
2858 OBJEXT=$ac_cv_objext
2860 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2861 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2862 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compile") 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } && {
2897 test -z "$ac_cxx_werror_flag" ||
2898 test ! -s conftest.err
2899 } && test -s conftest.$ac_objext; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2912 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2913 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2914 GXX=`test $ac_compiler_gnu = yes && echo yes`
2915 ac_test_CXXFLAGS=${CXXFLAGS+set}
2916 ac_save_CXXFLAGS=$CXXFLAGS
2917 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2918 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_cxx_g+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2923 ac_cxx_werror_flag=yes
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } && {
2955 test -z "$ac_cxx_werror_flag" ||
2956 test ! -s conftest.err
2957 } && test -s conftest.$ac_objext; then
2958 ac_cv_prog_cxx_g=yes
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_cxx_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_cxx_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest.$ac_objext; then
3035 ac_cv_prog_cxx_g=yes
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3052 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3053 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3054 if test "$ac_test_CXXFLAGS" = set; then
3055 CXXFLAGS=$ac_save_CXXFLAGS
3056 elif test $ac_cv_prog_cxx_g = yes; then
3057 if test "$GXX" = yes; then
3063 if test "$GXX" = yes; then
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 DEPDIR="${am__leading_dot}deps"
3076 ac_config_commands="$ac_config_commands depfiles"
3079 am_make=${MAKE-make}
3080 cat > confinc << 'END'
3085 # If we don't find an include directive, just comment out the code.
3086 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3087 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3091 # First try GNU make style include.
3092 echo "include confinc" > confmf
3093 # We grep out `Entering directory' and `Leaving directory'
3094 # messages which can occur if `w' ends up in MAKEFLAGS.
3095 # In particular we don't look at `^make:' because GNU make might
3096 # be invoked under some other name (usually "gmake"), in which
3097 # case it prints its new name instead of `make'.
3098 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3103 # Now try BSD make style include.
3104 if test "$am__include" = "#"; then
3105 echo '.include "confinc"' > confmf
3106 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3107 am__include=.include
3114 { echo "$as_me:$LINENO: result: $_am_result" >&5
3115 echo "${ECHO_T}$_am_result" >&6; }
3116 rm -f confinc confmf
3118 # Check whether --enable-dependency-tracking was given.
3119 if test "${enable_dependency_tracking+set}" = set; then
3120 enableval=$enable_dependency_tracking;
3123 if test "x$enable_dependency_tracking" != xno; then
3124 am_depcomp="$ac_aux_dir/depcomp"
3127 if test "x$enable_dependency_tracking" != xno; then
3137 depcc="$CXX" am_compiler_list=
3139 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3140 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3141 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3145 # We make a subdir and do the tests there. Otherwise we can end up
3146 # making bogus files that we don't know about and never remove. For
3147 # instance it was reported that on HP-UX the gcc test will end up
3148 # making a dummy file named `D' -- because `-MD' means `put the output
3151 # Copy depcomp to subdir because otherwise we won't find it if we're
3152 # using a relative directory.
3153 cp "$am_depcomp" conftest.dir
3155 # We will build objects and dependencies in a subdirectory because
3156 # it helps to detect inapplicable dependency modes. For instance
3157 # both Tru64's cc and ICC support -MD to output dependencies as a
3158 # side effect of compilation, but ICC will put the dependencies in
3159 # the current directory while Tru64 will put them in the object
3163 am_cv_CXX_dependencies_compiler_type=none
3164 if test "$am_compiler_list" = ""; then
3165 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3167 for depmode in $am_compiler_list; do
3168 # Setup a source with many dependencies, because some compilers
3169 # like to wrap large dependency lists on column 80 (with \), and
3170 # we should not choose a depcomp mode which is confused by this.
3172 # We need to recreate these files for each test, as the compiler may
3173 # overwrite some of them when testing with obscure command lines.
3174 # This happens at least with the AIX C compiler.
3176 for i in 1 2 3 4 5 6; do
3177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3178 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3179 # Solaris 8's {/usr,}/bin/sh.
3180 touch sub/conftst$i.h
3182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3186 # after this tag, mechanisms are not by side-effect, so they'll
3187 # only be used when explicitly requested
3188 if test "x$enable_dependency_tracking" = xyes; then
3196 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3197 # mode. It turns out that the SunPro C++ compiler does not properly
3198 # handle `-M -o', and we need to detect this.
3199 if depmode=$depmode \
3200 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3201 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3202 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3203 >/dev/null 2>conftest.err &&
3204 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3206 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3208 # icc doesn't choke on unknown options, it will just issue warnings
3209 # or remarks (even with -Werror). So we grep stderr for any message
3210 # that says an option was ignored or not supported.
3211 # When given -MP, icc 7.0 and 7.1 complain thusly:
3212 # icc: Command line warning: ignoring option '-M'; no argument required
3213 # The diagnosis changed in icc 8.0:
3214 # icc: Command line remark: option '-MP' not supported
3215 if (grep 'ignoring option' conftest.err ||
3216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3217 am_cv_CXX_dependencies_compiler_type=$depmode
3226 am_cv_CXX_dependencies_compiler_type=none
3230 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3231 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3232 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3235 test "x$enable_dependency_tracking" != xno \
3236 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3237 am__fastdepCXX_TRUE=
3238 am__fastdepCXX_FALSE='#'
3240 am__fastdepCXX_TRUE='#'
3241 am__fastdepCXX_FALSE=
3245 # Check whether --enable-shared was given.
3246 if test "${enable_shared+set}" = set; then
3247 enableval=$enable_shared; p=${PACKAGE-default}
3249 yes) enable_shared=yes ;;
3250 no) enable_shared=no ;;
3253 # Look at the argument we got. We use all the common list separators.
3254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3255 for pkg in $enableval; do
3257 if test "X$pkg" = "X$p"; then
3269 # Check whether --enable-static was given.
3270 if test "${enable_static+set}" = set; then
3271 enableval=$enable_static; p=${PACKAGE-default}
3273 yes) enable_static=yes ;;
3274 no) enable_static=no ;;
3277 # Look at the argument we got. We use all the common list separators.
3278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3279 for pkg in $enableval; do
3281 if test "X$pkg" = "X$p"; then
3293 # Check whether --enable-fast-install was given.
3294 if test "${enable_fast_install+set}" = set; then
3295 enableval=$enable_fast_install; p=${PACKAGE-default}
3297 yes) enable_fast_install=yes ;;
3298 no) enable_fast_install=no ;;
3300 enable_fast_install=no
3301 # Look at the argument we got. We use all the common list separators.
3302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3303 for pkg in $enableval; do
3305 if test "X$pkg" = "X$p"; then
3306 enable_fast_install=yes
3313 enable_fast_install=yes
3317 # Make sure we can run config.sub.
3318 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3319 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3320 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3321 { (exit 1); exit 1; }; }
3323 { echo "$as_me:$LINENO: checking build system type" >&5
3324 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3325 if test "${ac_cv_build+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 ac_build_alias=$build_alias
3329 test "x$ac_build_alias" = x &&
3330 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3331 test "x$ac_build_alias" = x &&
3332 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3333 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3334 { (exit 1); exit 1; }; }
3335 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3336 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3338 { (exit 1); exit 1; }; }
3341 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3342 echo "${ECHO_T}$ac_cv_build" >&6; }
3343 case $ac_cv_build in
3345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3346 echo "$as_me: error: invalid value of canonical build" >&2;}
3347 { (exit 1); exit 1; }; };;
3350 ac_save_IFS=$IFS; IFS='-'
3356 # Remember, the first character of IFS is used to create $*,
3357 # except with old shells:
3360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3363 { echo "$as_me:$LINENO: checking host system type" >&5
3364 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3365 if test "${ac_cv_host+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 if test "x$host_alias" = x; then
3369 ac_cv_host=$ac_cv_build
3371 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3372 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3373 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3374 { (exit 1); exit 1; }; }
3378 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3379 echo "${ECHO_T}$ac_cv_host" >&6; }
3382 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3383 echo "$as_me: error: invalid value of canonical host" >&2;}
3384 { (exit 1); exit 1; }; };;
3387 ac_save_IFS=$IFS; IFS='-'
3393 # Remember, the first character of IFS is used to create $*,
3394 # except with old shells:
3397 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 if test -n "$ac_tool_prefix"; then
3406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3410 if test "${ac_cv_prog_CC+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 if test -n "$CC"; then
3435 { echo "$as_me:$LINENO: result: $CC" >&5
3436 echo "${ECHO_T}$CC" >&6; }
3438 { echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6; }
3444 if test -z "$ac_cv_prog_CC"; then
3446 # Extract the first word of "gcc", so it can be a program name with args.
3447 set dummy gcc; ac_word=$2
3448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if test -n "$ac_ct_CC"; then
3454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_ac_ct_CC="gcc"
3464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474 if test -n "$ac_ct_CC"; then
3475 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3476 echo "${ECHO_T}$ac_ct_CC" >&6; }
3478 { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3482 if test "x$ac_ct_CC" = x; then
3485 case $cross_compiling:$ac_tool_warned in
3487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3488 whose name does not start with the host triplet. If you think this
3489 configuration is useful to you, please write to autoconf@gnu.org." >&5
3490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3491 whose name does not start with the host triplet. If you think this
3492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3493 ac_tool_warned=yes ;;
3501 if test -z "$CC"; then
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}cc; ac_word=$2
3505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC="${ac_tool_prefix}cc"
3521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { echo "$as_me:$LINENO: result: $CC" >&5
3533 echo "${ECHO_T}$CC" >&6; }
3535 { echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6; }
3542 if test -z "$CC"; then
3543 # Extract the first word of "cc", so it can be a program name with args.
3544 set dummy cc; ac_word=$2
3545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3562 ac_prog_rejected=yes
3566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 if test $ac_prog_rejected = yes; then
3574 # We found a bogon in the path, so make sure we never use it.
3575 set dummy $ac_cv_prog_CC
3577 if test $# != 0; then
3578 # We chose a different compiler from the bogus one.
3579 # However, it has the same basename, so the bogon will be chosen
3580 # first if we set CC to just the basename; use the full file name.
3582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3588 if test -n "$CC"; then
3589 { echo "$as_me:$LINENO: result: $CC" >&5
3590 echo "${ECHO_T}$CC" >&6; }
3592 { echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6; }
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 for ac_prog in cl.exe
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3606 if test "${ac_cv_prog_CC+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$CC"; then
3631 { echo "$as_me:$LINENO: result: $CC" >&5
3632 echo "${ECHO_T}$CC" >&6; }
3634 { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3639 test -n "$CC" && break
3642 if test -z "$CC"; then
3644 for ac_prog in cl.exe
3646 # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 if test -n "$ac_ct_CC"; then
3654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_ac_ct_CC="$ac_prog"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3676 echo "${ECHO_T}$ac_ct_CC" >&6; }
3678 { echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6; }
3683 test -n "$ac_ct_CC" && break
3686 if test "x$ac_ct_CC" = x; then
3689 case $cross_compiling:$ac_tool_warned in
3691 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3692 whose name does not start with the host triplet. If you think this
3693 configuration is useful to you, please write to autoconf@gnu.org." >&5
3694 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3695 whose name does not start with the host triplet. If you think this
3696 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3697 ac_tool_warned=yes ;;
3706 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: no acceptable C compiler found in \$PATH
3709 See \`config.log' for more details." >&2;}
3710 { (exit 1); exit 1; }; }
3712 # Provide some information about the compiler.
3713 echo "$as_me:$LINENO: checking for C compiler version" >&5
3714 ac_compiler=`set X $ac_compile; echo $2`
3715 { (ac_try="$ac_compiler --version >&5"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_compiler --version >&5") 2>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }
3725 { (ac_try="$ac_compiler -v >&5"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compiler -v >&5") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }
3735 { (ac_try="$ac_compiler -V >&5"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741 (eval "$ac_compiler -V >&5") 2>&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }
3746 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3747 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3748 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
3778 grep -v '^ *+' conftest.er1 >conftest.err
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } && {
3783 test -z "$ac_c_werror_flag" ||
3784 test ! -s conftest.err
3785 } && test -s conftest.$ac_objext; then
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3798 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3800 GCC=`test $ac_compiler_gnu = yes && echo yes`
3801 ac_test_CFLAGS=${CFLAGS+set}
3802 ac_save_CFLAGS=$CFLAGS
3803 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3804 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3805 if test "${ac_cv_prog_cc_g+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 ac_save_c_werror_flag=$ac_c_werror_flag
3809 ac_c_werror_flag=yes
3812 cat >conftest.$ac_ext <<_ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3827 rm -f conftest.$ac_objext
3828 if { (ac_try="$ac_compile"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_compile") 2>conftest.er1
3836 grep -v '^ *+' conftest.er1 >conftest.err
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } && {
3841 test -z "$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 } && test -s conftest.$ac_objext; then
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 ac_c_werror_flag=$ac_save_c_werror_flag
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3904 rm -f conftest.$ac_objext
3905 if { (ac_try="$ac_compile"
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 ac_c_werror_flag=$ac_save_c_werror_flag
3938 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3939 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3940 if test "$ac_test_CFLAGS" = set; then
3941 CFLAGS=$ac_save_CFLAGS
3942 elif test $ac_cv_prog_cc_g = yes; then
3943 if test "$GCC" = yes; then
3949 if test "$GCC" = yes; then
3955 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3956 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3957 if test "${ac_cv_prog_cc_c89+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 ac_cv_prog_cc_c89=no
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3986 s = g (p, va_arg (v,int));
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3992 function prototypes and stuff, but not '\xHH' hex character constants.
3993 These don't provoke an error unfortunately, instead are silently treated
3994 as 'x'. The following induces an error, until -std is added to get
3995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3996 array size at least. It's necessary to write '\x00'==0 to get something
3997 that's true only with -std. */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001 inside strings and character constants. */
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4022 CC="$ac_save_CC $ac_arg"
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && {
4037 test -z "$ac_c_werror_flag" ||
4038 test ! -s conftest.err
4039 } && test -s conftest.$ac_objext; then
4040 ac_cv_prog_cc_c89=$ac_arg
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4048 rm -f core conftest.err conftest.$ac_objext
4049 test "x$ac_cv_prog_cc_c89" != "xno" && break
4051 rm -f conftest.$ac_ext
4056 case "x$ac_cv_prog_cc_c89" in
4058 { echo "$as_me:$LINENO: result: none needed" >&5
4059 echo "${ECHO_T}none needed" >&6; } ;;
4061 { echo "$as_me:$LINENO: result: unsupported" >&5
4062 echo "${ECHO_T}unsupported" >&6; } ;;
4064 CC="$CC $ac_cv_prog_cc_c89"
4065 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4066 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076 depcc="$CC" am_compiler_list=
4078 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4080 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4084 # We make a subdir and do the tests there. Otherwise we can end up
4085 # making bogus files that we don't know about and never remove. For
4086 # instance it was reported that on HP-UX the gcc test will end up
4087 # making a dummy file named `D' -- because `-MD' means `put the output
4090 # Copy depcomp to subdir because otherwise we won't find it if we're
4091 # using a relative directory.
4092 cp "$am_depcomp" conftest.dir
4094 # We will build objects and dependencies in a subdirectory because
4095 # it helps to detect inapplicable dependency modes. For instance
4096 # both Tru64's cc and ICC support -MD to output dependencies as a
4097 # side effect of compilation, but ICC will put the dependencies in
4098 # the current directory while Tru64 will put them in the object
4102 am_cv_CC_dependencies_compiler_type=none
4103 if test "$am_compiler_list" = ""; then
4104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4106 for depmode in $am_compiler_list; do
4107 # Setup a source with many dependencies, because some compilers
4108 # like to wrap large dependency lists on column 80 (with \), and
4109 # we should not choose a depcomp mode which is confused by this.
4111 # We need to recreate these files for each test, as the compiler may
4112 # overwrite some of them when testing with obscure command lines.
4113 # This happens at least with the AIX C compiler.
4115 for i in 1 2 3 4 5 6; do
4116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4117 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4118 # Solaris 8's {/usr,}/bin/sh.
4119 touch sub/conftst$i.h
4121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4125 # after this tag, mechanisms are not by side-effect, so they'll
4126 # only be used when explicitly requested
4127 if test "x$enable_dependency_tracking" = xyes; then
4135 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136 # mode. It turns out that the SunPro C++ compiler does not properly
4137 # handle `-M -o', and we need to detect this.
4138 if depmode=$depmode \
4139 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4141 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4142 >/dev/null 2>conftest.err &&
4143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4145 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4147 # icc doesn't choke on unknown options, it will just issue warnings
4148 # or remarks (even with -Werror). So we grep stderr for any message
4149 # that says an option was ignored or not supported.
4150 # When given -MP, icc 7.0 and 7.1 complain thusly:
4151 # icc: Command line warning: ignoring option '-M'; no argument required
4152 # The diagnosis changed in icc 8.0:
4153 # icc: Command line remark: option '-MP' not supported
4154 if (grep 'ignoring option' conftest.err ||
4155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4156 am_cv_CC_dependencies_compiler_type=$depmode
4165 am_cv_CC_dependencies_compiler_type=none
4169 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4170 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4174 test "x$enable_dependency_tracking" != xno \
4175 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4177 am__fastdepCC_FALSE='#'
4179 am__fastdepCC_TRUE='#'
4180 am__fastdepCC_FALSE=
4184 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4185 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4186 if test "${lt_cv_path_SED+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 # Loop through the user's path and test for sed and gsed.
4190 # Then use that list of sed's as ones to test for truncation.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 test -z "$as_dir" && as_dir=.
4196 for lt_ac_prog in sed gsed; do
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4199 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4208 # along with /bin/sed that truncates output.
4209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4210 test ! -f $lt_ac_sed && continue
4211 cat /dev/null > conftest.in
4213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4214 # Check for GNU sed and select it if it is found.
4215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4216 lt_cv_path_SED=$lt_ac_sed
4220 cat conftest.in conftest.in >conftest.tmp
4221 mv conftest.tmp conftest.in
4222 cp conftest.in conftest.nl
4224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4225 cmp -s conftest.out conftest.nl || break
4226 # 10000 chars as input seems more than enough
4227 test $lt_ac_count -gt 10 && break
4228 lt_ac_count=`expr $lt_ac_count + 1`
4229 if test $lt_ac_count -gt $lt_ac_max; then
4230 lt_ac_max=$lt_ac_count
4231 lt_cv_path_SED=$lt_ac_sed
4240 { echo "$as_me:$LINENO: result: $SED" >&5
4241 echo "${ECHO_T}$SED" >&6; }
4243 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4244 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4245 if test "${ac_cv_path_GREP+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 # Extract the first word of "grep ggrep" to use in msg output
4249 if test -z "$GREP"; then
4250 set dummy grep ggrep; ac_prog_name=$2
4251 if test "${ac_cv_path_GREP+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_path_GREP_found=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260 test -z "$as_dir" && as_dir=.
4261 for ac_prog in grep ggrep; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4264 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4265 # Check for GNU ac_path_GREP and select it if it is found.
4266 # Check for GNU $ac_path_GREP
4267 case `"$ac_path_GREP" --version 2>&1` in
4269 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4272 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 echo 'GREP' >> "conftest.nl"
4279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281 ac_count=`expr $ac_count + 1`
4282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_GREP="$ac_path_GREP"
4285 ac_path_GREP_max=$ac_count
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 $ac_path_GREP_found && break 3
4304 GREP="$ac_cv_path_GREP"
4305 if test -z "$GREP"; then
4306 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4307 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4308 { (exit 1); exit 1; }; }
4312 ac_cv_path_GREP=$GREP
4317 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4318 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4319 GREP="$ac_cv_path_GREP"
4322 { echo "$as_me:$LINENO: checking for egrep" >&5
4323 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4324 if test "${ac_cv_path_EGREP+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4328 then ac_cv_path_EGREP="$GREP -E"
4330 # Extract the first word of "egrep" to use in msg output
4331 if test -z "$EGREP"; then
4332 set dummy egrep; ac_prog_name=$2
4333 if test "${ac_cv_path_EGREP+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_path_EGREP_found=false
4337 # Loop through the user's path and test for each of PROGNAME-LIST
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342 test -z "$as_dir" && as_dir=.
4343 for ac_prog in egrep; do
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4346 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4347 # Check for GNU ac_path_EGREP and select it if it is found.
4348 # Check for GNU $ac_path_EGREP
4349 case `"$ac_path_EGREP" --version 2>&1` in
4351 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4354 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4357 cat "conftest.in" "conftest.in" >"conftest.tmp"
4358 mv "conftest.tmp" "conftest.in"
4359 cp "conftest.in" "conftest.nl"
4360 echo 'EGREP' >> "conftest.nl"
4361 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363 ac_count=`expr $ac_count + 1`
4364 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4365 # Best one so far, save it but keep looking for a better one
4366 ac_cv_path_EGREP="$ac_path_EGREP"
4367 ac_path_EGREP_max=$ac_count
4369 # 10*(2^10) chars as input seems more than enough
4370 test $ac_count -gt 10 && break
4372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376 $ac_path_EGREP_found && break 3
4386 EGREP="$ac_cv_path_EGREP"
4387 if test -z "$EGREP"; then
4388 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4389 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4390 { (exit 1); exit 1; }; }
4394 ac_cv_path_EGREP=$EGREP
4400 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4401 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4402 EGREP="$ac_cv_path_EGREP"
4406 # Check whether --with-gnu-ld was given.
4407 if test "${with_gnu_ld+set}" = set; then
4408 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4414 if test "$GCC" = yes; then
4415 # Check if gcc -print-prog-name=ld gives a path.
4416 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4417 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4420 # gcc leaves a trailing carriage return which upsets mingw
4421 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4423 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4426 # Accept absolute paths.
4428 re_direlt='/[^/][^/]*/\.\./'
4429 # Canonicalize the pathname of ld
4430 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4431 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4432 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4434 test -z "$LD" && LD="$ac_prog"
4437 # If it fails, then pretend we aren't using GCC.
4441 # If it is relative, then search for the first ld in PATH.
4445 elif test "$with_gnu_ld" = yes; then
4446 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4447 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4449 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4450 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4452 if test "${lt_cv_path_LD+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 if test -z "$LD"; then
4456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4457 for ac_dir in $PATH; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4461 lt_cv_path_LD="$ac_dir/$ac_prog"
4462 # Check to see if the program is GNU ld. I'd rather use --version,
4463 # but apparently some variants of GNU ld only accept -v.
4464 # Break only if it was the GNU/non-GNU ld that we prefer.
4465 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4466 *GNU* | *'with BFD'*)
4467 test "$with_gnu_ld" != no && break
4470 test "$with_gnu_ld" != yes && break
4477 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4482 if test -n "$LD"; then
4483 { echo "$as_me:$LINENO: result: $LD" >&5
4484 echo "${ECHO_T}$LD" >&6; }
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4489 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4490 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4491 { (exit 1); exit 1; }; }
4492 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4493 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4494 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4498 case `$LD -v 2>&1 </dev/null` in
4499 *GNU* | *'with BFD'*)
4500 lt_cv_prog_gnu_ld=yes
4503 lt_cv_prog_gnu_ld=no
4507 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4508 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4509 with_gnu_ld=$lt_cv_prog_gnu_ld
4512 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4513 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4514 if test "${lt_cv_ld_reload_flag+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 lt_cv_ld_reload_flag='-r'
4519 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4520 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4521 reload_flag=$lt_cv_ld_reload_flag
4522 case $reload_flag in
4524 *) reload_flag=" $reload_flag" ;;
4526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4529 if test "$GCC" = yes; then
4530 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4532 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4537 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4538 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4539 if test "${lt_cv_path_NM+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 if test -n "$NM"; then
4543 # Let the user override the test.
4546 lt_nm_to_check="${ac_tool_prefix}nm"
4547 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4548 lt_nm_to_check="$lt_nm_to_check nm"
4550 for lt_tmp_nm in $lt_nm_to_check; do
4551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4552 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4554 test -z "$ac_dir" && ac_dir=.
4555 tmp_nm="$ac_dir/$lt_tmp_nm"
4556 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4557 # Check to see if the nm accepts a BSD-compat flag.
4558 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4559 # nm: unknown option "B" ignored
4560 # Tru64's nm complains that /dev/null is an invalid object file
4561 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4562 */dev/null* | *'Invalid file or object type'*)
4563 lt_cv_path_NM="$tmp_nm -B"
4567 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4569 lt_cv_path_NM="$tmp_nm -p"
4573 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4574 continue # so that we can try to find one that supports BSD flags
4583 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4586 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4587 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4590 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4593 if test "$LN_S" = "ln -s"; then
4594 { echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6; }
4597 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4598 echo "${ECHO_T}no, using $LN_S" >&6; }
4601 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4602 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4603 if test "${lt_cv_deplibs_check_method+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 lt_cv_file_magic_cmd='$MAGIC_CMD'
4607 lt_cv_file_magic_test_file=
4608 lt_cv_deplibs_check_method='unknown'
4609 # Need to set the preceding variable on all platforms that support
4610 # interlibrary dependencies.
4611 # 'none' -- dependencies not supported.
4612 # `unknown' -- same as none, but documents that we really don't know.
4613 # 'pass_all' -- all dependencies passed with no checks.
4614 # 'test_compile' -- check by making test program.
4615 # 'file_magic [[regex]]' -- check by looking for files in library path
4616 # which responds to the $file_magic_cmd with a given extended regex.
4617 # If you have `file' or equivalent on your system and you're not sure
4618 # whether `pass_all' will *always* work, you probably want this one.
4622 lt_cv_deplibs_check_method=pass_all
4626 lt_cv_deplibs_check_method=pass_all
4630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4631 lt_cv_file_magic_cmd='/usr/bin/file -L'
4632 lt_cv_file_magic_test_file=/shlib/libc.so
4636 # func_win32_libid is a shell function defined in ltmain.sh
4637 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4638 lt_cv_file_magic_cmd='func_win32_libid'
4642 # Base MSYS/MinGW do not provide the 'file' command needed by
4643 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4644 # unless we find 'file', for example because we are cross-compiling.
4645 if ( file / ) >/dev/null 2>&1; then
4646 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4647 lt_cv_file_magic_cmd='func_win32_libid'
4649 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4650 lt_cv_file_magic_cmd='$OBJDUMP -f'
4654 darwin* | rhapsody*)
4655 lt_cv_deplibs_check_method=pass_all
4658 freebsd* | dragonfly*)
4659 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4662 # Not sure whether the presence of OpenBSD here was a mistake.
4663 # Let's accept both of them until this is cleared up.
4664 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4665 lt_cv_file_magic_cmd=/usr/bin/file
4666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4670 lt_cv_deplibs_check_method=pass_all
4675 lt_cv_deplibs_check_method=pass_all
4678 hpux10.20* | hpux11*)
4679 lt_cv_file_magic_cmd=/usr/bin/file
4682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4683 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4686 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]'
4687 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4690 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4691 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4697 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4701 irix5* | irix6* | nonstopux*)
4703 *-32|*"-32 ") libmagic=32-bit;;
4704 *-n32|*"-n32 ") libmagic=N32;;
4705 *-64|*"-64 ") libmagic=64-bit;;
4706 *) libmagic=never-match;;
4708 lt_cv_deplibs_check_method=pass_all
4711 # This must be Linux ELF.
4712 linux* | k*bsd*-gnu)
4713 lt_cv_deplibs_check_method=pass_all
4716 netbsd* | netbsdelf*-gnu)
4717 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4726 lt_cv_file_magic_cmd=/usr/bin/file
4727 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4731 lt_cv_deplibs_check_method=unknown
4735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4742 osf3* | osf4* | osf5*)
4743 lt_cv_deplibs_check_method=pass_all
4747 lt_cv_deplibs_check_method=pass_all
4751 lt_cv_deplibs_check_method=pass_all
4755 case $host_vendor in
4757 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]'
4758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4761 lt_cv_deplibs_check_method=pass_all
4764 lt_cv_file_magic_cmd='/bin/file'
4765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4768 lt_cv_file_magic_cmd='/bin/file'
4769 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4770 lt_cv_file_magic_test_file=/lib/libc.so
4773 lt_cv_deplibs_check_method=pass_all
4776 lt_cv_deplibs_check_method=pass_all
4781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4782 lt_cv_deplibs_check_method=pass_all
4787 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4788 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4789 file_magic_cmd=$lt_cv_file_magic_cmd
4790 deplibs_check_method=$lt_cv_deplibs_check_method
4791 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4796 # If no C compiler was specified, use CC.
4799 # If no C compiler flags were specified, use CFLAGS.
4800 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4802 # Allow CC to be a program name with arguments.
4806 # Check whether --enable-libtool-lock was given.
4807 if test "${enable_libtool_lock+set}" = set; then
4808 enableval=$enable_libtool_lock;
4811 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4813 # Some flags need to be propagated to the compiler or linker for good
4817 # Find out which ABI we are using.
4818 echo 'int i;' > conftest.$ac_ext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; then
4824 case `/usr/bin/file conftest.$ac_objext` in
4836 # Find out which ABI we are using.
4837 echo '#line 4837 "configure"' > conftest.$ac_ext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; then
4843 if test "$lt_cv_prog_gnu_ld" = yes; then
4844 case `/usr/bin/file conftest.$ac_objext` in
4846 LD="${LD-ld} -melf32bsmip"
4849 LD="${LD-ld} -melf32bmipn32"
4852 LD="${LD-ld} -melf64bmip"
4856 case `/usr/bin/file conftest.$ac_objext` in
4872 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4873 s390*-*linux*|sparc*-*linux*)
4874 # Find out which ABI we are using.
4875 echo 'int i;' > conftest.$ac_ext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; then
4881 case `/usr/bin/file conftest.o` in
4884 x86_64-*kfreebsd*-gnu)
4885 LD="${LD-ld} -m elf_i386_fbsd"
4888 LD="${LD-ld} -m elf_i386"
4890 ppc64-*linux*|powerpc64-*linux*)
4891 LD="${LD-ld} -m elf32ppclinux"
4894 LD="${LD-ld} -m elf_s390"
4897 LD="${LD-ld} -m elf32_sparc"
4903 x86_64-*kfreebsd*-gnu)
4904 LD="${LD-ld} -m elf_x86_64_fbsd"
4907 LD="${LD-ld} -m elf_x86_64"
4909 ppc*-*linux*|powerpc*-*linux*)
4910 LD="${LD-ld} -m elf64ppc"
4913 LD="${LD-ld} -m elf64_s390"
4916 LD="${LD-ld} -m elf64_sparc"
4926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4927 SAVE_CFLAGS="$CFLAGS"
4928 CFLAGS="$CFLAGS -belf"
4929 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4930 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4931 if test "${lt_cv_cc_needs_belf+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (ac_try="$ac_link"
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_link") 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest$ac_exeext &&
4972 $as_test_x conftest$ac_exeext; then
4973 lt_cv_cc_needs_belf=yes
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 lt_cv_cc_needs_belf=no
4981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4982 conftest$ac_exeext conftest.$ac_ext
4984 ac_cpp='$CPP $CPPFLAGS'
4985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4991 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4992 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4993 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4994 CFLAGS="$SAVE_CFLAGS"
4998 # Find out which ABI we are using.
4999 echo 'int i;' > conftest.$ac_ext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001 (eval $ac_compile) 2>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; then
5005 case `/usr/bin/file conftest.o` in
5007 case $lt_cv_prog_gnu_ld in
5008 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5010 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5024 need_locks="$enable_libtool_lock"
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5033 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5034 # On Suns, sometimes $CPP names a directory.
5035 if test -n "$CPP" && test -d "$CPP"; then
5038 if test -z "$CPP"; then
5039 if test "${ac_cv_prog_CPP+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 # Double quotes because CPP needs to be expanded
5043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5061 # include <limits.h>
5063 # include <assert.h>
5067 if { (ac_try="$ac_cpp conftest.$ac_ext"
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null && {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5088 # Broken: fails on valid input.
5092 rm -f conftest.err conftest.$ac_ext
5094 # OK, works on sane cases. Now check whether nonexistent headers
5095 # can be detected and how.
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5104 if { (ac_try="$ac_cpp conftest.$ac_ext"
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5112 grep -v '^ *+' conftest.er1 >conftest.err
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } >/dev/null && {
5117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5118 test ! -s conftest.err
5120 # Broken: success on invalid input.
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 # Passes both tests.
5131 rm -f conftest.err conftest.$ac_ext
5134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5135 rm -f conftest.err conftest.$ac_ext
5136 if $ac_preproc_ok; then
5148 { echo "$as_me:$LINENO: result: $CPP" >&5
5149 echo "${ECHO_T}$CPP" >&6; }
5151 for ac_c_preproc_warn_flag in '' yes
5153 # Use a header file that comes with gcc, so configuring glibc
5154 # with a fresh cross-compiler works.
5155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156 # <limits.h> exists even on freestanding compilers.
5157 # On the NeXT, cc -E runs the code through the compiler's parser,
5158 # not just through cpp. "Syntax error" is here to catch this case.
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5166 # include <limits.h>
5168 # include <assert.h>
5172 if { (ac_try="$ac_cpp conftest.$ac_ext"
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5180 grep -v '^ *+' conftest.er1 >conftest.err
5182 cat conftest.err >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } >/dev/null && {
5185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5186 test ! -s conftest.err
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193 # Broken: fails on valid input.
5197 rm -f conftest.err conftest.$ac_ext
5199 # OK, works on sane cases. Now check whether nonexistent headers
5200 # can be detected and how.
5201 cat >conftest.$ac_ext <<_ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 #include <ac_nonexistent.h>
5209 if { (ac_try="$ac_cpp conftest.$ac_ext"
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217 grep -v '^ *+' conftest.er1 >conftest.err
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null && {
5222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5223 test ! -s conftest.err
5225 # Broken: success on invalid input.
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 # Passes both tests.
5236 rm -f conftest.err conftest.$ac_ext
5239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5240 rm -f conftest.err conftest.$ac_ext
5241 if $ac_preproc_ok; then
5244 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5245 See \`config.log' for more details." >&5
5246 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5247 See \`config.log' for more details." >&2;}
5248 { (exit 1); exit 1; }; }
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5260 if test "${ac_cv_header_stdc+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 cat >conftest.$ac_ext <<_ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5282 rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_compile") 2>conftest.er1
5291 grep -v '^ *+' conftest.er1 >conftest.err
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && {
5296 test -z "$ac_c_werror_flag" ||
5297 test ! -s conftest.err
5298 } && test -s conftest.$ac_objext; then
5299 ac_cv_header_stdc=yes
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 ac_cv_header_stdc=no
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 if test $ac_cv_header_stdc = yes; then
5310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 $EGREP "memchr" >/dev/null 2>&1; then
5324 ac_cv_header_stdc=no
5330 if test $ac_cv_header_stdc = yes; then
5331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5342 $EGREP "free" >/dev/null 2>&1; then
5345 ac_cv_header_stdc=no
5351 if test $ac_cv_header_stdc = yes; then
5352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5353 if test "$cross_compiling" = yes; then
5356 cat >conftest.$ac_ext <<_ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5364 #if ((' ' & 0x0FF) == 0x020)
5365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5368 # define ISLOWER(c) \
5369 (('a' <= (c) && (c) <= 'i') \
5370 || ('j' <= (c) && (c) <= 'r') \
5371 || ('s' <= (c) && (c) <= 'z'))
5372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5380 for (i = 0; i < 256; i++)
5381 if (XOR (islower (i), ISLOWER (i))
5382 || toupper (i) != TOUPPER (i))
5387 rm -f conftest$ac_exeext
5388 if { (ac_try="$ac_link"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_link") 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5398 { (case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_try") 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5409 echo "$as_me: program exited with status $ac_status" >&5
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_cv_header_stdc=no
5416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5422 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5423 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5424 if test $ac_cv_header_stdc = yes; then
5426 cat >>confdefs.h <<\_ACEOF
5427 #define STDC_HEADERS 1
5432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5443 inttypes.h stdint.h unistd.h
5445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5459 #include <$ac_header>
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 eval "$as_ac_Header=yes"
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 eval "$as_ac_Header=no"
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 ac_res=`eval echo '${'$as_ac_Header'}'`
5489 { echo "$as_me:$LINENO: result: $ac_res" >&5
5490 echo "${ECHO_T}$ac_res" >&6; }
5491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5492 cat >>confdefs.h <<_ACEOF
5493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502 for ac_header in dlfcn.h
5504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_res=`eval echo '${'$as_ac_Header'}'`
5512 { echo "$as_me:$LINENO: result: $ac_res" >&5
5513 echo "${ECHO_T}$ac_res" >&6; }
5515 # Is the header compilable?
5516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 $ac_includes_default
5525 #include <$ac_header>
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && {
5541 test -z "$ac_c_werror_flag" ||
5542 test ! -s conftest.err
5543 } && test -s conftest.$ac_objext; then
5544 ac_header_compiler=yes
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_header_compiler=no
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 echo "${ECHO_T}$ac_header_compiler" >&6; }
5556 # Is the header present?
5557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #include <$ac_header>
5567 if { (ac_try="$ac_cpp conftest.$ac_ext"
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } >/dev/null && {
5580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5583 ac_header_preproc=yes
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_header_preproc=no
5591 rm -f conftest.err conftest.$ac_ext
5592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5593 echo "${ECHO_T}$ac_header_preproc" >&6; }
5595 # So? What about this header?
5596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5602 ac_header_preproc=yes
5605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 eval "$as_ac_Header=\$ac_header_preproc"
5627 ac_res=`eval echo '${'$as_ac_Header'}'`
5628 { echo "$as_me:$LINENO: result: $ac_res" >&5
5629 echo "${ECHO_T}$ac_res" >&6; }
5632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5633 cat >>confdefs.h <<_ACEOF
5634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5643 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5644 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5645 (test "X$CXX" != "Xg++"))) ; then
5647 ac_cpp='$CXXCPP $CPPFLAGS'
5648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5651 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5652 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5653 if test -z "$CXXCPP"; then
5654 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 # Double quotes because CXXCPP needs to be expanded
5658 for CXXCPP in "$CXX -E" "/lib/cpp"
5661 for ac_cxx_preproc_warn_flag in '' yes
5663 # Use a header file that comes with gcc, so configuring glibc
5664 # with a fresh cross-compiler works.
5665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666 # <limits.h> exists even on freestanding compilers.
5667 # On the NeXT, cc -E runs the code through the compiler's parser,
5668 # not just through cpp. "Syntax error" is here to catch this case.
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5676 # include <limits.h>
5678 # include <assert.h>
5682 if { (ac_try="$ac_cpp conftest.$ac_ext"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } >/dev/null && {
5695 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5696 test ! -s conftest.err
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 # Broken: fails on valid input.
5707 rm -f conftest.err conftest.$ac_ext
5709 # OK, works on sane cases. Now check whether nonexistent headers
5710 # can be detected and how.
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <ac_nonexistent.h>
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null && {
5732 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5733 test ! -s conftest.err
5735 # Broken: success on invalid input.
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 # Passes both tests.
5746 rm -f conftest.err conftest.$ac_ext
5749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5750 rm -f conftest.err conftest.$ac_ext
5751 if $ac_preproc_ok; then
5756 ac_cv_prog_CXXCPP=$CXXCPP
5759 CXXCPP=$ac_cv_prog_CXXCPP
5761 ac_cv_prog_CXXCPP=$CXXCPP
5763 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5764 echo "${ECHO_T}$CXXCPP" >&6; }
5766 for ac_cxx_preproc_warn_flag in '' yes
5768 # Use a header file that comes with gcc, so configuring glibc
5769 # with a fresh cross-compiler works.
5770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771 # <limits.h> exists even on freestanding compilers.
5772 # On the NeXT, cc -E runs the code through the compiler's parser,
5773 # not just through cpp. "Syntax error" is here to catch this case.
5774 cat >conftest.$ac_ext <<_ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 # include <limits.h>
5783 # include <assert.h>
5787 if { (ac_try="$ac_cpp conftest.$ac_ext"
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } >/dev/null && {
5800 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5801 test ! -s conftest.err
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 # Broken: fails on valid input.
5812 rm -f conftest.err conftest.$ac_ext
5814 # OK, works on sane cases. Now check whether nonexistent headers
5815 # can be detected and how.
5816 cat >conftest.$ac_ext <<_ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #include <ac_nonexistent.h>
5824 if { (ac_try="$ac_cpp conftest.$ac_ext"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } >/dev/null && {
5837 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5838 test ! -s conftest.err
5840 # Broken: success on invalid input.
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 # Passes both tests.
5851 rm -f conftest.err conftest.$ac_ext
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.err conftest.$ac_ext
5856 if $ac_preproc_ok; then
5859 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5860 See \`config.log' for more details." >&5
5861 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5862 See \`config.log' for more details." >&2;}
5863 { (exit 1); exit 1; }; }
5867 ac_cpp='$CXXCPP $CPPFLAGS'
5868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5876 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5877 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5879 if test -n "$ac_tool_prefix"; then
5880 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
5882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886 if test "${ac_cv_prog_F77+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 if test -n "$F77"; then
5890 ac_cv_prog_F77="$F77" # Let the user override the test.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 if test -n "$F77"; then
5911 { echo "$as_me:$LINENO: result: $F77" >&5
5912 echo "${ECHO_T}$F77" >&6; }
5914 { echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6; }
5919 test -n "$F77" && break
5922 if test -z "$F77"; then
5924 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
5926 # Extract the first word of "$ac_prog", so it can be a program name with args.
5927 set dummy $ac_prog; ac_word=$2
5928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 if test -n "$ac_ct_F77"; then
5934 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_prog_ac_ct_F77="$ac_prog"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5954 if test -n "$ac_ct_F77"; then
5955 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5956 echo "${ECHO_T}$ac_ct_F77" >&6; }
5958 { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5963 test -n "$ac_ct_F77" && break
5966 if test "x$ac_ct_F77" = x; then
5969 case $cross_compiling:$ac_tool_warned in
5971 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5972 whose name does not start with the host triplet. If you think this
5973 configuration is useful to you, please write to autoconf@gnu.org." >&5
5974 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5975 whose name does not start with the host triplet. If you think this
5976 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5977 ac_tool_warned=yes ;;
5984 # Provide some information about the compiler.
5985 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5986 ac_compiler=`set X $ac_compile; echo $2`
5987 { (ac_try="$ac_compiler --version >&5"
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_compiler --version >&5") 2>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }
5997 { (ac_try="$ac_compiler -v >&5"
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compiler -v >&5") 2>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }
6007 { (ac_try="$ac_compiler -V >&5"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compiler -V >&5") 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }
6019 # If we don't use `.F' as extension, the preprocessor is not run on the
6020 # input file. (Note that this only needs to work for GNU compilers.)
6023 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6024 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6025 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 cat >conftest.$ac_ext <<_ACEOF
6036 rm -f conftest.$ac_objext
6037 if { (ac_try="$ac_compile"
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6045 grep -v '^ *+' conftest.er1 >conftest.err
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } && {
6050 test -z "$ac_f77_werror_flag" ||
6051 test ! -s conftest.err
6052 } && test -s conftest.$ac_objext; then
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6065 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6066 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6068 ac_test_FFLAGS=${FFLAGS+set}
6069 ac_save_FFLAGS=$FFLAGS
6071 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6072 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6073 if test "${ac_cv_prog_f77_g+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 cat >conftest.$ac_ext <<_ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (ac_try="$ac_compile"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_compile") 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && {
6096 test -z "$ac_f77_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest.$ac_objext; then
6099 ac_cv_prog_f77_g=yes
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6111 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6112 if test "$ac_test_FFLAGS" = set; then
6113 FFLAGS=$ac_save_FFLAGS
6114 elif test $ac_cv_prog_f77_g = yes; then
6115 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6121 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6128 G77=`test $ac_compiler_gnu = yes && echo yes`
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6138 # find the maximum length of command line arguments
6139 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6140 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6141 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 # On DJGPP, this test can blow up pretty badly due to problems in libc
6150 # (any single argument exceeding 2000 bytes causes a buffer overrun
6151 # during glob expansion). Even if it were fixed, the result of this
6152 # check would be larger than it should be.
6153 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6157 # Under GNU Hurd, this test is not required because there is
6158 # no limit to the length of command line arguments.
6159 # Libtool will interpret -1 as no limit whatsoever
6160 lt_cv_sys_max_cmd_len=-1;
6164 # On Win9x/ME, this test blows up -- it succeeds, but takes
6165 # about 5 minutes as the teststring grows exponentially.
6166 # Worse, since 9x/ME are not pre-emptively multitasking,
6167 # you end up with a "frozen" computer, even though with patience
6168 # the test eventually succeeds (with a max line length of 256k).
6169 # Instead, let's just punt: use the minimum linelength reported by
6170 # all of the supported platforms: 8192 (on NT/2K/XP).
6171 lt_cv_sys_max_cmd_len=8192;
6175 # On AmigaOS with pdksh, this test takes hours, literally.
6176 # So we just punt and use a minimum line length of 8192.
6177 lt_cv_sys_max_cmd_len=8192;
6180 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6181 # This has been around since 386BSD, at least. Likely further.
6182 if test -x /sbin/sysctl; then
6183 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6184 elif test -x /usr/sbin/sysctl; then
6185 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6187 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6189 # And add a safety zone
6190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6195 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6196 lt_cv_sys_max_cmd_len=196608
6200 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6201 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6202 # nice to cause kernel panics so lets avoid the loop below.
6203 # First set a reasonable default.
6204 lt_cv_sys_max_cmd_len=16384
6206 if test -x /sbin/sysconfig; then
6207 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6208 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6213 lt_cv_sys_max_cmd_len=102400
6215 sysv5* | sco5v6* | sysv4.2uw2*)
6216 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6217 if test -n "$kargmax"; then
6218 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6220 lt_cv_sys_max_cmd_len=32768
6224 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6225 if test -n "$lt_cv_sys_max_cmd_len"; then
6226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6229 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6230 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6231 = "XX$teststring") >/dev/null 2>&1 &&
6232 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6233 lt_cv_sys_max_cmd_len=$new_result &&
6234 test $i != 17 # 1/2 MB should be enough
6237 teststring=$teststring$teststring
6240 # Add a significant safety factor because C++ compilers can tack on massive
6241 # amounts of additional arguments before passing them to the linker.
6242 # It appears as though 1/2 is a usable value.
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6250 if test -n $lt_cv_sys_max_cmd_len ; then
6251 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6252 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6254 { echo "$as_me:$LINENO: result: none" >&5
6255 echo "${ECHO_T}none" >&6; }
6262 # Check for command to grab the raw symbol name followed by C symbol from nm.
6263 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6264 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6265 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 # These are sane defaults that work on at least a few old systems.
6270 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6272 # Character class describing NM global symbol codes.
6273 symcode='[BCDEGRST]'
6275 # Regexp to match symbols that can be accessed directly from C.
6276 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6278 # Transform an extracted symbol line into a proper C declaration
6279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6281 # Transform an extracted symbol line into symbol name and symbol address
6282 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'"
6284 # Define system-specific variables.
6289 cygwin* | mingw* | pw32*)
6290 symcode='[ABCDGISTW]'
6292 hpux*) # Its linker distinguishes data from code symbols
6293 if test "$host_cpu" = ia64; then
6294 symcode='[ABCDEGRST]'
6296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6297 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'"
6299 linux* | k*bsd*-gnu)
6300 if test "$host_cpu" = ia64; then
6301 symcode='[ABCDGIRSTW]'
6302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6303 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'"
6307 symcode='[BCDEGRST]'
6310 symcode='[BCDEGQRST]'
6321 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6329 # Handle CRLF in mingw tool chain
6333 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6337 # If we're using GNU nm, then use its standard symbol codes.
6338 case `$NM -V 2>&1` in
6339 *GNU* | *'with BFD'*)
6340 symcode='[ABCDGIRSTW]' ;;
6343 # Try without a prefix undercore, then with it.
6344 for ac_symprfx in "" "_"; do
6346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6347 symxfrm="\\1 $ac_symprfx\\2 \\2"
6349 # Write the raw and C identifiers.
6350 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6352 # Check to see that the pipe works correctly.
6356 cat > conftest.$ac_ext <<EOF
6361 void nm_test_func(){}
6365 int main(){nm_test_var='a';nm_test_func();return(0);}
6368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369 (eval $ac_compile) 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; then
6373 # Now try to grab the symbols.
6375 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6376 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } && test -s "$nlist"; then
6380 # Try sorting and uniquifying the output.
6381 if sort "$nlist" | uniq > "$nlist"T; then
6382 mv -f "$nlist"T "$nlist"
6387 # Make sure that we snagged all the symbols we need.
6388 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6389 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6390 cat <<EOF > conftest.$ac_ext
6396 # Now generate the symbol file.
6397 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6399 cat <<EOF >> conftest.$ac_ext
6400 #if defined (__STDC__) && __STDC__
6401 # define lt_ptr_t void *
6403 # define lt_ptr_t char *
6407 /* The mapping between symbol names and symbols. */
6412 lt_preloaded_symbols[] =
6415 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6416 cat <<\EOF >> conftest.$ac_ext
6424 # Now try linking the two files.
6425 mv conftest.$ac_objext conftstm.$ac_objext
6426 lt_save_LIBS="$LIBS"
6427 lt_save_CFLAGS="$CFLAGS"
6428 LIBS="conftstm.$ac_objext"
6429 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6437 LIBS="$lt_save_LIBS"
6438 CFLAGS="$lt_save_CFLAGS"
6440 echo "cannot find nm_test_func in $nlist" >&5
6443 echo "cannot find nm_test_var in $nlist" >&5
6446 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6449 echo "$progname: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6452 rm -rf conftest* conftst*
6454 # Do not use the global_symbol_pipe unless it works.
6455 if test "$pipe_works" = yes; then
6458 lt_cv_sys_global_symbol_pipe=
6464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6465 lt_cv_sys_global_symbol_to_cdecl=
6467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6468 { echo "$as_me:$LINENO: result: failed" >&5
6469 echo "${ECHO_T}failed" >&6; }
6471 { echo "$as_me:$LINENO: result: ok" >&5
6472 echo "${ECHO_T}ok" >&6; }
6475 { echo "$as_me:$LINENO: checking for objdir" >&5
6476 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6477 if test "${lt_cv_objdir+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 rm -f .libs 2>/dev/null
6481 mkdir .libs 2>/dev/null
6482 if test -d .libs; then
6485 # MS-DOS does not allow filenames that begin with a dot.
6488 rmdir .libs 2>/dev/null
6490 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6491 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6492 objdir=$lt_cv_objdir
6500 # AIX sometimes has problems with the GCC collect2 program. For some
6501 # reason, if we set the COLLECT_NAMES environment variable, the problems
6502 # vanish in a puff of smoke.
6503 if test "X${COLLECT_NAMES+set}" != Xset; then
6505 export COLLECT_NAMES
6510 # Sed substitution that helps us do robust quoting. It backslashifies
6511 # metacharacters that are still active within double-quoted strings.
6512 Xsed='sed -e 1s/^X//'
6513 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6515 # Same as above, but do not quote variable references.
6516 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6518 # Sed substitution to delay expansion of an escaped shell variable in a
6519 # double_quote_subst'ed string.
6520 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6522 # Sed substitution to avoid accidental globbing in evaled expressions
6523 no_glob_subst='s/\*/\\\*/g'
6529 default_ofile=libtool
6530 can_build_shared=yes
6532 # All known linkers require a `.a' archive for static linking (except MSVC,
6533 # which needs '.lib').
6535 ltmain="$ac_aux_dir/ltmain.sh"
6536 ofile="$default_ofile"
6537 with_gnu_ld="$lt_cv_prog_gnu_ld"
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}ar; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_prog_AR+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 if test -n "$AR"; then
6548 ac_cv_prog_AR="$AR" # Let the user override the test.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_prog_AR="${ac_tool_prefix}ar"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 if test -n "$AR"; then
6569 { echo "$as_me:$LINENO: result: $AR" >&5
6570 echo "${ECHO_T}$AR" >&6; }
6572 { echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6; }
6578 if test -z "$ac_cv_prog_AR"; then
6580 # Extract the first word of "ar", so it can be a program name with args.
6581 set dummy ar; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 if test -n "$ac_ct_AR"; then
6588 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_ac_ct_AR="ar"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6608 if test -n "$ac_ct_AR"; then
6609 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6610 echo "${ECHO_T}$ac_ct_AR" >&6; }
6612 { echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6; }
6616 if test "x$ac_ct_AR" = x; then
6619 case $cross_compiling:$ac_tool_warned in
6621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6622 whose name does not start with the host triplet. If you think this
6623 configuration is useful to you, please write to autoconf@gnu.org." >&5
6624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6625 whose name does not start with the host triplet. If you think this
6626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6627 ac_tool_warned=yes ;;
6635 if test -n "$ac_tool_prefix"; then
6636 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 if test -n "$RANLIB"; then
6644 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 RANLIB=$ac_cv_prog_RANLIB
6664 if test -n "$RANLIB"; then
6665 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6666 echo "${ECHO_T}$RANLIB" >&6; }
6668 { echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6; }
6674 if test -z "$ac_cv_prog_RANLIB"; then
6675 ac_ct_RANLIB=$RANLIB
6676 # Extract the first word of "ranlib", so it can be a program name with args.
6677 set dummy ranlib; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 if test -n "$ac_ct_RANLIB"; then
6684 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_ac_ct_RANLIB="ranlib"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6704 if test -n "$ac_ct_RANLIB"; then
6705 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6706 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6712 if test "x$ac_ct_RANLIB" = x; then
6715 case $cross_compiling:$ac_tool_warned in
6717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6718 whose name does not start with the host triplet. If you think this
6719 configuration is useful to you, please write to autoconf@gnu.org." >&5
6720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet. If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6723 ac_tool_warned=yes ;;
6725 RANLIB=$ac_ct_RANLIB
6728 RANLIB="$ac_cv_prog_RANLIB"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}strip; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_prog_STRIP+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 if test -n "$STRIP"; then
6740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 STRIP=$ac_cv_prog_STRIP
6760 if test -n "$STRIP"; then
6761 { echo "$as_me:$LINENO: result: $STRIP" >&5
6762 echo "${ECHO_T}$STRIP" >&6; }
6764 { echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6; }
6770 if test -z "$ac_cv_prog_STRIP"; then
6772 # Extract the first word of "strip", so it can be a program name with args.
6773 set dummy strip; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 if test -n "$ac_ct_STRIP"; then
6780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_STRIP="strip"
6790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6800 if test -n "$ac_ct_STRIP"; then
6801 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6802 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6804 { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6808 if test "x$ac_ct_STRIP" = x; then
6811 case $cross_compiling:$ac_tool_warned in
6813 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet. If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&5
6816 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6817 whose name does not start with the host triplet. If you think this
6818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6819 ac_tool_warned=yes ;;
6824 STRIP="$ac_cv_prog_STRIP"
6829 old_CFLAGS="$CFLAGS"
6831 # Set sane defaults for various variables
6832 test -z "$AR" && AR=ar
6833 test -z "$AR_FLAGS" && AR_FLAGS=cru
6834 test -z "$AS" && AS=as
6835 test -z "$CC" && CC=cc
6836 test -z "$LTCC" && LTCC=$CC
6837 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6838 test -z "$DLLTOOL" && DLLTOOL=dlltool
6839 test -z "$LD" && LD=ld
6840 test -z "$LN_S" && LN_S="ln -s"
6841 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6842 test -z "$NM" && NM=nm
6843 test -z "$SED" && SED=sed
6844 test -z "$OBJDUMP" && OBJDUMP=objdump
6845 test -z "$RANLIB" && RANLIB=:
6846 test -z "$STRIP" && STRIP=:
6847 test -z "$ac_objext" && ac_objext=o
6849 # Determine commands to create old-style static archives.
6850 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6851 old_postinstall_cmds='chmod 644 $oldlib'
6852 old_postuninstall_cmds=
6854 if test -n "$RANLIB"; then
6857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6860 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6863 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6866 for cc_temp in $compiler""; do
6868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6874 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6877 # Only perform the check for file, if the check method requires it
6878 case $deplibs_check_method in
6880 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6881 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6882 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6891 lt_save_MAGIC_CMD="$MAGIC_CMD"
6892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6894 for ac_dir in $ac_dummy; do
6896 test -z "$ac_dir" && ac_dir=.
6897 if test -f $ac_dir/${ac_tool_prefix}file; then
6898 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6899 if test -n "$file_magic_test_file"; then
6900 case $deplibs_check_method in
6902 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6905 $EGREP "$file_magic_regex" > /dev/null; then
6910 *** Warning: the command libtool uses to detect shared libraries,
6911 *** $file_magic_cmd, produces output that libtool cannot recognize.
6912 *** The result is that libtool may fail to recognize shared libraries
6913 *** as such. This will affect the creation of libtool libraries that
6914 *** depend on shared libraries, but programs linked with such libtool
6915 *** libraries will work regardless of this problem. Nevertheless, you
6916 *** may want to report the problem to your system manager and/or to
6917 *** bug-libtool@gnu.org
6927 MAGIC_CMD="$lt_save_MAGIC_CMD"
6932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6933 if test -n "$MAGIC_CMD"; then
6934 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6935 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6941 if test -z "$lt_cv_path_MAGIC_CMD"; then
6942 if test -n "$ac_tool_prefix"; then
6943 { echo "$as_me:$LINENO: checking for file" >&5
6944 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6945 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6953 lt_save_MAGIC_CMD="$MAGIC_CMD"
6954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6955 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6956 for ac_dir in $ac_dummy; do
6958 test -z "$ac_dir" && ac_dir=.
6959 if test -f $ac_dir/file; then
6960 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6961 if test -n "$file_magic_test_file"; then
6962 case $deplibs_check_method in
6964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6967 $EGREP "$file_magic_regex" > /dev/null; then
6972 *** Warning: the command libtool uses to detect shared libraries,
6973 *** $file_magic_cmd, produces output that libtool cannot recognize.
6974 *** The result is that libtool may fail to recognize shared libraries
6975 *** as such. This will affect the creation of libtool libraries that
6976 *** depend on shared libraries, but programs linked with such libtool
6977 *** libraries will work regardless of this problem. Nevertheless, you
6978 *** may want to report the problem to your system manager and/or to
6979 *** bug-libtool@gnu.org
6989 MAGIC_CMD="$lt_save_MAGIC_CMD"
6994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995 if test -n "$MAGIC_CMD"; then
6996 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6997 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7014 rhapsody* | darwin*)
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 if test -n "$DSYMUTIL"; then
7024 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7044 if test -n "$DSYMUTIL"; then
7045 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7046 echo "${ECHO_T}$DSYMUTIL" >&6; }
7048 { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7054 if test -z "$ac_cv_prog_DSYMUTIL"; then
7055 ac_ct_DSYMUTIL=$DSYMUTIL
7056 # Extract the first word of "dsymutil", so it can be a program name with args.
7057 set dummy dsymutil; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 if test -n "$ac_ct_DSYMUTIL"; then
7064 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7084 if test -n "$ac_ct_DSYMUTIL"; then
7085 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7086 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7088 { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7092 if test "x$ac_ct_DSYMUTIL" = x; then
7095 case $cross_compiling:$ac_tool_warned in
7097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7098 whose name does not start with the host triplet. If you think this
7099 configuration is useful to you, please write to autoconf@gnu.org." >&5
7100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet. If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7103 ac_tool_warned=yes ;;
7105 DSYMUTIL=$ac_ct_DSYMUTIL
7108 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7111 if test -n "$ac_tool_prefix"; then
7112 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 if test -n "$NMEDIT"; then
7120 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 NMEDIT=$ac_cv_prog_NMEDIT
7140 if test -n "$NMEDIT"; then
7141 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7142 echo "${ECHO_T}$NMEDIT" >&6; }
7144 { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7150 if test -z "$ac_cv_prog_NMEDIT"; then
7151 ac_ct_NMEDIT=$NMEDIT
7152 # Extract the first word of "nmedit", so it can be a program name with args.
7153 set dummy nmedit; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 if test -n "$ac_ct_NMEDIT"; then
7160 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7180 if test -n "$ac_ct_NMEDIT"; then
7181 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7182 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7188 if test "x$ac_ct_NMEDIT" = x; then
7191 case $cross_compiling:$ac_tool_warned in
7193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7194 whose name does not start with the host triplet. If you think this
7195 configuration is useful to you, please write to autoconf@gnu.org." >&5
7196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet. If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7199 ac_tool_warned=yes ;;
7201 NMEDIT=$ac_ct_NMEDIT
7204 NMEDIT="$ac_cv_prog_NMEDIT"
7208 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7209 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7210 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 lt_cv_apple_cc_single_mod=no
7214 if test -z "${LT_MULTI_MODULE}"; then
7215 # By default we will add the -single_module flag. You can override
7216 # by either setting the environment variable LT_MULTI_MODULE
7217 # non-empty at configure time, or by adding -multi_module to the
7219 echo "int foo(void){return 1;}" > conftest.c
7220 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7221 -dynamiclib ${wl}-single_module conftest.c
7222 if test -f libconftest.dylib; then
7223 lt_cv_apple_cc_single_mod=yes
7224 rm -rf libconftest.dylib*
7229 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7230 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7231 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7232 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7233 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 lt_cv_ld_exported_symbols_list=no
7237 save_LDFLAGS=$LDFLAGS
7238 echo "_main" > conftest.sym
7239 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7240 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (ac_try="$ac_link"
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262 (eval "$ac_link") 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest$ac_exeext &&
7272 $as_test_x conftest$ac_exeext; then
7273 lt_cv_ld_exported_symbols_list=yes
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 lt_cv_ld_exported_symbols_list=no
7281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7282 conftest$ac_exeext conftest.$ac_ext
7283 LDFLAGS="$save_LDFLAGS"
7286 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7287 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7289 rhapsody* | darwin1.[0123])
7290 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7292 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7294 # if running on 10.5 or later, the deployment target defaults
7295 # to the OS version, if on x86, and 10.4, the deployment
7296 # target defaults to 10.4. Don't you love it?
7297 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7298 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7301 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7303 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7307 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7308 _lt_dar_single_mod='$single_module'
7310 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7311 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7313 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7315 if test "$DSYMUTIL" != ":"; then
7316 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7327 # Check whether --enable-libtool-lock was given.
7328 if test "${enable_libtool_lock+set}" = set; then
7329 enableval=$enable_libtool_lock;
7332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7335 # Check whether --with-pic was given.
7336 if test "${with_pic+set}" = set; then
7337 withval=$with_pic; pic_mode="$withval"
7342 test -z "$pic_mode" && pic_mode=default
7344 # Use C for the default configuration in the libtool script
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354 # Source file extension for C test sources.
7357 # Object file extension for compiled C test sources.
7361 # Code to be used in simple compile tests
7362 lt_simple_compile_test_code="int some_variable = 0;"
7364 # Code to be used in simple link tests
7365 lt_simple_link_test_code='int main(){return(0);}'
7368 # If no C compiler was specified, use CC.
7371 # If no C compiler flags were specified, use CFLAGS.
7372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7374 # Allow CC to be a program name with arguments.
7378 # save warnings/boilerplate of simple test code
7379 ac_outfile=conftest.$ac_objext
7380 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7382 _lt_compiler_boilerplate=`cat conftest.err`
7385 ac_outfile=conftest.$ac_objext
7386 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7388 _lt_linker_boilerplate=`cat conftest.err`
7393 lt_prog_compiler_no_builtin_flag=
7395 if test "$GCC" = yes; then
7396 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7399 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7400 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7401 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 lt_cv_prog_compiler_rtti_exceptions=no
7405 ac_outfile=conftest.$ac_objext
7406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7407 lt_compiler_flag="-fno-rtti -fno-exceptions"
7408 # Insert the option either (1) after the last *FLAGS variable, or
7409 # (2) before a word containing "conftest.", or (3) at the end.
7410 # Note that $ac_compile itself does not contain backslashes and begins
7411 # with a dollar sign (not a hyphen), so the echo should work correctly.
7412 # The option is referenced via a variable to avoid confusing sed.
7413 lt_compile=`echo "$ac_compile" | $SED \
7414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7416 -e 's:$: $lt_compiler_flag:'`
7417 (eval echo "\"\$as_me:7417: $lt_compile\"" >&5)
7418 (eval "$lt_compile" 2>conftest.err)
7420 cat conftest.err >&5
7421 echo "$as_me:7421: \$? = $ac_status" >&5
7422 if (exit $ac_status) && test -s "$ac_outfile"; then
7423 # The compiler can only warn and ignore the option if not recognized
7424 # So say no if there are warnings other than the usual output.
7425 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7428 lt_cv_prog_compiler_rtti_exceptions=yes
7434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7435 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7437 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7438 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7445 lt_prog_compiler_wl=
7446 lt_prog_compiler_pic=
7447 lt_prog_compiler_static=
7449 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7450 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7452 if test "$GCC" = yes; then
7453 lt_prog_compiler_wl='-Wl,'
7454 lt_prog_compiler_static='-static'
7458 # All AIX code is PIC.
7459 if test "$host_cpu" = ia64; then
7460 # AIX 5 now supports IA64 processor
7461 lt_prog_compiler_static='-Bstatic'
7466 # FIXME: we need at least 68020 code to build shared libraries, but
7467 # adding the `-m68020' flag to GCC prevents building anything better,
7469 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7472 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7473 # PIC is the default for these OSes.
7476 mingw* | cygwin* | pw32* | os2*)
7477 # This hack is so that the source file can tell whether it is being
7478 # built for inclusion in a dll (and should export symbols for example).
7479 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7480 # (--disable-auto-import) libraries
7481 lt_prog_compiler_pic='-DDLL_EXPORT'
7484 darwin* | rhapsody*)
7485 # PIC is the default on this platform
7486 # Common symbols not allowed in MH_DYLIB files
7487 lt_prog_compiler_pic='-fno-common'
7491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7492 # Instead, we relocate shared libraries at runtime.
7496 # Just because we use GCC doesn't mean we suddenly get shared libraries
7497 # on systems that don't support them.
7498 lt_prog_compiler_can_build_shared=no
7503 if test -d /usr/nec; then
7504 lt_prog_compiler_pic=-Kconform_pic
7509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7516 lt_prog_compiler_pic='-fPIC'
7522 lt_prog_compiler_pic='-fPIC'
7526 # PORTME Check for flag to pass linker flags through the system compiler.
7529 lt_prog_compiler_wl='-Wl,'
7530 if test "$host_cpu" = ia64; then
7531 # AIX 5 now supports IA64 processor
7532 lt_prog_compiler_static='-Bstatic'
7534 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7538 # PIC is the default on this platform
7539 # Common symbols not allowed in MH_DYLIB files
7540 case $cc_basename in
7542 lt_prog_compiler_pic='-qnocommon'
7543 lt_prog_compiler_wl='-Wl,'
7548 mingw* | cygwin* | pw32* | os2*)
7549 # This hack is so that the source file can tell whether it is being
7550 # built for inclusion in a dll (and should export symbols for example).
7551 lt_prog_compiler_pic='-DDLL_EXPORT'
7554 hpux9* | hpux10* | hpux11*)
7555 lt_prog_compiler_wl='-Wl,'
7556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7563 lt_prog_compiler_pic='+Z'
7566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7567 lt_prog_compiler_static='${wl}-a ${wl}archive'
7570 irix5* | irix6* | nonstopux*)
7571 lt_prog_compiler_wl='-Wl,'
7572 # PIC (with -KPIC) is the default.
7573 lt_prog_compiler_static='-non_shared'
7577 lt_prog_compiler_pic='-KPIC'
7578 lt_prog_compiler_static='-Bstatic'
7581 linux* | k*bsd*-gnu)
7582 case $cc_basename in
7584 lt_prog_compiler_wl='-Wl,'
7585 lt_prog_compiler_pic='-KPIC'
7586 lt_prog_compiler_static='-static'
7588 pgcc* | pgf77* | pgf90* | pgf95*)
7589 # Portland Group compilers (*not* the Pentium gcc compiler,
7590 # which looks to be a dead project)
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_pic='-fpic'
7593 lt_prog_compiler_static='-Bstatic'
7596 lt_prog_compiler_wl='-Wl,'
7597 # All Alpha code is PIC.
7598 lt_prog_compiler_static='-non_shared'
7601 case `$CC -V 2>&1 | sed 5q` in
7604 lt_prog_compiler_pic='-KPIC'
7605 lt_prog_compiler_static='-Bstatic'
7606 lt_prog_compiler_wl='-Wl,'
7609 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7610 lt_prog_compiler_pic='-KPIC'
7611 lt_prog_compiler_static='-Bstatic'
7612 lt_prog_compiler_wl=''
7619 osf3* | osf4* | osf5*)
7620 lt_prog_compiler_wl='-Wl,'
7621 # All OSF/1 code is PIC.
7622 lt_prog_compiler_static='-non_shared'
7626 lt_prog_compiler_static='-non_shared'
7630 lt_prog_compiler_pic='-KPIC'
7631 lt_prog_compiler_static='-Bstatic'
7632 case $cc_basename in
7634 lt_prog_compiler_wl='-Qoption ld ';;
7636 lt_prog_compiler_wl='-Wl,';;
7641 lt_prog_compiler_wl='-Qoption ld '
7642 lt_prog_compiler_pic='-PIC'
7643 lt_prog_compiler_static='-Bstatic'
7646 sysv4 | sysv4.2uw2* | sysv4.3*)
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_pic='-KPIC'
7649 lt_prog_compiler_static='-Bstatic'
7653 if test -d /usr/nec ;then
7654 lt_prog_compiler_pic='-Kconform_pic'
7655 lt_prog_compiler_static='-Bstatic'
7659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='-KPIC'
7662 lt_prog_compiler_static='-Bstatic'
7666 lt_prog_compiler_wl='-Wl,'
7667 lt_prog_compiler_can_build_shared=no
7671 lt_prog_compiler_pic='-pic'
7672 lt_prog_compiler_static='-Bstatic'
7676 lt_prog_compiler_can_build_shared=no
7681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7682 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7685 # Check to make sure the PIC flag actually works.
7687 if test -n "$lt_prog_compiler_pic"; then
7689 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7690 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7691 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 lt_cv_prog_compiler_pic_works=no
7695 ac_outfile=conftest.$ac_objext
7696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7697 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7698 # Insert the option either (1) after the last *FLAGS variable, or
7699 # (2) before a word containing "conftest.", or (3) at the end.
7700 # Note that $ac_compile itself does not contain backslashes and begins
7701 # with a dollar sign (not a hyphen), so the echo should work correctly.
7702 # The option is referenced via a variable to avoid confusing sed.
7703 lt_compile=`echo "$ac_compile" | $SED \
7704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7706 -e 's:$: $lt_compiler_flag:'`
7707 (eval echo "\"\$as_me:7707: $lt_compile\"" >&5)
7708 (eval "$lt_compile" 2>conftest.err)
7710 cat conftest.err >&5
7711 echo "$as_me:7711: \$? = $ac_status" >&5
7712 if (exit $ac_status) && test -s "$ac_outfile"; then
7713 # The compiler can only warn and ignore the option if not recognized
7714 # So say no if there are warnings other than the usual output.
7715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7718 lt_cv_prog_compiler_pic_works=yes
7724 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7725 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7727 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7728 case $lt_prog_compiler_pic in
7730 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7733 lt_prog_compiler_pic=
7734 lt_prog_compiler_can_build_shared=no
7739 # For platforms which do not support PIC, -DPIC is meaningless:
7741 lt_prog_compiler_pic=
7744 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7749 # Check to make sure the static flag actually works.
7751 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7752 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7753 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7754 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 lt_cv_prog_compiler_static_works=no
7758 save_LDFLAGS="$LDFLAGS"
7759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7762 # The linker can only warn and ignore the option if not recognized
7763 # So say no if there are warnings
7764 if test -s conftest.err; then
7765 # Append any errors to the config.log.
7766 cat conftest.err 1>&5
7767 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7769 if diff conftest.exp conftest.er2 >/dev/null; then
7770 lt_cv_prog_compiler_static_works=yes
7773 lt_cv_prog_compiler_static_works=yes
7777 LDFLAGS="$save_LDFLAGS"
7780 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7781 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7783 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7786 lt_prog_compiler_static=
7790 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 lt_cv_prog_compiler_c_o=no
7796 $rm -r conftest 2>/dev/null
7800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7802 lt_compiler_flag="-o out/conftest2.$ac_objext"
7803 # Insert the option either (1) after the last *FLAGS variable, or
7804 # (2) before a word containing "conftest.", or (3) at the end.
7805 # Note that $ac_compile itself does not contain backslashes and begins
7806 # with a dollar sign (not a hyphen), so the echo should work correctly.
7807 lt_compile=`echo "$ac_compile" | $SED \
7808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7810 -e 's:$: $lt_compiler_flag:'`
7811 (eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
7812 (eval "$lt_compile" 2>out/conftest.err)
7814 cat out/conftest.err >&5
7815 echo "$as_me:7815: \$? = $ac_status" >&5
7816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7818 # The compiler can only warn and ignore the option if not recognized
7819 # So say no if there are warnings
7820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7823 lt_cv_prog_compiler_c_o=yes
7828 # SGI C++ compiler will create directory out/ii_files/ for
7829 # template instantiation
7830 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7831 $rm out/* && rmdir out
7837 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7841 hard_links="nottested"
7842 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7843 # do not overwrite the value of need_locks provided by the user
7844 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7845 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7850 ln conftest.a conftest.b 2>&5 || hard_links=no
7851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7852 { echo "$as_me:$LINENO: result: $hard_links" >&5
7853 echo "${ECHO_T}$hard_links" >&6; }
7854 if test "$hard_links" = no; then
7855 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7856 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7863 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7864 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7867 allow_undefined_flag=
7868 enable_shared_with_static_runtimes=no
7870 archive_expsym_cmds=
7871 old_archive_From_new_cmds=
7872 old_archive_from_expsyms_cmds=
7873 export_dynamic_flag_spec=
7874 whole_archive_flag_spec=
7875 thread_safe_flag_spec=
7876 hardcode_libdir_flag_spec=
7877 hardcode_libdir_flag_spec_ld=
7878 hardcode_libdir_separator=
7881 hardcode_shlibpath_var=unsupported
7882 link_all_deplibs=unknown
7883 hardcode_automatic=no
7886 always_export_symbols=no
7887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7888 # include_expsyms should be a list of space-separated symbols to be *always*
7889 # included in the symbol list
7891 # exclude_expsyms can be an extended regexp of symbols to exclude
7892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7894 # as well as any symbol that contains `d'.
7895 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7897 # platforms (ab)use it in PIC code, but their linkers get confused if
7898 # the symbol is explicitly referenced. Since portable code cannot
7899 # rely on this symbol name, it's probably fine to never include it in
7900 # preloaded symbol tables.
7901 # Exclude shared library initialization/finalization symbols.
7902 extract_expsyms_cmds=
7903 # Just being paranoid about ensuring that cc_basename is set.
7904 for cc_temp in $compiler""; do
7906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7912 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7915 cygwin* | mingw* | pw32*)
7916 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7917 # When not using gcc, we currently assume that we are using
7918 # Microsoft Visual C++.
7919 if test "$GCC" != yes; then
7924 # we just hope/assume this is gcc and not c89 (= MSVC++)
7933 if test "$with_gnu_ld" = yes; then
7934 # If archive_cmds runs LD, not CC, wlarc should be empty
7937 # Set some defaults for GNU ld with shared library support. These
7938 # are reset later if shared libraries are not supported. Putting them
7939 # here allows them to be overridden if necessary.
7940 runpath_var=LD_RUN_PATH
7941 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7942 export_dynamic_flag_spec='${wl}--export-dynamic'
7943 # ancient GNU ld didn't support --whole-archive et. al.
7944 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7945 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7947 whole_archive_flag_spec=
7949 supports_anon_versioning=no
7950 case `$LD -v 2>/dev/null` in
7951 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7952 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7953 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7954 *\ 2.11.*) ;; # other 2.11 versions
7955 *) supports_anon_versioning=yes ;;
7958 # See if GNU ld supports shared libraries.
7961 # On AIX/PPC, the GNU linker is very broken
7962 if test "$host_cpu" != ia64; then
7966 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7967 *** to be unable to reliably create shared libraries on AIX.
7968 *** Therefore, libtool is disabling shared libraries support. If you
7969 *** really care for shared libraries, you may want to modify your PATH
7970 *** so that a non-GNU linker is found, and then restart.
7977 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)'
7978 hardcode_libdir_flag_spec='-L$libdir'
7979 hardcode_minus_L=yes
7981 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7982 # that the semantics of dynamic libraries on AmigaOS, at least up
7983 # to version 4, is to share data among multiple programs linked
7984 # with the same dynamic library. Since this doesn't match the
7985 # behavior of shared libraries on other platforms, we can't use
7991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7992 allow_undefined_flag=unsupported
7993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7994 # support --undefined. This deserves some investigation. FIXME
7995 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8001 cygwin* | mingw* | pw32*)
8002 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8003 # as there is no search path for DLLs.
8004 hardcode_libdir_flag_spec='-L$libdir'
8005 allow_undefined_flag=unsupported
8006 always_export_symbols=no
8007 enable_shared_with_static_runtimes=yes
8008 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8010 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8012 # If the export-symbols file already is a .def file (1st line
8013 # is EXPORTS), use it as is; otherwise, prepend...
8014 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8015 cp $export_symbols $output_objdir/$soname.def;
8017 echo EXPORTS > $output_objdir/$soname.def;
8018 cat $export_symbols >> $output_objdir/$soname.def;
8020 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8028 hardcode_shlibpath_var=no
8029 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8030 export_dynamic_flag_spec='${wl}-E'
8031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8032 # Instead, shared libraries are loaded at an image base (0x10000000 by
8033 # default) and relocated if they conflict, which is a slow very memory
8034 # consuming and fragmenting process. To avoid this, we pick a random,
8035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8038 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'
8041 gnu* | linux* | k*bsd*-gnu)
8042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8044 case $cc_basename,$host_cpu in
8045 pgcc*) # Portland Group C compiler
8046 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'
8047 tmp_addflag=' $pic_flag'
8049 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8050 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'
8051 tmp_addflag=' $pic_flag -Mnomain' ;;
8052 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8053 tmp_addflag=' -i_dynamic' ;;
8054 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8055 tmp_addflag=' -i_dynamic -nofor_main' ;;
8056 ifc* | ifort*) # Intel Fortran compiler
8057 tmp_addflag=' -nofor_main' ;;
8059 case `$CC -V 2>&1 | sed 5q` in
8060 *Sun\ C*) # Sun C 5.9
8061 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8062 tmp_sharedflag='-G' ;;
8063 *Sun\ F*) # Sun Fortran 8.3
8064 tmp_sharedflag='-G' ;;
8066 tmp_sharedflag='-shared' ;;
8068 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8070 if test $supports_anon_versioning = yes; then
8071 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8073 $echo "local: *; };" >> $output_objdir/$libname.ver~
8074 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8082 netbsd* | netbsdelf*-gnu)
8083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8093 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8098 *** create shared libraries on Solaris systems. Therefore, libtool
8099 *** is disabling shared libraries support. We urge you to upgrade GNU
8100 *** binutils to release 2.9.1 or newer. Another option is to modify
8101 *** your PATH or compiler configuration so that the native linker is
8102 *** used, and then restart.
8105 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8114 case `$LD -v 2>&1` in
8115 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8119 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8120 *** reliably create shared libraries on SCO systems. Therefore, libtool
8121 *** is disabling shared libraries support. We urge you to upgrade GNU
8122 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8123 *** your PATH or compiler configuration so that the native linker is
8124 *** used, and then restart.
8129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8130 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8141 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8144 hardcode_shlibpath_var=no
8148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8157 if test "$ld_shlibs" = no; then
8159 hardcode_libdir_flag_spec=
8160 export_dynamic_flag_spec=
8161 whole_archive_flag_spec=
8164 # PORTME fill in a description of your system's linker (not GNU ld)
8167 allow_undefined_flag=unsupported
8168 always_export_symbols=yes
8169 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'
8170 # Note: this linker hardcodes the directories in LIBPATH if there
8171 # are no directories specified by -L.
8172 hardcode_minus_L=yes
8173 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8174 # Neither direct hardcoding nor static linking is supported with a
8176 hardcode_direct=unsupported
8181 if test "$host_cpu" = ia64; then
8182 # On IA64, the linker does run time linking by default, so we don't
8183 # have to do anything special.
8184 aix_use_runtimelinking=no
8185 exp_sym_flag='-Bexport'
8188 # If we're using GNU nm, then we don't want the "-C" option.
8189 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8190 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8191 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'
8193 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'
8195 aix_use_runtimelinking=no
8197 # Test if we are trying to use run time linking or normal
8198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8199 # need to do runtime linking.
8200 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8201 for ld_flag in $LDFLAGS; do
8202 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8203 aix_use_runtimelinking=yes
8210 exp_sym_flag='-bexport'
8211 no_entry_flag='-bnoentry'
8214 # When large executables or shared objects are built, AIX ld can
8215 # have problems creating the table of contents. If linking a library
8216 # or program results in "error TOC overflow" add -mminimal-toc to
8217 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8218 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8222 hardcode_libdir_separator=':'
8223 link_all_deplibs=yes
8225 if test "$GCC" = yes; then
8226 case $host_os in aix4.[012]|aix4.[012].*)
8227 # We only want to do this on AIX 4.2 and lower, the check
8228 # below for broken collect2 doesn't work under 4.3+
8229 collect2name=`${CC} -print-prog-name=collect2`
8230 if test -f "$collect2name" && \
8231 strings "$collect2name" | grep resolve_lib_name >/dev/null
8233 # We have reworked collect2
8236 # We have old collect2
8237 hardcode_direct=unsupported
8238 # It fails to find uninstalled libraries when the uninstalled
8239 # path is not listed in the libpath. Setting hardcode_minus_L
8240 # to unsupported forces relinking
8241 hardcode_minus_L=yes
8242 hardcode_libdir_flag_spec='-L$libdir'
8243 hardcode_libdir_separator=
8247 shared_flag='-shared'
8248 if test "$aix_use_runtimelinking" = yes; then
8249 shared_flag="$shared_flag "'${wl}-G'
8253 if test "$host_cpu" = ia64; then
8254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8255 # chokes on -Wl,-G. The following line is correct:
8258 if test "$aix_use_runtimelinking" = yes; then
8259 shared_flag='${wl}-G'
8261 shared_flag='${wl}-bM:SRE'
8266 # It seems that -bexpall does not export symbols beginning with
8267 # underscore (_), so it is better to generate a list of symbols to export.
8268 always_export_symbols=yes
8269 if test "$aix_use_runtimelinking" = yes; then
8270 # Warning - without using the other runtime loading flags (-brtl),
8271 # -berok will link without error, but may produce a broken library.
8272 allow_undefined_flag='-berok'
8273 # Determine the default libpath from the value encoded in an empty executable.
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (ac_try="$ac_link"
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_link") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest$ac_exeext &&
8306 $as_test_x conftest$ac_exeext; then
8308 lt_aix_libpath_sed='
8309 /Import File Strings/,/^$/ {
8315 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8316 # Check for a 64-bit object if we didn't find anything.
8317 if test -z "$aix_libpath"; then
8318 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8328 conftest$ac_exeext conftest.$ac_ext
8329 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8331 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8332 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"
8334 if test "$host_cpu" = ia64; then
8335 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8336 allow_undefined_flag="-z nodefs"
8337 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"
8339 # Determine the default libpath from the value encoded in an empty executable.
8340 cat >conftest.$ac_ext <<_ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (ac_try="$ac_link"
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_link") 2>conftest.er1
8364 grep -v '^ *+' conftest.er1 >conftest.err
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest$ac_exeext &&
8372 $as_test_x conftest$ac_exeext; then
8374 lt_aix_libpath_sed='
8375 /Import File Strings/,/^$/ {
8381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8382 # Check for a 64-bit object if we didn't find anything.
8383 if test -z "$aix_libpath"; then
8384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8394 conftest$ac_exeext conftest.$ac_ext
8395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8398 # Warning - without using the other run time loading flags,
8399 # -berok will link without error, but may produce a broken library.
8400 no_undefined_flag=' ${wl}-bernotok'
8401 allow_undefined_flag=' ${wl}-berok'
8402 # Exported symbols can be pulled into shared objects from archives
8403 whole_archive_flag_spec='$convenience'
8404 archive_cmds_need_lc=yes
8405 # This is similar to how AIX traditionally builds its shared libraries.
8406 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'
8412 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)'
8413 hardcode_libdir_flag_spec='-L$libdir'
8414 hardcode_minus_L=yes
8415 # see comment about different semantics on the GNU ld section
8420 export_dynamic_flag_spec=-rdynamic
8423 cygwin* | mingw* | pw32*)
8424 # When not using gcc, we currently assume that we are using
8425 # Microsoft Visual C++.
8426 # hardcode_libdir_flag_spec is actually meaningless, as there is
8427 # no search path for DLLs.
8428 hardcode_libdir_flag_spec=' '
8429 allow_undefined_flag=unsupported
8430 # Tell ltmain to make .lib files, not .a files.
8432 # Tell ltmain to make .dll files, not .so files.
8434 # FIXME: Setting linknames here is a bad hack.
8435 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8436 # The linker will automatically build a .lib file if we build a DLL.
8437 old_archive_From_new_cmds='true'
8438 # FIXME: Should let the user specify the lib program.
8439 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8440 fix_srcfile_path='`cygpath -w "$srcfile"`'
8441 enable_shared_with_static_runtimes=yes
8444 darwin* | rhapsody*)
8446 rhapsody* | darwin1.[012])
8447 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8450 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8451 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8453 case ${MACOSX_DEPLOYMENT_TARGET} in
8455 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8458 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8464 archive_cmds_need_lc=no
8466 hardcode_automatic=yes
8467 hardcode_shlibpath_var=unsupported
8468 whole_archive_flag_spec=''
8469 link_all_deplibs=yes
8470 if test "$GCC" = yes ; then
8471 output_verbose_link_cmd='echo'
8472 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8473 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8474 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8475 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8477 case $cc_basename in
8479 output_verbose_link_cmd='echo'
8480 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8481 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8482 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8483 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8484 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}'
8494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495 hardcode_libdir_flag_spec='-L$libdir'
8496 hardcode_shlibpath_var=no
8503 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8504 # support. Future versions do this automatically, but an explicit c++rt0.o
8505 # does not break anything, and helps significantly (at the cost of a little
8508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8509 hardcode_libdir_flag_spec='-R$libdir'
8511 hardcode_shlibpath_var=no
8514 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8518 hardcode_minus_L=yes
8519 hardcode_shlibpath_var=no
8522 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8523 freebsd* | dragonfly*)
8524 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8525 hardcode_libdir_flag_spec='-R$libdir'
8527 hardcode_shlibpath_var=no
8531 if test "$GCC" = yes; then
8532 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'
8534 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'
8536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8537 hardcode_libdir_separator=:
8540 # hardcode_minus_L: Not really in the search PATH,
8541 # but as the default location of the library.
8542 hardcode_minus_L=yes
8543 export_dynamic_flag_spec='${wl}-E'
8547 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8548 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8550 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8552 if test "$with_gnu_ld" = no; then
8553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8554 hardcode_libdir_separator=:
8557 export_dynamic_flag_spec='${wl}-E'
8559 # hardcode_minus_L: Not really in the search PATH,
8560 # but as the default location of the library.
8561 hardcode_minus_L=yes
8566 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8569 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8572 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8575 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8581 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8587 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8591 if test "$with_gnu_ld" = no; then
8592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8593 hardcode_libdir_separator=:
8597 hardcode_libdir_flag_spec_ld='+b $libdir'
8599 hardcode_shlibpath_var=no
8603 export_dynamic_flag_spec='${wl}-E'
8605 # hardcode_minus_L: Not really in the search PATH,
8606 # but as the default location of the library.
8607 hardcode_minus_L=yes
8613 irix5* | irix6* | nonstopux*)
8614 if test "$GCC" = yes; then
8615 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'
8617 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'
8618 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8621 hardcode_libdir_separator=:
8622 link_all_deplibs=yes
8625 netbsd* | netbsdelf*-gnu)
8626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8629 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8631 hardcode_libdir_flag_spec='-R$libdir'
8633 hardcode_shlibpath_var=no
8637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8640 hardcode_libdir_separator=:
8641 hardcode_shlibpath_var=no
8645 if test -f /usr/libexec/ld.so; then
8647 hardcode_shlibpath_var=no
8648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8650 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8651 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8652 export_dynamic_flag_spec='${wl}-E'
8655 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8657 hardcode_libdir_flag_spec='-R$libdir'
8660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8671 hardcode_libdir_flag_spec='-L$libdir'
8672 hardcode_minus_L=yes
8673 allow_undefined_flag=unsupported
8674 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'
8675 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8679 if test "$GCC" = yes; then
8680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8681 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'
8683 allow_undefined_flag=' -expect_unresolved \*'
8684 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'
8686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8687 hardcode_libdir_separator=:
8690 osf4* | osf5*) # as osf3* with the addition of -msym flag
8691 if test "$GCC" = yes; then
8692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8693 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'
8694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8696 allow_undefined_flag=' -expect_unresolved \*'
8697 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'
8698 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8699 $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'
8701 # Both c and cxx compiler support -rpath directly
8702 hardcode_libdir_flag_spec='-rpath $libdir'
8704 hardcode_libdir_separator=:
8708 no_undefined_flag=' -z text'
8709 if test "$GCC" = yes; then
8711 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8713 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8716 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8718 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8720 hardcode_libdir_flag_spec='-R$libdir'
8721 hardcode_shlibpath_var=no
8723 solaris2.[0-5] | solaris2.[0-5].*) ;;
8725 # The compiler driver will combine and reorder linker options,
8726 # but understands `-z linker_flag'. GCC discards it without `$wl',
8727 # but is careful enough not to reorder.
8728 # Supported since Solaris 2.6 (maybe 2.5.1?)
8729 if test "$GCC" = yes; then
8730 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8732 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8736 link_all_deplibs=yes
8740 if test "x$host_vendor" = xsequent; then
8741 # Use $CC to link under sequent, because it throws in some extra .o
8742 # files that make .init and .fini sections work.
8743 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8745 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8747 hardcode_libdir_flag_spec='-L$libdir'
8749 hardcode_minus_L=yes
8750 hardcode_shlibpath_var=no
8754 case $host_vendor in
8756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757 hardcode_direct=yes # is this really true???
8760 ## LD is ld it makes a PLAMLIB
8761 ## CC just makes a GrossModule.
8762 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8763 reload_cmds='$CC -r -o $output$reload_objs'
8767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8771 runpath_var='LD_RUN_PATH'
8772 hardcode_shlibpath_var=no
8776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777 hardcode_shlibpath_var=no
8778 export_dynamic_flag_spec='-Bexport'
8782 if test -d /usr/nec; then
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_shlibpath_var=no
8785 runpath_var=LD_RUN_PATH
8786 hardcode_runpath_var=yes
8791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8792 no_undefined_flag='${wl}-z,text'
8793 archive_cmds_need_lc=no
8794 hardcode_shlibpath_var=no
8795 runpath_var='LD_RUN_PATH'
8797 if test "$GCC" = yes; then
8798 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 sysv5* | sco3.2v5* | sco5v6*)
8807 # Note: We can NOT use -z defs as we might desire, because we do not
8808 # link with -lc, and that would cause any symbols used from libc to
8809 # always be unresolved, which means just about no library would
8810 # ever link correctly. If we're not using GNU ld we use -z text
8811 # though, which does catch some bad symbols but isn't as heavy-handed
8813 no_undefined_flag='${wl}-z,text'
8814 allow_undefined_flag='${wl}-z,nodefs'
8815 archive_cmds_need_lc=no
8816 hardcode_shlibpath_var=no
8817 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8818 hardcode_libdir_separator=':'
8819 link_all_deplibs=yes
8820 export_dynamic_flag_spec='${wl}-Bexport'
8821 runpath_var='LD_RUN_PATH'
8823 if test "$GCC" = yes; then
8824 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_shlibpath_var=no
8844 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8845 echo "${ECHO_T}$ld_shlibs" >&6; }
8846 test "$ld_shlibs" = no && can_build_shared=no
8849 # Do we need to explicitly link libc?
8851 case "x$archive_cmds_need_lc" in
8853 # Assume -lc should be added
8854 archive_cmds_need_lc=yes
8856 if test "$enable_shared" = yes && test "$GCC" = yes; then
8857 case $archive_cmds in
8859 # FIXME: we may have to deal with multi-command sequences.
8862 # Test whether the compiler implicitly links with -lc since on some
8863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8864 # to ld, don't add -lc before -lgcc.
8865 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8866 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } 2>conftest.err; then
8877 libobjs=conftest.$ac_objext
8879 wl=$lt_prog_compiler_wl
8880 pic_flag=$lt_prog_compiler_pic
8886 lt_save_allow_undefined_flag=$allow_undefined_flag
8887 allow_undefined_flag=
8888 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8889 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }
8894 archive_cmds_need_lc=no
8896 archive_cmds_need_lc=yes
8898 allow_undefined_flag=$lt_save_allow_undefined_flag
8900 cat conftest.err 1>&5
8903 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8904 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8911 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8912 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8914 libname_spec='lib$name'
8922 shlibpath_overrides_runpath=unknown
8924 dynamic_linker="$host_os ld.so"
8925 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8927 if test "$GCC" = yes; then
8929 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8930 *) lt_awk_arg="/^libraries:/" ;;
8932 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8933 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8934 # if the path contains ";" then we assume it to be the separator
8935 # otherwise default to the standard path separator (i.e. ":") - it is
8936 # assumed that no part of a normal pathname contains ";" but that should
8937 # okay in the real world where ";" in dirpaths is itself problematic.
8938 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8940 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8942 # Ok, now we have the path, separated by spaces, we can step through it
8943 # and add multilib dir if necessary.
8944 lt_tmp_lt_search_path_spec=
8945 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8946 for lt_sys_path in $lt_search_path_spec; do
8947 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8950 test -d "$lt_sys_path" && \
8951 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8954 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8955 BEGIN {RS=" "; FS="/|\n";} {
8958 for (lt_i = NF; lt_i > 0; lt_i--) {
8959 if ($lt_i != "" && $lt_i != ".") {
8960 if ($lt_i == "..") {
8963 if (lt_count == 0) {
8964 lt_foo="/" $lt_i lt_foo;
8971 if (lt_foo != "") { lt_freq[lt_foo]++; }
8972 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8974 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8978 need_lib_prefix=unknown
8979 hardcode_into_libs=no
8981 # when you set need_version to no, make sure it does not cause -set_version
8982 # flags to be left without arguments
8983 need_version=unknown
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8989 shlibpath_var=LIBPATH
8991 # AIX 3 has no versioning support, so we append a major version to the name.
8992 soname_spec='${libname}${release}${shared_ext}$major'
8999 hardcode_into_libs=yes
9000 if test "$host_cpu" = ia64; then
9001 # AIX 5 supports IA64
9002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9003 shlibpath_var=LD_LIBRARY_PATH
9005 # With GCC up to 2.95.x, collect2 would create an import file
9006 # for dependence libraries. The import file would start with
9007 # the line `#! .'. This would cause the generated library to
9008 # depend on `.', always an invalid library. This was fixed in
9009 # development snapshots of GCC prior to 3.0.
9011 aix4 | aix4.[01] | aix4.[01].*)
9012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9014 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9022 # soname into executable. Probably we can add versioning support to
9023 # collect2, so additional links can be useful in future.
9024 if test "$aix_use_runtimelinking" = yes; then
9025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9026 # instead of lib<name>.a to let people know that these are not
9027 # typical AIX shared libraries.
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 # We preserve .a as extension for shared libraries through AIX4.2
9031 # and later when we are not doing run time linking.
9032 library_names_spec='${libname}${release}.a $libname.a'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9035 shlibpath_var=LIBPATH
9040 library_names_spec='$libname.ixlibrary $libname.a'
9041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9042 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'
9046 library_names_spec='${libname}${shared_ext}'
9047 dynamic_linker="$host_os ld.so"
9048 shlibpath_var=LIBRARY_PATH
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9059 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9060 # the default ld.so.conf also contains /usr/contrib/lib and
9061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9062 # libtool to hard-code these into programs
9065 cygwin* | mingw* | pw32*)
9066 version_type=windows
9071 case $GCC,$host_os in
9072 yes,cygwin* | yes,mingw* | yes,pw32*)
9073 library_names_spec='$libname.dll.a'
9074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9075 postinstall_cmds='base_file=`basename \${file}`~
9076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9077 dldir=$destdir/`dirname \$dlpath`~
9078 test -d \$dldir || mkdir -p \$dldir~
9079 $install_prog $dir/$dlname \$dldir/$dlname~
9080 chmod a+x \$dldir/$dlname'
9081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9082 dlpath=$dir/\$dldll~
9084 shlibpath_overrides_runpath=yes
9088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9089 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9090 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9093 # MinGW DLLs use traditional 'lib' prefix
9094 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9095 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9096 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9097 # It is most probably a Windows format PATH printed by
9098 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9099 # path with ; separators, and with drive letters. We can handle the
9100 # drive letters (cygwin fileutils understands them), so leave them,
9101 # especially as we might pass files found there to a mingw objdump,
9102 # which wouldn't understand a cygwinified path. Ahh.
9103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9109 # pw32 DLLs use 'pw' prefix rather than 'lib'
9110 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9119 dynamic_linker='Win32 ld.exe'
9120 # FIXME: first we should search . and the directory the executable is in
9124 darwin* | rhapsody*)
9125 dynamic_linker="$host_os dyld"
9129 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9130 soname_spec='${libname}${release}${major}$shared_ext'
9131 shlibpath_overrides_runpath=yes
9132 shlibpath_var=DYLD_LIBRARY_PATH
9133 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9135 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9152 freebsd* | dragonfly*)
9153 # DragonFly does not have aout. When/if they implement a new
9154 # versioning mechanism, adjust this.
9155 if test -x /usr/bin/objformat; then
9156 objformat=`/usr/bin/objformat`
9159 freebsd[123]*) objformat=aout ;;
9163 version_type=freebsd-$objformat
9164 case $version_type in
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9175 shlibpath_var=LD_LIBRARY_PATH
9178 shlibpath_overrides_runpath=yes
9180 freebsd3.[01]* | freebsdelf3.[01]*)
9181 shlibpath_overrides_runpath=yes
9182 hardcode_into_libs=yes
9184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9186 shlibpath_overrides_runpath=no
9187 hardcode_into_libs=yes
9189 *) # from 4.6 on, and DragonFly
9190 shlibpath_overrides_runpath=yes
9191 hardcode_into_libs=yes
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 hardcode_into_libs=yes
9206 hpux9* | hpux10* | hpux11*)
9207 # Give a soname corresponding to the major version so that dld.sl refuses to
9208 # link against other versions.
9215 hardcode_into_libs=yes
9216 dynamic_linker="$host_os dld.so"
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 if test "X$HPUX_IA64_MODE" = X32; then
9222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9230 hardcode_into_libs=yes
9231 dynamic_linker="$host_os dld.sl"
9232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9241 dynamic_linker="$host_os dld.sl"
9242 shlibpath_var=SHLIB_PATH
9243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9249 postinstall_cmds='chmod 555 $lib'
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=no
9261 hardcode_into_libs=yes
9264 irix5* | irix6* | nonstopux*)
9266 nonstopux*) version_type=nonstopux ;;
9268 if test "$lt_cv_prog_gnu_ld" = yes; then
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9279 irix5* | nonstopux*)
9283 case $LD in # libtool.m4 will add one of these switches to LD
9284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9285 libsuff= shlibsuff= libmagic=32-bit;;
9286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9287 libsuff=32 shlibsuff=N32 libmagic=N32;;
9288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9290 *) libsuff= shlibsuff= libmagic=never-match;;
9294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9295 shlibpath_overrides_runpath=no
9296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9298 hardcode_into_libs=yes
9301 # No shared lib support for Linux oldld, aout, or coff.
9302 linux*oldld* | linux*aout* | linux*coff*)
9306 # This must be Linux ELF.
9307 linux* | k*bsd*-gnu)
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 shlibpath_overrides_runpath=no
9316 # This implies no fast_install, which is unacceptable.
9317 # Some rework will be needed to allow for fast_install
9318 # before this can be enabled.
9319 hardcode_into_libs=yes
9321 # Append ld.so.conf contents to the search path
9322 if test -f /etc/ld.so.conf; then
9323 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9327 # We used to test for /lib/ld.so.1 and disable shared libraries on
9328 # powerpc, because MkLinux only supported shared libraries with the
9329 # GNU dynamic linker. Since this was broken with cross compilers,
9330 # most powerpc-linux boxes support dynamic linking these days and
9331 # people can always --disable-shared, the test was removed, and we
9332 # assume the GNU/Linux dynamic linker is in use.
9333 dynamic_linker='GNU/Linux ld.so'
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 shlibpath_overrides_runpath=no
9344 hardcode_into_libs=yes
9345 dynamic_linker='NetBSD ld.elf_so'
9352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9355 dynamic_linker='NetBSD (a.out) ld.so'
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 dynamic_linker='NetBSD ld.elf_so'
9361 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes
9363 hardcode_into_libs=yes
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath=yes
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 shlibpath_overrides_runpath=yes
9385 sys_lib_dlsearch_path_spec="/usr/lib"
9387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9390 *) need_version=no ;;
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9397 openbsd2.[89] | openbsd2.[89].*)
9398 shlibpath_overrides_runpath=no
9401 shlibpath_overrides_runpath=yes
9405 shlibpath_overrides_runpath=yes
9410 libname_spec='$name'
9413 library_names_spec='$libname${shared_ext} $libname.a'
9414 dynamic_linker='OS/2 ld.exe'
9415 shlibpath_var=LIBPATH
9418 osf3* | osf4* | osf5*)
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424 shlibpath_var=LD_LIBRARY_PATH
9425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 shlibpath_overrides_runpath=yes
9441 hardcode_into_libs=yes
9442 # ldd complains unless libraries are executable
9443 postinstall_cmds='chmod +x $lib'
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 shlibpath_overrides_runpath=yes
9452 if test "$with_gnu_ld" = yes; then
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 case $host_vendor in
9465 shlibpath_overrides_runpath=no
9467 export_dynamic_flag_spec='${wl}-Blargedynsym'
9468 runpath_var=LD_RUN_PATH
9476 shlibpath_overrides_runpath=no
9477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9483 if test -d /usr/nec ;then
9485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9486 soname_spec='$libname${shared_ext}.$major'
9487 shlibpath_var=LD_LIBRARY_PATH
9491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9492 version_type=freebsd-elf
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 hardcode_into_libs=yes
9499 if test "$with_gnu_ld" = yes; then
9500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9501 shlibpath_overrides_runpath=no
9503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9504 shlibpath_overrides_runpath=yes
9507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9511 sys_lib_dlsearch_path_spec='/usr/lib'
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 shlibpath_var=LD_LIBRARY_PATH
9525 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9526 echo "${ECHO_T}$dynamic_linker" >&6; }
9527 test "$dynamic_linker" = no && can_build_shared=no
9529 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9535 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9542 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9544 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9545 if test "$GCC" = yes; then
9546 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9549 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9550 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9552 if test -n "$hardcode_libdir_flag_spec" || \
9553 test -n "$runpath_var" || \
9554 test "X$hardcode_automatic" = "Xyes" ; then
9556 # We can hardcode non-existant directories.
9557 if test "$hardcode_direct" != no &&
9558 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9559 # have to relink, otherwise we might link with an installed library
9560 # when we should be linking with a yet-to-be-installed one
9561 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9562 test "$hardcode_minus_L" != no; then
9563 # Linking always hardcodes the temporary library directory.
9564 hardcode_action=relink
9566 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9567 hardcode_action=immediate
9570 # We cannot hardcode anything, or else we can only hardcode existing
9572 hardcode_action=unsupported
9574 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9575 echo "${ECHO_T}$hardcode_action" >&6; }
9577 if test "$hardcode_action" = relink; then
9578 # Fast installation is not supported
9579 enable_fast_install=no
9580 elif test "$shlibpath_overrides_runpath" = yes ||
9581 test "$enable_shared" = no; then
9582 # Fast installation is not necessary
9583 enable_fast_install=needless
9588 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9589 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9590 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9591 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9592 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9593 { echo "$as_me:$LINENO: result: yes" >&5
9594 echo "${ECHO_T}yes" >&6; }
9596 # FIXME - insert some real tests, host_os isn't really good enough
9599 if test -n "$STRIP" ; then
9600 striplib="$STRIP -x"
9601 old_striplib="$STRIP -S"
9602 { echo "$as_me:$LINENO: result: yes" >&5
9603 echo "${ECHO_T}yes" >&6; }
9605 { echo "$as_me:$LINENO: result: no" >&5
9606 echo "${ECHO_T}no" >&6; }
9610 { echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6; }
9616 if test "x$enable_dlopen" != xyes; then
9617 enable_dlopen=unknown
9618 enable_dlopen_self=unknown
9619 enable_dlopen_self_static=unknown
9626 lt_cv_dlopen="load_add_on"
9628 lt_cv_dlopen_self=yes
9632 lt_cv_dlopen="LoadLibrary"
9637 lt_cv_dlopen="dlopen"
9642 # if libdl is installed we need to link against it
9643 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 ac_check_lib_save_LIBS=$LIBS
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9657 /* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest$ac_exeext &&
9689 $as_test_x conftest$ac_exeext; then
9690 ac_cv_lib_dl_dlopen=yes
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_lib_dl_dlopen=no
9698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9699 conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_lib_save_LIBS
9702 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9703 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9704 if test $ac_cv_lib_dl_dlopen = yes; then
9705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9710 lt_cv_dlopen_self=yes
9717 { echo "$as_me:$LINENO: checking for shl_load" >&5
9718 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9719 if test "${ac_cv_func_shl_load+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9730 #define shl_load innocuous_shl_load
9732 /* System header to define __stub macros and hopefully few prototypes,
9733 which can conflict with char shl_load (); below.
9734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9735 <limits.h> exists even on freestanding compilers. */
9738 # include <limits.h>
9740 # include <assert.h>
9745 /* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
9752 /* The GNU C library defines this for functions which it implements
9753 to always fail with ENOSYS. Some functions are actually named
9754 something starting with __ and the normal name is an alias. */
9755 #if defined __stub_shl_load || defined __stub___shl_load
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (ac_try="$ac_link"
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_link") 2>conftest.er1
9776 grep -v '^ *+' conftest.er1 >conftest.err
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest$ac_exeext &&
9784 $as_test_x conftest$ac_exeext; then
9785 ac_cv_func_shl_load=yes
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9790 ac_cv_func_shl_load=no
9793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9794 conftest$ac_exeext conftest.$ac_ext
9796 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9797 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9798 if test $ac_cv_func_shl_load = yes; then
9799 lt_cv_dlopen="shl_load"
9801 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9802 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9803 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 ac_check_lib_save_LIBS=$LIBS
9808 cat >conftest.$ac_ext <<_ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest$ac_exeext &&
9847 $as_test_x conftest$ac_exeext; then
9848 ac_cv_lib_dld_shl_load=yes
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 ac_cv_lib_dld_shl_load=no
9856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9857 conftest$ac_exeext conftest.$ac_ext
9858 LIBS=$ac_check_lib_save_LIBS
9860 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9861 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9862 if test $ac_cv_lib_dld_shl_load = yes; then
9863 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9865 { echo "$as_me:$LINENO: checking for dlopen" >&5
9866 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9867 if test "${ac_cv_func_dlopen+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 cat >conftest.$ac_ext <<_ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9876 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9878 #define dlopen innocuous_dlopen
9880 /* System header to define __stub macros and hopefully few prototypes,
9881 which can conflict with char dlopen (); below.
9882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9883 <limits.h> exists even on freestanding compilers. */
9886 # include <limits.h>
9888 # include <assert.h>
9893 /* Override any GCC internal prototype to avoid an error.
9894 Use char because int might match the return type of a GCC
9895 builtin and then its argument prototype would still apply. */
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined __stub_dlopen || defined __stub___dlopen
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext &&
9932 $as_test_x conftest$ac_exeext; then
9933 ac_cv_func_dlopen=yes
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 ac_cv_func_dlopen=no
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942 conftest$ac_exeext conftest.$ac_ext
9944 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9945 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9946 if test $ac_cv_func_dlopen = yes; then
9947 lt_cv_dlopen="dlopen"
9949 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 ac_check_lib_save_LIBS=$LIBS
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9963 /* Override any GCC internal prototype to avoid an error.
9964 Use char because int might match the return type of a GCC
9965 builtin and then its argument prototype would still apply. */
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_link") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest$ac_exeext &&
9995 $as_test_x conftest$ac_exeext; then
9996 ac_cv_lib_dl_dlopen=yes
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10001 ac_cv_lib_dl_dlopen=no
10004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10008 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10009 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10010 if test $ac_cv_lib_dl_dlopen = yes; then
10011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10013 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10014 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-lsvld $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest$ac_exeext &&
10059 $as_test_x conftest$ac_exeext; then
10060 ac_cv_lib_svld_dlopen=yes
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ac_cv_lib_svld_dlopen=no
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069 conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10072 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10073 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10074 if test $ac_cv_lib_svld_dlopen = yes; then
10075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10077 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10078 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10079 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 ac_check_lib_save_LIBS=$LIBS
10084 cat >conftest.$ac_ext <<_ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10101 return dld_link ();
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
10115 grep -v '^ *+' conftest.er1 >conftest.err
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } && {
10120 test -z "$ac_c_werror_flag" ||
10121 test ! -s conftest.err
10122 } && test -s conftest$ac_exeext &&
10123 $as_test_x conftest$ac_exeext; then
10124 ac_cv_lib_dld_dld_link=yes
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 ac_cv_lib_dld_dld_link=no
10132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10133 conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10137 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10138 if test $ac_cv_lib_dld_dld_link = yes; then
10139 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10160 if test "x$lt_cv_dlopen" != xno; then
10166 case $lt_cv_dlopen in
10168 save_CPPFLAGS="$CPPFLAGS"
10169 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10171 save_LDFLAGS="$LDFLAGS"
10172 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10175 LIBS="$lt_cv_dlopen_libs $LIBS"
10177 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10178 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10179 if test "${lt_cv_dlopen_self+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 if test "$cross_compiling" = yes; then :
10183 lt_cv_dlopen_self=cross
10185 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10186 lt_status=$lt_dlunknown
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10188 "configure"
10189 #include "confdefs.h"
10198 # define LT_DLGLOBAL RTLD_GLOBAL
10201 # define LT_DLGLOBAL DL_GLOBAL
10203 # define LT_DLGLOBAL 0
10207 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10208 find out it does not work in some platform. */
10209 #ifndef LT_DLLAZY_OR_NOW
10211 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10214 # define LT_DLLAZY_OR_NOW DL_LAZY
10217 # define LT_DLLAZY_OR_NOW RTLD_NOW
10220 # define LT_DLLAZY_OR_NOW DL_NOW
10222 # define LT_DLLAZY_OR_NOW 0
10230 extern "C" void exit (int);
10233 void fnord() { int i=42;}
10236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10237 int status = $lt_dlunknown;
10241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10242 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10243 /* dlclose (self); */
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252 (eval $ac_link) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10256 (./conftest; exit; ) >&5 2>/dev/null
10258 case x$lt_status in
10259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10261 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10264 # compilation failed
10265 lt_cv_dlopen_self=no
10272 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10275 if test "x$lt_cv_dlopen_self" = xyes; then
10276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10277 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10279 if test "${lt_cv_dlopen_self_static+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 if test "$cross_compiling" = yes; then :
10283 lt_cv_dlopen_self_static=cross
10285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10286 lt_status=$lt_dlunknown
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10298 # define LT_DLGLOBAL RTLD_GLOBAL
10301 # define LT_DLGLOBAL DL_GLOBAL
10303 # define LT_DLGLOBAL 0
10307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10308 find out it does not work in some platform. */
10309 #ifndef LT_DLLAZY_OR_NOW
10311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10314 # define LT_DLLAZY_OR_NOW DL_LAZY
10317 # define LT_DLLAZY_OR_NOW RTLD_NOW
10320 # define LT_DLLAZY_OR_NOW DL_NOW
10322 # define LT_DLLAZY_OR_NOW 0
10330 extern "C" void exit (int);
10333 void fnord() { int i=42;}
10336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10337 int status = $lt_dlunknown;
10341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343 /* dlclose (self); */
10351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352 (eval $ac_link) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10356 (./conftest; exit; ) >&5 2>/dev/null
10358 case x$lt_status in
10359 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10360 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10361 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10364 # compilation failed
10365 lt_cv_dlopen_self_static=no
10372 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10373 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10376 CPPFLAGS="$save_CPPFLAGS"
10377 LDFLAGS="$save_LDFLAGS"
10382 case $lt_cv_dlopen_self in
10383 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10384 *) enable_dlopen_self=unknown ;;
10387 case $lt_cv_dlopen_self_static in
10388 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10389 *) enable_dlopen_self_static=unknown ;;
10394 # Report which library types will actually be built
10395 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10396 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10397 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10398 echo "${ECHO_T}$can_build_shared" >&6; }
10400 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10401 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10402 test "$can_build_shared" = "no" && enable_shared=no
10404 # On AIX, shared libraries and static libraries use the same namespace, and
10405 # are all built from PIC.
10408 test "$enable_shared" = yes && enable_static=no
10409 if test -n "$RANLIB"; then
10410 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10411 postinstall_cmds='$RANLIB $lib'
10416 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10417 test "$enable_shared" = yes && enable_static=no
10421 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10422 echo "${ECHO_T}$enable_shared" >&6; }
10424 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10425 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10426 # Make sure either enable_shared or enable_static is yes.
10427 test "$enable_shared" = yes || enable_static=yes
10428 { echo "$as_me:$LINENO: result: $enable_static" >&5
10429 echo "${ECHO_T}$enable_static" >&6; }
10431 # The else clause should only fire when bootstrapping the
10432 # libtool distribution, otherwise you forgot to ship ltmain.sh
10433 # with your package, and you will get complaints that there are
10434 # no rules to generate ltmain.sh.
10435 if test -f "$ltmain"; then
10436 # See if we are running on zsh, and set the options which allow our commands through
10437 # without removal of \ escapes.
10438 if test -n "${ZSH_VERSION+set}" ; then
10439 setopt NO_GLOB_SUBST
10441 # Now quote all the things that may contain metacharacters while being
10442 # careful not to overquote the AC_SUBSTed values. We take copies of the
10443 # variables and quote the copies for generation of the libtool script.
10444 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10446 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10447 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10448 deplibs_check_method reload_flag reload_cmds need_locks \
10449 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10450 lt_cv_sys_global_symbol_to_c_name_address \
10451 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10452 old_postinstall_cmds old_postuninstall_cmds \
10456 lt_prog_compiler_wl \
10457 lt_prog_compiler_pic \
10458 lt_prog_compiler_static \
10459 lt_prog_compiler_no_builtin_flag \
10460 export_dynamic_flag_spec \
10461 thread_safe_flag_spec \
10462 whole_archive_flag_spec \
10463 enable_shared_with_static_runtimes \
10465 old_archive_from_new_cmds \
10470 compiler_lib_search_path \
10471 compiler_lib_search_dirs \
10473 archive_expsym_cmds \
10475 postuninstall_cmds \
10476 old_archive_from_expsyms_cmds \
10477 allow_undefined_flag \
10478 no_undefined_flag \
10479 export_symbols_cmds \
10480 hardcode_libdir_flag_spec \
10481 hardcode_libdir_flag_spec_ld \
10482 hardcode_libdir_separator \
10483 hardcode_automatic \
10485 module_expsym_cmds \
10486 lt_cv_prog_compiler_c_o \
10489 include_expsyms; do
10492 old_archive_cmds | \
10493 old_archive_from_new_cmds | \
10495 archive_expsym_cmds | \
10497 module_expsym_cmds | \
10498 old_archive_from_expsyms_cmds | \
10499 export_symbols_cmds | \
10500 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10501 postinstall_cmds | postuninstall_cmds | \
10502 old_postinstall_cmds | old_postuninstall_cmds | \
10503 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10504 # Double-quote double-evaled strings.
10505 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10514 *'\$0 --fallback-echo"')
10515 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10519 cfgfile="${ofile}T"
10520 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10522 { echo "$as_me:$LINENO: creating $ofile" >&5
10523 echo "$as_me: creating $ofile" >&6;}
10525 cat <<__EOF__ >> "$cfgfile"
10528 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10529 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10530 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10532 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10533 # Free Software Foundation, Inc.
10535 # This file is part of GNU Libtool:
10536 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10538 # This program is free software; you can redistribute it and/or modify
10539 # it under the terms of the GNU General Public License as published by
10540 # the Free Software Foundation; either version 2 of the License, or
10541 # (at your option) any later version.
10543 # This program is distributed in the hope that it will be useful, but
10544 # WITHOUT ANY WARRANTY; without even the implied warranty of
10545 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10546 # General Public License for more details.
10548 # You should have received a copy of the GNU General Public License
10549 # along with this program; if not, write to the Free Software
10550 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10552 # As a special exception to the GNU General Public License, if you
10553 # distribute this file as part of a program that contains a
10554 # configuration script generated by Autoconf, you may include it under
10555 # the same distribution terms that you use for the rest of that program.
10557 # A sed program that does not truncate output.
10560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10561 Xsed="$SED -e 1s/^X//"
10563 # The HP-UX ksh and POSIX shell print the target directory to stdout
10564 # if CDPATH is set.
10565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10567 # The names of the tagged configurations supported by this script.
10570 # ### BEGIN LIBTOOL CONFIG
10572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10574 # Shell to use when invoking shell scripts.
10577 # Whether or not to build shared libraries.
10578 build_libtool_libs=$enable_shared
10580 # Whether or not to build static libraries.
10581 build_old_libs=$enable_static
10583 # Whether or not to add -lc for building shared libraries.
10584 build_libtool_need_lc=$archive_cmds_need_lc
10586 # Whether or not to disallow shared libs when runtime libs are static
10587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10589 # Whether or not to optimize for fast installation.
10590 fast_install=$enable_fast_install
10593 host_alias=$host_alias
10597 # The build system.
10598 build_alias=$build_alias
10602 # An echo program that does not interpret backslashes.
10607 AR_FLAGS=$lt_AR_FLAGS
10612 # LTCC compiler flags.
10613 LTCFLAGS=$lt_LTCFLAGS
10615 # A language-specific compiler.
10618 # Is the compiler the GNU C compiler?
10624 # The linker used to build libraries.
10627 # Whether we need hard or soft links.
10630 # A BSD-compatible nm program.
10633 # A symbol stripping program
10636 # Used to examine libraries when file_magic_cmd begins "file"
10637 MAGIC_CMD=$MAGIC_CMD
10639 # Used on cygwin: DLL creation program.
10642 # Used on cygwin: object dumper.
10645 # Used on cygwin: assembler.
10648 # The name of the directory that contains temporary libtool files.
10651 # How to create reloadable object files.
10652 reload_flag=$lt_reload_flag
10653 reload_cmds=$lt_reload_cmds
10655 # How to pass a linker flag through the compiler.
10656 wl=$lt_lt_prog_compiler_wl
10658 # Object file suffix (normally "o").
10659 objext="$ac_objext"
10661 # Old archive suffix (normally "a").
10664 # Shared library suffix (normally ".so").
10665 shrext_cmds='$shrext_cmds'
10667 # Executable file suffix (normally "").
10670 # Additional compiler flags for building library objects.
10671 pic_flag=$lt_lt_prog_compiler_pic
10674 # What is the maximum length of a command?
10675 max_cmd_len=$lt_cv_sys_max_cmd_len
10677 # Does compiler simultaneously support -c and -o options?
10678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10680 # Must we lock files when doing compilation?
10681 need_locks=$lt_need_locks
10683 # Do we need the lib prefix for modules?
10684 need_lib_prefix=$need_lib_prefix
10686 # Do we need a version for libraries?
10687 need_version=$need_version
10689 # Whether dlopen is supported.
10690 dlopen_support=$enable_dlopen
10692 # Whether dlopen of programs is supported.
10693 dlopen_self=$enable_dlopen_self
10695 # Whether dlopen of statically linked programs is supported.
10696 dlopen_self_static=$enable_dlopen_self_static
10698 # Compiler flag to prevent dynamic linking.
10699 link_static_flag=$lt_lt_prog_compiler_static
10701 # Compiler flag to turn off builtin functions.
10702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10704 # Compiler flag to allow reflexive dlopens.
10705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10707 # Compiler flag to generate shared objects directly from archives.
10708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10710 # Compiler flag to generate thread-safe objects.
10711 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10713 # Library versioning type.
10714 version_type=$version_type
10716 # Format of library name prefix.
10717 libname_spec=$lt_libname_spec
10719 # List of archive names. First name is the real one, the rest are links.
10720 # The last name is the one that the linker finds with -lNAME.
10721 library_names_spec=$lt_library_names_spec
10723 # The coded name of the library, if different from the real name.
10724 soname_spec=$lt_soname_spec
10726 # Commands used to build and install an old-style archive.
10728 old_archive_cmds=$lt_old_archive_cmds
10729 old_postinstall_cmds=$lt_old_postinstall_cmds
10730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10732 # Create an old-style archive from a shared archive.
10733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10735 # Create a temporary old-style archive to link instead of a shared archive.
10736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10738 # Commands used to build and install a shared archive.
10739 archive_cmds=$lt_archive_cmds
10740 archive_expsym_cmds=$lt_archive_expsym_cmds
10741 postinstall_cmds=$lt_postinstall_cmds
10742 postuninstall_cmds=$lt_postuninstall_cmds
10744 # Commands used to build a loadable module (assumed same as above if empty)
10745 module_cmds=$lt_module_cmds
10746 module_expsym_cmds=$lt_module_expsym_cmds
10748 # Commands to strip libraries.
10749 old_striplib=$lt_old_striplib
10750 striplib=$lt_striplib
10752 # Dependencies to place before the objects being linked to create a
10754 predep_objects=$lt_predep_objects
10756 # Dependencies to place after the objects being linked to create a
10758 postdep_objects=$lt_postdep_objects
10760 # Dependencies to place before the objects being linked to create a
10762 predeps=$lt_predeps
10764 # Dependencies to place after the objects being linked to create a
10766 postdeps=$lt_postdeps
10768 # The directories searched by this compiler when creating a shared
10770 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10772 # The library search path used internally by the compiler when linking
10773 # a shared library.
10774 compiler_lib_search_path=$lt_compiler_lib_search_path
10776 # Method to check whether dependent libraries are shared objects.
10777 deplibs_check_method=$lt_deplibs_check_method
10779 # Command to use when deplibs_check_method == file_magic.
10780 file_magic_cmd=$lt_file_magic_cmd
10782 # Flag that allows shared libraries with undefined symbols to be built.
10783 allow_undefined_flag=$lt_allow_undefined_flag
10785 # Flag that forces no undefined symbols.
10786 no_undefined_flag=$lt_no_undefined_flag
10788 # Commands used to finish a libtool library installation in a directory.
10789 finish_cmds=$lt_finish_cmds
10791 # Same as above, but a single script fragment to be evaled but not shown.
10792 finish_eval=$lt_finish_eval
10794 # Take the output of nm and produce a listing of raw symbols and C names.
10795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10797 # Transform the output of nm in a proper C declaration
10798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10800 # Transform the output of nm in a C name address pair
10801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10803 # This is the shared library runtime path variable.
10804 runpath_var=$runpath_var
10806 # This is the shared library path variable.
10807 shlibpath_var=$shlibpath_var
10809 # Is shlibpath searched before the hard-coded library search path?
10810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10812 # How to hardcode a shared library path into an executable.
10813 hardcode_action=$hardcode_action
10815 # Whether we should hardcode library paths into libraries.
10816 hardcode_into_libs=$hardcode_into_libs
10818 # Flag to hardcode \$libdir into a binary during linking.
10819 # This must work even if \$libdir does not exist.
10820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10822 # If ld is used when linking, flag to hardcode \$libdir into
10823 # a binary during linking. This must work even if \$libdir does
10825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10827 # Whether we need a single -rpath flag with a separated argument.
10828 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10831 # resulting binary.
10832 hardcode_direct=$hardcode_direct
10834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10835 # resulting binary.
10836 hardcode_minus_L=$hardcode_minus_L
10838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10839 # the resulting binary.
10840 hardcode_shlibpath_var=$hardcode_shlibpath_var
10842 # Set to yes if building a shared library automatically hardcodes DIR into the library
10843 # and all subsequent libraries and executables linked against it.
10844 hardcode_automatic=$hardcode_automatic
10846 # Variables whose values should be saved in libtool wrapper scripts and
10847 # restored at relink time.
10848 variables_saved_for_relink="$variables_saved_for_relink"
10850 # Whether libtool must link a program against all its dependency libraries.
10851 link_all_deplibs=$link_all_deplibs
10853 # Compile-time system search path for libraries
10854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10856 # Run-time system search path for libraries
10857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10859 # Fix the shell variable \$srcfile for the compiler.
10860 fix_srcfile_path=$lt_fix_srcfile_path
10862 # Set to yes if exported symbols are required.
10863 always_export_symbols=$always_export_symbols
10865 # The commands to list exported symbols.
10866 export_symbols_cmds=$lt_export_symbols_cmds
10868 # The commands to extract the exported symbol list from a shared archive.
10869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10871 # Symbols that should not be listed in the preloaded symbols.
10872 exclude_expsyms=$lt_exclude_expsyms
10874 # Symbols that must always be exported.
10875 include_expsyms=$lt_include_expsyms
10877 # ### END LIBTOOL CONFIG
10884 cat <<\EOF >> "$cfgfile"
10886 # AIX sometimes has problems with the GCC collect2 program. For some
10887 # reason, if we set the COLLECT_NAMES environment variable, the problems
10888 # vanish in a puff of smoke.
10889 if test "X${COLLECT_NAMES+set}" != Xset; then
10891 export COLLECT_NAMES
10897 # We use sed instead of cat because bash on DJGPP gets confused if
10898 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10899 # text mode, it properly converts lines to CR/LF. This bash problem
10900 # is reportedly fixed, but why not run on old versions too?
10901 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10903 mv -f "$cfgfile" "$ofile" || \
10904 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10908 # If there is no Makefile yet, we rely on a make rule to execute
10909 # `config.status --recheck' to rerun these tests and create the
10910 # libtool script then.
10911 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10912 if test -f "$ltmain_in"; then
10913 test -f Makefile && make "$ltmain"
10919 ac_cpp='$CPP $CPPFLAGS'
10920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10927 # Check whether --with-tags was given.
10928 if test "${with_tags+set}" = set; then
10929 withval=$with_tags; tagnames="$withval"
10933 if test -f "$ltmain" && test -n "$tagnames"; then
10934 if test ! -f "${ofile}"; then
10935 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10936 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10939 if test -z "$LTCC"; then
10940 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10941 if test -z "$LTCC"; then
10942 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10943 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10946 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10949 if test -z "$LTCFLAGS"; then
10950 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10953 # Extract list of available tagged configurations in $ofile.
10954 # Note that this assumes the entire list is on one line.
10955 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10958 for tagname in $tagnames; do
10960 # Check whether tagname contains only valid characters
10961 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10963 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10964 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10965 { (exit 1); exit 1; }; }
10969 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10971 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10972 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10973 { (exit 1); exit 1; }; }
10976 # Update the list of available tags.
10977 if test -n "$tagname"; then
10978 echo appending configuration tag \"$tagname\" to $ofile
10982 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10983 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10984 (test "X$CXX" != "Xg++"))) ; then
10986 ac_cpp='$CXXCPP $CPPFLAGS'
10987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10994 archive_cmds_need_lc_CXX=no
10995 allow_undefined_flag_CXX=
10996 always_export_symbols_CXX=no
10997 archive_expsym_cmds_CXX=
10998 export_dynamic_flag_spec_CXX=
10999 hardcode_direct_CXX=no
11000 hardcode_libdir_flag_spec_CXX=
11001 hardcode_libdir_flag_spec_ld_CXX=
11002 hardcode_libdir_separator_CXX=
11003 hardcode_minus_L_CXX=no
11004 hardcode_shlibpath_var_CXX=unsupported
11005 hardcode_automatic_CXX=no
11007 module_expsym_cmds_CXX=
11008 link_all_deplibs_CXX=unknown
11009 old_archive_cmds_CXX=$old_archive_cmds
11010 no_undefined_flag_CXX=
11011 whole_archive_flag_spec_CXX=
11012 enable_shared_with_static_runtimes_CXX=no
11014 # Dependencies to place before and after the object being linked:
11015 predep_objects_CXX=
11016 postdep_objects_CXX=
11019 compiler_lib_search_path_CXX=
11020 compiler_lib_search_dirs_CXX=
11022 # Source file extension for C++ test sources.
11025 # Object file extension for compiled C++ test sources.
11029 # Code to be used in simple compile tests
11030 lt_simple_compile_test_code="int some_variable = 0;"
11032 # Code to be used in simple link tests
11033 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11035 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11037 # If no C compiler was specified, use CC.
11040 # If no C compiler flags were specified, use CFLAGS.
11041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11043 # Allow CC to be a program name with arguments.
11047 # save warnings/boilerplate of simple test code
11048 ac_outfile=conftest.$ac_objext
11049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11051 _lt_compiler_boilerplate=`cat conftest.err`
11054 ac_outfile=conftest.$ac_objext
11055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11057 _lt_linker_boilerplate=`cat conftest.err`
11061 # Allow CC to be a program name with arguments.
11066 lt_save_with_gnu_ld=$with_gnu_ld
11067 lt_save_path_LD=$lt_cv_path_LD
11068 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11069 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11071 $as_unset lt_cv_prog_gnu_ld
11073 if test -n "${lt_cv_path_LDCXX+set}"; then
11074 lt_cv_path_LD=$lt_cv_path_LDCXX
11076 $as_unset lt_cv_path_LD
11078 test -z "${LDCXX+set}" || LD=$LDCXX
11082 for cc_temp in $compiler""; do
11084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11093 # We don't want -fno-exception wen compiling C++ code, so set the
11094 # no_builtin_flag separately
11095 if test "$GXX" = yes; then
11096 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11098 lt_prog_compiler_no_builtin_flag_CXX=
11101 if test "$GXX" = yes; then
11102 # Set up default GNU C++ configuration
11105 # Check whether --with-gnu-ld was given.
11106 if test "${with_gnu_ld+set}" = set; then
11107 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11113 if test "$GCC" = yes; then
11114 # Check if gcc -print-prog-name=ld gives a path.
11115 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11116 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11119 # gcc leaves a trailing carriage return which upsets mingw
11120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11125 # Accept absolute paths.
11127 re_direlt='/[^/][^/]*/\.\./'
11128 # Canonicalize the pathname of ld
11129 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11131 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11133 test -z "$LD" && LD="$ac_prog"
11136 # If it fails, then pretend we aren't using GCC.
11140 # If it is relative, then search for the first ld in PATH.
11141 with_gnu_ld=unknown
11144 elif test "$with_gnu_ld" = yes; then
11145 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11148 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11151 if test "${lt_cv_path_LD+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 if test -z "$LD"; then
11155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11156 for ac_dir in $PATH; do
11158 test -z "$ac_dir" && ac_dir=.
11159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11160 lt_cv_path_LD="$ac_dir/$ac_prog"
11161 # Check to see if the program is GNU ld. I'd rather use --version,
11162 # but apparently some variants of GNU ld only accept -v.
11163 # Break only if it was the GNU/non-GNU ld that we prefer.
11164 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11165 *GNU* | *'with BFD'*)
11166 test "$with_gnu_ld" != no && break
11169 test "$with_gnu_ld" != yes && break
11176 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11180 LD="$lt_cv_path_LD"
11181 if test -n "$LD"; then
11182 { echo "$as_me:$LINENO: result: $LD" >&5
11183 echo "${ECHO_T}$LD" >&6; }
11185 { echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6; }
11188 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11189 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11190 { (exit 1); exit 1; }; }
11191 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11192 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11193 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11197 case `$LD -v 2>&1 </dev/null` in
11198 *GNU* | *'with BFD'*)
11199 lt_cv_prog_gnu_ld=yes
11202 lt_cv_prog_gnu_ld=no
11206 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11207 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11208 with_gnu_ld=$lt_cv_prog_gnu_ld
11212 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11213 # archiving commands below assume that GNU ld is being used.
11214 if test "$with_gnu_ld" = yes; then
11215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11216 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'
11218 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11221 # If archive_cmds runs LD, not CC, wlarc should be empty
11222 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11223 # investigate it a little bit more. (MM)
11226 # ancient GNU ld didn't support --whole-archive et. al.
11227 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11228 grep 'no-whole-archive' > /dev/null; then
11229 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11231 whole_archive_flag_spec_CXX=
11237 # A generic and very simple default shared library creation
11238 # command for GNU C++ for the case where it uses the native
11239 # linker, instead of GNU ld. If possible, this setting should
11240 # overridden to take advantage of the native linker features on
11241 # the platform it is being used on.
11242 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11245 # Commands to make compiler produce verbose output that lists
11246 # what "hidden" libraries, object files and flags are used when
11247 # linking a shared library.
11248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11256 # PORTME: fill in a description of your system's C++ link characteristics
11257 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11262 # FIXME: insert proper C++ library support
11266 if test "$host_cpu" = ia64; then
11267 # On IA64, the linker does run time linking by default, so we don't
11268 # have to do anything special.
11269 aix_use_runtimelinking=no
11270 exp_sym_flag='-Bexport'
11273 aix_use_runtimelinking=no
11275 # Test if we are trying to use run time linking or normal
11276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11277 # need to do runtime linking.
11278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11279 for ld_flag in $LDFLAGS; do
11282 aix_use_runtimelinking=yes
11290 exp_sym_flag='-bexport'
11291 no_entry_flag='-bnoentry'
11294 # When large executables or shared objects are built, AIX ld can
11295 # have problems creating the table of contents. If linking a library
11296 # or program results in "error TOC overflow" add -mminimal-toc to
11297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11300 archive_cmds_CXX=''
11301 hardcode_direct_CXX=yes
11302 hardcode_libdir_separator_CXX=':'
11303 link_all_deplibs_CXX=yes
11305 if test "$GXX" = yes; then
11306 case $host_os in aix4.[012]|aix4.[012].*)
11307 # We only want to do this on AIX 4.2 and lower, the check
11308 # below for broken collect2 doesn't work under 4.3+
11309 collect2name=`${CC} -print-prog-name=collect2`
11310 if test -f "$collect2name" && \
11311 strings "$collect2name" | grep resolve_lib_name >/dev/null
11313 # We have reworked collect2
11316 # We have old collect2
11317 hardcode_direct_CXX=unsupported
11318 # It fails to find uninstalled libraries when the uninstalled
11319 # path is not listed in the libpath. Setting hardcode_minus_L
11320 # to unsupported forces relinking
11321 hardcode_minus_L_CXX=yes
11322 hardcode_libdir_flag_spec_CXX='-L$libdir'
11323 hardcode_libdir_separator_CXX=
11327 shared_flag='-shared'
11328 if test "$aix_use_runtimelinking" = yes; then
11329 shared_flag="$shared_flag "'${wl}-G'
11333 if test "$host_cpu" = ia64; then
11334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11335 # chokes on -Wl,-G. The following line is correct:
11338 if test "$aix_use_runtimelinking" = yes; then
11339 shared_flag='${wl}-G'
11341 shared_flag='${wl}-bM:SRE'
11346 # It seems that -bexpall does not export symbols beginning with
11347 # underscore (_), so it is better to generate a list of symbols to export.
11348 always_export_symbols_CXX=yes
11349 if test "$aix_use_runtimelinking" = yes; then
11350 # Warning - without using the other runtime loading flags (-brtl),
11351 # -berok will link without error, but may produce a broken library.
11352 allow_undefined_flag_CXX='-berok'
11353 # Determine the default libpath from the value encoded in an empty executable.
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (ac_try="$ac_link"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_link") 2>conftest.er1
11378 grep -v '^ *+' conftest.er1 >conftest.err
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } && {
11383 test -z "$ac_cxx_werror_flag" ||
11384 test ! -s conftest.err
11385 } && test -s conftest$ac_exeext &&
11386 $as_test_x conftest$ac_exeext; then
11388 lt_aix_libpath_sed='
11389 /Import File Strings/,/^$/ {
11395 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11396 # Check for a 64-bit object if we didn't find anything.
11397 if test -z "$aix_libpath"; then
11398 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11408 conftest$ac_exeext conftest.$ac_ext
11409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11411 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11413 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"
11415 if test "$host_cpu" = ia64; then
11416 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11417 allow_undefined_flag_CXX="-z nodefs"
11418 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"
11420 # Determine the default libpath from the value encoded in an empty executable.
11421 cat >conftest.$ac_ext <<_ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11436 rm -f conftest.$ac_objext conftest$ac_exeext
11437 if { (ac_try="$ac_link"
11438 case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_link") 2>conftest.er1
11445 grep -v '^ *+' conftest.er1 >conftest.err
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } && {
11450 test -z "$ac_cxx_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest$ac_exeext &&
11453 $as_test_x conftest$ac_exeext; then
11455 lt_aix_libpath_sed='
11456 /Import File Strings/,/^$/ {
11462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11463 # Check for a 64-bit object if we didn't find anything.
11464 if test -z "$aix_libpath"; then
11465 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11475 conftest$ac_exeext conftest.$ac_ext
11476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11478 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11479 # Warning - without using the other run time loading flags,
11480 # -berok will link without error, but may produce a broken library.
11481 no_undefined_flag_CXX=' ${wl}-bernotok'
11482 allow_undefined_flag_CXX=' ${wl}-berok'
11483 # Exported symbols can be pulled into shared objects from archives
11484 whole_archive_flag_spec_CXX='$convenience'
11485 archive_cmds_need_lc_CXX=yes
11486 # This is similar to how AIX traditionally builds its shared libraries.
11487 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'
11493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11494 allow_undefined_flag_CXX=unsupported
11495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11496 # support --undefined. This deserves some investigation. FIXME
11497 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 case $cc_basename in
11506 # FIXME: insert proper C++ library support
11512 cygwin* | mingw* | pw32*)
11513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11514 # as there is no search path for DLLs.
11515 hardcode_libdir_flag_spec_CXX='-L$libdir'
11516 allow_undefined_flag_CXX=unsupported
11517 always_export_symbols_CXX=no
11518 enable_shared_with_static_runtimes_CXX=yes
11520 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11521 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'
11522 # If the export-symbols file already is a .def file (1st line
11523 # is EXPORTS), use it as is; otherwise, prepend...
11524 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11525 cp $export_symbols $output_objdir/$soname.def;
11527 echo EXPORTS > $output_objdir/$soname.def;
11528 cat $export_symbols >> $output_objdir/$soname.def;
11530 $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'
11535 darwin* | rhapsody*)
11536 archive_cmds_need_lc_CXX=no
11537 hardcode_direct_CXX=no
11538 hardcode_automatic_CXX=yes
11539 hardcode_shlibpath_var_CXX=unsupported
11540 whole_archive_flag_spec_CXX=''
11541 link_all_deplibs_CXX=yes
11542 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11543 if test "$GXX" = yes ; then
11544 output_verbose_link_cmd='echo'
11545 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11546 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11547 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11548 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11549 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11550 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${_lt_dsymutil}"
11551 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11554 case $cc_basename in
11556 output_verbose_link_cmd='echo'
11557 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11558 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11559 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11560 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11561 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}'
11571 case $cc_basename in
11573 # FIXME: insert proper C++ library support
11577 # Green Hills C++ Compiler
11578 # FIXME: insert proper C++ library support
11582 # FIXME: insert proper C++ library support
11588 # C++ shared libraries reported to be fairly broken before switch to ELF
11592 archive_cmds_need_lc_CXX=no
11594 freebsd* | dragonfly*)
11595 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11602 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11603 hardcode_libdir_separator_CXX=:
11604 export_dynamic_flag_spec_CXX='${wl}-E'
11605 hardcode_direct_CXX=yes
11606 hardcode_minus_L_CXX=yes # Not in the search PATH,
11607 # but as the default
11608 # location of the library.
11610 case $cc_basename in
11612 # FIXME: insert proper C++ library support
11616 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'
11617 # Commands to make compiler produce verbose output that lists
11618 # what "hidden" libraries, object files and flags are used when
11619 # linking a shared library.
11621 # There doesn't appear to be a way to prevent this compiler from
11622 # explicitly linking system object files so we need to strip them
11623 # from the output so that they don't get included in the library
11625 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'
11628 if test "$GXX" = yes; then
11629 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'
11631 # FIXME: insert proper C++ library support
11638 if test $with_gnu_ld = no; then
11639 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11640 hardcode_libdir_separator_CXX=:
11645 export_dynamic_flag_spec_CXX='${wl}-E'
11651 hardcode_direct_CXX=no
11652 hardcode_shlibpath_var_CXX=no
11655 hardcode_direct_CXX=yes
11656 hardcode_minus_L_CXX=yes # Not in the search PATH,
11657 # but as the default
11658 # location of the library.
11662 case $cc_basename in
11664 # FIXME: insert proper C++ library support
11670 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11673 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11676 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11679 # Commands to make compiler produce verbose output that lists
11680 # what "hidden" libraries, object files and flags are used when
11681 # linking a shared library.
11683 # There doesn't appear to be a way to prevent this compiler from
11684 # explicitly linking system object files so we need to strip them
11685 # from the output so that they don't get included in the library
11687 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'
11690 if test "$GXX" = yes; then
11691 if test $with_gnu_ld = no; then
11694 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11700 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'
11705 # FIXME: insert proper C++ library support
11712 hardcode_direct_CXX=no
11713 hardcode_shlibpath_var_CXX=no
11714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715 export_dynamic_flag_spec_CXX='${wl}-E'
11716 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11717 # Instead, shared libraries are loaded at an image base (0x10000000 by
11718 # default) and relocated if they conflict, which is a slow very memory
11719 # consuming and fragmenting process. To avoid this, we pick a random,
11720 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11721 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11722 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'
11723 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'
11726 case $cc_basename in
11729 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'
11731 # Archives containing C++ object files must be created using
11732 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11733 # necessary to make sure instantiated templates are included
11735 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11738 if test "$GXX" = yes; then
11739 if test "$with_gnu_ld" = no; then
11740 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'
11742 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'
11745 link_all_deplibs_CXX=yes
11748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11749 hardcode_libdir_separator_CXX=:
11751 linux* | k*bsd*-gnu)
11752 case $cc_basename in
11754 # Kuck and Associates, Inc. (KAI) C++ Compiler
11756 # KCC will only create a shared library if the output file
11757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11758 # to its proper name (with version) after linking.
11759 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'
11760 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'
11761 # Commands to make compiler produce verbose output that lists
11762 # what "hidden" libraries, object files and flags are used when
11763 # linking a shared library.
11765 # There doesn't appear to be a way to prevent this compiler from
11766 # explicitly linking system object files so we need to strip them
11767 # from the output so that they don't get included in the library
11769 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'
11771 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11774 # Archives containing C++ object files must be created using
11775 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11776 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11781 # version 8.0 and above of icpc choke on multiply defined symbols
11782 # if we add $predep_objects and $postdep_objects, however 7.1 and
11783 # earlier do not add the objects themselves.
11784 case `$CC -V 2>&1` in
11786 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11787 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'
11789 *) # Version 8.0 or newer
11792 ia64*) tmp_idyn=' -i_dynamic';;
11794 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11795 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'
11798 archive_cmds_need_lc_CXX=no
11799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11801 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11804 # Portland Group C++ compiler
11805 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11806 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'
11808 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11810 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'
11814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11815 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'
11817 runpath_var=LD_RUN_PATH
11818 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11819 hardcode_libdir_separator_CXX=:
11821 # Commands to make compiler produce verbose output that lists
11822 # what "hidden" libraries, object files and flags are used when
11823 # linking a shared library.
11825 # There doesn't appear to be a way to prevent this compiler from
11826 # explicitly linking system object files so we need to strip them
11827 # from the output so that they don't get included in the library
11829 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'
11832 case `$CC -V 2>&1 | sed 5q` in
11835 no_undefined_flag_CXX=' -zdefs'
11836 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11837 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11838 hardcode_libdir_flag_spec_CXX='-R$libdir'
11839 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11841 # Not sure whether something based on
11842 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11844 output_verbose_link_cmd='echo'
11846 # Archives containing C++ object files must be created using
11847 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11848 # necessary to make sure instantiated templates are included
11850 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11857 # FIXME: insert proper C++ library support
11861 # FIXME: insert proper C++ library support
11865 case $cc_basename in
11867 # FIXME: insert proper C++ library support
11871 # FIXME: insert proper C++ library support
11876 netbsd* | netbsdelf*-gnu)
11877 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11878 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11880 hardcode_libdir_flag_spec_CXX='-R$libdir'
11881 hardcode_direct_CXX=yes
11882 hardcode_shlibpath_var_CXX=no
11884 # Workaround some broken pre-1.5 toolchains
11885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11888 # C++ shared libraries are fairly broken
11892 if test -f /usr/libexec/ld.so; then
11893 hardcode_direct_CXX=yes
11894 hardcode_shlibpath_var_CXX=no
11895 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11898 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11899 export_dynamic_flag_spec_CXX='${wl}-E'
11900 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11902 output_verbose_link_cmd='echo'
11908 case $cc_basename in
11910 # Kuck and Associates, Inc. (KAI) C++ Compiler
11912 # KCC will only create a shared library if the output file
11913 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11914 # to its proper name (with version) after linking.
11915 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'
11917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11918 hardcode_libdir_separator_CXX=:
11920 # Archives containing C++ object files must be created using
11921 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11922 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11926 # Rational C++ 2.4.1
11927 # FIXME: insert proper C++ library support
11931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11932 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'
11934 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11935 hardcode_libdir_separator_CXX=:
11937 # Commands to make compiler produce verbose output that lists
11938 # what "hidden" libraries, object files and flags are used when
11939 # linking a shared library.
11941 # There doesn't appear to be a way to prevent this compiler from
11942 # explicitly linking system object files so we need to strip them
11943 # from the output so that they don't get included in the library
11945 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'
11948 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11949 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11950 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'
11952 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11953 hardcode_libdir_separator_CXX=:
11955 # Commands to make compiler produce verbose output that lists
11956 # what "hidden" libraries, object files and flags are used when
11957 # linking a shared library.
11958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11961 # FIXME: insert proper C++ library support
11968 case $cc_basename in
11970 # Kuck and Associates, Inc. (KAI) C++ Compiler
11972 # KCC will only create a shared library if the output file
11973 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11974 # to its proper name (with version) after linking.
11975 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'
11977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11978 hardcode_libdir_separator_CXX=:
11980 # Archives containing C++ object files must be created using
11981 # the KAI C++ compiler.
11982 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11985 # Rational C++ 2.4.1
11986 # FIXME: insert proper C++ library support
11990 allow_undefined_flag_CXX=' -expect_unresolved \*'
11991 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'
11992 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11993 echo "-hidden">> $lib.exp~
11994 $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~
11997 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11998 hardcode_libdir_separator_CXX=:
12000 # Commands to make compiler produce verbose output that lists
12001 # what "hidden" libraries, object files and flags are used when
12002 # linking a shared library.
12004 # There doesn't appear to be a way to prevent this compiler from
12005 # explicitly linking system object files so we need to strip them
12006 # from the output so that they don't get included in the library
12008 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'
12011 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12012 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12013 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'
12015 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12016 hardcode_libdir_separator_CXX=:
12018 # Commands to make compiler produce verbose output that lists
12019 # what "hidden" libraries, object files and flags are used when
12020 # linking a shared library.
12021 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12024 # FIXME: insert proper C++ library support
12031 # FIXME: insert proper C++ library support
12035 case $cc_basename in
12038 # FIXME: insert proper C++ library support
12043 # FIXME: insert proper C++ library support
12047 # FIXME: insert proper C++ library support
12053 case $cc_basename in
12055 # Sun C++ 4.2, 5.x and Centerline C++
12056 archive_cmds_need_lc_CXX=yes
12057 no_undefined_flag_CXX=' -zdefs'
12058 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12059 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12060 $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'
12062 hardcode_libdir_flag_spec_CXX='-R$libdir'
12063 hardcode_shlibpath_var_CXX=no
12065 solaris2.[0-5] | solaris2.[0-5].*) ;;
12067 # The compiler driver will combine and reorder linker options,
12068 # but understands `-z linker_flag'.
12069 # Supported since Solaris 2.6 (maybe 2.5.1?)
12070 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12073 link_all_deplibs_CXX=yes
12075 output_verbose_link_cmd='echo'
12077 # Archives containing C++ object files must be created using
12078 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12079 # necessary to make sure instantiated templates are included
12081 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12084 # Green Hills C++ Compiler
12085 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12087 # The C++ compiler must be used to create the archive.
12088 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12091 # GNU C++ compiler with Solaris linker
12092 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12093 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12094 if $CC --version | grep -v '^2\.7' > /dev/null; then
12095 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12096 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12097 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12099 # Commands to make compiler produce verbose output that lists
12100 # what "hidden" libraries, object files and flags are used when
12101 # linking a shared library.
12102 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12104 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12106 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12107 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12108 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12110 # Commands to make compiler produce verbose output that lists
12111 # what "hidden" libraries, object files and flags are used when
12112 # linking a shared library.
12113 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12116 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12118 solaris2.[0-5] | solaris2.[0-5].*) ;;
12120 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12128 no_undefined_flag_CXX='${wl}-z,text'
12129 archive_cmds_need_lc_CXX=no
12130 hardcode_shlibpath_var_CXX=no
12131 runpath_var='LD_RUN_PATH'
12133 case $cc_basename in
12135 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 sysv5* | sco3.2v5* | sco5v6*)
12145 # Note: We can NOT use -z defs as we might desire, because we do not
12146 # link with -lc, and that would cause any symbols used from libc to
12147 # always be unresolved, which means just about no library would
12148 # ever link correctly. If we're not using GNU ld we use -z text
12149 # though, which does catch some bad symbols but isn't as heavy-handed
12151 # For security reasons, it is highly recommended that you always
12152 # use absolute paths for naming shared libraries, and exclude the
12153 # DT_RUNPATH tag from executables and libraries. But doing so
12154 # requires that you compile everything twice, which is a pain.
12155 # So that behaviour is only enabled if SCOABSPATH is set to a
12156 # non-empty value in the environment. Most likely only useful for
12157 # creating official distributions of packages.
12158 # This is a hack until libtool officially supports absolute path
12159 # names for shared libraries.
12160 no_undefined_flag_CXX='${wl}-z,text'
12161 allow_undefined_flag_CXX='${wl}-z,nodefs'
12162 archive_cmds_need_lc_CXX=no
12163 hardcode_shlibpath_var_CXX=no
12164 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12165 hardcode_libdir_separator_CXX=':'
12166 link_all_deplibs_CXX=yes
12167 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12168 runpath_var='LD_RUN_PATH'
12170 case $cc_basename in
12172 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12173 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12182 case $cc_basename in
12184 # NonStop-UX NCC 3.20
12185 # FIXME: insert proper C++ library support
12189 # FIXME: insert proper C++ library support
12195 # FIXME: insert proper C++ library support
12199 # FIXME: insert proper C++ library support
12203 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12204 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12205 test "$ld_shlibs_CXX" = no && can_build_shared=no
12210 cat > conftest.$ac_ext <<EOF
12214 Foo (void) { a = 0; }
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; then
12225 # Parse the compiler output and extract the necessary
12226 # objects, libraries and library flags.
12228 # Sentinel used to keep track of whether or not we are before
12229 # the conftest object file.
12230 pre_test_object_deps_done=no
12232 # The `*' in the case matches for architectures that use `case' in
12233 # $output_verbose_cmd can trigger glob expansion during the loop
12234 # eval without this substitution.
12235 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12237 for p in `eval $output_verbose_link_cmd`; do
12241 # Some compilers place space between "-{L,R}" and the path.
12242 # Remove the space.
12243 if test $p = "-L" \
12244 || test $p = "-R"; then
12251 if test "$pre_test_object_deps_done" = no; then
12254 # Internal compiler library paths should come after those
12255 # provided the user. The postdeps already come after the
12256 # user supplied libs so there is no need to process them.
12257 if test -z "$compiler_lib_search_path_CXX"; then
12258 compiler_lib_search_path_CXX="${prev}${p}"
12260 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12263 # The "-l" case would never come before the object being
12264 # linked, so don't bother handling this case.
12267 if test -z "$postdeps_CXX"; then
12268 postdeps_CXX="${prev}${p}"
12270 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12276 # This assumes that the test object file only shows up
12277 # once in the compiler output.
12278 if test "$p" = "conftest.$objext"; then
12279 pre_test_object_deps_done=yes
12283 if test "$pre_test_object_deps_done" = no; then
12284 if test -z "$predep_objects_CXX"; then
12285 predep_objects_CXX="$p"
12287 predep_objects_CXX="$predep_objects_CXX $p"
12290 if test -z "$postdep_objects_CXX"; then
12291 postdep_objects_CXX="$p"
12293 postdep_objects_CXX="$postdep_objects_CXX $p"
12298 *) ;; # Ignore the rest.
12306 echo "libtool.m4: error: problem compiling CXX test program"
12309 $rm -f confest.$objext
12311 compiler_lib_search_dirs_CXX=
12312 if test -n "$compiler_lib_search_path_CXX"; then
12313 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12316 # PORTME: override above test on systems where it is broken
12319 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12320 # hack all around it, let's just trust "g++" to DTRT.
12321 predep_objects_CXX=
12322 postdep_objects_CXX=
12327 case `$CC -V 2>&1 | sed 5q` in
12331 # The more standards-conforming stlport4 library is
12332 # incompatible with the Cstd library. Avoid specifying
12333 # it if it's in CXXFLAGS. Ignore libCrun as
12334 # -library=stlport4 depends on it.
12335 case " $CXX $CXXFLAGS " in
12336 *" -library=stlport4 "*)
12337 solaris_use_stlport4=yes
12340 if test "$solaris_use_stlport4" != yes; then
12341 postdeps_CXX='-library=Cstd -library=Crun'
12348 case $cc_basename in
12350 # The more standards-conforming stlport4 library is
12351 # incompatible with the Cstd library. Avoid specifying
12352 # it if it's in CXXFLAGS. Ignore libCrun as
12353 # -library=stlport4 depends on it.
12354 case " $CXX $CXXFLAGS " in
12355 *" -library=stlport4 "*)
12356 solaris_use_stlport4=yes
12360 # Adding this requires a known-good setup of shared libraries for
12361 # Sun compiler versions before 5.6, else PIC objects from an old
12362 # archive will be linked into the output, leading to subtle bugs.
12363 if test "$solaris_use_stlport4" != yes; then
12364 postdeps_CXX='-library=Cstd -library=Crun'
12371 case " $postdeps_CXX " in
12372 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12375 lt_prog_compiler_wl_CXX=
12376 lt_prog_compiler_pic_CXX=
12377 lt_prog_compiler_static_CXX=
12379 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12380 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12382 # C++ specific cases for pic, static, wl, etc.
12383 if test "$GXX" = yes; then
12384 lt_prog_compiler_wl_CXX='-Wl,'
12385 lt_prog_compiler_static_CXX='-static'
12389 # All AIX code is PIC.
12390 if test "$host_cpu" = ia64; then
12391 # AIX 5 now supports IA64 processor
12392 lt_prog_compiler_static_CXX='-Bstatic'
12396 # FIXME: we need at least 68020 code to build shared libraries, but
12397 # adding the `-m68020' flag to GCC prevents building anything better,
12399 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12401 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12402 # PIC is the default for these OSes.
12404 mingw* | cygwin* | os2* | pw32*)
12405 # This hack is so that the source file can tell whether it is being
12406 # built for inclusion in a dll (and should export symbols for example).
12407 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12408 # (--disable-auto-import) libraries
12409 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12411 darwin* | rhapsody*)
12412 # PIC is the default on this platform
12413 # Common symbols not allowed in MH_DYLIB files
12414 lt_prog_compiler_pic_CXX='-fno-common'
12417 # DJGPP does not support shared libraries at all
12418 lt_prog_compiler_pic_CXX=
12421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12422 # Instead, we relocate shared libraries at runtime.
12425 if test -d /usr/nec; then
12426 lt_prog_compiler_pic_CXX=-Kconform_pic
12430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12431 # not for PA HP-UX.
12436 lt_prog_compiler_pic_CXX='-fPIC'
12441 lt_prog_compiler_pic_CXX='-fPIC'
12447 # All AIX code is PIC.
12448 if test "$host_cpu" = ia64; then
12449 # AIX 5 now supports IA64 processor
12450 lt_prog_compiler_static_CXX='-Bstatic'
12452 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12456 case $cc_basename in
12458 # Green Hills C++ Compiler
12459 # _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"
12464 # PIC is the default on this platform
12465 # Common symbols not allowed in MH_DYLIB files
12466 case $cc_basename in
12468 lt_prog_compiler_pic_CXX='-qnocommon'
12469 lt_prog_compiler_wl_CXX='-Wl,'
12474 case $cc_basename in
12476 lt_prog_compiler_pic_CXX='-KPIC'
12479 # Green Hills C++ Compiler
12480 lt_prog_compiler_pic_CXX='-pic'
12486 freebsd* | dragonfly*)
12487 # FreeBSD uses GNU C++
12489 hpux9* | hpux10* | hpux11*)
12490 case $cc_basename in
12492 lt_prog_compiler_wl_CXX='-Wl,'
12493 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12494 if test "$host_cpu" != ia64; then
12495 lt_prog_compiler_pic_CXX='+Z'
12499 lt_prog_compiler_wl_CXX='-Wl,'
12500 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12506 lt_prog_compiler_pic_CXX='+Z'
12515 # This is c89, which is MS Visual C++ (no shared libs)
12516 # Anyone wants to do a port?
12518 irix5* | irix6* | nonstopux*)
12519 case $cc_basename in
12521 lt_prog_compiler_wl_CXX='-Wl,'
12522 lt_prog_compiler_static_CXX='-non_shared'
12523 # CC pic flag -KPIC is the default.
12529 linux* | k*bsd*-gnu)
12530 case $cc_basename in
12533 lt_prog_compiler_wl_CXX='--backend -Wl,'
12534 lt_prog_compiler_pic_CXX='-fPIC'
12538 lt_prog_compiler_wl_CXX='-Wl,'
12539 lt_prog_compiler_pic_CXX='-KPIC'
12540 lt_prog_compiler_static_CXX='-static'
12543 # Portland Group C++ compiler.
12544 lt_prog_compiler_wl_CXX='-Wl,'
12545 lt_prog_compiler_pic_CXX='-fpic'
12546 lt_prog_compiler_static_CXX='-Bstatic'
12550 # Make sure the PIC flag is empty. It appears that all Alpha
12551 # Linux and Compaq Tru64 Unix objects are PIC.
12552 lt_prog_compiler_pic_CXX=
12553 lt_prog_compiler_static_CXX='-non_shared'
12556 case `$CC -V 2>&1 | sed 5q` in
12559 lt_prog_compiler_pic_CXX='-KPIC'
12560 lt_prog_compiler_static_CXX='-Bstatic'
12561 lt_prog_compiler_wl_CXX='-Qoption ld '
12572 case $cc_basename in
12574 lt_prog_compiler_pic_CXX='-W c,exportall'
12580 netbsd* | netbsdelf*-gnu)
12582 osf3* | osf4* | osf5*)
12583 case $cc_basename in
12585 lt_prog_compiler_wl_CXX='--backend -Wl,'
12588 # Rational C++ 2.4.1
12589 lt_prog_compiler_pic_CXX='-pic'
12592 # Digital/Compaq C++
12593 lt_prog_compiler_wl_CXX='-Wl,'
12594 # Make sure the PIC flag is empty. It appears that all Alpha
12595 # Linux and Compaq Tru64 Unix objects are PIC.
12596 lt_prog_compiler_pic_CXX=
12597 lt_prog_compiler_static_CXX='-non_shared'
12606 case $cc_basename in
12608 # Sun C++ 4.2, 5.x and Centerline C++
12609 lt_prog_compiler_pic_CXX='-KPIC'
12610 lt_prog_compiler_static_CXX='-Bstatic'
12611 lt_prog_compiler_wl_CXX='-Qoption ld '
12614 # Green Hills C++ Compiler
12615 lt_prog_compiler_pic_CXX='-PIC'
12622 case $cc_basename in
12625 lt_prog_compiler_pic_CXX='-pic'
12626 lt_prog_compiler_static_CXX='-Bstatic'
12630 lt_prog_compiler_pic_CXX='-pic'
12637 case $cc_basename in
12639 # NonStop-UX NCC 3.20
12640 lt_prog_compiler_pic_CXX='-KPIC'
12646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12647 case $cc_basename in
12649 lt_prog_compiler_wl_CXX='-Wl,'
12650 lt_prog_compiler_pic_CXX='-KPIC'
12651 lt_prog_compiler_static_CXX='-Bstatic'
12658 lt_prog_compiler_can_build_shared_CXX=no
12663 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12664 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12667 # Check to make sure the PIC flag actually works.
12669 if test -n "$lt_prog_compiler_pic_CXX"; then
12671 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12672 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12673 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 lt_cv_prog_compiler_pic_works_CXX=no
12677 ac_outfile=conftest.$ac_objext
12678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12679 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12680 # Insert the option either (1) after the last *FLAGS variable, or
12681 # (2) before a word containing "conftest.", or (3) at the end.
12682 # Note that $ac_compile itself does not contain backslashes and begins
12683 # with a dollar sign (not a hyphen), so the echo should work correctly.
12684 # The option is referenced via a variable to avoid confusing sed.
12685 lt_compile=`echo "$ac_compile" | $SED \
12686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12688 -e 's:$: $lt_compiler_flag:'`
12689 (eval echo "\"\$as_me:12689: $lt_compile\"" >&5)
12690 (eval "$lt_compile" 2>conftest.err)
12692 cat conftest.err >&5
12693 echo "$as_me:12693: \$? = $ac_status" >&5
12694 if (exit $ac_status) && test -s "$ac_outfile"; then
12695 # The compiler can only warn and ignore the option if not recognized
12696 # So say no if there are warnings other than the usual output.
12697 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12699 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12700 lt_cv_prog_compiler_pic_works_CXX=yes
12706 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12707 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12709 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12710 case $lt_prog_compiler_pic_CXX in
12712 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12715 lt_prog_compiler_pic_CXX=
12716 lt_prog_compiler_can_build_shared_CXX=no
12721 # For platforms which do not support PIC, -DPIC is meaningless:
12723 lt_prog_compiler_pic_CXX=
12726 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12731 # Check to make sure the static flag actually works.
12733 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12734 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12735 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12736 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 lt_cv_prog_compiler_static_works_CXX=no
12740 save_LDFLAGS="$LDFLAGS"
12741 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12742 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12743 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12744 # The linker can only warn and ignore the option if not recognized
12745 # So say no if there are warnings
12746 if test -s conftest.err; then
12747 # Append any errors to the config.log.
12748 cat conftest.err 1>&5
12749 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12751 if diff conftest.exp conftest.er2 >/dev/null; then
12752 lt_cv_prog_compiler_static_works_CXX=yes
12755 lt_cv_prog_compiler_static_works_CXX=yes
12759 LDFLAGS="$save_LDFLAGS"
12762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12763 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12765 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12768 lt_prog_compiler_static_CXX=
12772 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12773 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12774 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 lt_cv_prog_compiler_c_o_CXX=no
12778 $rm -r conftest 2>/dev/null
12782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12784 lt_compiler_flag="-o out/conftest2.$ac_objext"
12785 # Insert the option either (1) after the last *FLAGS variable, or
12786 # (2) before a word containing "conftest.", or (3) at the end.
12787 # Note that $ac_compile itself does not contain backslashes and begins
12788 # with a dollar sign (not a hyphen), so the echo should work correctly.
12789 lt_compile=`echo "$ac_compile" | $SED \
12790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12792 -e 's:$: $lt_compiler_flag:'`
12793 (eval echo "\"\$as_me:12793: $lt_compile\"" >&5)
12794 (eval "$lt_compile" 2>out/conftest.err)
12796 cat out/conftest.err >&5
12797 echo "$as_me:12797: \$? = $ac_status" >&5
12798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12800 # The compiler can only warn and ignore the option if not recognized
12801 # So say no if there are warnings
12802 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12805 lt_cv_prog_compiler_c_o_CXX=yes
12810 # SGI C++ compiler will create directory out/ii_files/ for
12811 # template instantiation
12812 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12813 $rm out/* && rmdir out
12819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12820 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12823 hard_links="nottested"
12824 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12825 # do not overwrite the value of need_locks provided by the user
12826 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12827 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12832 ln conftest.a conftest.b 2>&5 || hard_links=no
12833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12834 { echo "$as_me:$LINENO: result: $hard_links" >&5
12835 echo "${ECHO_T}$hard_links" >&6; }
12836 if test "$hard_links" = no; then
12837 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12838 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12845 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12846 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12848 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12851 # If we're using GNU nm, then we don't want the "-C" option.
12852 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12853 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12854 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'
12856 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'
12860 export_symbols_cmds_CXX="$ltdll_cmds"
12863 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'
12865 linux* | k*bsd*-gnu)
12866 link_all_deplibs_CXX=no
12869 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12872 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12874 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12875 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12876 test "$ld_shlibs_CXX" = no && can_build_shared=no
12879 # Do we need to explicitly link libc?
12881 case "x$archive_cmds_need_lc_CXX" in
12883 # Assume -lc should be added
12884 archive_cmds_need_lc_CXX=yes
12886 if test "$enable_shared" = yes && test "$GCC" = yes; then
12887 case $archive_cmds_CXX in
12889 # FIXME: we may have to deal with multi-command sequences.
12892 # Test whether the compiler implicitly links with -lc since on some
12893 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12894 # to ld, don't add -lc before -lgcc.
12895 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12896 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } 2>conftest.err; then
12907 libobjs=conftest.$ac_objext
12909 wl=$lt_prog_compiler_wl_CXX
12910 pic_flag=$lt_prog_compiler_pic_CXX
12916 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12917 allow_undefined_flag_CXX=
12918 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12919 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }
12924 archive_cmds_need_lc_CXX=no
12926 archive_cmds_need_lc_CXX=yes
12928 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12930 cat conftest.err 1>&5
12933 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12934 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12941 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12942 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12943 library_names_spec=
12944 libname_spec='lib$name'
12948 postuninstall_cmds=
12952 shlibpath_overrides_runpath=unknown
12954 dynamic_linker="$host_os ld.so"
12955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12957 need_lib_prefix=unknown
12958 hardcode_into_libs=no
12960 # when you set need_version to no, make sure it does not cause -set_version
12961 # flags to be left without arguments
12962 need_version=unknown
12967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12968 shlibpath_var=LIBPATH
12970 # AIX 3 has no versioning support, so we append a major version to the name.
12971 soname_spec='${libname}${release}${shared_ext}$major'
12978 hardcode_into_libs=yes
12979 if test "$host_cpu" = ia64; then
12980 # AIX 5 supports IA64
12981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12982 shlibpath_var=LD_LIBRARY_PATH
12984 # With GCC up to 2.95.x, collect2 would create an import file
12985 # for dependence libraries. The import file would start with
12986 # the line `#! .'. This would cause the generated library to
12987 # depend on `.', always an invalid library. This was fixed in
12988 # development snapshots of GCC prior to 3.0.
12990 aix4 | aix4.[01] | aix4.[01].*)
12991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12996 can_build_shared=no
13000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13001 # soname into executable. Probably we can add versioning support to
13002 # collect2, so additional links can be useful in future.
13003 if test "$aix_use_runtimelinking" = yes; then
13004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13005 # instead of lib<name>.a to let people know that these are not
13006 # typical AIX shared libraries.
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 # We preserve .a as extension for shared libraries through AIX4.2
13010 # and later when we are not doing run time linking.
13011 library_names_spec='${libname}${release}.a $libname.a'
13012 soname_spec='${libname}${release}${shared_ext}$major'
13014 shlibpath_var=LIBPATH
13019 library_names_spec='$libname.ixlibrary $libname.a'
13020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13021 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'
13025 library_names_spec='${libname}${shared_ext}'
13026 dynamic_linker="$host_os ld.so"
13027 shlibpath_var=LIBRARY_PATH
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034 soname_spec='${libname}${release}${shared_ext}$major'
13035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13039 # the default ld.so.conf also contains /usr/contrib/lib and
13040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13041 # libtool to hard-code these into programs
13044 cygwin* | mingw* | pw32*)
13045 version_type=windows
13050 case $GCC,$host_os in
13051 yes,cygwin* | yes,mingw* | yes,pw32*)
13052 library_names_spec='$libname.dll.a'
13053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13054 postinstall_cmds='base_file=`basename \${file}`~
13055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13056 dldir=$destdir/`dirname \$dlpath`~
13057 test -d \$dldir || mkdir -p \$dldir~
13058 $install_prog $dir/$dlname \$dldir/$dlname~
13059 chmod a+x \$dldir/$dlname'
13060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13061 dlpath=$dir/\$dldll~
13063 shlibpath_overrides_runpath=yes
13067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13069 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13072 # MinGW DLLs use traditional 'lib' prefix
13073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13076 # It is most probably a Windows format PATH printed by
13077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13078 # path with ; separators, and with drive letters. We can handle the
13079 # drive letters (cygwin fileutils understands them), so leave them,
13080 # especially as we might pass files found there to a mingw objdump,
13081 # which wouldn't understand a cygwinified path. Ahh.
13082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13088 # pw32 DLLs use 'pw' prefix rather than 'lib'
13089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13098 dynamic_linker='Win32 ld.exe'
13099 # FIXME: first we should search . and the directory the executable is in
13103 darwin* | rhapsody*)
13104 dynamic_linker="$host_os dyld"
13105 version_type=darwin
13108 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13109 soname_spec='${libname}${release}${major}$shared_ext'
13110 shlibpath_overrides_runpath=yes
13111 shlibpath_var=DYLD_LIBRARY_PATH
13112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13122 soname_spec='${libname}${release}${shared_ext}$major'
13123 shlibpath_var=LD_LIBRARY_PATH
13130 freebsd* | dragonfly*)
13131 # DragonFly does not have aout. When/if they implement a new
13132 # versioning mechanism, adjust this.
13133 if test -x /usr/bin/objformat; then
13134 objformat=`/usr/bin/objformat`
13137 freebsd[123]*) objformat=aout ;;
13138 *) objformat=elf ;;
13141 version_type=freebsd-$objformat
13142 case $version_type in
13144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13153 shlibpath_var=LD_LIBRARY_PATH
13156 shlibpath_overrides_runpath=yes
13158 freebsd3.[01]* | freebsdelf3.[01]*)
13159 shlibpath_overrides_runpath=yes
13160 hardcode_into_libs=yes
13162 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13163 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13164 shlibpath_overrides_runpath=no
13165 hardcode_into_libs=yes
13167 *) # from 4.6 on, and DragonFly
13168 shlibpath_overrides_runpath=yes
13169 hardcode_into_libs=yes
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13179 soname_spec='${libname}${release}${shared_ext}$major'
13180 shlibpath_var=LD_LIBRARY_PATH
13181 hardcode_into_libs=yes
13184 hpux9* | hpux10* | hpux11*)
13185 # Give a soname corresponding to the major version so that dld.sl refuses to
13186 # link against other versions.
13193 hardcode_into_libs=yes
13194 dynamic_linker="$host_os dld.so"
13195 shlibpath_var=LD_LIBRARY_PATH
13196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 if test "X$HPUX_IA64_MODE" = X32; then
13200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13208 hardcode_into_libs=yes
13209 dynamic_linker="$host_os dld.sl"
13210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213 soname_spec='${libname}${release}${shared_ext}$major'
13214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13219 dynamic_linker="$host_os dld.sl"
13220 shlibpath_var=SHLIB_PATH
13221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13226 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13227 postinstall_cmds='chmod 555 $lib'
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13235 soname_spec='${libname}${release}${shared_ext}$major'
13236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13237 shlibpath_var=LD_LIBRARY_PATH
13238 shlibpath_overrides_runpath=no
13239 hardcode_into_libs=yes
13242 irix5* | irix6* | nonstopux*)
13244 nonstopux*) version_type=nonstopux ;;
13246 if test "$lt_cv_prog_gnu_ld" = yes; then
13254 soname_spec='${libname}${release}${shared_ext}$major'
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13257 irix5* | nonstopux*)
13258 libsuff= shlibsuff=
13261 case $LD in # libtool.m4 will add one of these switches to LD
13262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13263 libsuff= shlibsuff= libmagic=32-bit;;
13264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13265 libsuff=32 shlibsuff=N32 libmagic=N32;;
13266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13267 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13268 *) libsuff= shlibsuff= libmagic=never-match;;
13272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13273 shlibpath_overrides_runpath=no
13274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13276 hardcode_into_libs=yes
13279 # No shared lib support for Linux oldld, aout, or coff.
13280 linux*oldld* | linux*aout* | linux*coff*)
13284 # This must be Linux ELF.
13285 linux* | k*bsd*-gnu)
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13292 shlibpath_var=LD_LIBRARY_PATH
13293 shlibpath_overrides_runpath=no
13294 # This implies no fast_install, which is unacceptable.
13295 # Some rework will be needed to allow for fast_install
13296 # before this can be enabled.
13297 hardcode_into_libs=yes
13299 # Append ld.so.conf contents to the search path
13300 if test -f /etc/ld.so.conf; then
13301 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13302 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13305 # We used to test for /lib/ld.so.1 and disable shared libraries on
13306 # powerpc, because MkLinux only supported shared libraries with the
13307 # GNU dynamic linker. Since this was broken with cross compilers,
13308 # most powerpc-linux boxes support dynamic linking these days and
13309 # people can always --disable-shared, the test was removed, and we
13310 # assume the GNU/Linux dynamic linker is in use.
13311 dynamic_linker='GNU/Linux ld.so'
13318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13319 soname_spec='${libname}${release}${shared_ext}$major'
13320 shlibpath_var=LD_LIBRARY_PATH
13321 shlibpath_overrides_runpath=no
13322 hardcode_into_libs=yes
13323 dynamic_linker='NetBSD ld.elf_so'
13330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13333 dynamic_linker='NetBSD (a.out) ld.so'
13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13336 soname_spec='${libname}${release}${shared_ext}$major'
13337 dynamic_linker='NetBSD ld.elf_so'
13339 shlibpath_var=LD_LIBRARY_PATH
13340 shlibpath_overrides_runpath=yes
13341 hardcode_into_libs=yes
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347 shlibpath_var=LD_LIBRARY_PATH
13348 shlibpath_overrides_runpath=yes
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13356 soname_spec='${libname}${release}${shared_ext}$major'
13357 shlibpath_var=LD_LIBRARY_PATH
13358 shlibpath_overrides_runpath=yes
13363 sys_lib_dlsearch_path_spec="/usr/lib"
13365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13367 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13368 *) need_version=no ;;
13370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13372 shlibpath_var=LD_LIBRARY_PATH
13373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13375 openbsd2.[89] | openbsd2.[89].*)
13376 shlibpath_overrides_runpath=no
13379 shlibpath_overrides_runpath=yes
13383 shlibpath_overrides_runpath=yes
13388 libname_spec='$name'
13391 library_names_spec='$libname${shared_ext} $libname.a'
13392 dynamic_linker='OS/2 ld.exe'
13393 shlibpath_var=LIBPATH
13396 osf3* | osf4* | osf5*)
13400 soname_spec='${libname}${release}${shared_ext}$major'
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 soname_spec='${libname}${release}${shared_ext}$major'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 shlibpath_overrides_runpath=yes
13419 hardcode_into_libs=yes
13420 # ldd complains unless libraries are executable
13421 postinstall_cmds='chmod +x $lib'
13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13428 shlibpath_var=LD_LIBRARY_PATH
13429 shlibpath_overrides_runpath=yes
13430 if test "$with_gnu_ld" = yes; then
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 shlibpath_var=LD_LIBRARY_PATH
13441 case $host_vendor in
13443 shlibpath_overrides_runpath=no
13445 export_dynamic_flag_spec='${wl}-Blargedynsym'
13446 runpath_var=LD_RUN_PATH
13454 shlibpath_overrides_runpath=no
13455 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13461 if test -d /usr/nec ;then
13463 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13464 soname_spec='$libname${shared_ext}.$major'
13465 shlibpath_var=LD_LIBRARY_PATH
13469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13470 version_type=freebsd-elf
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 hardcode_into_libs=yes
13477 if test "$with_gnu_ld" = yes; then
13478 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13479 shlibpath_overrides_runpath=no
13481 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13482 shlibpath_overrides_runpath=yes
13485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13489 sys_lib_dlsearch_path_spec='/usr/lib'
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 shlibpath_var=LD_LIBRARY_PATH
13503 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13504 echo "${ECHO_T}$dynamic_linker" >&6; }
13505 test "$dynamic_linker" = no && can_build_shared=no
13507 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13513 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13514 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13520 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13522 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13523 if test "$GCC" = yes; then
13524 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13527 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13528 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13529 hardcode_action_CXX=
13530 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13531 test -n "$runpath_var_CXX" || \
13532 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13534 # We can hardcode non-existant directories.
13535 if test "$hardcode_direct_CXX" != no &&
13536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13537 # have to relink, otherwise we might link with an installed library
13538 # when we should be linking with a yet-to-be-installed one
13539 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13540 test "$hardcode_minus_L_CXX" != no; then
13541 # Linking always hardcodes the temporary library directory.
13542 hardcode_action_CXX=relink
13544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13545 hardcode_action_CXX=immediate
13548 # We cannot hardcode anything, or else we can only hardcode existing
13550 hardcode_action_CXX=unsupported
13552 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13553 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13555 if test "$hardcode_action_CXX" = relink; then
13556 # Fast installation is not supported
13557 enable_fast_install=no
13558 elif test "$shlibpath_overrides_runpath" = yes ||
13559 test "$enable_shared" = no; then
13560 # Fast installation is not necessary
13561 enable_fast_install=needless
13565 # The else clause should only fire when bootstrapping the
13566 # libtool distribution, otherwise you forgot to ship ltmain.sh
13567 # with your package, and you will get complaints that there are
13568 # no rules to generate ltmain.sh.
13569 if test -f "$ltmain"; then
13570 # See if we are running on zsh, and set the options which allow our commands through
13571 # without removal of \ escapes.
13572 if test -n "${ZSH_VERSION+set}" ; then
13573 setopt NO_GLOB_SUBST
13575 # Now quote all the things that may contain metacharacters while being
13576 # careful not to overquote the AC_SUBSTed values. We take copies of the
13577 # variables and quote the copies for generation of the libtool script.
13578 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13580 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13581 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13582 deplibs_check_method reload_flag reload_cmds need_locks \
13583 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13584 lt_cv_sys_global_symbol_to_c_name_address \
13585 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13586 old_postinstall_cmds old_postuninstall_cmds \
13590 lt_prog_compiler_wl_CXX \
13591 lt_prog_compiler_pic_CXX \
13592 lt_prog_compiler_static_CXX \
13593 lt_prog_compiler_no_builtin_flag_CXX \
13594 export_dynamic_flag_spec_CXX \
13595 thread_safe_flag_spec_CXX \
13596 whole_archive_flag_spec_CXX \
13597 enable_shared_with_static_runtimes_CXX \
13598 old_archive_cmds_CXX \
13599 old_archive_from_new_cmds_CXX \
13600 predep_objects_CXX \
13601 postdep_objects_CXX \
13604 compiler_lib_search_path_CXX \
13605 compiler_lib_search_dirs_CXX \
13607 archive_expsym_cmds_CXX \
13608 postinstall_cmds_CXX \
13609 postuninstall_cmds_CXX \
13610 old_archive_from_expsyms_cmds_CXX \
13611 allow_undefined_flag_CXX \
13612 no_undefined_flag_CXX \
13613 export_symbols_cmds_CXX \
13614 hardcode_libdir_flag_spec_CXX \
13615 hardcode_libdir_flag_spec_ld_CXX \
13616 hardcode_libdir_separator_CXX \
13617 hardcode_automatic_CXX \
13619 module_expsym_cmds_CXX \
13620 lt_cv_prog_compiler_c_o_CXX \
13621 fix_srcfile_path_CXX \
13622 exclude_expsyms_CXX \
13623 include_expsyms_CXX; do
13626 old_archive_cmds_CXX | \
13627 old_archive_from_new_cmds_CXX | \
13628 archive_cmds_CXX | \
13629 archive_expsym_cmds_CXX | \
13630 module_cmds_CXX | \
13631 module_expsym_cmds_CXX | \
13632 old_archive_from_expsyms_cmds_CXX | \
13633 export_symbols_cmds_CXX | \
13634 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13635 postinstall_cmds | postuninstall_cmds | \
13636 old_postinstall_cmds | old_postuninstall_cmds | \
13637 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13638 # Double-quote double-evaled strings.
13639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13648 *'\$0 --fallback-echo"')
13649 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13655 cat <<__EOF__ >> "$cfgfile"
13656 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13660 # Shell to use when invoking shell scripts.
13663 # Whether or not to build shared libraries.
13664 build_libtool_libs=$enable_shared
13666 # Whether or not to build static libraries.
13667 build_old_libs=$enable_static
13669 # Whether or not to add -lc for building shared libraries.
13670 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13672 # Whether or not to disallow shared libs when runtime libs are static
13673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13675 # Whether or not to optimize for fast installation.
13676 fast_install=$enable_fast_install
13679 host_alias=$host_alias
13683 # The build system.
13684 build_alias=$build_alias
13688 # An echo program that does not interpret backslashes.
13693 AR_FLAGS=$lt_AR_FLAGS
13698 # LTCC compiler flags.
13699 LTCFLAGS=$lt_LTCFLAGS
13701 # A language-specific compiler.
13702 CC=$lt_compiler_CXX
13704 # Is the compiler the GNU C compiler?
13710 # The linker used to build libraries.
13713 # Whether we need hard or soft links.
13716 # A BSD-compatible nm program.
13719 # A symbol stripping program
13722 # Used to examine libraries when file_magic_cmd begins "file"
13723 MAGIC_CMD=$MAGIC_CMD
13725 # Used on cygwin: DLL creation program.
13728 # Used on cygwin: object dumper.
13731 # Used on cygwin: assembler.
13734 # The name of the directory that contains temporary libtool files.
13737 # How to create reloadable object files.
13738 reload_flag=$lt_reload_flag
13739 reload_cmds=$lt_reload_cmds
13741 # How to pass a linker flag through the compiler.
13742 wl=$lt_lt_prog_compiler_wl_CXX
13744 # Object file suffix (normally "o").
13745 objext="$ac_objext"
13747 # Old archive suffix (normally "a").
13750 # Shared library suffix (normally ".so").
13751 shrext_cmds='$shrext_cmds'
13753 # Executable file suffix (normally "").
13756 # Additional compiler flags for building library objects.
13757 pic_flag=$lt_lt_prog_compiler_pic_CXX
13760 # What is the maximum length of a command?
13761 max_cmd_len=$lt_cv_sys_max_cmd_len
13763 # Does compiler simultaneously support -c and -o options?
13764 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13766 # Must we lock files when doing compilation?
13767 need_locks=$lt_need_locks
13769 # Do we need the lib prefix for modules?
13770 need_lib_prefix=$need_lib_prefix
13772 # Do we need a version for libraries?
13773 need_version=$need_version
13775 # Whether dlopen is supported.
13776 dlopen_support=$enable_dlopen
13778 # Whether dlopen of programs is supported.
13779 dlopen_self=$enable_dlopen_self
13781 # Whether dlopen of statically linked programs is supported.
13782 dlopen_self_static=$enable_dlopen_self_static
13784 # Compiler flag to prevent dynamic linking.
13785 link_static_flag=$lt_lt_prog_compiler_static_CXX
13787 # Compiler flag to turn off builtin functions.
13788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13790 # Compiler flag to allow reflexive dlopens.
13791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13793 # Compiler flag to generate shared objects directly from archives.
13794 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13796 # Compiler flag to generate thread-safe objects.
13797 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13799 # Library versioning type.
13800 version_type=$version_type
13802 # Format of library name prefix.
13803 libname_spec=$lt_libname_spec
13805 # List of archive names. First name is the real one, the rest are links.
13806 # The last name is the one that the linker finds with -lNAME.
13807 library_names_spec=$lt_library_names_spec
13809 # The coded name of the library, if different from the real name.
13810 soname_spec=$lt_soname_spec
13812 # Commands used to build and install an old-style archive.
13814 old_archive_cmds=$lt_old_archive_cmds_CXX
13815 old_postinstall_cmds=$lt_old_postinstall_cmds
13816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13818 # Create an old-style archive from a shared archive.
13819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13821 # Create a temporary old-style archive to link instead of a shared archive.
13822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13824 # Commands used to build and install a shared archive.
13825 archive_cmds=$lt_archive_cmds_CXX
13826 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13827 postinstall_cmds=$lt_postinstall_cmds
13828 postuninstall_cmds=$lt_postuninstall_cmds
13830 # Commands used to build a loadable module (assumed same as above if empty)
13831 module_cmds=$lt_module_cmds_CXX
13832 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13834 # Commands to strip libraries.
13835 old_striplib=$lt_old_striplib
13836 striplib=$lt_striplib
13838 # Dependencies to place before the objects being linked to create a
13840 predep_objects=$lt_predep_objects_CXX
13842 # Dependencies to place after the objects being linked to create a
13844 postdep_objects=$lt_postdep_objects_CXX
13846 # Dependencies to place before the objects being linked to create a
13848 predeps=$lt_predeps_CXX
13850 # Dependencies to place after the objects being linked to create a
13852 postdeps=$lt_postdeps_CXX
13854 # The directories searched by this compiler when creating a shared
13856 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13858 # The library search path used internally by the compiler when linking
13859 # a shared library.
13860 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13862 # Method to check whether dependent libraries are shared objects.
13863 deplibs_check_method=$lt_deplibs_check_method
13865 # Command to use when deplibs_check_method == file_magic.
13866 file_magic_cmd=$lt_file_magic_cmd
13868 # Flag that allows shared libraries with undefined symbols to be built.
13869 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13871 # Flag that forces no undefined symbols.
13872 no_undefined_flag=$lt_no_undefined_flag_CXX
13874 # Commands used to finish a libtool library installation in a directory.
13875 finish_cmds=$lt_finish_cmds
13877 # Same as above, but a single script fragment to be evaled but not shown.
13878 finish_eval=$lt_finish_eval
13880 # Take the output of nm and produce a listing of raw symbols and C names.
13881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13883 # Transform the output of nm in a proper C declaration
13884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13886 # Transform the output of nm in a C name address pair
13887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13889 # This is the shared library runtime path variable.
13890 runpath_var=$runpath_var
13892 # This is the shared library path variable.
13893 shlibpath_var=$shlibpath_var
13895 # Is shlibpath searched before the hard-coded library search path?
13896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13898 # How to hardcode a shared library path into an executable.
13899 hardcode_action=$hardcode_action_CXX
13901 # Whether we should hardcode library paths into libraries.
13902 hardcode_into_libs=$hardcode_into_libs
13904 # Flag to hardcode \$libdir into a binary during linking.
13905 # This must work even if \$libdir does not exist.
13906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13908 # If ld is used when linking, flag to hardcode \$libdir into
13909 # a binary during linking. This must work even if \$libdir does
13911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13913 # Whether we need a single -rpath flag with a separated argument.
13914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13917 # resulting binary.
13918 hardcode_direct=$hardcode_direct_CXX
13920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13921 # resulting binary.
13922 hardcode_minus_L=$hardcode_minus_L_CXX
13924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13925 # the resulting binary.
13926 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13928 # Set to yes if building a shared library automatically hardcodes DIR into the library
13929 # and all subsequent libraries and executables linked against it.
13930 hardcode_automatic=$hardcode_automatic_CXX
13932 # Variables whose values should be saved in libtool wrapper scripts and
13933 # restored at relink time.
13934 variables_saved_for_relink="$variables_saved_for_relink"
13936 # Whether libtool must link a program against all its dependency libraries.
13937 link_all_deplibs=$link_all_deplibs_CXX
13939 # Compile-time system search path for libraries
13940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13942 # Run-time system search path for libraries
13943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13945 # Fix the shell variable \$srcfile for the compiler.
13946 fix_srcfile_path=$lt_fix_srcfile_path
13948 # Set to yes if exported symbols are required.
13949 always_export_symbols=$always_export_symbols_CXX
13951 # The commands to list exported symbols.
13952 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13954 # The commands to extract the exported symbol list from a shared archive.
13955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13957 # Symbols that should not be listed in the preloaded symbols.
13958 exclude_expsyms=$lt_exclude_expsyms_CXX
13960 # Symbols that must always be exported.
13961 include_expsyms=$lt_include_expsyms_CXX
13963 # ### END LIBTOOL TAG CONFIG: $tagname
13969 # If there is no Makefile yet, we rely on a make rule to execute
13970 # `config.status --recheck' to rerun these tests and create the
13971 # libtool script then.
13972 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13973 if test -f "$ltmain_in"; then
13974 test -f Makefile && make "$ltmain"
13980 ac_cpp='$CPP $CPPFLAGS'
13981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989 with_gnu_ldcxx=$with_gnu_ld
13990 with_gnu_ld=$lt_save_with_gnu_ld
13991 lt_cv_path_LDCXX=$lt_cv_path_LD
13992 lt_cv_path_LD=$lt_save_path_LD
13993 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13994 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14002 if test -n "$F77" && test "X$F77" != "Xno"; then
14005 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14006 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14010 archive_cmds_need_lc_F77=no
14011 allow_undefined_flag_F77=
14012 always_export_symbols_F77=no
14013 archive_expsym_cmds_F77=
14014 export_dynamic_flag_spec_F77=
14015 hardcode_direct_F77=no
14016 hardcode_libdir_flag_spec_F77=
14017 hardcode_libdir_flag_spec_ld_F77=
14018 hardcode_libdir_separator_F77=
14019 hardcode_minus_L_F77=no
14020 hardcode_automatic_F77=no
14022 module_expsym_cmds_F77=
14023 link_all_deplibs_F77=unknown
14024 old_archive_cmds_F77=$old_archive_cmds
14025 no_undefined_flag_F77=
14026 whole_archive_flag_spec_F77=
14027 enable_shared_with_static_runtimes_F77=no
14029 # Source file extension for f77 test sources.
14032 # Object file extension for compiled f77 test sources.
14036 # Code to be used in simple compile tests
14037 lt_simple_compile_test_code="\
14043 # Code to be used in simple link tests
14044 lt_simple_link_test_code="\
14049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14051 # If no C compiler was specified, use CC.
14054 # If no C compiler flags were specified, use CFLAGS.
14055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14057 # Allow CC to be a program name with arguments.
14061 # save warnings/boilerplate of simple test code
14062 ac_outfile=conftest.$ac_objext
14063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14065 _lt_compiler_boilerplate=`cat conftest.err`
14068 ac_outfile=conftest.$ac_objext
14069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14071 _lt_linker_boilerplate=`cat conftest.err`
14075 # Allow CC to be a program name with arguments.
14080 for cc_temp in $compiler""; do
14082 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14083 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14088 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14091 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14092 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14093 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14094 echo "${ECHO_T}$can_build_shared" >&6; }
14096 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14097 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14098 test "$can_build_shared" = "no" && enable_shared=no
14100 # On AIX, shared libraries and static libraries use the same namespace, and
14101 # are all built from PIC.
14104 test "$enable_shared" = yes && enable_static=no
14105 if test -n "$RANLIB"; then
14106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14107 postinstall_cmds='$RANLIB $lib'
14111 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14112 test "$enable_shared" = yes && enable_static=no
14116 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14117 echo "${ECHO_T}$enable_shared" >&6; }
14119 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14120 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14121 # Make sure either enable_shared or enable_static is yes.
14122 test "$enable_shared" = yes || enable_static=yes
14123 { echo "$as_me:$LINENO: result: $enable_static" >&5
14124 echo "${ECHO_T}$enable_static" >&6; }
14129 lt_prog_compiler_wl_F77=
14130 lt_prog_compiler_pic_F77=
14131 lt_prog_compiler_static_F77=
14133 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14134 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14136 if test "$GCC" = yes; then
14137 lt_prog_compiler_wl_F77='-Wl,'
14138 lt_prog_compiler_static_F77='-static'
14142 # All AIX code is PIC.
14143 if test "$host_cpu" = ia64; then
14144 # AIX 5 now supports IA64 processor
14145 lt_prog_compiler_static_F77='-Bstatic'
14150 # FIXME: we need at least 68020 code to build shared libraries, but
14151 # adding the `-m68020' flag to GCC prevents building anything better,
14153 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14156 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14157 # PIC is the default for these OSes.
14160 mingw* | cygwin* | pw32* | os2*)
14161 # This hack is so that the source file can tell whether it is being
14162 # built for inclusion in a dll (and should export symbols for example).
14163 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14164 # (--disable-auto-import) libraries
14165 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14168 darwin* | rhapsody*)
14169 # PIC is the default on this platform
14170 # Common symbols not allowed in MH_DYLIB files
14171 lt_prog_compiler_pic_F77='-fno-common'
14175 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14176 # Instead, we relocate shared libraries at runtime.
14180 # Just because we use GCC doesn't mean we suddenly get shared libraries
14181 # on systems that don't support them.
14182 lt_prog_compiler_can_build_shared_F77=no
14187 if test -d /usr/nec; then
14188 lt_prog_compiler_pic_F77=-Kconform_pic
14193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14194 # not for PA HP-UX.
14200 lt_prog_compiler_pic_F77='-fPIC'
14206 lt_prog_compiler_pic_F77='-fPIC'
14210 # PORTME Check for flag to pass linker flags through the system compiler.
14213 lt_prog_compiler_wl_F77='-Wl,'
14214 if test "$host_cpu" = ia64; then
14215 # AIX 5 now supports IA64 processor
14216 lt_prog_compiler_static_F77='-Bstatic'
14218 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14222 # PIC is the default on this platform
14223 # Common symbols not allowed in MH_DYLIB files
14224 case $cc_basename in
14226 lt_prog_compiler_pic_F77='-qnocommon'
14227 lt_prog_compiler_wl_F77='-Wl,'
14232 mingw* | cygwin* | pw32* | os2*)
14233 # This hack is so that the source file can tell whether it is being
14234 # built for inclusion in a dll (and should export symbols for example).
14235 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14238 hpux9* | hpux10* | hpux11*)
14239 lt_prog_compiler_wl_F77='-Wl,'
14240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14241 # not for PA HP-UX.
14247 lt_prog_compiler_pic_F77='+Z'
14250 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14251 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14254 irix5* | irix6* | nonstopux*)
14255 lt_prog_compiler_wl_F77='-Wl,'
14256 # PIC (with -KPIC) is the default.
14257 lt_prog_compiler_static_F77='-non_shared'
14261 lt_prog_compiler_pic_F77='-KPIC'
14262 lt_prog_compiler_static_F77='-Bstatic'
14265 linux* | k*bsd*-gnu)
14266 case $cc_basename in
14268 lt_prog_compiler_wl_F77='-Wl,'
14269 lt_prog_compiler_pic_F77='-KPIC'
14270 lt_prog_compiler_static_F77='-static'
14272 pgcc* | pgf77* | pgf90* | pgf95*)
14273 # Portland Group compilers (*not* the Pentium gcc compiler,
14274 # which looks to be a dead project)
14275 lt_prog_compiler_wl_F77='-Wl,'
14276 lt_prog_compiler_pic_F77='-fpic'
14277 lt_prog_compiler_static_F77='-Bstatic'
14280 lt_prog_compiler_wl_F77='-Wl,'
14281 # All Alpha code is PIC.
14282 lt_prog_compiler_static_F77='-non_shared'
14285 case `$CC -V 2>&1 | sed 5q` in
14288 lt_prog_compiler_pic_F77='-KPIC'
14289 lt_prog_compiler_static_F77='-Bstatic'
14290 lt_prog_compiler_wl_F77='-Wl,'
14293 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14294 lt_prog_compiler_pic_F77='-KPIC'
14295 lt_prog_compiler_static_F77='-Bstatic'
14296 lt_prog_compiler_wl_F77=''
14303 osf3* | osf4* | osf5*)
14304 lt_prog_compiler_wl_F77='-Wl,'
14305 # All OSF/1 code is PIC.
14306 lt_prog_compiler_static_F77='-non_shared'
14310 lt_prog_compiler_static_F77='-non_shared'
14314 lt_prog_compiler_pic_F77='-KPIC'
14315 lt_prog_compiler_static_F77='-Bstatic'
14316 case $cc_basename in
14317 f77* | f90* | f95*)
14318 lt_prog_compiler_wl_F77='-Qoption ld ';;
14320 lt_prog_compiler_wl_F77='-Wl,';;
14325 lt_prog_compiler_wl_F77='-Qoption ld '
14326 lt_prog_compiler_pic_F77='-PIC'
14327 lt_prog_compiler_static_F77='-Bstatic'
14330 sysv4 | sysv4.2uw2* | sysv4.3*)
14331 lt_prog_compiler_wl_F77='-Wl,'
14332 lt_prog_compiler_pic_F77='-KPIC'
14333 lt_prog_compiler_static_F77='-Bstatic'
14337 if test -d /usr/nec ;then
14338 lt_prog_compiler_pic_F77='-Kconform_pic'
14339 lt_prog_compiler_static_F77='-Bstatic'
14343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14344 lt_prog_compiler_wl_F77='-Wl,'
14345 lt_prog_compiler_pic_F77='-KPIC'
14346 lt_prog_compiler_static_F77='-Bstatic'
14350 lt_prog_compiler_wl_F77='-Wl,'
14351 lt_prog_compiler_can_build_shared_F77=no
14355 lt_prog_compiler_pic_F77='-pic'
14356 lt_prog_compiler_static_F77='-Bstatic'
14360 lt_prog_compiler_can_build_shared_F77=no
14365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14366 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14369 # Check to make sure the PIC flag actually works.
14371 if test -n "$lt_prog_compiler_pic_F77"; then
14373 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14375 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 lt_cv_prog_compiler_pic_works_F77=no
14379 ac_outfile=conftest.$ac_objext
14380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14381 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14382 # Insert the option either (1) after the last *FLAGS variable, or
14383 # (2) before a word containing "conftest.", or (3) at the end.
14384 # Note that $ac_compile itself does not contain backslashes and begins
14385 # with a dollar sign (not a hyphen), so the echo should work correctly.
14386 # The option is referenced via a variable to avoid confusing sed.
14387 lt_compile=`echo "$ac_compile" | $SED \
14388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390 -e 's:$: $lt_compiler_flag:'`
14391 (eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
14392 (eval "$lt_compile" 2>conftest.err)
14394 cat conftest.err >&5
14395 echo "$as_me:14395: \$? = $ac_status" >&5
14396 if (exit $ac_status) && test -s "$ac_outfile"; then
14397 # The compiler can only warn and ignore the option if not recognized
14398 # So say no if there are warnings other than the usual output.
14399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14402 lt_cv_prog_compiler_pic_works_F77=yes
14408 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14409 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14411 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14412 case $lt_prog_compiler_pic_F77 in
14414 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14417 lt_prog_compiler_pic_F77=
14418 lt_prog_compiler_can_build_shared_F77=no
14423 # For platforms which do not support PIC, -DPIC is meaningless:
14425 lt_prog_compiler_pic_F77=
14428 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14433 # Check to make sure the static flag actually works.
14435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14436 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14438 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 lt_cv_prog_compiler_static_works_F77=no
14442 save_LDFLAGS="$LDFLAGS"
14443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14446 # The linker can only warn and ignore the option if not recognized
14447 # So say no if there are warnings
14448 if test -s conftest.err; then
14449 # Append any errors to the config.log.
14450 cat conftest.err 1>&5
14451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14453 if diff conftest.exp conftest.er2 >/dev/null; then
14454 lt_cv_prog_compiler_static_works_F77=yes
14457 lt_cv_prog_compiler_static_works_F77=yes
14461 LDFLAGS="$save_LDFLAGS"
14464 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14465 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14467 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14470 lt_prog_compiler_static_F77=
14474 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14476 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 lt_cv_prog_compiler_c_o_F77=no
14480 $rm -r conftest 2>/dev/null
14484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14486 lt_compiler_flag="-o out/conftest2.$ac_objext"
14487 # Insert the option either (1) after the last *FLAGS variable, or
14488 # (2) before a word containing "conftest.", or (3) at the end.
14489 # Note that $ac_compile itself does not contain backslashes and begins
14490 # with a dollar sign (not a hyphen), so the echo should work correctly.
14491 lt_compile=`echo "$ac_compile" | $SED \
14492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494 -e 's:$: $lt_compiler_flag:'`
14495 (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
14496 (eval "$lt_compile" 2>out/conftest.err)
14498 cat out/conftest.err >&5
14499 echo "$as_me:14499: \$? = $ac_status" >&5
14500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14502 # The compiler can only warn and ignore the option if not recognized
14503 # So say no if there are warnings
14504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14507 lt_cv_prog_compiler_c_o_F77=yes
14512 # SGI C++ compiler will create directory out/ii_files/ for
14513 # template instantiation
14514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14515 $rm out/* && rmdir out
14521 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14525 hard_links="nottested"
14526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14527 # do not overwrite the value of need_locks provided by the user
14528 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14534 ln conftest.a conftest.b 2>&5 || hard_links=no
14535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14536 { echo "$as_me:$LINENO: result: $hard_links" >&5
14537 echo "${ECHO_T}$hard_links" >&6; }
14538 if test "$hard_links" = no; then
14539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14547 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14551 allow_undefined_flag_F77=
14552 enable_shared_with_static_runtimes_F77=no
14554 archive_expsym_cmds_F77=
14555 old_archive_From_new_cmds_F77=
14556 old_archive_from_expsyms_cmds_F77=
14557 export_dynamic_flag_spec_F77=
14558 whole_archive_flag_spec_F77=
14559 thread_safe_flag_spec_F77=
14560 hardcode_libdir_flag_spec_F77=
14561 hardcode_libdir_flag_spec_ld_F77=
14562 hardcode_libdir_separator_F77=
14563 hardcode_direct_F77=no
14564 hardcode_minus_L_F77=no
14565 hardcode_shlibpath_var_F77=unsupported
14566 link_all_deplibs_F77=unknown
14567 hardcode_automatic_F77=no
14569 module_expsym_cmds_F77=
14570 always_export_symbols_F77=no
14571 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14572 # include_expsyms should be a list of space-separated symbols to be *always*
14573 # included in the symbol list
14574 include_expsyms_F77=
14575 # exclude_expsyms can be an extended regexp of symbols to exclude
14576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14578 # as well as any symbol that contains `d'.
14579 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14581 # platforms (ab)use it in PIC code, but their linkers get confused if
14582 # the symbol is explicitly referenced. Since portable code cannot
14583 # rely on this symbol name, it's probably fine to never include it in
14584 # preloaded symbol tables.
14585 # Exclude shared library initialization/finalization symbols.
14586 extract_expsyms_cmds=
14587 # Just being paranoid about ensuring that cc_basename is set.
14588 for cc_temp in $compiler""; do
14590 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14591 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14596 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14599 cygwin* | mingw* | pw32*)
14600 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14601 # When not using gcc, we currently assume that we are using
14602 # Microsoft Visual C++.
14603 if test "$GCC" != yes; then
14608 # we just hope/assume this is gcc and not c89 (= MSVC++)
14617 if test "$with_gnu_ld" = yes; then
14618 # If archive_cmds runs LD, not CC, wlarc should be empty
14621 # Set some defaults for GNU ld with shared library support. These
14622 # are reset later if shared libraries are not supported. Putting them
14623 # here allows them to be overridden if necessary.
14624 runpath_var=LD_RUN_PATH
14625 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14626 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14627 # ancient GNU ld didn't support --whole-archive et. al.
14628 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14629 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14631 whole_archive_flag_spec_F77=
14633 supports_anon_versioning=no
14634 case `$LD -v 2>/dev/null` in
14635 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14636 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14637 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14638 *\ 2.11.*) ;; # other 2.11 versions
14639 *) supports_anon_versioning=yes ;;
14642 # See if GNU ld supports shared libraries.
14645 # On AIX/PPC, the GNU linker is very broken
14646 if test "$host_cpu" != ia64; then
14650 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14651 *** to be unable to reliably create shared libraries on AIX.
14652 *** Therefore, libtool is disabling shared libraries support. If you
14653 *** really care for shared libraries, you may want to modify your PATH
14654 *** so that a non-GNU linker is found, and then restart.
14661 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)'
14662 hardcode_libdir_flag_spec_F77='-L$libdir'
14663 hardcode_minus_L_F77=yes
14665 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14666 # that the semantics of dynamic libraries on AmigaOS, at least up
14667 # to version 4, is to share data among multiple programs linked
14668 # with the same dynamic library. Since this doesn't match the
14669 # behavior of shared libraries on other platforms, we can't use
14675 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14676 allow_undefined_flag_F77=unsupported
14677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14678 # support --undefined. This deserves some investigation. FIXME
14679 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14685 cygwin* | mingw* | pw32*)
14686 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14687 # as there is no search path for DLLs.
14688 hardcode_libdir_flag_spec_F77='-L$libdir'
14689 allow_undefined_flag_F77=unsupported
14690 always_export_symbols_F77=no
14691 enable_shared_with_static_runtimes_F77=yes
14692 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14694 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14695 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14696 # If the export-symbols file already is a .def file (1st line
14697 # is EXPORTS), use it as is; otherwise, prepend...
14698 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14699 cp $export_symbols $output_objdir/$soname.def;
14701 echo EXPORTS > $output_objdir/$soname.def;
14702 cat $export_symbols >> $output_objdir/$soname.def;
14704 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14711 hardcode_direct_F77=no
14712 hardcode_shlibpath_var_F77=no
14713 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14714 export_dynamic_flag_spec_F77='${wl}-E'
14715 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14716 # Instead, shared libraries are loaded at an image base (0x10000000 by
14717 # default) and relocated if they conflict, which is a slow very memory
14718 # consuming and fragmenting process. To avoid this, we pick a random,
14719 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14720 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14721 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'
14722 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'
14725 gnu* | linux* | k*bsd*-gnu)
14726 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14728 case $cc_basename,$host_cpu in
14729 pgcc*) # Portland Group C compiler
14730 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'
14731 tmp_addflag=' $pic_flag'
14733 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14734 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'
14735 tmp_addflag=' $pic_flag -Mnomain' ;;
14736 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14737 tmp_addflag=' -i_dynamic' ;;
14738 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14739 tmp_addflag=' -i_dynamic -nofor_main' ;;
14740 ifc* | ifort*) # Intel Fortran compiler
14741 tmp_addflag=' -nofor_main' ;;
14743 case `$CC -V 2>&1 | sed 5q` in
14744 *Sun\ C*) # Sun C 5.9
14745 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14746 tmp_sharedflag='-G' ;;
14747 *Sun\ F*) # Sun Fortran 8.3
14748 tmp_sharedflag='-G' ;;
14750 tmp_sharedflag='-shared' ;;
14752 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14754 if test $supports_anon_versioning = yes; then
14755 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14757 $echo "local: *; };" >> $output_objdir/$libname.ver~
14758 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14760 link_all_deplibs_F77=no
14766 netbsd* | netbsdelf*-gnu)
14767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14768 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14771 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14772 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14777 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14781 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14782 *** create shared libraries on Solaris systems. Therefore, libtool
14783 *** is disabling shared libraries support. We urge you to upgrade GNU
14784 *** binutils to release 2.9.1 or newer. Another option is to modify
14785 *** your PATH or compiler configuration so that the native linker is
14786 *** used, and then restart.
14789 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14790 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14798 case `$LD -v 2>&1` in
14799 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14803 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14804 *** reliably create shared libraries on SCO systems. Therefore, libtool
14805 *** is disabling shared libraries support. We urge you to upgrade GNU
14806 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14807 *** your PATH or compiler configuration so that the native linker is
14808 *** used, and then restart.
14813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14814 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14815 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14816 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14825 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14827 hardcode_direct_F77=yes
14828 hardcode_shlibpath_var_F77=no
14832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14841 if test "$ld_shlibs_F77" = no; then
14843 hardcode_libdir_flag_spec_F77=
14844 export_dynamic_flag_spec_F77=
14845 whole_archive_flag_spec_F77=
14848 # PORTME fill in a description of your system's linker (not GNU ld)
14851 allow_undefined_flag_F77=unsupported
14852 always_export_symbols_F77=yes
14853 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'
14854 # Note: this linker hardcodes the directories in LIBPATH if there
14855 # are no directories specified by -L.
14856 hardcode_minus_L_F77=yes
14857 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14858 # Neither direct hardcoding nor static linking is supported with a
14860 hardcode_direct_F77=unsupported
14865 if test "$host_cpu" = ia64; then
14866 # On IA64, the linker does run time linking by default, so we don't
14867 # have to do anything special.
14868 aix_use_runtimelinking=no
14869 exp_sym_flag='-Bexport'
14872 # If we're using GNU nm, then we don't want the "-C" option.
14873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14874 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14875 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'
14877 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'
14879 aix_use_runtimelinking=no
14881 # Test if we are trying to use run time linking or normal
14882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14883 # need to do runtime linking.
14884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14885 for ld_flag in $LDFLAGS; do
14886 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14887 aix_use_runtimelinking=yes
14894 exp_sym_flag='-bexport'
14895 no_entry_flag='-bnoentry'
14898 # When large executables or shared objects are built, AIX ld can
14899 # have problems creating the table of contents. If linking a library
14900 # or program results in "error TOC overflow" add -mminimal-toc to
14901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14904 archive_cmds_F77=''
14905 hardcode_direct_F77=yes
14906 hardcode_libdir_separator_F77=':'
14907 link_all_deplibs_F77=yes
14909 if test "$GCC" = yes; then
14910 case $host_os in aix4.[012]|aix4.[012].*)
14911 # We only want to do this on AIX 4.2 and lower, the check
14912 # below for broken collect2 doesn't work under 4.3+
14913 collect2name=`${CC} -print-prog-name=collect2`
14914 if test -f "$collect2name" && \
14915 strings "$collect2name" | grep resolve_lib_name >/dev/null
14917 # We have reworked collect2
14920 # We have old collect2
14921 hardcode_direct_F77=unsupported
14922 # It fails to find uninstalled libraries when the uninstalled
14923 # path is not listed in the libpath. Setting hardcode_minus_L
14924 # to unsupported forces relinking
14925 hardcode_minus_L_F77=yes
14926 hardcode_libdir_flag_spec_F77='-L$libdir'
14927 hardcode_libdir_separator_F77=
14931 shared_flag='-shared'
14932 if test "$aix_use_runtimelinking" = yes; then
14933 shared_flag="$shared_flag "'${wl}-G'
14937 if test "$host_cpu" = ia64; then
14938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14939 # chokes on -Wl,-G. The following line is correct:
14942 if test "$aix_use_runtimelinking" = yes; then
14943 shared_flag='${wl}-G'
14945 shared_flag='${wl}-bM:SRE'
14950 # It seems that -bexpall does not export symbols beginning with
14951 # underscore (_), so it is better to generate a list of symbols to export.
14952 always_export_symbols_F77=yes
14953 if test "$aix_use_runtimelinking" = yes; then
14954 # Warning - without using the other runtime loading flags (-brtl),
14955 # -berok will link without error, but may produce a broken library.
14956 allow_undefined_flag_F77='-berok'
14957 # Determine the default libpath from the value encoded in an empty executable.
14958 cat >conftest.$ac_ext <<_ACEOF
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (ac_try="$ac_link"
14965 case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_link") 2>conftest.er1
14972 grep -v '^ *+' conftest.er1 >conftest.err
14974 cat conftest.err >&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } && {
14977 test -z "$ac_f77_werror_flag" ||
14978 test ! -s conftest.err
14979 } && test -s conftest$ac_exeext &&
14980 $as_test_x conftest$ac_exeext; then
14982 lt_aix_libpath_sed='
14983 /Import File Strings/,/^$/ {
14989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14990 # Check for a 64-bit object if we didn't find anything.
14991 if test -z "$aix_libpath"; then
14992 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
15001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15002 conftest$ac_exeext conftest.$ac_ext
15003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15005 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15006 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"
15008 if test "$host_cpu" = ia64; then
15009 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15010 allow_undefined_flag_F77="-z nodefs"
15011 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"
15013 # Determine the default libpath from the value encoded in an empty executable.
15014 cat >conftest.$ac_ext <<_ACEOF
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (ac_try="$ac_link"
15021 case "(($ac_try" in
15022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026 (eval "$ac_link") 2>conftest.er1
15028 grep -v '^ *+' conftest.er1 >conftest.err
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && {
15033 test -z "$ac_f77_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest$ac_exeext &&
15036 $as_test_x conftest$ac_exeext; then
15038 lt_aix_libpath_sed='
15039 /Import File Strings/,/^$/ {
15045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15046 # Check for a 64-bit object if we didn't find anything.
15047 if test -z "$aix_libpath"; then
15048 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15058 conftest$ac_exeext conftest.$ac_ext
15059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15061 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15062 # Warning - without using the other run time loading flags,
15063 # -berok will link without error, but may produce a broken library.
15064 no_undefined_flag_F77=' ${wl}-bernotok'
15065 allow_undefined_flag_F77=' ${wl}-berok'
15066 # Exported symbols can be pulled into shared objects from archives
15067 whole_archive_flag_spec_F77='$convenience'
15068 archive_cmds_need_lc_F77=yes
15069 # This is similar to how AIX traditionally builds its shared libraries.
15070 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'
15076 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)'
15077 hardcode_libdir_flag_spec_F77='-L$libdir'
15078 hardcode_minus_L_F77=yes
15079 # see comment about different semantics on the GNU ld section
15084 export_dynamic_flag_spec_F77=-rdynamic
15087 cygwin* | mingw* | pw32*)
15088 # When not using gcc, we currently assume that we are using
15089 # Microsoft Visual C++.
15090 # hardcode_libdir_flag_spec is actually meaningless, as there is
15091 # no search path for DLLs.
15092 hardcode_libdir_flag_spec_F77=' '
15093 allow_undefined_flag_F77=unsupported
15094 # Tell ltmain to make .lib files, not .a files.
15096 # Tell ltmain to make .dll files, not .so files.
15098 # FIXME: Setting linknames here is a bad hack.
15099 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15100 # The linker will automatically build a .lib file if we build a DLL.
15101 old_archive_From_new_cmds_F77='true'
15102 # FIXME: Should let the user specify the lib program.
15103 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15104 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15105 enable_shared_with_static_runtimes_F77=yes
15108 darwin* | rhapsody*)
15110 rhapsody* | darwin1.[012])
15111 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15114 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15115 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15117 case ${MACOSX_DEPLOYMENT_TARGET} in
15119 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15122 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15128 archive_cmds_need_lc_F77=no
15129 hardcode_direct_F77=no
15130 hardcode_automatic_F77=yes
15131 hardcode_shlibpath_var_F77=unsupported
15132 whole_archive_flag_spec_F77=''
15133 link_all_deplibs_F77=yes
15134 if test "$GCC" = yes ; then
15135 output_verbose_link_cmd='echo'
15136 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15137 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15138 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15139 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15141 case $cc_basename in
15143 output_verbose_link_cmd='echo'
15144 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15145 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15146 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15147 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15148 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}'
15158 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15159 hardcode_libdir_flag_spec_F77='-L$libdir'
15160 hardcode_shlibpath_var_F77=no
15167 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15168 # support. Future versions do this automatically, but an explicit c++rt0.o
15169 # does not break anything, and helps significantly (at the cost of a little
15172 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15173 hardcode_libdir_flag_spec_F77='-R$libdir'
15174 hardcode_direct_F77=yes
15175 hardcode_shlibpath_var_F77=no
15178 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15180 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15181 hardcode_direct_F77=yes
15182 hardcode_minus_L_F77=yes
15183 hardcode_shlibpath_var_F77=no
15186 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15187 freebsd* | dragonfly*)
15188 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15189 hardcode_libdir_flag_spec_F77='-R$libdir'
15190 hardcode_direct_F77=yes
15191 hardcode_shlibpath_var_F77=no
15195 if test "$GCC" = yes; then
15196 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'
15198 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'
15200 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15201 hardcode_libdir_separator_F77=:
15202 hardcode_direct_F77=yes
15204 # hardcode_minus_L: Not really in the search PATH,
15205 # but as the default location of the library.
15206 hardcode_minus_L_F77=yes
15207 export_dynamic_flag_spec_F77='${wl}-E'
15211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15212 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15214 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15216 if test "$with_gnu_ld" = no; then
15217 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15218 hardcode_libdir_separator_F77=:
15220 hardcode_direct_F77=yes
15221 export_dynamic_flag_spec_F77='${wl}-E'
15223 # hardcode_minus_L: Not really in the search PATH,
15224 # but as the default location of the library.
15225 hardcode_minus_L_F77=yes
15230 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15233 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15236 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15239 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15245 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15251 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15255 if test "$with_gnu_ld" = no; then
15256 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15257 hardcode_libdir_separator_F77=:
15261 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15262 hardcode_direct_F77=no
15263 hardcode_shlibpath_var_F77=no
15266 hardcode_direct_F77=yes
15267 export_dynamic_flag_spec_F77='${wl}-E'
15269 # hardcode_minus_L: Not really in the search PATH,
15270 # but as the default location of the library.
15271 hardcode_minus_L_F77=yes
15277 irix5* | irix6* | nonstopux*)
15278 if test "$GCC" = yes; then
15279 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'
15281 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'
15282 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15284 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15285 hardcode_libdir_separator_F77=:
15286 link_all_deplibs_F77=yes
15289 netbsd* | netbsdelf*-gnu)
15290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15293 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15295 hardcode_libdir_flag_spec_F77='-R$libdir'
15296 hardcode_direct_F77=yes
15297 hardcode_shlibpath_var_F77=no
15301 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15302 hardcode_direct_F77=yes
15303 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15304 hardcode_libdir_separator_F77=:
15305 hardcode_shlibpath_var_F77=no
15309 if test -f /usr/libexec/ld.so; then
15310 hardcode_direct_F77=yes
15311 hardcode_shlibpath_var_F77=no
15312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15313 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15314 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15315 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15316 export_dynamic_flag_spec_F77='${wl}-E'
15319 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15320 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15321 hardcode_libdir_flag_spec_F77='-R$libdir'
15324 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15325 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15335 hardcode_libdir_flag_spec_F77='-L$libdir'
15336 hardcode_minus_L_F77=yes
15337 allow_undefined_flag_F77=unsupported
15338 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'
15339 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15343 if test "$GCC" = yes; then
15344 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15345 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'
15347 allow_undefined_flag_F77=' -expect_unresolved \*'
15348 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'
15350 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15351 hardcode_libdir_separator_F77=:
15354 osf4* | osf5*) # as osf3* with the addition of -msym flag
15355 if test "$GCC" = yes; then
15356 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15357 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'
15358 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15360 allow_undefined_flag_F77=' -expect_unresolved \*'
15361 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'
15362 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~
15363 $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'
15365 # Both c and cxx compiler support -rpath directly
15366 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15368 hardcode_libdir_separator_F77=:
15372 no_undefined_flag_F77=' -z text'
15373 if test "$GCC" = yes; then
15375 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15376 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15377 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15380 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15381 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15382 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15384 hardcode_libdir_flag_spec_F77='-R$libdir'
15385 hardcode_shlibpath_var_F77=no
15387 solaris2.[0-5] | solaris2.[0-5].*) ;;
15389 # The compiler driver will combine and reorder linker options,
15390 # but understands `-z linker_flag'. GCC discards it without `$wl',
15391 # but is careful enough not to reorder.
15392 # Supported since Solaris 2.6 (maybe 2.5.1?)
15393 if test "$GCC" = yes; then
15394 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15396 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15400 link_all_deplibs_F77=yes
15404 if test "x$host_vendor" = xsequent; then
15405 # Use $CC to link under sequent, because it throws in some extra .o
15406 # files that make .init and .fini sections work.
15407 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15409 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15411 hardcode_libdir_flag_spec_F77='-L$libdir'
15412 hardcode_direct_F77=yes
15413 hardcode_minus_L_F77=yes
15414 hardcode_shlibpath_var_F77=no
15418 case $host_vendor in
15420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15421 hardcode_direct_F77=yes # is this really true???
15424 ## LD is ld it makes a PLAMLIB
15425 ## CC just makes a GrossModule.
15426 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15427 reload_cmds_F77='$CC -r -o $output$reload_objs'
15428 hardcode_direct_F77=no
15431 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15435 runpath_var='LD_RUN_PATH'
15436 hardcode_shlibpath_var_F77=no
15440 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441 hardcode_shlibpath_var_F77=no
15442 export_dynamic_flag_spec_F77='-Bexport'
15446 if test -d /usr/nec; then
15447 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448 hardcode_shlibpath_var_F77=no
15449 runpath_var=LD_RUN_PATH
15450 hardcode_runpath_var=yes
15455 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15456 no_undefined_flag_F77='${wl}-z,text'
15457 archive_cmds_need_lc_F77=no
15458 hardcode_shlibpath_var_F77=no
15459 runpath_var='LD_RUN_PATH'
15461 if test "$GCC" = yes; then
15462 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15463 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15465 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15466 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470 sysv5* | sco3.2v5* | sco5v6*)
15471 # Note: We can NOT use -z defs as we might desire, because we do not
15472 # link with -lc, and that would cause any symbols used from libc to
15473 # always be unresolved, which means just about no library would
15474 # ever link correctly. If we're not using GNU ld we use -z text
15475 # though, which does catch some bad symbols but isn't as heavy-handed
15477 no_undefined_flag_F77='${wl}-z,text'
15478 allow_undefined_flag_F77='${wl}-z,nodefs'
15479 archive_cmds_need_lc_F77=no
15480 hardcode_shlibpath_var_F77=no
15481 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15482 hardcode_libdir_separator_F77=':'
15483 link_all_deplibs_F77=yes
15484 export_dynamic_flag_spec_F77='${wl}-Bexport'
15485 runpath_var='LD_RUN_PATH'
15487 if test "$GCC" = yes; then
15488 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15489 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15491 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15497 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498 hardcode_libdir_flag_spec_F77='-L$libdir'
15499 hardcode_shlibpath_var_F77=no
15508 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15509 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15510 test "$ld_shlibs_F77" = no && can_build_shared=no
15513 # Do we need to explicitly link libc?
15515 case "x$archive_cmds_need_lc_F77" in
15517 # Assume -lc should be added
15518 archive_cmds_need_lc_F77=yes
15520 if test "$enable_shared" = yes && test "$GCC" = yes; then
15521 case $archive_cmds_F77 in
15523 # FIXME: we may have to deal with multi-command sequences.
15526 # Test whether the compiler implicitly links with -lc since on some
15527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15528 # to ld, don't add -lc before -lgcc.
15529 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15530 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15535 (eval $ac_compile) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } 2>conftest.err; then
15541 libobjs=conftest.$ac_objext
15543 wl=$lt_prog_compiler_wl_F77
15544 pic_flag=$lt_prog_compiler_pic_F77
15550 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15551 allow_undefined_flag_F77=
15552 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15553 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }
15558 archive_cmds_need_lc_F77=no
15560 archive_cmds_need_lc_F77=yes
15562 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15564 cat conftest.err 1>&5
15567 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15568 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15575 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15576 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15577 library_names_spec=
15578 libname_spec='lib$name'
15582 postuninstall_cmds=
15586 shlibpath_overrides_runpath=unknown
15588 dynamic_linker="$host_os ld.so"
15589 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15591 need_lib_prefix=unknown
15592 hardcode_into_libs=no
15594 # when you set need_version to no, make sure it does not cause -set_version
15595 # flags to be left without arguments
15596 need_version=unknown
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602 shlibpath_var=LIBPATH
15604 # AIX 3 has no versioning support, so we append a major version to the name.
15605 soname_spec='${libname}${release}${shared_ext}$major'
15612 hardcode_into_libs=yes
15613 if test "$host_cpu" = ia64; then
15614 # AIX 5 supports IA64
15615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616 shlibpath_var=LD_LIBRARY_PATH
15618 # With GCC up to 2.95.x, collect2 would create an import file
15619 # for dependence libraries. The import file would start with
15620 # the line `#! .'. This would cause the generated library to
15621 # depend on `.', always an invalid library. This was fixed in
15622 # development snapshots of GCC prior to 3.0.
15624 aix4 | aix4.[01] | aix4.[01].*)
15625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15630 can_build_shared=no
15634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635 # soname into executable. Probably we can add versioning support to
15636 # collect2, so additional links can be useful in future.
15637 if test "$aix_use_runtimelinking" = yes; then
15638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639 # instead of lib<name>.a to let people know that these are not
15640 # typical AIX shared libraries.
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 # We preserve .a as extension for shared libraries through AIX4.2
15644 # and later when we are not doing run time linking.
15645 library_names_spec='${libname}${release}.a $libname.a'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15648 shlibpath_var=LIBPATH
15653 library_names_spec='$libname.ixlibrary $libname.a'
15654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15655 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'
15659 library_names_spec='${libname}${shared_ext}'
15660 dynamic_linker="$host_os ld.so"
15661 shlibpath_var=LIBRARY_PATH
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673 # the default ld.so.conf also contains /usr/contrib/lib and
15674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675 # libtool to hard-code these into programs
15678 cygwin* | mingw* | pw32*)
15679 version_type=windows
15684 case $GCC,$host_os in
15685 yes,cygwin* | yes,mingw* | yes,pw32*)
15686 library_names_spec='$libname.dll.a'
15687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15688 postinstall_cmds='base_file=`basename \${file}`~
15689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15690 dldir=$destdir/`dirname \$dlpath`~
15691 test -d \$dldir || mkdir -p \$dldir~
15692 $install_prog $dir/$dlname \$dldir/$dlname~
15693 chmod a+x \$dldir/$dlname'
15694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15695 dlpath=$dir/\$dldll~
15697 shlibpath_overrides_runpath=yes
15701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15706 # MinGW DLLs use traditional 'lib' prefix
15707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15709 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15710 # It is most probably a Windows format PATH printed by
15711 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15712 # path with ; separators, and with drive letters. We can handle the
15713 # drive letters (cygwin fileutils understands them), so leave them,
15714 # especially as we might pass files found there to a mingw objdump,
15715 # which wouldn't understand a cygwinified path. Ahh.
15716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15722 # pw32 DLLs use 'pw' prefix rather than 'lib'
15723 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15729 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15732 dynamic_linker='Win32 ld.exe'
15733 # FIXME: first we should search . and the directory the executable is in
15737 darwin* | rhapsody*)
15738 dynamic_linker="$host_os dyld"
15739 version_type=darwin
15742 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15743 soname_spec='${libname}${release}${major}$shared_ext'
15744 shlibpath_overrides_runpath=yes
15745 shlibpath_var=DYLD_LIBRARY_PATH
15746 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 shlibpath_var=LD_LIBRARY_PATH
15764 freebsd* | dragonfly*)
15765 # DragonFly does not have aout. When/if they implement a new
15766 # versioning mechanism, adjust this.
15767 if test -x /usr/bin/objformat; then
15768 objformat=`/usr/bin/objformat`
15771 freebsd[123]*) objformat=aout ;;
15772 *) objformat=elf ;;
15775 version_type=freebsd-$objformat
15776 case $version_type in
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15787 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes
15792 freebsd3.[01]* | freebsdelf3.[01]*)
15793 shlibpath_overrides_runpath=yes
15794 hardcode_into_libs=yes
15796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15798 shlibpath_overrides_runpath=no
15799 hardcode_into_libs=yes
15801 *) # from 4.6 on, and DragonFly
15802 shlibpath_overrides_runpath=yes
15803 hardcode_into_libs=yes
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 hardcode_into_libs=yes
15818 hpux9* | hpux10* | hpux11*)
15819 # Give a soname corresponding to the major version so that dld.sl refuses to
15820 # link against other versions.
15827 hardcode_into_libs=yes
15828 dynamic_linker="$host_os dld.so"
15829 shlibpath_var=LD_LIBRARY_PATH
15830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832 soname_spec='${libname}${release}${shared_ext}$major'
15833 if test "X$HPUX_IA64_MODE" = X32; then
15834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15842 hardcode_into_libs=yes
15843 dynamic_linker="$host_os dld.sl"
15844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15853 dynamic_linker="$host_os dld.sl"
15854 shlibpath_var=SHLIB_PATH
15855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15860 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15861 postinstall_cmds='chmod 555 $lib'
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15869 soname_spec='${libname}${release}${shared_ext}$major'
15870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15871 shlibpath_var=LD_LIBRARY_PATH
15872 shlibpath_overrides_runpath=no
15873 hardcode_into_libs=yes
15876 irix5* | irix6* | nonstopux*)
15878 nonstopux*) version_type=nonstopux ;;
15880 if test "$lt_cv_prog_gnu_ld" = yes; then
15888 soname_spec='${libname}${release}${shared_ext}$major'
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15891 irix5* | nonstopux*)
15892 libsuff= shlibsuff=
15895 case $LD in # libtool.m4 will add one of these switches to LD
15896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15897 libsuff= shlibsuff= libmagic=32-bit;;
15898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15899 libsuff=32 shlibsuff=N32 libmagic=N32;;
15900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15902 *) libsuff= shlibsuff= libmagic=never-match;;
15906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15907 shlibpath_overrides_runpath=no
15908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15910 hardcode_into_libs=yes
15913 # No shared lib support for Linux oldld, aout, or coff.
15914 linux*oldld* | linux*aout* | linux*coff*)
15918 # This must be Linux ELF.
15919 linux* | k*bsd*-gnu)
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924 soname_spec='${libname}${release}${shared_ext}$major'
15925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 shlibpath_overrides_runpath=no
15928 # This implies no fast_install, which is unacceptable.
15929 # Some rework will be needed to allow for fast_install
15930 # before this can be enabled.
15931 hardcode_into_libs=yes
15933 # Append ld.so.conf contents to the search path
15934 if test -f /etc/ld.so.conf; then
15935 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15939 # We used to test for /lib/ld.so.1 and disable shared libraries on
15940 # powerpc, because MkLinux only supported shared libraries with the
15941 # GNU dynamic linker. Since this was broken with cross compilers,
15942 # most powerpc-linux boxes support dynamic linking these days and
15943 # people can always --disable-shared, the test was removed, and we
15944 # assume the GNU/Linux dynamic linker is in use.
15945 dynamic_linker='GNU/Linux ld.so'
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15953 soname_spec='${libname}${release}${shared_ext}$major'
15954 shlibpath_var=LD_LIBRARY_PATH
15955 shlibpath_overrides_runpath=no
15956 hardcode_into_libs=yes
15957 dynamic_linker='NetBSD ld.elf_so'
15964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15967 dynamic_linker='NetBSD (a.out) ld.so'
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 dynamic_linker='NetBSD ld.elf_so'
15973 shlibpath_var=LD_LIBRARY_PATH
15974 shlibpath_overrides_runpath=yes
15975 hardcode_into_libs=yes
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981 shlibpath_var=LD_LIBRARY_PATH
15982 shlibpath_overrides_runpath=yes
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990 soname_spec='${libname}${release}${shared_ext}$major'
15991 shlibpath_var=LD_LIBRARY_PATH
15992 shlibpath_overrides_runpath=yes
15997 sys_lib_dlsearch_path_spec="/usr/lib"
15999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16001 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16002 *) need_version=no ;;
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16009 openbsd2.[89] | openbsd2.[89].*)
16010 shlibpath_overrides_runpath=no
16013 shlibpath_overrides_runpath=yes
16017 shlibpath_overrides_runpath=yes
16022 libname_spec='$name'
16025 library_names_spec='$libname${shared_ext} $libname.a'
16026 dynamic_linker='OS/2 ld.exe'
16027 shlibpath_var=LIBPATH
16030 osf3* | osf4* | osf5*)
16034 soname_spec='${libname}${release}${shared_ext}$major'
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036 shlibpath_var=LD_LIBRARY_PATH
16037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 shlibpath_overrides_runpath=yes
16053 hardcode_into_libs=yes
16054 # ldd complains unless libraries are executable
16055 postinstall_cmds='chmod +x $lib'
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 shlibpath_overrides_runpath=yes
16064 if test "$with_gnu_ld" = yes; then
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 case $host_vendor in
16077 shlibpath_overrides_runpath=no
16079 export_dynamic_flag_spec='${wl}-Blargedynsym'
16080 runpath_var=LD_RUN_PATH
16088 shlibpath_overrides_runpath=no
16089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16095 if test -d /usr/nec ;then
16097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16098 soname_spec='$libname${shared_ext}.$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16104 version_type=freebsd-elf
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16108 soname_spec='${libname}${release}${shared_ext}$major'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 hardcode_into_libs=yes
16111 if test "$with_gnu_ld" = yes; then
16112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16113 shlibpath_overrides_runpath=no
16115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16116 shlibpath_overrides_runpath=yes
16119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16123 sys_lib_dlsearch_path_spec='/usr/lib'
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 shlibpath_var=LD_LIBRARY_PATH
16137 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16138 echo "${ECHO_T}$dynamic_linker" >&6; }
16139 test "$dynamic_linker" = no && can_build_shared=no
16141 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16147 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16148 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16154 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16157 if test "$GCC" = yes; then
16158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16161 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16162 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16163 hardcode_action_F77=
16164 if test -n "$hardcode_libdir_flag_spec_F77" || \
16165 test -n "$runpath_var_F77" || \
16166 test "X$hardcode_automatic_F77" = "Xyes" ; then
16168 # We can hardcode non-existant directories.
16169 if test "$hardcode_direct_F77" != no &&
16170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16171 # have to relink, otherwise we might link with an installed library
16172 # when we should be linking with a yet-to-be-installed one
16173 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16174 test "$hardcode_minus_L_F77" != no; then
16175 # Linking always hardcodes the temporary library directory.
16176 hardcode_action_F77=relink
16178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16179 hardcode_action_F77=immediate
16182 # We cannot hardcode anything, or else we can only hardcode existing
16184 hardcode_action_F77=unsupported
16186 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16187 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16189 if test "$hardcode_action_F77" = relink; then
16190 # Fast installation is not supported
16191 enable_fast_install=no
16192 elif test "$shlibpath_overrides_runpath" = yes ||
16193 test "$enable_shared" = no; then
16194 # Fast installation is not necessary
16195 enable_fast_install=needless
16199 # The else clause should only fire when bootstrapping the
16200 # libtool distribution, otherwise you forgot to ship ltmain.sh
16201 # with your package, and you will get complaints that there are
16202 # no rules to generate ltmain.sh.
16203 if test -f "$ltmain"; then
16204 # See if we are running on zsh, and set the options which allow our commands through
16205 # without removal of \ escapes.
16206 if test -n "${ZSH_VERSION+set}" ; then
16207 setopt NO_GLOB_SUBST
16209 # Now quote all the things that may contain metacharacters while being
16210 # careful not to overquote the AC_SUBSTed values. We take copies of the
16211 # variables and quote the copies for generation of the libtool script.
16212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16216 deplibs_check_method reload_flag reload_cmds need_locks \
16217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16218 lt_cv_sys_global_symbol_to_c_name_address \
16219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16220 old_postinstall_cmds old_postuninstall_cmds \
16224 lt_prog_compiler_wl_F77 \
16225 lt_prog_compiler_pic_F77 \
16226 lt_prog_compiler_static_F77 \
16227 lt_prog_compiler_no_builtin_flag_F77 \
16228 export_dynamic_flag_spec_F77 \
16229 thread_safe_flag_spec_F77 \
16230 whole_archive_flag_spec_F77 \
16231 enable_shared_with_static_runtimes_F77 \
16232 old_archive_cmds_F77 \
16233 old_archive_from_new_cmds_F77 \
16234 predep_objects_F77 \
16235 postdep_objects_F77 \
16238 compiler_lib_search_path_F77 \
16239 compiler_lib_search_dirs_F77 \
16241 archive_expsym_cmds_F77 \
16242 postinstall_cmds_F77 \
16243 postuninstall_cmds_F77 \
16244 old_archive_from_expsyms_cmds_F77 \
16245 allow_undefined_flag_F77 \
16246 no_undefined_flag_F77 \
16247 export_symbols_cmds_F77 \
16248 hardcode_libdir_flag_spec_F77 \
16249 hardcode_libdir_flag_spec_ld_F77 \
16250 hardcode_libdir_separator_F77 \
16251 hardcode_automatic_F77 \
16253 module_expsym_cmds_F77 \
16254 lt_cv_prog_compiler_c_o_F77 \
16255 fix_srcfile_path_F77 \
16256 exclude_expsyms_F77 \
16257 include_expsyms_F77; do
16260 old_archive_cmds_F77 | \
16261 old_archive_from_new_cmds_F77 | \
16262 archive_cmds_F77 | \
16263 archive_expsym_cmds_F77 | \
16264 module_cmds_F77 | \
16265 module_expsym_cmds_F77 | \
16266 old_archive_from_expsyms_cmds_F77 | \
16267 export_symbols_cmds_F77 | \
16268 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16269 postinstall_cmds | postuninstall_cmds | \
16270 old_postinstall_cmds | old_postuninstall_cmds | \
16271 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16272 # Double-quote double-evaled strings.
16273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16282 *'\$0 --fallback-echo"')
16283 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16289 cat <<__EOF__ >> "$cfgfile"
16290 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16292 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16294 # Shell to use when invoking shell scripts.
16297 # Whether or not to build shared libraries.
16298 build_libtool_libs=$enable_shared
16300 # Whether or not to build static libraries.
16301 build_old_libs=$enable_static
16303 # Whether or not to add -lc for building shared libraries.
16304 build_libtool_need_lc=$archive_cmds_need_lc_F77
16306 # Whether or not to disallow shared libs when runtime libs are static
16307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16309 # Whether or not to optimize for fast installation.
16310 fast_install=$enable_fast_install
16313 host_alias=$host_alias
16317 # The build system.
16318 build_alias=$build_alias
16322 # An echo program that does not interpret backslashes.
16327 AR_FLAGS=$lt_AR_FLAGS
16332 # LTCC compiler flags.
16333 LTCFLAGS=$lt_LTCFLAGS
16335 # A language-specific compiler.
16336 CC=$lt_compiler_F77
16338 # Is the compiler the GNU C compiler?
16344 # The linker used to build libraries.
16347 # Whether we need hard or soft links.
16350 # A BSD-compatible nm program.
16353 # A symbol stripping program
16356 # Used to examine libraries when file_magic_cmd begins "file"
16357 MAGIC_CMD=$MAGIC_CMD
16359 # Used on cygwin: DLL creation program.
16362 # Used on cygwin: object dumper.
16365 # Used on cygwin: assembler.
16368 # The name of the directory that contains temporary libtool files.
16371 # How to create reloadable object files.
16372 reload_flag=$lt_reload_flag
16373 reload_cmds=$lt_reload_cmds
16375 # How to pass a linker flag through the compiler.
16376 wl=$lt_lt_prog_compiler_wl_F77
16378 # Object file suffix (normally "o").
16379 objext="$ac_objext"
16381 # Old archive suffix (normally "a").
16384 # Shared library suffix (normally ".so").
16385 shrext_cmds='$shrext_cmds'
16387 # Executable file suffix (normally "").
16390 # Additional compiler flags for building library objects.
16391 pic_flag=$lt_lt_prog_compiler_pic_F77
16394 # What is the maximum length of a command?
16395 max_cmd_len=$lt_cv_sys_max_cmd_len
16397 # Does compiler simultaneously support -c and -o options?
16398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16400 # Must we lock files when doing compilation?
16401 need_locks=$lt_need_locks
16403 # Do we need the lib prefix for modules?
16404 need_lib_prefix=$need_lib_prefix
16406 # Do we need a version for libraries?
16407 need_version=$need_version
16409 # Whether dlopen is supported.
16410 dlopen_support=$enable_dlopen
16412 # Whether dlopen of programs is supported.
16413 dlopen_self=$enable_dlopen_self
16415 # Whether dlopen of statically linked programs is supported.
16416 dlopen_self_static=$enable_dlopen_self_static
16418 # Compiler flag to prevent dynamic linking.
16419 link_static_flag=$lt_lt_prog_compiler_static_F77
16421 # Compiler flag to turn off builtin functions.
16422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16424 # Compiler flag to allow reflexive dlopens.
16425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16427 # Compiler flag to generate shared objects directly from archives.
16428 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16430 # Compiler flag to generate thread-safe objects.
16431 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16433 # Library versioning type.
16434 version_type=$version_type
16436 # Format of library name prefix.
16437 libname_spec=$lt_libname_spec
16439 # List of archive names. First name is the real one, the rest are links.
16440 # The last name is the one that the linker finds with -lNAME.
16441 library_names_spec=$lt_library_names_spec
16443 # The coded name of the library, if different from the real name.
16444 soname_spec=$lt_soname_spec
16446 # Commands used to build and install an old-style archive.
16448 old_archive_cmds=$lt_old_archive_cmds_F77
16449 old_postinstall_cmds=$lt_old_postinstall_cmds
16450 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16452 # Create an old-style archive from a shared archive.
16453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16455 # Create a temporary old-style archive to link instead of a shared archive.
16456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16458 # Commands used to build and install a shared archive.
16459 archive_cmds=$lt_archive_cmds_F77
16460 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16461 postinstall_cmds=$lt_postinstall_cmds
16462 postuninstall_cmds=$lt_postuninstall_cmds
16464 # Commands used to build a loadable module (assumed same as above if empty)
16465 module_cmds=$lt_module_cmds_F77
16466 module_expsym_cmds=$lt_module_expsym_cmds_F77
16468 # Commands to strip libraries.
16469 old_striplib=$lt_old_striplib
16470 striplib=$lt_striplib
16472 # Dependencies to place before the objects being linked to create a
16474 predep_objects=$lt_predep_objects_F77
16476 # Dependencies to place after the objects being linked to create a
16478 postdep_objects=$lt_postdep_objects_F77
16480 # Dependencies to place before the objects being linked to create a
16482 predeps=$lt_predeps_F77
16484 # Dependencies to place after the objects being linked to create a
16486 postdeps=$lt_postdeps_F77
16488 # The directories searched by this compiler when creating a shared
16490 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16492 # The library search path used internally by the compiler when linking
16493 # a shared library.
16494 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16496 # Method to check whether dependent libraries are shared objects.
16497 deplibs_check_method=$lt_deplibs_check_method
16499 # Command to use when deplibs_check_method == file_magic.
16500 file_magic_cmd=$lt_file_magic_cmd
16502 # Flag that allows shared libraries with undefined symbols to be built.
16503 allow_undefined_flag=$lt_allow_undefined_flag_F77
16505 # Flag that forces no undefined symbols.
16506 no_undefined_flag=$lt_no_undefined_flag_F77
16508 # Commands used to finish a libtool library installation in a directory.
16509 finish_cmds=$lt_finish_cmds
16511 # Same as above, but a single script fragment to be evaled but not shown.
16512 finish_eval=$lt_finish_eval
16514 # Take the output of nm and produce a listing of raw symbols and C names.
16515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16517 # Transform the output of nm in a proper C declaration
16518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16520 # Transform the output of nm in a C name address pair
16521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16523 # This is the shared library runtime path variable.
16524 runpath_var=$runpath_var
16526 # This is the shared library path variable.
16527 shlibpath_var=$shlibpath_var
16529 # Is shlibpath searched before the hard-coded library search path?
16530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16532 # How to hardcode a shared library path into an executable.
16533 hardcode_action=$hardcode_action_F77
16535 # Whether we should hardcode library paths into libraries.
16536 hardcode_into_libs=$hardcode_into_libs
16538 # Flag to hardcode \$libdir into a binary during linking.
16539 # This must work even if \$libdir does not exist.
16540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16542 # If ld is used when linking, flag to hardcode \$libdir into
16543 # a binary during linking. This must work even if \$libdir does
16545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16547 # Whether we need a single -rpath flag with a separated argument.
16548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16551 # resulting binary.
16552 hardcode_direct=$hardcode_direct_F77
16554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16555 # resulting binary.
16556 hardcode_minus_L=$hardcode_minus_L_F77
16558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16559 # the resulting binary.
16560 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16562 # Set to yes if building a shared library automatically hardcodes DIR into the library
16563 # and all subsequent libraries and executables linked against it.
16564 hardcode_automatic=$hardcode_automatic_F77
16566 # Variables whose values should be saved in libtool wrapper scripts and
16567 # restored at relink time.
16568 variables_saved_for_relink="$variables_saved_for_relink"
16570 # Whether libtool must link a program against all its dependency libraries.
16571 link_all_deplibs=$link_all_deplibs_F77
16573 # Compile-time system search path for libraries
16574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16576 # Run-time system search path for libraries
16577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16579 # Fix the shell variable \$srcfile for the compiler.
16580 fix_srcfile_path=$lt_fix_srcfile_path
16582 # Set to yes if exported symbols are required.
16583 always_export_symbols=$always_export_symbols_F77
16585 # The commands to list exported symbols.
16586 export_symbols_cmds=$lt_export_symbols_cmds_F77
16588 # The commands to extract the exported symbol list from a shared archive.
16589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16591 # Symbols that should not be listed in the preloaded symbols.
16592 exclude_expsyms=$lt_exclude_expsyms_F77
16594 # Symbols that must always be exported.
16595 include_expsyms=$lt_include_expsyms_F77
16597 # ### END LIBTOOL TAG CONFIG: $tagname
16603 # If there is no Makefile yet, we rely on a make rule to execute
16604 # `config.status --recheck' to rerun these tests and create the
16605 # libtool script then.
16606 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16607 if test -f "$ltmain_in"; then
16608 test -f Makefile && make "$ltmain"
16614 ac_cpp='$CPP $CPPFLAGS'
16615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16627 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16630 # Source file extension for Java test sources.
16633 # Object file extension for compiled Java test sources.
16637 # Code to be used in simple compile tests
16638 lt_simple_compile_test_code="class foo {}"
16640 # Code to be used in simple link tests
16641 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16645 # If no C compiler was specified, use CC.
16648 # If no C compiler flags were specified, use CFLAGS.
16649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16651 # Allow CC to be a program name with arguments.
16655 # save warnings/boilerplate of simple test code
16656 ac_outfile=conftest.$ac_objext
16657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16659 _lt_compiler_boilerplate=`cat conftest.err`
16662 ac_outfile=conftest.$ac_objext
16663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16665 _lt_linker_boilerplate=`cat conftest.err`
16669 # Allow CC to be a program name with arguments.
16674 for cc_temp in $compiler""; do
16676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16682 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16685 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16686 archive_cmds_need_lc_GCJ=no
16688 old_archive_cmds_GCJ=$old_archive_cmds
16691 lt_prog_compiler_no_builtin_flag_GCJ=
16693 if test "$GCC" = yes; then
16694 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16697 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16698 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16699 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 lt_cv_prog_compiler_rtti_exceptions=no
16703 ac_outfile=conftest.$ac_objext
16704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16705 lt_compiler_flag="-fno-rtti -fno-exceptions"
16706 # Insert the option either (1) after the last *FLAGS variable, or
16707 # (2) before a word containing "conftest.", or (3) at the end.
16708 # Note that $ac_compile itself does not contain backslashes and begins
16709 # with a dollar sign (not a hyphen), so the echo should work correctly.
16710 # The option is referenced via a variable to avoid confusing sed.
16711 lt_compile=`echo "$ac_compile" | $SED \
16712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16714 -e 's:$: $lt_compiler_flag:'`
16715 (eval echo "\"\$as_me:16715: $lt_compile\"" >&5)
16716 (eval "$lt_compile" 2>conftest.err)
16718 cat conftest.err >&5
16719 echo "$as_me:16719: \$? = $ac_status" >&5
16720 if (exit $ac_status) && test -s "$ac_outfile"; then
16721 # The compiler can only warn and ignore the option if not recognized
16722 # So say no if there are warnings other than the usual output.
16723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16726 lt_cv_prog_compiler_rtti_exceptions=yes
16732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16733 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16735 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16736 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16743 lt_prog_compiler_wl_GCJ=
16744 lt_prog_compiler_pic_GCJ=
16745 lt_prog_compiler_static_GCJ=
16747 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16748 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16750 if test "$GCC" = yes; then
16751 lt_prog_compiler_wl_GCJ='-Wl,'
16752 lt_prog_compiler_static_GCJ='-static'
16756 # All AIX code is PIC.
16757 if test "$host_cpu" = ia64; then
16758 # AIX 5 now supports IA64 processor
16759 lt_prog_compiler_static_GCJ='-Bstatic'
16764 # FIXME: we need at least 68020 code to build shared libraries, but
16765 # adding the `-m68020' flag to GCC prevents building anything better,
16767 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16771 # PIC is the default for these OSes.
16774 mingw* | cygwin* | pw32* | os2*)
16775 # This hack is so that the source file can tell whether it is being
16776 # built for inclusion in a dll (and should export symbols for example).
16777 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16778 # (--disable-auto-import) libraries
16782 darwin* | rhapsody*)
16783 # PIC is the default on this platform
16784 # Common symbols not allowed in MH_DYLIB files
16785 lt_prog_compiler_pic_GCJ='-fno-common'
16789 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16790 # Instead, we relocate shared libraries at runtime.
16794 # Just because we use GCC doesn't mean we suddenly get shared libraries
16795 # on systems that don't support them.
16796 lt_prog_compiler_can_build_shared_GCJ=no
16801 if test -d /usr/nec; then
16802 lt_prog_compiler_pic_GCJ=-Kconform_pic
16807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16808 # not for PA HP-UX.
16814 lt_prog_compiler_pic_GCJ='-fPIC'
16820 lt_prog_compiler_pic_GCJ='-fPIC'
16824 # PORTME Check for flag to pass linker flags through the system compiler.
16827 lt_prog_compiler_wl_GCJ='-Wl,'
16828 if test "$host_cpu" = ia64; then
16829 # AIX 5 now supports IA64 processor
16830 lt_prog_compiler_static_GCJ='-Bstatic'
16832 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16836 # PIC is the default on this platform
16837 # Common symbols not allowed in MH_DYLIB files
16838 case $cc_basename in
16840 lt_prog_compiler_pic_GCJ='-qnocommon'
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16846 mingw* | cygwin* | pw32* | os2*)
16847 # This hack is so that the source file can tell whether it is being
16848 # built for inclusion in a dll (and should export symbols for example).
16852 hpux9* | hpux10* | hpux11*)
16853 lt_prog_compiler_wl_GCJ='-Wl,'
16854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16855 # not for PA HP-UX.
16861 lt_prog_compiler_pic_GCJ='+Z'
16864 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16865 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16868 irix5* | irix6* | nonstopux*)
16869 lt_prog_compiler_wl_GCJ='-Wl,'
16870 # PIC (with -KPIC) is the default.
16871 lt_prog_compiler_static_GCJ='-non_shared'
16875 lt_prog_compiler_pic_GCJ='-KPIC'
16876 lt_prog_compiler_static_GCJ='-Bstatic'
16879 linux* | k*bsd*-gnu)
16880 case $cc_basename in
16882 lt_prog_compiler_wl_GCJ='-Wl,'
16883 lt_prog_compiler_pic_GCJ='-KPIC'
16884 lt_prog_compiler_static_GCJ='-static'
16886 pgcc* | pgf77* | pgf90* | pgf95*)
16887 # Portland Group compilers (*not* the Pentium gcc compiler,
16888 # which looks to be a dead project)
16889 lt_prog_compiler_wl_GCJ='-Wl,'
16890 lt_prog_compiler_pic_GCJ='-fpic'
16891 lt_prog_compiler_static_GCJ='-Bstatic'
16894 lt_prog_compiler_wl_GCJ='-Wl,'
16895 # All Alpha code is PIC.
16896 lt_prog_compiler_static_GCJ='-non_shared'
16899 case `$CC -V 2>&1 | sed 5q` in
16902 lt_prog_compiler_pic_GCJ='-KPIC'
16903 lt_prog_compiler_static_GCJ='-Bstatic'
16904 lt_prog_compiler_wl_GCJ='-Wl,'
16907 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16908 lt_prog_compiler_pic_GCJ='-KPIC'
16909 lt_prog_compiler_static_GCJ='-Bstatic'
16910 lt_prog_compiler_wl_GCJ=''
16917 osf3* | osf4* | osf5*)
16918 lt_prog_compiler_wl_GCJ='-Wl,'
16919 # All OSF/1 code is PIC.
16920 lt_prog_compiler_static_GCJ='-non_shared'
16924 lt_prog_compiler_static_GCJ='-non_shared'
16928 lt_prog_compiler_pic_GCJ='-KPIC'
16929 lt_prog_compiler_static_GCJ='-Bstatic'
16930 case $cc_basename in
16931 f77* | f90* | f95*)
16932 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16934 lt_prog_compiler_wl_GCJ='-Wl,';;
16939 lt_prog_compiler_wl_GCJ='-Qoption ld '
16940 lt_prog_compiler_pic_GCJ='-PIC'
16941 lt_prog_compiler_static_GCJ='-Bstatic'
16944 sysv4 | sysv4.2uw2* | sysv4.3*)
16945 lt_prog_compiler_wl_GCJ='-Wl,'
16946 lt_prog_compiler_pic_GCJ='-KPIC'
16947 lt_prog_compiler_static_GCJ='-Bstatic'
16951 if test -d /usr/nec ;then
16952 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16953 lt_prog_compiler_static_GCJ='-Bstatic'
16957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16958 lt_prog_compiler_wl_GCJ='-Wl,'
16959 lt_prog_compiler_pic_GCJ='-KPIC'
16960 lt_prog_compiler_static_GCJ='-Bstatic'
16964 lt_prog_compiler_wl_GCJ='-Wl,'
16965 lt_prog_compiler_can_build_shared_GCJ=no
16969 lt_prog_compiler_pic_GCJ='-pic'
16970 lt_prog_compiler_static_GCJ='-Bstatic'
16974 lt_prog_compiler_can_build_shared_GCJ=no
16979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16980 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16983 # Check to make sure the PIC flag actually works.
16985 if test -n "$lt_prog_compiler_pic_GCJ"; then
16987 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16989 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 lt_cv_prog_compiler_pic_works_GCJ=no
16993 ac_outfile=conftest.$ac_objext
16994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16995 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16996 # Insert the option either (1) after the last *FLAGS variable, or
16997 # (2) before a word containing "conftest.", or (3) at the end.
16998 # Note that $ac_compile itself does not contain backslashes and begins
16999 # with a dollar sign (not a hyphen), so the echo should work correctly.
17000 # The option is referenced via a variable to avoid confusing sed.
17001 lt_compile=`echo "$ac_compile" | $SED \
17002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17004 -e 's:$: $lt_compiler_flag:'`
17005 (eval echo "\"\$as_me:17005: $lt_compile\"" >&5)
17006 (eval "$lt_compile" 2>conftest.err)
17008 cat conftest.err >&5
17009 echo "$as_me:17009: \$? = $ac_status" >&5
17010 if (exit $ac_status) && test -s "$ac_outfile"; then
17011 # The compiler can only warn and ignore the option if not recognized
17012 # So say no if there are warnings other than the usual output.
17013 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17016 lt_cv_prog_compiler_pic_works_GCJ=yes
17022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17023 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17025 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17026 case $lt_prog_compiler_pic_GCJ in
17028 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17031 lt_prog_compiler_pic_GCJ=
17032 lt_prog_compiler_can_build_shared_GCJ=no
17037 # For platforms which do not support PIC, -DPIC is meaningless:
17039 lt_prog_compiler_pic_GCJ=
17042 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17047 # Check to make sure the static flag actually works.
17049 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17050 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17051 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17052 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 lt_cv_prog_compiler_static_works_GCJ=no
17056 save_LDFLAGS="$LDFLAGS"
17057 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17060 # The linker can only warn and ignore the option if not recognized
17061 # So say no if there are warnings
17062 if test -s conftest.err; then
17063 # Append any errors to the config.log.
17064 cat conftest.err 1>&5
17065 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17067 if diff conftest.exp conftest.er2 >/dev/null; then
17068 lt_cv_prog_compiler_static_works_GCJ=yes
17071 lt_cv_prog_compiler_static_works_GCJ=yes
17075 LDFLAGS="$save_LDFLAGS"
17078 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17079 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17081 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17084 lt_prog_compiler_static_GCJ=
17088 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17089 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17090 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 lt_cv_prog_compiler_c_o_GCJ=no
17094 $rm -r conftest 2>/dev/null
17098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17100 lt_compiler_flag="-o out/conftest2.$ac_objext"
17101 # Insert the option either (1) after the last *FLAGS variable, or
17102 # (2) before a word containing "conftest.", or (3) at the end.
17103 # Note that $ac_compile itself does not contain backslashes and begins
17104 # with a dollar sign (not a hyphen), so the echo should work correctly.
17105 lt_compile=`echo "$ac_compile" | $SED \
17106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17108 -e 's:$: $lt_compiler_flag:'`
17109 (eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
17110 (eval "$lt_compile" 2>out/conftest.err)
17112 cat out/conftest.err >&5
17113 echo "$as_me:17113: \$? = $ac_status" >&5
17114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17116 # The compiler can only warn and ignore the option if not recognized
17117 # So say no if there are warnings
17118 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17121 lt_cv_prog_compiler_c_o_GCJ=yes
17126 # SGI C++ compiler will create directory out/ii_files/ for
17127 # template instantiation
17128 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17129 $rm out/* && rmdir out
17135 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17136 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17139 hard_links="nottested"
17140 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17141 # do not overwrite the value of need_locks provided by the user
17142 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17143 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17148 ln conftest.a conftest.b 2>&5 || hard_links=no
17149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17150 { echo "$as_me:$LINENO: result: $hard_links" >&5
17151 echo "${ECHO_T}$hard_links" >&6; }
17152 if test "$hard_links" = no; then
17153 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17154 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17161 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17162 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17165 allow_undefined_flag_GCJ=
17166 enable_shared_with_static_runtimes_GCJ=no
17168 archive_expsym_cmds_GCJ=
17169 old_archive_From_new_cmds_GCJ=
17170 old_archive_from_expsyms_cmds_GCJ=
17171 export_dynamic_flag_spec_GCJ=
17172 whole_archive_flag_spec_GCJ=
17173 thread_safe_flag_spec_GCJ=
17174 hardcode_libdir_flag_spec_GCJ=
17175 hardcode_libdir_flag_spec_ld_GCJ=
17176 hardcode_libdir_separator_GCJ=
17177 hardcode_direct_GCJ=no
17178 hardcode_minus_L_GCJ=no
17179 hardcode_shlibpath_var_GCJ=unsupported
17180 link_all_deplibs_GCJ=unknown
17181 hardcode_automatic_GCJ=no
17183 module_expsym_cmds_GCJ=
17184 always_export_symbols_GCJ=no
17185 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17186 # include_expsyms should be a list of space-separated symbols to be *always*
17187 # included in the symbol list
17188 include_expsyms_GCJ=
17189 # exclude_expsyms can be an extended regexp of symbols to exclude
17190 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17191 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17192 # as well as any symbol that contains `d'.
17193 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17194 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17195 # platforms (ab)use it in PIC code, but their linkers get confused if
17196 # the symbol is explicitly referenced. Since portable code cannot
17197 # rely on this symbol name, it's probably fine to never include it in
17198 # preloaded symbol tables.
17199 # Exclude shared library initialization/finalization symbols.
17200 extract_expsyms_cmds=
17201 # Just being paranoid about ensuring that cc_basename is set.
17202 for cc_temp in $compiler""; do
17204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17213 cygwin* | mingw* | pw32*)
17214 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17215 # When not using gcc, we currently assume that we are using
17216 # Microsoft Visual C++.
17217 if test "$GCC" != yes; then
17222 # we just hope/assume this is gcc and not c89 (= MSVC++)
17231 if test "$with_gnu_ld" = yes; then
17232 # If archive_cmds runs LD, not CC, wlarc should be empty
17235 # Set some defaults for GNU ld with shared library support. These
17236 # are reset later if shared libraries are not supported. Putting them
17237 # here allows them to be overridden if necessary.
17238 runpath_var=LD_RUN_PATH
17239 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17240 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17241 # ancient GNU ld didn't support --whole-archive et. al.
17242 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17243 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17245 whole_archive_flag_spec_GCJ=
17247 supports_anon_versioning=no
17248 case `$LD -v 2>/dev/null` in
17249 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17252 *\ 2.11.*) ;; # other 2.11 versions
17253 *) supports_anon_versioning=yes ;;
17256 # See if GNU ld supports shared libraries.
17259 # On AIX/PPC, the GNU linker is very broken
17260 if test "$host_cpu" != ia64; then
17264 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17265 *** to be unable to reliably create shared libraries on AIX.
17266 *** Therefore, libtool is disabling shared libraries support. If you
17267 *** really care for shared libraries, you may want to modify your PATH
17268 *** so that a non-GNU linker is found, and then restart.
17275 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)'
17276 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17277 hardcode_minus_L_GCJ=yes
17279 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17280 # that the semantics of dynamic libraries on AmigaOS, at least up
17281 # to version 4, is to share data among multiple programs linked
17282 # with the same dynamic library. Since this doesn't match the
17283 # behavior of shared libraries on other platforms, we can't use
17289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17290 allow_undefined_flag_GCJ=unsupported
17291 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17292 # support --undefined. This deserves some investigation. FIXME
17293 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17299 cygwin* | mingw* | pw32*)
17300 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17301 # as there is no search path for DLLs.
17302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17303 allow_undefined_flag_GCJ=unsupported
17304 always_export_symbols_GCJ=no
17305 enable_shared_with_static_runtimes_GCJ=yes
17306 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17308 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17309 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17310 # If the export-symbols file already is a .def file (1st line
17311 # is EXPORTS), use it as is; otherwise, prepend...
17312 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17313 cp $export_symbols $output_objdir/$soname.def;
17315 echo EXPORTS > $output_objdir/$soname.def;
17316 cat $export_symbols >> $output_objdir/$soname.def;
17318 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17325 hardcode_direct_GCJ=no
17326 hardcode_shlibpath_var_GCJ=no
17327 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17328 export_dynamic_flag_spec_GCJ='${wl}-E'
17329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17330 # Instead, shared libraries are loaded at an image base (0x10000000 by
17331 # default) and relocated if they conflict, which is a slow very memory
17332 # consuming and fragmenting process. To avoid this, we pick a random,
17333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17335 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'
17336 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'
17339 gnu* | linux* | k*bsd*-gnu)
17340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17342 case $cc_basename,$host_cpu in
17343 pgcc*) # Portland Group C compiler
17344 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'
17345 tmp_addflag=' $pic_flag'
17347 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17348 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'
17349 tmp_addflag=' $pic_flag -Mnomain' ;;
17350 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17351 tmp_addflag=' -i_dynamic' ;;
17352 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17353 tmp_addflag=' -i_dynamic -nofor_main' ;;
17354 ifc* | ifort*) # Intel Fortran compiler
17355 tmp_addflag=' -nofor_main' ;;
17357 case `$CC -V 2>&1 | sed 5q` in
17358 *Sun\ C*) # Sun C 5.9
17359 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17360 tmp_sharedflag='-G' ;;
17361 *Sun\ F*) # Sun Fortran 8.3
17362 tmp_sharedflag='-G' ;;
17364 tmp_sharedflag='-shared' ;;
17366 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17368 if test $supports_anon_versioning = yes; then
17369 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17371 $echo "local: *; };" >> $output_objdir/$libname.ver~
17372 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17374 link_all_deplibs_GCJ=no
17380 netbsd* | netbsdelf*-gnu)
17381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17382 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17385 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17386 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17391 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17395 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17396 *** create shared libraries on Solaris systems. Therefore, libtool
17397 *** is disabling shared libraries support. We urge you to upgrade GNU
17398 *** binutils to release 2.9.1 or newer. Another option is to modify
17399 *** your PATH or compiler configuration so that the native linker is
17400 *** used, and then restart.
17403 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17404 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17405 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17412 case `$LD -v 2>&1` in
17413 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17417 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17418 *** reliably create shared libraries on SCO systems. Therefore, libtool
17419 *** is disabling shared libraries support. We urge you to upgrade GNU
17420 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17421 *** your PATH or compiler configuration so that the native linker is
17422 *** used, and then restart.
17427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17428 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17429 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17430 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17439 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17441 hardcode_direct_GCJ=yes
17442 hardcode_shlibpath_var_GCJ=no
17446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17447 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17448 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17455 if test "$ld_shlibs_GCJ" = no; then
17457 hardcode_libdir_flag_spec_GCJ=
17458 export_dynamic_flag_spec_GCJ=
17459 whole_archive_flag_spec_GCJ=
17462 # PORTME fill in a description of your system's linker (not GNU ld)
17465 allow_undefined_flag_GCJ=unsupported
17466 always_export_symbols_GCJ=yes
17467 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'
17468 # Note: this linker hardcodes the directories in LIBPATH if there
17469 # are no directories specified by -L.
17470 hardcode_minus_L_GCJ=yes
17471 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17472 # Neither direct hardcoding nor static linking is supported with a
17474 hardcode_direct_GCJ=unsupported
17479 if test "$host_cpu" = ia64; then
17480 # On IA64, the linker does run time linking by default, so we don't
17481 # have to do anything special.
17482 aix_use_runtimelinking=no
17483 exp_sym_flag='-Bexport'
17486 # If we're using GNU nm, then we don't want the "-C" option.
17487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17488 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17489 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'
17491 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'
17493 aix_use_runtimelinking=no
17495 # Test if we are trying to use run time linking or normal
17496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17497 # need to do runtime linking.
17498 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17499 for ld_flag in $LDFLAGS; do
17500 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17501 aix_use_runtimelinking=yes
17508 exp_sym_flag='-bexport'
17509 no_entry_flag='-bnoentry'
17512 # When large executables or shared objects are built, AIX ld can
17513 # have problems creating the table of contents. If linking a library
17514 # or program results in "error TOC overflow" add -mminimal-toc to
17515 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17516 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17518 archive_cmds_GCJ=''
17519 hardcode_direct_GCJ=yes
17520 hardcode_libdir_separator_GCJ=':'
17521 link_all_deplibs_GCJ=yes
17523 if test "$GCC" = yes; then
17524 case $host_os in aix4.[012]|aix4.[012].*)
17525 # We only want to do this on AIX 4.2 and lower, the check
17526 # below for broken collect2 doesn't work under 4.3+
17527 collect2name=`${CC} -print-prog-name=collect2`
17528 if test -f "$collect2name" && \
17529 strings "$collect2name" | grep resolve_lib_name >/dev/null
17531 # We have reworked collect2
17534 # We have old collect2
17535 hardcode_direct_GCJ=unsupported
17536 # It fails to find uninstalled libraries when the uninstalled
17537 # path is not listed in the libpath. Setting hardcode_minus_L
17538 # to unsupported forces relinking
17539 hardcode_minus_L_GCJ=yes
17540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541 hardcode_libdir_separator_GCJ=
17545 shared_flag='-shared'
17546 if test "$aix_use_runtimelinking" = yes; then
17547 shared_flag="$shared_flag "'${wl}-G'
17551 if test "$host_cpu" = ia64; then
17552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17553 # chokes on -Wl,-G. The following line is correct:
17556 if test "$aix_use_runtimelinking" = yes; then
17557 shared_flag='${wl}-G'
17559 shared_flag='${wl}-bM:SRE'
17564 # It seems that -bexpall does not export symbols beginning with
17565 # underscore (_), so it is better to generate a list of symbols to export.
17566 always_export_symbols_GCJ=yes
17567 if test "$aix_use_runtimelinking" = yes; then
17568 # Warning - without using the other runtime loading flags (-brtl),
17569 # -berok will link without error, but may produce a broken library.
17570 allow_undefined_flag_GCJ='-berok'
17571 # Determine the default libpath from the value encoded in an empty executable.
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17587 rm -f conftest.$ac_objext conftest$ac_exeext
17588 if { (ac_try="$ac_link"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_link") 2>conftest.er1
17596 grep -v '^ *+' conftest.er1 >conftest.err
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } && {
17601 test -z "$ac_c_werror_flag" ||
17602 test ! -s conftest.err
17603 } && test -s conftest$ac_exeext &&
17604 $as_test_x conftest$ac_exeext; then
17606 lt_aix_libpath_sed='
17607 /Import File Strings/,/^$/ {
17613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17614 # Check for a 64-bit object if we didn't find anything.
17615 if test -z "$aix_libpath"; then
17616 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17629 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17630 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"
17632 if test "$host_cpu" = ia64; then
17633 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17634 allow_undefined_flag_GCJ="-z nodefs"
17635 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"
17637 # Determine the default libpath from the value encoded in an empty executable.
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17653 rm -f conftest.$ac_objext conftest$ac_exeext
17654 if { (ac_try="$ac_link"
17655 case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_link") 2>conftest.er1
17662 grep -v '^ *+' conftest.er1 >conftest.err
17664 cat conftest.err >&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } && {
17667 test -z "$ac_c_werror_flag" ||
17668 test ! -s conftest.err
17669 } && test -s conftest$ac_exeext &&
17670 $as_test_x conftest$ac_exeext; then
17672 lt_aix_libpath_sed='
17673 /Import File Strings/,/^$/ {
17679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17680 # Check for a 64-bit object if we didn't find anything.
17681 if test -z "$aix_libpath"; then
17682 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17692 conftest$ac_exeext conftest.$ac_ext
17693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17695 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17696 # Warning - without using the other run time loading flags,
17697 # -berok will link without error, but may produce a broken library.
17698 no_undefined_flag_GCJ=' ${wl}-bernotok'
17699 allow_undefined_flag_GCJ=' ${wl}-berok'
17700 # Exported symbols can be pulled into shared objects from archives
17701 whole_archive_flag_spec_GCJ='$convenience'
17702 archive_cmds_need_lc_GCJ=yes
17703 # This is similar to how AIX traditionally builds its shared libraries.
17704 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'
17710 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)'
17711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17712 hardcode_minus_L_GCJ=yes
17713 # see comment about different semantics on the GNU ld section
17718 export_dynamic_flag_spec_GCJ=-rdynamic
17721 cygwin* | mingw* | pw32*)
17722 # When not using gcc, we currently assume that we are using
17723 # Microsoft Visual C++.
17724 # hardcode_libdir_flag_spec is actually meaningless, as there is
17725 # no search path for DLLs.
17726 hardcode_libdir_flag_spec_GCJ=' '
17727 allow_undefined_flag_GCJ=unsupported
17728 # Tell ltmain to make .lib files, not .a files.
17730 # Tell ltmain to make .dll files, not .so files.
17732 # FIXME: Setting linknames here is a bad hack.
17733 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17734 # The linker will automatically build a .lib file if we build a DLL.
17735 old_archive_From_new_cmds_GCJ='true'
17736 # FIXME: Should let the user specify the lib program.
17737 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17738 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17739 enable_shared_with_static_runtimes_GCJ=yes
17742 darwin* | rhapsody*)
17744 rhapsody* | darwin1.[012])
17745 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17748 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17749 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17751 case ${MACOSX_DEPLOYMENT_TARGET} in
17753 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17756 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17762 archive_cmds_need_lc_GCJ=no
17763 hardcode_direct_GCJ=no
17764 hardcode_automatic_GCJ=yes
17765 hardcode_shlibpath_var_GCJ=unsupported
17766 whole_archive_flag_spec_GCJ=''
17767 link_all_deplibs_GCJ=yes
17768 if test "$GCC" = yes ; then
17769 output_verbose_link_cmd='echo'
17770 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17771 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17772 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17773 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17775 case $cc_basename in
17777 output_verbose_link_cmd='echo'
17778 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17779 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17780 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17781 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17782 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}'
17792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17793 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17794 hardcode_shlibpath_var_GCJ=no
17801 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17802 # support. Future versions do this automatically, but an explicit c++rt0.o
17803 # does not break anything, and helps significantly (at the cost of a little
17806 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17807 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17808 hardcode_direct_GCJ=yes
17809 hardcode_shlibpath_var_GCJ=no
17812 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17814 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17815 hardcode_direct_GCJ=yes
17816 hardcode_minus_L_GCJ=yes
17817 hardcode_shlibpath_var_GCJ=no
17820 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17821 freebsd* | dragonfly*)
17822 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17823 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17824 hardcode_direct_GCJ=yes
17825 hardcode_shlibpath_var_GCJ=no
17829 if test "$GCC" = yes; then
17830 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'
17832 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'
17834 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17835 hardcode_libdir_separator_GCJ=:
17836 hardcode_direct_GCJ=yes
17838 # hardcode_minus_L: Not really in the search PATH,
17839 # but as the default location of the library.
17840 hardcode_minus_L_GCJ=yes
17841 export_dynamic_flag_spec_GCJ='${wl}-E'
17845 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17846 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17848 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17850 if test "$with_gnu_ld" = no; then
17851 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17852 hardcode_libdir_separator_GCJ=:
17854 hardcode_direct_GCJ=yes
17855 export_dynamic_flag_spec_GCJ='${wl}-E'
17857 # hardcode_minus_L: Not really in the search PATH,
17858 # but as the default location of the library.
17859 hardcode_minus_L_GCJ=yes
17864 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17867 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17870 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17873 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17879 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17882 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17885 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17889 if test "$with_gnu_ld" = no; then
17890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17891 hardcode_libdir_separator_GCJ=:
17895 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17896 hardcode_direct_GCJ=no
17897 hardcode_shlibpath_var_GCJ=no
17900 hardcode_direct_GCJ=yes
17901 export_dynamic_flag_spec_GCJ='${wl}-E'
17903 # hardcode_minus_L: Not really in the search PATH,
17904 # but as the default location of the library.
17905 hardcode_minus_L_GCJ=yes
17911 irix5* | irix6* | nonstopux*)
17912 if test "$GCC" = yes; then
17913 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'
17915 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'
17916 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17918 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17919 hardcode_libdir_separator_GCJ=:
17920 link_all_deplibs_GCJ=yes
17923 netbsd* | netbsdelf*-gnu)
17924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17925 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17927 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17930 hardcode_direct_GCJ=yes
17931 hardcode_shlibpath_var_GCJ=no
17935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17936 hardcode_direct_GCJ=yes
17937 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17938 hardcode_libdir_separator_GCJ=:
17939 hardcode_shlibpath_var_GCJ=no
17943 if test -f /usr/libexec/ld.so; then
17944 hardcode_direct_GCJ=yes
17945 hardcode_shlibpath_var_GCJ=no
17946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17947 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17948 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17950 export_dynamic_flag_spec_GCJ='${wl}-E'
17953 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17954 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17958 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17969 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17970 hardcode_minus_L_GCJ=yes
17971 allow_undefined_flag_GCJ=unsupported
17972 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'
17973 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17977 if test "$GCC" = yes; then
17978 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17979 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'
17981 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17982 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'
17984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17985 hardcode_libdir_separator_GCJ=:
17988 osf4* | osf5*) # as osf3* with the addition of -msym flag
17989 if test "$GCC" = yes; then
17990 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17991 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'
17992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17994 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17995 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'
17996 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~
17997 $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'
17999 # Both c and cxx compiler support -rpath directly
18000 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18002 hardcode_libdir_separator_GCJ=:
18006 no_undefined_flag_GCJ=' -z text'
18007 if test "$GCC" = yes; then
18009 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18010 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18011 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18014 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18015 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18016 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18018 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18019 hardcode_shlibpath_var_GCJ=no
18021 solaris2.[0-5] | solaris2.[0-5].*) ;;
18023 # The compiler driver will combine and reorder linker options,
18024 # but understands `-z linker_flag'. GCC discards it without `$wl',
18025 # but is careful enough not to reorder.
18026 # Supported since Solaris 2.6 (maybe 2.5.1?)
18027 if test "$GCC" = yes; then
18028 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18030 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18034 link_all_deplibs_GCJ=yes
18038 if test "x$host_vendor" = xsequent; then
18039 # Use $CC to link under sequent, because it throws in some extra .o
18040 # files that make .init and .fini sections work.
18041 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18043 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18046 hardcode_direct_GCJ=yes
18047 hardcode_minus_L_GCJ=yes
18048 hardcode_shlibpath_var_GCJ=no
18052 case $host_vendor in
18054 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18055 hardcode_direct_GCJ=yes # is this really true???
18058 ## LD is ld it makes a PLAMLIB
18059 ## CC just makes a GrossModule.
18060 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18061 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18062 hardcode_direct_GCJ=no
18065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18066 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18069 runpath_var='LD_RUN_PATH'
18070 hardcode_shlibpath_var_GCJ=no
18074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18075 hardcode_shlibpath_var_GCJ=no
18076 export_dynamic_flag_spec_GCJ='-Bexport'
18080 if test -d /usr/nec; then
18081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18082 hardcode_shlibpath_var_GCJ=no
18083 runpath_var=LD_RUN_PATH
18084 hardcode_runpath_var=yes
18089 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18090 no_undefined_flag_GCJ='${wl}-z,text'
18091 archive_cmds_need_lc_GCJ=no
18092 hardcode_shlibpath_var_GCJ=no
18093 runpath_var='LD_RUN_PATH'
18095 if test "$GCC" = yes; then
18096 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18097 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18099 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104 sysv5* | sco3.2v5* | sco5v6*)
18105 # Note: We can NOT use -z defs as we might desire, because we do not
18106 # link with -lc, and that would cause any symbols used from libc to
18107 # always be unresolved, which means just about no library would
18108 # ever link correctly. If we're not using GNU ld we use -z text
18109 # though, which does catch some bad symbols but isn't as heavy-handed
18111 no_undefined_flag_GCJ='${wl}-z,text'
18112 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18113 archive_cmds_need_lc_GCJ=no
18114 hardcode_shlibpath_var_GCJ=no
18115 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18116 hardcode_libdir_separator_GCJ=':'
18117 link_all_deplibs_GCJ=yes
18118 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18119 runpath_var='LD_RUN_PATH'
18121 if test "$GCC" = yes; then
18122 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18123 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18125 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18133 hardcode_shlibpath_var_GCJ=no
18142 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18143 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18144 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18147 # Do we need to explicitly link libc?
18149 case "x$archive_cmds_need_lc_GCJ" in
18151 # Assume -lc should be added
18152 archive_cmds_need_lc_GCJ=yes
18154 if test "$enable_shared" = yes && test "$GCC" = yes; then
18155 case $archive_cmds_GCJ in
18157 # FIXME: we may have to deal with multi-command sequences.
18160 # Test whether the compiler implicitly links with -lc since on some
18161 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18162 # to ld, don't add -lc before -lgcc.
18163 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18164 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18169 (eval $ac_compile) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } 2>conftest.err; then
18175 libobjs=conftest.$ac_objext
18177 wl=$lt_prog_compiler_wl_GCJ
18178 pic_flag=$lt_prog_compiler_pic_GCJ
18184 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18185 allow_undefined_flag_GCJ=
18186 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18187 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }
18192 archive_cmds_need_lc_GCJ=no
18194 archive_cmds_need_lc_GCJ=yes
18196 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18198 cat conftest.err 1>&5
18201 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18202 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18209 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18210 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18211 library_names_spec=
18212 libname_spec='lib$name'
18216 postuninstall_cmds=
18220 shlibpath_overrides_runpath=unknown
18222 dynamic_linker="$host_os ld.so"
18223 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18225 need_lib_prefix=unknown
18226 hardcode_into_libs=no
18228 # when you set need_version to no, make sure it does not cause -set_version
18229 # flags to be left without arguments
18230 need_version=unknown
18235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18236 shlibpath_var=LIBPATH
18238 # AIX 3 has no versioning support, so we append a major version to the name.
18239 soname_spec='${libname}${release}${shared_ext}$major'
18246 hardcode_into_libs=yes
18247 if test "$host_cpu" = ia64; then
18248 # AIX 5 supports IA64
18249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18250 shlibpath_var=LD_LIBRARY_PATH
18252 # With GCC up to 2.95.x, collect2 would create an import file
18253 # for dependence libraries. The import file would start with
18254 # the line `#! .'. This would cause the generated library to
18255 # depend on `.', always an invalid library. This was fixed in
18256 # development snapshots of GCC prior to 3.0.
18258 aix4 | aix4.[01] | aix4.[01].*)
18259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18264 can_build_shared=no
18268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18269 # soname into executable. Probably we can add versioning support to
18270 # collect2, so additional links can be useful in future.
18271 if test "$aix_use_runtimelinking" = yes; then
18272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18273 # instead of lib<name>.a to let people know that these are not
18274 # typical AIX shared libraries.
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18277 # We preserve .a as extension for shared libraries through AIX4.2
18278 # and later when we are not doing run time linking.
18279 library_names_spec='${libname}${release}.a $libname.a'
18280 soname_spec='${libname}${release}${shared_ext}$major'
18282 shlibpath_var=LIBPATH
18287 library_names_spec='$libname.ixlibrary $libname.a'
18288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18289 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'
18293 library_names_spec='${libname}${shared_ext}'
18294 dynamic_linker="$host_os ld.so"
18295 shlibpath_var=LIBRARY_PATH
18301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302 soname_spec='${libname}${release}${shared_ext}$major'
18303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18307 # the default ld.so.conf also contains /usr/contrib/lib and
18308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18309 # libtool to hard-code these into programs
18312 cygwin* | mingw* | pw32*)
18313 version_type=windows
18318 case $GCC,$host_os in
18319 yes,cygwin* | yes,mingw* | yes,pw32*)
18320 library_names_spec='$libname.dll.a'
18321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18322 postinstall_cmds='base_file=`basename \${file}`~
18323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18324 dldir=$destdir/`dirname \$dlpath`~
18325 test -d \$dldir || mkdir -p \$dldir~
18326 $install_prog $dir/$dlname \$dldir/$dlname~
18327 chmod a+x \$dldir/$dlname'
18328 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18329 dlpath=$dir/\$dldll~
18331 shlibpath_overrides_runpath=yes
18335 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18336 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18337 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18340 # MinGW DLLs use traditional 'lib' prefix
18341 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18343 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18344 # It is most probably a Windows format PATH printed by
18345 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18346 # path with ; separators, and with drive letters. We can handle the
18347 # drive letters (cygwin fileutils understands them), so leave them,
18348 # especially as we might pass files found there to a mingw objdump,
18349 # which wouldn't understand a cygwinified path. Ahh.
18350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18356 # pw32 DLLs use 'pw' prefix rather than 'lib'
18357 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18363 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18366 dynamic_linker='Win32 ld.exe'
18367 # FIXME: first we should search . and the directory the executable is in
18371 darwin* | rhapsody*)
18372 dynamic_linker="$host_os dyld"
18373 version_type=darwin
18376 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18377 soname_spec='${libname}${release}${major}$shared_ext'
18378 shlibpath_overrides_runpath=yes
18379 shlibpath_var=DYLD_LIBRARY_PATH
18380 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18382 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 shlibpath_var=LD_LIBRARY_PATH
18398 freebsd* | dragonfly*)
18399 # DragonFly does not have aout. When/if they implement a new
18400 # versioning mechanism, adjust this.
18401 if test -x /usr/bin/objformat; then
18402 objformat=`/usr/bin/objformat`
18405 freebsd[123]*) objformat=aout ;;
18406 *) objformat=elf ;;
18409 version_type=freebsd-$objformat
18410 case $version_type in
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18421 shlibpath_var=LD_LIBRARY_PATH
18424 shlibpath_overrides_runpath=yes
18426 freebsd3.[01]* | freebsdelf3.[01]*)
18427 shlibpath_overrides_runpath=yes
18428 hardcode_into_libs=yes
18430 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18431 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18432 shlibpath_overrides_runpath=no
18433 hardcode_into_libs=yes
18435 *) # from 4.6 on, and DragonFly
18436 shlibpath_overrides_runpath=yes
18437 hardcode_into_libs=yes
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18447 soname_spec='${libname}${release}${shared_ext}$major'
18448 shlibpath_var=LD_LIBRARY_PATH
18449 hardcode_into_libs=yes
18452 hpux9* | hpux10* | hpux11*)
18453 # Give a soname corresponding to the major version so that dld.sl refuses to
18454 # link against other versions.
18461 hardcode_into_libs=yes
18462 dynamic_linker="$host_os dld.so"
18463 shlibpath_var=LD_LIBRARY_PATH
18464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 if test "X$HPUX_IA64_MODE" = X32; then
18468 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18470 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18476 hardcode_into_libs=yes
18477 dynamic_linker="$host_os dld.sl"
18478 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18487 dynamic_linker="$host_os dld.sl"
18488 shlibpath_var=SHLIB_PATH
18489 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18491 soname_spec='${libname}${release}${shared_ext}$major'
18494 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18495 postinstall_cmds='chmod 555 $lib'
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18505 shlibpath_var=LD_LIBRARY_PATH
18506 shlibpath_overrides_runpath=no
18507 hardcode_into_libs=yes
18510 irix5* | irix6* | nonstopux*)
18512 nonstopux*) version_type=nonstopux ;;
18514 if test "$lt_cv_prog_gnu_ld" = yes; then
18522 soname_spec='${libname}${release}${shared_ext}$major'
18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18525 irix5* | nonstopux*)
18526 libsuff= shlibsuff=
18529 case $LD in # libtool.m4 will add one of these switches to LD
18530 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18531 libsuff= shlibsuff= libmagic=32-bit;;
18532 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18533 libsuff=32 shlibsuff=N32 libmagic=N32;;
18534 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18535 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18536 *) libsuff= shlibsuff= libmagic=never-match;;
18540 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18541 shlibpath_overrides_runpath=no
18542 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18543 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18544 hardcode_into_libs=yes
18547 # No shared lib support for Linux oldld, aout, or coff.
18548 linux*oldld* | linux*aout* | linux*coff*)
18552 # This must be Linux ELF.
18553 linux* | k*bsd*-gnu)
18557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558 soname_spec='${libname}${release}${shared_ext}$major'
18559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18560 shlibpath_var=LD_LIBRARY_PATH
18561 shlibpath_overrides_runpath=no
18562 # This implies no fast_install, which is unacceptable.
18563 # Some rework will be needed to allow for fast_install
18564 # before this can be enabled.
18565 hardcode_into_libs=yes
18567 # Append ld.so.conf contents to the search path
18568 if test -f /etc/ld.so.conf; then
18569 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18570 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18573 # We used to test for /lib/ld.so.1 and disable shared libraries on
18574 # powerpc, because MkLinux only supported shared libraries with the
18575 # GNU dynamic linker. Since this was broken with cross compilers,
18576 # most powerpc-linux boxes support dynamic linking these days and
18577 # people can always --disable-shared, the test was removed, and we
18578 # assume the GNU/Linux dynamic linker is in use.
18579 dynamic_linker='GNU/Linux ld.so'
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18587 soname_spec='${libname}${release}${shared_ext}$major'
18588 shlibpath_var=LD_LIBRARY_PATH
18589 shlibpath_overrides_runpath=no
18590 hardcode_into_libs=yes
18591 dynamic_linker='NetBSD ld.elf_so'
18598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18601 dynamic_linker='NetBSD (a.out) ld.so'
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18604 soname_spec='${libname}${release}${shared_ext}$major'
18605 dynamic_linker='NetBSD ld.elf_so'
18607 shlibpath_var=LD_LIBRARY_PATH
18608 shlibpath_overrides_runpath=yes
18609 hardcode_into_libs=yes
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615 shlibpath_var=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath=yes
18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18624 soname_spec='${libname}${release}${shared_ext}$major'
18625 shlibpath_var=LD_LIBRARY_PATH
18626 shlibpath_overrides_runpath=yes
18631 sys_lib_dlsearch_path_spec="/usr/lib"
18633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18635 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18636 *) need_version=no ;;
18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18643 openbsd2.[89] | openbsd2.[89].*)
18644 shlibpath_overrides_runpath=no
18647 shlibpath_overrides_runpath=yes
18651 shlibpath_overrides_runpath=yes
18656 libname_spec='$name'
18659 library_names_spec='$libname${shared_ext} $libname.a'
18660 dynamic_linker='OS/2 ld.exe'
18661 shlibpath_var=LIBPATH
18664 osf3* | osf4* | osf5*)
18668 soname_spec='${libname}${release}${shared_ext}$major'
18669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670 shlibpath_var=LD_LIBRARY_PATH
18671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 shlibpath_overrides_runpath=yes
18687 hardcode_into_libs=yes
18688 # ldd complains unless libraries are executable
18689 postinstall_cmds='chmod +x $lib'
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18696 shlibpath_var=LD_LIBRARY_PATH
18697 shlibpath_overrides_runpath=yes
18698 if test "$with_gnu_ld" = yes; then
18706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707 soname_spec='${libname}${release}${shared_ext}$major'
18708 shlibpath_var=LD_LIBRARY_PATH
18709 case $host_vendor in
18711 shlibpath_overrides_runpath=no
18713 export_dynamic_flag_spec='${wl}-Blargedynsym'
18714 runpath_var=LD_RUN_PATH
18722 shlibpath_overrides_runpath=no
18723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18729 if test -d /usr/nec ;then
18731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18732 soname_spec='$libname${shared_ext}.$major'
18733 shlibpath_var=LD_LIBRARY_PATH
18737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18738 version_type=freebsd-elf
18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18742 soname_spec='${libname}${release}${shared_ext}$major'
18743 shlibpath_var=LD_LIBRARY_PATH
18744 hardcode_into_libs=yes
18745 if test "$with_gnu_ld" = yes; then
18746 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18747 shlibpath_overrides_runpath=no
18749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18750 shlibpath_overrides_runpath=yes
18753 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18757 sys_lib_dlsearch_path_spec='/usr/lib'
18762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18763 soname_spec='${libname}${release}${shared_ext}$major'
18764 shlibpath_var=LD_LIBRARY_PATH
18771 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18772 echo "${ECHO_T}$dynamic_linker" >&6; }
18773 test "$dynamic_linker" = no && can_build_shared=no
18775 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18781 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18782 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18791 if test "$GCC" = yes; then
18792 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18795 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18796 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18797 hardcode_action_GCJ=
18798 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18799 test -n "$runpath_var_GCJ" || \
18800 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18802 # We can hardcode non-existant directories.
18803 if test "$hardcode_direct_GCJ" != no &&
18804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18805 # have to relink, otherwise we might link with an installed library
18806 # when we should be linking with a yet-to-be-installed one
18807 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18808 test "$hardcode_minus_L_GCJ" != no; then
18809 # Linking always hardcodes the temporary library directory.
18810 hardcode_action_GCJ=relink
18812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18813 hardcode_action_GCJ=immediate
18816 # We cannot hardcode anything, or else we can only hardcode existing
18818 hardcode_action_GCJ=unsupported
18820 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18821 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18823 if test "$hardcode_action_GCJ" = relink; then
18824 # Fast installation is not supported
18825 enable_fast_install=no
18826 elif test "$shlibpath_overrides_runpath" = yes ||
18827 test "$enable_shared" = no; then
18828 # Fast installation is not necessary
18829 enable_fast_install=needless
18833 # The else clause should only fire when bootstrapping the
18834 # libtool distribution, otherwise you forgot to ship ltmain.sh
18835 # with your package, and you will get complaints that there are
18836 # no rules to generate ltmain.sh.
18837 if test -f "$ltmain"; then
18838 # See if we are running on zsh, and set the options which allow our commands through
18839 # without removal of \ escapes.
18840 if test -n "${ZSH_VERSION+set}" ; then
18841 setopt NO_GLOB_SUBST
18843 # Now quote all the things that may contain metacharacters while being
18844 # careful not to overquote the AC_SUBSTed values. We take copies of the
18845 # variables and quote the copies for generation of the libtool script.
18846 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18848 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18849 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18850 deplibs_check_method reload_flag reload_cmds need_locks \
18851 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18852 lt_cv_sys_global_symbol_to_c_name_address \
18853 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18854 old_postinstall_cmds old_postuninstall_cmds \
18858 lt_prog_compiler_wl_GCJ \
18859 lt_prog_compiler_pic_GCJ \
18860 lt_prog_compiler_static_GCJ \
18861 lt_prog_compiler_no_builtin_flag_GCJ \
18862 export_dynamic_flag_spec_GCJ \
18863 thread_safe_flag_spec_GCJ \
18864 whole_archive_flag_spec_GCJ \
18865 enable_shared_with_static_runtimes_GCJ \
18866 old_archive_cmds_GCJ \
18867 old_archive_from_new_cmds_GCJ \
18868 predep_objects_GCJ \
18869 postdep_objects_GCJ \
18872 compiler_lib_search_path_GCJ \
18873 compiler_lib_search_dirs_GCJ \
18875 archive_expsym_cmds_GCJ \
18876 postinstall_cmds_GCJ \
18877 postuninstall_cmds_GCJ \
18878 old_archive_from_expsyms_cmds_GCJ \
18879 allow_undefined_flag_GCJ \
18880 no_undefined_flag_GCJ \
18881 export_symbols_cmds_GCJ \
18882 hardcode_libdir_flag_spec_GCJ \
18883 hardcode_libdir_flag_spec_ld_GCJ \
18884 hardcode_libdir_separator_GCJ \
18885 hardcode_automatic_GCJ \
18887 module_expsym_cmds_GCJ \
18888 lt_cv_prog_compiler_c_o_GCJ \
18889 fix_srcfile_path_GCJ \
18890 exclude_expsyms_GCJ \
18891 include_expsyms_GCJ; do
18894 old_archive_cmds_GCJ | \
18895 old_archive_from_new_cmds_GCJ | \
18896 archive_cmds_GCJ | \
18897 archive_expsym_cmds_GCJ | \
18898 module_cmds_GCJ | \
18899 module_expsym_cmds_GCJ | \
18900 old_archive_from_expsyms_cmds_GCJ | \
18901 export_symbols_cmds_GCJ | \
18902 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18903 postinstall_cmds | postuninstall_cmds | \
18904 old_postinstall_cmds | old_postuninstall_cmds | \
18905 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18906 # Double-quote double-evaled strings.
18907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18916 *'\$0 --fallback-echo"')
18917 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18923 cat <<__EOF__ >> "$cfgfile"
18924 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18926 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18928 # Shell to use when invoking shell scripts.
18931 # Whether or not to build shared libraries.
18932 build_libtool_libs=$enable_shared
18934 # Whether or not to build static libraries.
18935 build_old_libs=$enable_static
18937 # Whether or not to add -lc for building shared libraries.
18938 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18940 # Whether or not to disallow shared libs when runtime libs are static
18941 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18943 # Whether or not to optimize for fast installation.
18944 fast_install=$enable_fast_install
18947 host_alias=$host_alias
18951 # The build system.
18952 build_alias=$build_alias
18956 # An echo program that does not interpret backslashes.
18961 AR_FLAGS=$lt_AR_FLAGS
18966 # LTCC compiler flags.
18967 LTCFLAGS=$lt_LTCFLAGS
18969 # A language-specific compiler.
18970 CC=$lt_compiler_GCJ
18972 # Is the compiler the GNU C compiler?
18978 # The linker used to build libraries.
18981 # Whether we need hard or soft links.
18984 # A BSD-compatible nm program.
18987 # A symbol stripping program
18990 # Used to examine libraries when file_magic_cmd begins "file"
18991 MAGIC_CMD=$MAGIC_CMD
18993 # Used on cygwin: DLL creation program.
18996 # Used on cygwin: object dumper.
18999 # Used on cygwin: assembler.
19002 # The name of the directory that contains temporary libtool files.
19005 # How to create reloadable object files.
19006 reload_flag=$lt_reload_flag
19007 reload_cmds=$lt_reload_cmds
19009 # How to pass a linker flag through the compiler.
19010 wl=$lt_lt_prog_compiler_wl_GCJ
19012 # Object file suffix (normally "o").
19013 objext="$ac_objext"
19015 # Old archive suffix (normally "a").
19018 # Shared library suffix (normally ".so").
19019 shrext_cmds='$shrext_cmds'
19021 # Executable file suffix (normally "").
19024 # Additional compiler flags for building library objects.
19025 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19028 # What is the maximum length of a command?
19029 max_cmd_len=$lt_cv_sys_max_cmd_len
19031 # Does compiler simultaneously support -c and -o options?
19032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19034 # Must we lock files when doing compilation?
19035 need_locks=$lt_need_locks
19037 # Do we need the lib prefix for modules?
19038 need_lib_prefix=$need_lib_prefix
19040 # Do we need a version for libraries?
19041 need_version=$need_version
19043 # Whether dlopen is supported.
19044 dlopen_support=$enable_dlopen
19046 # Whether dlopen of programs is supported.
19047 dlopen_self=$enable_dlopen_self
19049 # Whether dlopen of statically linked programs is supported.
19050 dlopen_self_static=$enable_dlopen_self_static
19052 # Compiler flag to prevent dynamic linking.
19053 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19055 # Compiler flag to turn off builtin functions.
19056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19058 # Compiler flag to allow reflexive dlopens.
19059 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19061 # Compiler flag to generate shared objects directly from archives.
19062 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19064 # Compiler flag to generate thread-safe objects.
19065 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19067 # Library versioning type.
19068 version_type=$version_type
19070 # Format of library name prefix.
19071 libname_spec=$lt_libname_spec
19073 # List of archive names. First name is the real one, the rest are links.
19074 # The last name is the one that the linker finds with -lNAME.
19075 library_names_spec=$lt_library_names_spec
19077 # The coded name of the library, if different from the real name.
19078 soname_spec=$lt_soname_spec
19080 # Commands used to build and install an old-style archive.
19082 old_archive_cmds=$lt_old_archive_cmds_GCJ
19083 old_postinstall_cmds=$lt_old_postinstall_cmds
19084 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19086 # Create an old-style archive from a shared archive.
19087 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19089 # Create a temporary old-style archive to link instead of a shared archive.
19090 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19092 # Commands used to build and install a shared archive.
19093 archive_cmds=$lt_archive_cmds_GCJ
19094 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19095 postinstall_cmds=$lt_postinstall_cmds
19096 postuninstall_cmds=$lt_postuninstall_cmds
19098 # Commands used to build a loadable module (assumed same as above if empty)
19099 module_cmds=$lt_module_cmds_GCJ
19100 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19102 # Commands to strip libraries.
19103 old_striplib=$lt_old_striplib
19104 striplib=$lt_striplib
19106 # Dependencies to place before the objects being linked to create a
19108 predep_objects=$lt_predep_objects_GCJ
19110 # Dependencies to place after the objects being linked to create a
19112 postdep_objects=$lt_postdep_objects_GCJ
19114 # Dependencies to place before the objects being linked to create a
19116 predeps=$lt_predeps_GCJ
19118 # Dependencies to place after the objects being linked to create a
19120 postdeps=$lt_postdeps_GCJ
19122 # The directories searched by this compiler when creating a shared
19124 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19126 # The library search path used internally by the compiler when linking
19127 # a shared library.
19128 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19130 # Method to check whether dependent libraries are shared objects.
19131 deplibs_check_method=$lt_deplibs_check_method
19133 # Command to use when deplibs_check_method == file_magic.
19134 file_magic_cmd=$lt_file_magic_cmd
19136 # Flag that allows shared libraries with undefined symbols to be built.
19137 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19139 # Flag that forces no undefined symbols.
19140 no_undefined_flag=$lt_no_undefined_flag_GCJ
19142 # Commands used to finish a libtool library installation in a directory.
19143 finish_cmds=$lt_finish_cmds
19145 # Same as above, but a single script fragment to be evaled but not shown.
19146 finish_eval=$lt_finish_eval
19148 # Take the output of nm and produce a listing of raw symbols and C names.
19149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19151 # Transform the output of nm in a proper C declaration
19152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19154 # Transform the output of nm in a C name address pair
19155 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19157 # This is the shared library runtime path variable.
19158 runpath_var=$runpath_var
19160 # This is the shared library path variable.
19161 shlibpath_var=$shlibpath_var
19163 # Is shlibpath searched before the hard-coded library search path?
19164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19166 # How to hardcode a shared library path into an executable.
19167 hardcode_action=$hardcode_action_GCJ
19169 # Whether we should hardcode library paths into libraries.
19170 hardcode_into_libs=$hardcode_into_libs
19172 # Flag to hardcode \$libdir into a binary during linking.
19173 # This must work even if \$libdir does not exist.
19174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19176 # If ld is used when linking, flag to hardcode \$libdir into
19177 # a binary during linking. This must work even if \$libdir does
19179 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19181 # Whether we need a single -rpath flag with a separated argument.
19182 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19184 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19185 # resulting binary.
19186 hardcode_direct=$hardcode_direct_GCJ
19188 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19189 # resulting binary.
19190 hardcode_minus_L=$hardcode_minus_L_GCJ
19192 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19193 # the resulting binary.
19194 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19196 # Set to yes if building a shared library automatically hardcodes DIR into the library
19197 # and all subsequent libraries and executables linked against it.
19198 hardcode_automatic=$hardcode_automatic_GCJ
19200 # Variables whose values should be saved in libtool wrapper scripts and
19201 # restored at relink time.
19202 variables_saved_for_relink="$variables_saved_for_relink"
19204 # Whether libtool must link a program against all its dependency libraries.
19205 link_all_deplibs=$link_all_deplibs_GCJ
19207 # Compile-time system search path for libraries
19208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19210 # Run-time system search path for libraries
19211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19213 # Fix the shell variable \$srcfile for the compiler.
19214 fix_srcfile_path=$lt_fix_srcfile_path
19216 # Set to yes if exported symbols are required.
19217 always_export_symbols=$always_export_symbols_GCJ
19219 # The commands to list exported symbols.
19220 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19222 # The commands to extract the exported symbol list from a shared archive.
19223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19225 # Symbols that should not be listed in the preloaded symbols.
19226 exclude_expsyms=$lt_exclude_expsyms_GCJ
19228 # Symbols that must always be exported.
19229 include_expsyms=$lt_include_expsyms_GCJ
19231 # ### END LIBTOOL TAG CONFIG: $tagname
19237 # If there is no Makefile yet, we rely on a make rule to execute
19238 # `config.status --recheck' to rerun these tests and create the
19239 # libtool script then.
19240 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19241 if test -f "$ltmain_in"; then
19242 test -f Makefile && make "$ltmain"
19248 ac_cpp='$CPP $CPPFLAGS'
19249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19263 # Source file extension for RC test sources.
19266 # Object file extension for compiled RC test sources.
19270 # Code to be used in simple compile tests
19271 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19273 # Code to be used in simple link tests
19274 lt_simple_link_test_code="$lt_simple_compile_test_code"
19276 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19278 # If no C compiler was specified, use CC.
19281 # If no C compiler flags were specified, use CFLAGS.
19282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19284 # Allow CC to be a program name with arguments.
19288 # save warnings/boilerplate of simple test code
19289 ac_outfile=conftest.$ac_objext
19290 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19291 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19292 _lt_compiler_boilerplate=`cat conftest.err`
19295 ac_outfile=conftest.$ac_objext
19296 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19297 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19298 _lt_linker_boilerplate=`cat conftest.err`
19302 # Allow CC to be a program name with arguments.
19307 for cc_temp in $compiler""; do
19309 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19310 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19315 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19317 lt_cv_prog_compiler_c_o_RC=yes
19319 # The else clause should only fire when bootstrapping the
19320 # libtool distribution, otherwise you forgot to ship ltmain.sh
19321 # with your package, and you will get complaints that there are
19322 # no rules to generate ltmain.sh.
19323 if test -f "$ltmain"; then
19324 # See if we are running on zsh, and set the options which allow our commands through
19325 # without removal of \ escapes.
19326 if test -n "${ZSH_VERSION+set}" ; then
19327 setopt NO_GLOB_SUBST
19329 # Now quote all the things that may contain metacharacters while being
19330 # careful not to overquote the AC_SUBSTed values. We take copies of the
19331 # variables and quote the copies for generation of the libtool script.
19332 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19334 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19335 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19336 deplibs_check_method reload_flag reload_cmds need_locks \
19337 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19338 lt_cv_sys_global_symbol_to_c_name_address \
19339 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19340 old_postinstall_cmds old_postuninstall_cmds \
19344 lt_prog_compiler_wl_RC \
19345 lt_prog_compiler_pic_RC \
19346 lt_prog_compiler_static_RC \
19347 lt_prog_compiler_no_builtin_flag_RC \
19348 export_dynamic_flag_spec_RC \
19349 thread_safe_flag_spec_RC \
19350 whole_archive_flag_spec_RC \
19351 enable_shared_with_static_runtimes_RC \
19352 old_archive_cmds_RC \
19353 old_archive_from_new_cmds_RC \
19354 predep_objects_RC \
19355 postdep_objects_RC \
19358 compiler_lib_search_path_RC \
19359 compiler_lib_search_dirs_RC \
19361 archive_expsym_cmds_RC \
19362 postinstall_cmds_RC \
19363 postuninstall_cmds_RC \
19364 old_archive_from_expsyms_cmds_RC \
19365 allow_undefined_flag_RC \
19366 no_undefined_flag_RC \
19367 export_symbols_cmds_RC \
19368 hardcode_libdir_flag_spec_RC \
19369 hardcode_libdir_flag_spec_ld_RC \
19370 hardcode_libdir_separator_RC \
19371 hardcode_automatic_RC \
19373 module_expsym_cmds_RC \
19374 lt_cv_prog_compiler_c_o_RC \
19375 fix_srcfile_path_RC \
19376 exclude_expsyms_RC \
19377 include_expsyms_RC; do
19380 old_archive_cmds_RC | \
19381 old_archive_from_new_cmds_RC | \
19382 archive_cmds_RC | \
19383 archive_expsym_cmds_RC | \
19385 module_expsym_cmds_RC | \
19386 old_archive_from_expsyms_cmds_RC | \
19387 export_symbols_cmds_RC | \
19388 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19389 postinstall_cmds | postuninstall_cmds | \
19390 old_postinstall_cmds | old_postuninstall_cmds | \
19391 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19392 # Double-quote double-evaled strings.
19393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19402 *'\$0 --fallback-echo"')
19403 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19409 cat <<__EOF__ >> "$cfgfile"
19410 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19414 # Shell to use when invoking shell scripts.
19417 # Whether or not to build shared libraries.
19418 build_libtool_libs=$enable_shared
19420 # Whether or not to build static libraries.
19421 build_old_libs=$enable_static
19423 # Whether or not to add -lc for building shared libraries.
19424 build_libtool_need_lc=$archive_cmds_need_lc_RC
19426 # Whether or not to disallow shared libs when runtime libs are static
19427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19429 # Whether or not to optimize for fast installation.
19430 fast_install=$enable_fast_install
19433 host_alias=$host_alias
19437 # The build system.
19438 build_alias=$build_alias
19442 # An echo program that does not interpret backslashes.
19447 AR_FLAGS=$lt_AR_FLAGS
19452 # LTCC compiler flags.
19453 LTCFLAGS=$lt_LTCFLAGS
19455 # A language-specific compiler.
19458 # Is the compiler the GNU C compiler?
19464 # The linker used to build libraries.
19467 # Whether we need hard or soft links.
19470 # A BSD-compatible nm program.
19473 # A symbol stripping program
19476 # Used to examine libraries when file_magic_cmd begins "file"
19477 MAGIC_CMD=$MAGIC_CMD
19479 # Used on cygwin: DLL creation program.
19482 # Used on cygwin: object dumper.
19485 # Used on cygwin: assembler.
19488 # The name of the directory that contains temporary libtool files.
19491 # How to create reloadable object files.
19492 reload_flag=$lt_reload_flag
19493 reload_cmds=$lt_reload_cmds
19495 # How to pass a linker flag through the compiler.
19496 wl=$lt_lt_prog_compiler_wl_RC
19498 # Object file suffix (normally "o").
19499 objext="$ac_objext"
19501 # Old archive suffix (normally "a").
19504 # Shared library suffix (normally ".so").
19505 shrext_cmds='$shrext_cmds'
19507 # Executable file suffix (normally "").
19510 # Additional compiler flags for building library objects.
19511 pic_flag=$lt_lt_prog_compiler_pic_RC
19514 # What is the maximum length of a command?
19515 max_cmd_len=$lt_cv_sys_max_cmd_len
19517 # Does compiler simultaneously support -c and -o options?
19518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19520 # Must we lock files when doing compilation?
19521 need_locks=$lt_need_locks
19523 # Do we need the lib prefix for modules?
19524 need_lib_prefix=$need_lib_prefix
19526 # Do we need a version for libraries?
19527 need_version=$need_version
19529 # Whether dlopen is supported.
19530 dlopen_support=$enable_dlopen
19532 # Whether dlopen of programs is supported.
19533 dlopen_self=$enable_dlopen_self
19535 # Whether dlopen of statically linked programs is supported.
19536 dlopen_self_static=$enable_dlopen_self_static
19538 # Compiler flag to prevent dynamic linking.
19539 link_static_flag=$lt_lt_prog_compiler_static_RC
19541 # Compiler flag to turn off builtin functions.
19542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19544 # Compiler flag to allow reflexive dlopens.
19545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19547 # Compiler flag to generate shared objects directly from archives.
19548 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19550 # Compiler flag to generate thread-safe objects.
19551 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19553 # Library versioning type.
19554 version_type=$version_type
19556 # Format of library name prefix.
19557 libname_spec=$lt_libname_spec
19559 # List of archive names. First name is the real one, the rest are links.
19560 # The last name is the one that the linker finds with -lNAME.
19561 library_names_spec=$lt_library_names_spec
19563 # The coded name of the library, if different from the real name.
19564 soname_spec=$lt_soname_spec
19566 # Commands used to build and install an old-style archive.
19568 old_archive_cmds=$lt_old_archive_cmds_RC
19569 old_postinstall_cmds=$lt_old_postinstall_cmds
19570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19572 # Create an old-style archive from a shared archive.
19573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19575 # Create a temporary old-style archive to link instead of a shared archive.
19576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19578 # Commands used to build and install a shared archive.
19579 archive_cmds=$lt_archive_cmds_RC
19580 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19581 postinstall_cmds=$lt_postinstall_cmds
19582 postuninstall_cmds=$lt_postuninstall_cmds
19584 # Commands used to build a loadable module (assumed same as above if empty)
19585 module_cmds=$lt_module_cmds_RC
19586 module_expsym_cmds=$lt_module_expsym_cmds_RC
19588 # Commands to strip libraries.
19589 old_striplib=$lt_old_striplib
19590 striplib=$lt_striplib
19592 # Dependencies to place before the objects being linked to create a
19594 predep_objects=$lt_predep_objects_RC
19596 # Dependencies to place after the objects being linked to create a
19598 postdep_objects=$lt_postdep_objects_RC
19600 # Dependencies to place before the objects being linked to create a
19602 predeps=$lt_predeps_RC
19604 # Dependencies to place after the objects being linked to create a
19606 postdeps=$lt_postdeps_RC
19608 # The directories searched by this compiler when creating a shared
19610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19612 # The library search path used internally by the compiler when linking
19613 # a shared library.
19614 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19616 # Method to check whether dependent libraries are shared objects.
19617 deplibs_check_method=$lt_deplibs_check_method
19619 # Command to use when deplibs_check_method == file_magic.
19620 file_magic_cmd=$lt_file_magic_cmd
19622 # Flag that allows shared libraries with undefined symbols to be built.
19623 allow_undefined_flag=$lt_allow_undefined_flag_RC
19625 # Flag that forces no undefined symbols.
19626 no_undefined_flag=$lt_no_undefined_flag_RC
19628 # Commands used to finish a libtool library installation in a directory.
19629 finish_cmds=$lt_finish_cmds
19631 # Same as above, but a single script fragment to be evaled but not shown.
19632 finish_eval=$lt_finish_eval
19634 # Take the output of nm and produce a listing of raw symbols and C names.
19635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19637 # Transform the output of nm in a proper C declaration
19638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19640 # Transform the output of nm in a C name address pair
19641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19643 # This is the shared library runtime path variable.
19644 runpath_var=$runpath_var
19646 # This is the shared library path variable.
19647 shlibpath_var=$shlibpath_var
19649 # Is shlibpath searched before the hard-coded library search path?
19650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19652 # How to hardcode a shared library path into an executable.
19653 hardcode_action=$hardcode_action_RC
19655 # Whether we should hardcode library paths into libraries.
19656 hardcode_into_libs=$hardcode_into_libs
19658 # Flag to hardcode \$libdir into a binary during linking.
19659 # This must work even if \$libdir does not exist.
19660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19662 # If ld is used when linking, flag to hardcode \$libdir into
19663 # a binary during linking. This must work even if \$libdir does
19665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19667 # Whether we need a single -rpath flag with a separated argument.
19668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19671 # resulting binary.
19672 hardcode_direct=$hardcode_direct_RC
19674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19675 # resulting binary.
19676 hardcode_minus_L=$hardcode_minus_L_RC
19678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19679 # the resulting binary.
19680 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19682 # Set to yes if building a shared library automatically hardcodes DIR into the library
19683 # and all subsequent libraries and executables linked against it.
19684 hardcode_automatic=$hardcode_automatic_RC
19686 # Variables whose values should be saved in libtool wrapper scripts and
19687 # restored at relink time.
19688 variables_saved_for_relink="$variables_saved_for_relink"
19690 # Whether libtool must link a program against all its dependency libraries.
19691 link_all_deplibs=$link_all_deplibs_RC
19693 # Compile-time system search path for libraries
19694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19696 # Run-time system search path for libraries
19697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19699 # Fix the shell variable \$srcfile for the compiler.
19700 fix_srcfile_path=$lt_fix_srcfile_path
19702 # Set to yes if exported symbols are required.
19703 always_export_symbols=$always_export_symbols_RC
19705 # The commands to list exported symbols.
19706 export_symbols_cmds=$lt_export_symbols_cmds_RC
19708 # The commands to extract the exported symbol list from a shared archive.
19709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19711 # Symbols that should not be listed in the preloaded symbols.
19712 exclude_expsyms=$lt_exclude_expsyms_RC
19714 # Symbols that must always be exported.
19715 include_expsyms=$lt_include_expsyms_RC
19717 # ### END LIBTOOL TAG CONFIG: $tagname
19723 # If there is no Makefile yet, we rely on a make rule to execute
19724 # `config.status --recheck' to rerun these tests and create the
19725 # libtool script then.
19726 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19727 if test -f "$ltmain_in"; then
19728 test -f Makefile && make "$ltmain"
19734 ac_cpp='$CPP $CPPFLAGS'
19735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19744 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19745 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19746 { (exit 1); exit 1; }; }
19750 # Append the new tag name to the list of available tags.
19751 if test -n "$tagname" ; then
19752 available_tags="$available_tags $tagname"
19758 # Now substitute the updated list of available tags.
19759 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19760 mv "${ofile}T" "$ofile"
19764 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19765 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19766 { (exit 1); exit 1; }; }
19772 # This can be used to rebuild libtool when needed
19773 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19775 # Always use our own libtool.
19776 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19778 # Prevent multiple expansion
19799 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19800 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19801 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19802 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 cat >conftest.make <<\_ACEOF
19808 @echo '@@@%%%=$(MAKE)=@@@%%%'
19810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19812 *@@@%%%=?*=@@@%%%*)
19813 eval ac_cv_prog_make_${ac_make}_set=yes;;
19815 eval ac_cv_prog_make_${ac_make}_set=no;;
19817 rm -f conftest.make
19819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19820 { echo "$as_me:$LINENO: result: yes" >&5
19821 echo "${ECHO_T}yes" >&6; }
19824 { echo "$as_me:$LINENO: result: no" >&5
19825 echo "${ECHO_T}no" >&6; }
19826 SET_MAKE="MAKE=${MAKE-make}"
19829 if test "x$CC" != xcc; then
19830 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19831 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
19833 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19834 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
19836 set dummy $CC; ac_cc=`echo $2 |
19837 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19838 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19856 # Make sure it works both with $CC and with simple cc.
19857 # We do the test twice because some compilers refuse to overwrite an
19858 # existing .o file with -o, though they will create one.
19859 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19861 if { (case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_try") 2>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_try") 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); };
19880 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19881 if test "x$CC" != xcc; then
19882 # Test first that cc exists at all.
19883 if { ac_try='cc -c conftest.$ac_ext >&5'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19895 if { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_try") 2>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); };
19917 # cc exists but doesn't like -o.
19918 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19923 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19925 rm -f core conftest*
19928 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19929 { echo "$as_me:$LINENO: result: yes" >&5
19930 echo "${ECHO_T}yes" >&6; }
19932 { echo "$as_me:$LINENO: result: no" >&5
19933 echo "${ECHO_T}no" >&6; }
19935 cat >>confdefs.h <<\_ACEOF
19936 #define NO_MINUS_C_MINUS_O 1
19941 # FIXME: we rely on the cache variable name because
19942 # there is no other way.
19944 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19945 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19946 # Losing compiler, so override with the script.
19947 # FIXME: It is wrong to rewrite CC.
19948 # But if we don't then we get into trouble of one sort or another.
19949 # A longer-term fix would be to have automake use am__CC in this case,
19950 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19951 CC="$am_aux_dir/compile $CC"
19958 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19959 if test -n "$ac_tool_prefix"; then
19960 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19961 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19964 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 case $PKG_CONFIG in
19969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19973 for as_dir in $PATH
19976 test -z "$as_dir" && as_dir=.
19977 for ac_exec_ext in '' $ac_executable_extensions; do
19978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19991 if test -n "$PKG_CONFIG"; then
19992 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19993 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19995 { echo "$as_me:$LINENO: result: no" >&5
19996 echo "${ECHO_T}no" >&6; }
20001 if test -z "$ac_cv_path_PKG_CONFIG"; then
20002 ac_pt_PKG_CONFIG=$PKG_CONFIG
20003 # Extract the first word of "pkg-config", so it can be a program name with args.
20004 set dummy pkg-config; ac_word=$2
20005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20007 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 case $ac_pt_PKG_CONFIG in
20012 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20016 for as_dir in $PATH
20019 test -z "$as_dir" && as_dir=.
20020 for ac_exec_ext in '' $ac_executable_extensions; do
20021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20022 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20033 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20034 if test -n "$ac_pt_PKG_CONFIG"; then
20035 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20036 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20038 { echo "$as_me:$LINENO: result: no" >&5
20039 echo "${ECHO_T}no" >&6; }
20042 if test "x$ac_pt_PKG_CONFIG" = x; then
20045 case $cross_compiling:$ac_tool_warned in
20047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20048 whose name does not start with the host triplet. If you think this
20049 configuration is useful to you, please write to autoconf@gnu.org." >&5
20050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20051 whose name does not start with the host triplet. If you think this
20052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20053 ac_tool_warned=yes ;;
20055 PKG_CONFIG=$ac_pt_PKG_CONFIG
20058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20062 if test -n "$PKG_CONFIG"; then
20063 _pkg_min_version=0.9.0
20064 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20065 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20067 { echo "$as_me:$LINENO: result: yes" >&5
20068 echo "${ECHO_T}yes" >&6; }
20070 { echo "$as_me:$LINENO: result: no" >&5
20071 echo "${ECHO_T}no" >&6; }
20078 { echo "$as_me:$LINENO: checking for PCRE" >&5
20079 echo $ECHO_N "checking for PCRE... $ECHO_C" >&6; }
20081 if test -n "$PKG_CONFIG"; then
20082 if test -n "$PCRE_CFLAGS"; then
20083 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
20085 if test -n "$PKG_CONFIG" && \
20086 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcre\"") >&5
20087 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; then
20091 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
20099 if test -n "$PKG_CONFIG"; then
20100 if test -n "$PCRE_LIBS"; then
20101 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
20103 if test -n "$PKG_CONFIG" && \
20104 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcre\"") >&5
20105 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; then
20109 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
20120 if test $pkg_failed = yes; then
20122 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20123 _pkg_short_errors_supported=yes
20125 _pkg_short_errors_supported=no
20127 if test $_pkg_short_errors_supported = yes; then
20128 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre"`
20130 PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"`
20132 # Put the nasty error message in config.log where it belongs
20133 echo "$PCRE_PKG_ERRORS" >&5
20135 { { echo "$as_me:$LINENO: error: Package requirements (libpcre) were not met:
20139 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20140 installed software in a non-standard prefix.
20142 Alternatively, you may set the environment variables PCRE_CFLAGS
20143 and PCRE_LIBS to avoid the need to call pkg-config.
20144 See the pkg-config man page for more details.
20146 echo "$as_me: error: Package requirements (libpcre) were not met:
20150 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20151 installed software in a non-standard prefix.
20153 Alternatively, you may set the environment variables PCRE_CFLAGS
20154 and PCRE_LIBS to avoid the need to call pkg-config.
20155 See the pkg-config man page for more details.
20157 { (exit 1); exit 1; }; }
20158 elif test $pkg_failed = untried; then
20159 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20160 is in your PATH or set the PKG_CONFIG environment variable to the full
20161 path to pkg-config.
20163 Alternatively, you may set the environment variables PCRE_CFLAGS
20164 and PCRE_LIBS to avoid the need to call pkg-config.
20165 See the pkg-config man page for more details.
20167 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20168 See \`config.log' for more details." >&5
20169 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20170 is in your PATH or set the PKG_CONFIG environment variable to the full
20171 path to pkg-config.
20173 Alternatively, you may set the environment variables PCRE_CFLAGS
20174 and PCRE_LIBS to avoid the need to call pkg-config.
20175 See the pkg-config man page for more details.
20177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20178 See \`config.log' for more details." >&2;}
20179 { (exit 1); exit 1; }; }
20181 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
20182 PCRE_LIBS=$pkg_cv_PCRE_LIBS
20183 { echo "$as_me:$LINENO: result: yes" >&5
20184 echo "${ECHO_T}yes" >&6; }
20189 { echo "$as_me:$LINENO: checking for SQLITE3" >&5
20190 echo $ECHO_N "checking for SQLITE3... $ECHO_C" >&6; }
20192 if test -n "$PKG_CONFIG"; then
20193 if test -n "$SQLITE3_CFLAGS"; then
20194 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
20196 if test -n "$PKG_CONFIG" && \
20197 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
20198 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; then
20202 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
20210 if test -n "$PKG_CONFIG"; then
20211 if test -n "$SQLITE3_LIBS"; then
20212 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
20214 if test -n "$PKG_CONFIG" && \
20215 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
20216 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; then
20220 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
20231 if test $pkg_failed = yes; then
20233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20234 _pkg_short_errors_supported=yes
20236 _pkg_short_errors_supported=no
20238 if test $_pkg_short_errors_supported = yes; then
20239 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
20241 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
20243 # Put the nasty error message in config.log where it belongs
20244 echo "$SQLITE3_PKG_ERRORS" >&5
20246 { { echo "$as_me:$LINENO: error: Package requirements (sqlite3) were not met:
20248 $SQLITE3_PKG_ERRORS
20250 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20251 installed software in a non-standard prefix.
20253 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20254 and SQLITE3_LIBS to avoid the need to call pkg-config.
20255 See the pkg-config man page for more details.
20257 echo "$as_me: error: Package requirements (sqlite3) were not met:
20259 $SQLITE3_PKG_ERRORS
20261 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20262 installed software in a non-standard prefix.
20264 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20265 and SQLITE3_LIBS to avoid the need to call pkg-config.
20266 See the pkg-config man page for more details.
20268 { (exit 1); exit 1; }; }
20269 elif test $pkg_failed = untried; then
20270 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20271 is in your PATH or set the PKG_CONFIG environment variable to the full
20272 path to pkg-config.
20274 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20275 and SQLITE3_LIBS to avoid the need to call pkg-config.
20276 See the pkg-config man page for more details.
20278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20279 See \`config.log' for more details." >&5
20280 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20281 is in your PATH or set the PKG_CONFIG environment variable to the full
20282 path to pkg-config.
20284 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20285 and SQLITE3_LIBS to avoid the need to call pkg-config.
20286 See the pkg-config man page for more details.
20288 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20289 See \`config.log' for more details." >&2;}
20290 { (exit 1); exit 1; }; }
20292 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
20293 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
20294 { echo "$as_me:$LINENO: result: yes" >&5
20295 echo "${ECHO_T}yes" >&6; }
20298 if test "${ac_cv_header_zlib_h+set}" = set; then
20299 { echo "$as_me:$LINENO: checking for zlib.h" >&5
20300 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
20301 if test "${ac_cv_header_zlib_h+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20305 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
20307 # Is the header compilable?
20308 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
20309 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 $ac_includes_default
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_compile") 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } && {
20333 test -z "$ac_c_werror_flag" ||
20334 test ! -s conftest.err
20335 } && test -s conftest.$ac_objext; then
20336 ac_header_compiler=yes
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_header_compiler=no
20344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20346 echo "${ECHO_T}$ac_header_compiler" >&6; }
20348 # Is the header present?
20349 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
20350 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20359 if { (ac_try="$ac_cpp conftest.$ac_ext"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } >/dev/null && {
20372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20375 ac_header_preproc=yes
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_header_preproc=no
20383 rm -f conftest.err conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20385 echo "${ECHO_T}$ac_header_preproc" >&6; }
20387 # So? What about this header?
20388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20390 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20391 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20392 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20393 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20394 ac_header_preproc=yes
20397 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20398 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20400 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20402 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20404 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20406 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20407 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20408 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20412 { echo "$as_me:$LINENO: checking for zlib.h" >&5
20413 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
20414 if test "${ac_cv_header_zlib_h+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 ac_cv_header_zlib_h=$ac_header_preproc
20419 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20420 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
20423 if test $ac_cv_header_zlib_h = yes; then
20426 { { echo "$as_me:$LINENO: error: zlib.h not found." >&5
20427 echo "$as_me: error: zlib.h not found." >&2;}
20428 { (exit 1); exit 1; }; }
20432 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20433 { echo "$as_me:$LINENO: checking for xmltok/xmlparse.h" >&5
20434 echo $ECHO_N "checking for xmltok/xmlparse.h... $ECHO_C" >&6; }
20435 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 { echo "$as_me:$LINENO: result: $ac_cv_header_xmltok_xmlparse_h" >&5
20439 echo "${ECHO_T}$ac_cv_header_xmltok_xmlparse_h" >&6; }
20441 # Is the header compilable?
20442 { echo "$as_me:$LINENO: checking xmltok/xmlparse.h usability" >&5
20443 echo $ECHO_N "checking xmltok/xmlparse.h usability... $ECHO_C" >&6; }
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 $ac_includes_default
20451 #include <xmltok/xmlparse.h>
20453 rm -f conftest.$ac_objext
20454 if { (ac_try="$ac_compile"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_compile") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest.$ac_objext; then
20470 ac_header_compiler=yes
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_header_compiler=no
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20480 echo "${ECHO_T}$ac_header_compiler" >&6; }
20482 # Is the header present?
20483 { echo "$as_me:$LINENO: checking xmltok/xmlparse.h presence" >&5
20484 echo $ECHO_N "checking xmltok/xmlparse.h presence... $ECHO_C" >&6; }
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 #include <xmltok/xmlparse.h>
20493 if { (ac_try="$ac_cpp conftest.$ac_ext"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } >/dev/null && {
20506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20509 ac_header_preproc=yes
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_header_preproc=no
20517 rm -f conftest.err conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20519 echo "${ECHO_T}$ac_header_preproc" >&6; }
20521 # So? What about this header?
20522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20524 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&5
20525 echo "$as_me: WARNING: xmltok/xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: proceeding with the compiler's result" >&5
20527 echo "$as_me: WARNING: xmltok/xmlparse.h: proceeding with the compiler's result" >&2;}
20528 ac_header_preproc=yes
20531 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: present but cannot be compiled" >&5
20532 echo "$as_me: WARNING: xmltok/xmlparse.h: present but cannot be compiled" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: check for missing prerequisite headers?" >&5
20534 echo "$as_me: WARNING: xmltok/xmlparse.h: check for missing prerequisite headers?" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: see the Autoconf documentation" >&5
20536 echo "$as_me: WARNING: xmltok/xmlparse.h: see the Autoconf documentation" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: section \"Present But Cannot Be Compiled\"" >&5
20538 echo "$as_me: WARNING: xmltok/xmlparse.h: section \"Present But Cannot Be Compiled\"" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: proceeding with the preprocessor's result" >&5
20540 echo "$as_me: WARNING: xmltok/xmlparse.h: proceeding with the preprocessor's result" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: in the future, the compiler will take precedence" >&5
20542 echo "$as_me: WARNING: xmltok/xmlparse.h: in the future, the compiler will take precedence" >&2;}
20546 { echo "$as_me:$LINENO: checking for xmltok/xmlparse.h" >&5
20547 echo $ECHO_N "checking for xmltok/xmlparse.h... $ECHO_C" >&6; }
20548 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 ac_cv_header_xmltok_xmlparse_h=$ac_header_preproc
20553 { echo "$as_me:$LINENO: result: $ac_cv_header_xmltok_xmlparse_h" >&5
20554 echo "${ECHO_T}$ac_cv_header_xmltok_xmlparse_h" >&6; }
20557 if test $ac_cv_header_xmltok_xmlparse_h = yes; then
20558 have_system_xmltok="yes"
20562 if test "${ac_cv_header_expat_h+set}" = set; then
20563 { echo "$as_me:$LINENO: checking for expat.h" >&5
20564 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
20565 if test "${ac_cv_header_expat_h+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20569 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
20571 # Is the header compilable?
20572 { echo "$as_me:$LINENO: checking expat.h usability" >&5
20573 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
20574 cat >conftest.$ac_ext <<_ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580 $ac_includes_default
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_compile") 2>conftest.er1
20592 grep -v '^ *+' conftest.er1 >conftest.err
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } && {
20597 test -z "$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20599 } && test -s conftest.$ac_objext; then
20600 ac_header_compiler=yes
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_header_compiler=no
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20610 echo "${ECHO_T}$ac_header_compiler" >&6; }
20612 # Is the header present?
20613 { echo "$as_me:$LINENO: checking expat.h presence" >&5
20614 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20623 if { (ac_try="$ac_cpp conftest.$ac_ext"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20631 grep -v '^ *+' conftest.er1 >conftest.err
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } >/dev/null && {
20636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20637 test ! -s conftest.err
20639 ac_header_preproc=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_header_preproc=no
20647 rm -f conftest.err conftest.$ac_ext
20648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20649 echo "${ECHO_T}$ac_header_preproc" >&6; }
20651 # So? What about this header?
20652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20654 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20655 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20656 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20657 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20658 ac_header_preproc=yes
20661 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20662 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20664 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20666 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20668 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20670 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20672 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20676 { echo "$as_me:$LINENO: checking for expat.h" >&5
20677 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
20678 if test "${ac_cv_header_expat_h+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 ac_cv_header_expat_h=$ac_header_preproc
20683 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20684 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
20687 if test $ac_cv_header_expat_h = yes; then
20688 have_system_expat="yes"
20695 { echo "$as_me:$LINENO: checking for LIBICAL" >&5
20696 echo $ECHO_N "checking for LIBICAL... $ECHO_C" >&6; }
20698 if test -n "$PKG_CONFIG"; then
20699 if test -n "$LIBICAL_CFLAGS"; then
20700 pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
20702 if test -n "$PKG_CONFIG" && \
20703 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical\"") >&5
20704 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; then
20708 pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
20716 if test -n "$PKG_CONFIG"; then
20717 if test -n "$LIBICAL_LIBS"; then
20718 pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
20720 if test -n "$PKG_CONFIG" && \
20721 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical\"") >&5
20722 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); }; then
20726 pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
20737 if test $pkg_failed = yes; then
20739 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20740 _pkg_short_errors_supported=yes
20742 _pkg_short_errors_supported=no
20744 if test $_pkg_short_errors_supported = yes; then
20745 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical"`
20747 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical"`
20749 # Put the nasty error message in config.log where it belongs
20750 echo "$LIBICAL_PKG_ERRORS" >&5
20752 { echo "$as_me:$LINENO: result: no" >&5
20753 echo "${ECHO_T}no" >&6; }
20756 { echo "$as_me:$LINENO: checking for LIBECAL" >&5
20757 echo $ECHO_N "checking for LIBECAL... $ECHO_C" >&6; }
20759 if test -n "$PKG_CONFIG"; then
20760 if test -n "$LIBECAL_CFLAGS"; then
20761 pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
20763 if test -n "$PKG_CONFIG" && \
20764 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20765 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; then
20769 pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20777 if test -n "$PKG_CONFIG"; then
20778 if test -n "$LIBECAL_LIBS"; then
20779 pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
20781 if test -n "$PKG_CONFIG" && \
20782 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20783 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; then
20787 pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20798 if test $pkg_failed = yes; then
20800 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20801 _pkg_short_errors_supported=yes
20803 _pkg_short_errors_supported=no
20805 if test $_pkg_short_errors_supported = yes; then
20806 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20808 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20810 # Put the nasty error message in config.log where it belongs
20811 echo "$LIBECAL_PKG_ERRORS" >&5
20813 { echo "$as_me:$LINENO: result: no" >&5
20814 echo "${ECHO_T}no" >&6; }
20816 elif test $pkg_failed = untried; then
20819 LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
20820 LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
20821 { echo "$as_me:$LINENO: result: yes" >&5
20822 echo "${ECHO_T}yes" >&6; }
20824 cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_LIBICAL 1
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_LIBECAL 1
20834 elif test $pkg_failed = untried; then
20837 { echo "$as_me:$LINENO: checking for LIBECAL" >&5
20838 echo $ECHO_N "checking for LIBECAL... $ECHO_C" >&6; }
20840 if test -n "$PKG_CONFIG"; then
20841 if test -n "$LIBECAL_CFLAGS"; then
20842 pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
20844 if test -n "$PKG_CONFIG" && \
20845 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20846 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; then
20850 pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20858 if test -n "$PKG_CONFIG"; then
20859 if test -n "$LIBECAL_LIBS"; then
20860 pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
20862 if test -n "$PKG_CONFIG" && \
20863 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20864 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; then
20868 pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20879 if test $pkg_failed = yes; then
20881 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20882 _pkg_short_errors_supported=yes
20884 _pkg_short_errors_supported=no
20886 if test $_pkg_short_errors_supported = yes; then
20887 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20889 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20891 # Put the nasty error message in config.log where it belongs
20892 echo "$LIBECAL_PKG_ERRORS" >&5
20894 { echo "$as_me:$LINENO: result: no" >&5
20895 echo "${ECHO_T}no" >&6; }
20897 elif test $pkg_failed = untried; then
20900 LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
20901 LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
20902 { echo "$as_me:$LINENO: result: yes" >&5
20903 echo "${ECHO_T}yes" >&6; }
20905 cat >>confdefs.h <<\_ACEOF
20906 #define HAVE_LIBICAL 1
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_LIBECAL 1
20916 LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
20917 LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
20918 { echo "$as_me:$LINENO: result: yes" >&5
20919 echo "${ECHO_T}yes" >&6; }
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_LIBICAL 1
20927 # Check whether --enable-evolution-compatibility was given.
20928 if test "${enable_evolution_compatibility+set}" = set; then
20929 enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
20931 enable_evolution_compatibility="no"
20934 if test "$enable_evolution_compatibility" == "yes"; then
20936 cat >>confdefs.h <<\_ACEOF
20937 #define EVOLUTION_COMPATIBILITY 1
20945 # Check whether --with-xmltok was given.
20946 if test "${with_xmltok+set}" = set; then
20947 withval=$with_xmltok; if test "$withval" = "builtin"; then with_xmltok="builtin"
20948 elif test "$withval" = "system" || test "$withval" = "yes"; then with_xmltok="system"
20949 else with_xmltok="$withval"
20957 # Check whether --with-expat was given.
20958 if test "${with_expat+set}" = set; then
20959 withval=$with_expat; if test "$withval" = "system" || test "$withval" = "yes"; then with_expat="system"
20960 else with_expath="$withval"
20967 if test "$with_xmltok" = "no" && test "$with_expat" = "no"; then
20968 if test "$have_system_expat" = "yes"; then
20970 XMLPARSE_LIBS="-lexpat"
20971 elif test "$have_system_xmltok" = "yes"; then
20973 XMLPARSE_LIBS="-lxmlparse"
20975 with_xmltok="builtin"
20977 elif test "$with_expat" != "no"; then
20978 if test "$with_expat" = "system"; then
20979 if test "$have_system_expat" = "yes"; then XMLPARSE_LIBS="-lexpat"
20980 else { { echo "$as_me:$LINENO: error: expat.h not found." >&5
20981 echo "$as_me: error: expat.h not found." >&2;}
20982 { (exit 1); exit 1; }; }
20985 XMLPARSE_LIBS="-L$with_expat/lib -lexpat"
20986 XMLPARSE_CFLAGS="-I$with_expat/include"
20990 if test "$with_xmltok" = "system"; then
20991 if test "$have_system_xmltok" = "yes"; then XMLPARSE_LIBS="-lxmlparse"
20992 else { { echo "$as_me:$LINENO: error: xmltok/xmplarse.h not found." >&5
20993 echo "$as_me: error: xmltok/xmplarse.h not found." >&2;}
20994 { (exit 1); exit 1; }; }
20996 elif test "$with_xmltok" != "builtin"; then
20997 XMLPARSE_LIBS="-L$with_xmltok/lib -lxmlparse"
20998 XMLPARSE_CFLAGS="-I$with_xmltok/include"
21002 if test "$with_expat" = "yes"; then
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_EXPAT 1
21008 elif test "$with_xmltok" != "builtin"; then
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_SYS_XMLTOK 1
21016 cat >>confdefs.h <<\_ACEOF
21017 #define HAVE_BUILTIN_XMLTOK 1
21024 if test "$with_xmltok" = "builtin"; then
21025 COND_XMLPARSE_TRUE=
21026 COND_XMLPARSE_FALSE='#'
21028 COND_XMLPARSE_TRUE='#'
21029 COND_XMLPARSE_FALSE=
21033 if test "${ac_cv_header_stdint_h+set}" = set; then
21034 { echo "$as_me:$LINENO: checking for stdint.h" >&5
21035 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21036 if test "${ac_cv_header_stdint_h+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
21040 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
21042 # Is the header compilable?
21043 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
21044 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
21045 cat >conftest.$ac_ext <<_ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21051 $ac_includes_default
21052 #include <stdint.h>
21054 rm -f conftest.$ac_objext
21055 if { (ac_try="$ac_compile"
21056 case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_compile") 2>conftest.er1
21063 grep -v '^ *+' conftest.er1 >conftest.err
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } && {
21068 test -z "$ac_c_werror_flag" ||
21069 test ! -s conftest.err
21070 } && test -s conftest.$ac_objext; then
21071 ac_header_compiler=yes
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_header_compiler=no
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21081 echo "${ECHO_T}$ac_header_compiler" >&6; }
21083 # Is the header present?
21084 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
21085 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 #include <stdint.h>
21094 if { (ac_try="$ac_cpp conftest.$ac_ext"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } >/dev/null && {
21107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21110 ac_header_preproc=yes
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 ac_header_preproc=no
21118 rm -f conftest.err conftest.$ac_ext
21119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21120 echo "${ECHO_T}$ac_header_preproc" >&6; }
21122 # So? What about this header?
21123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21125 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
21126 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
21128 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
21129 ac_header_preproc=yes
21132 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
21133 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
21135 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
21137 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
21139 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
21141 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
21143 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
21147 { echo "$as_me:$LINENO: checking for stdint.h" >&5
21148 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21149 if test "${ac_cv_header_stdint_h+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 ac_cv_header_stdint_h=$ac_header_preproc
21154 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
21155 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
21161 # the autotools SDK always assumes that it is linked against the engine
21163 cat >>confdefs.h <<\_ACEOF
21164 #define UIAPI_LINKED 1
21168 cat >>confdefs.h <<\_ACEOF
21169 #define DBAPI_LINKED 1
21173 cat >>confdefs.h <<\_ACEOF
21174 #define DBAPI_SRV_LINKED 1
21178 # determines which object files are needed in the SDK:
21179 # if linking statically, some object files are shared with
21181 if test "$enable_shared" = "no"; then
21183 COND_STATIC_FALSE='#'
21185 COND_STATIC_TRUE='#'
21190 # Disable unconditionally at the moment. Would add dependency of SDK
21191 # on SyncML Toolkit.
21193 cat >>confdefs.h <<\_ACEOF
21194 #define WITHOUT_SAN_1_1 1
21198 ac_config_files="$ac_config_files Makefile src/Makefile synthesis.pc synthesis-sdk.pc"
21200 cat >confcache <<\_ACEOF
21201 # This file is a shell script that caches the results of configure
21202 # tests run on this system so they can be shared between configure
21203 # scripts and configure runs, see configure's option --config-cache.
21204 # It is not useful on other systems. If it contains results you don't
21205 # want to keep, you may remove or edit it.
21207 # config.status only pays attention to the cache file if you give it
21208 # the --recheck option to rerun configure.
21210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21212 # following values.
21216 # The following way of writing the cache mishandles newlines in values,
21217 # but we know of no workaround that is simple, portable, and efficient.
21218 # So, we kill variables containing newlines.
21219 # Ultrix sh set writes to stderr and can't be redirected directly,
21220 # and sets the high bit in the cache file unless we assign to the vars.
21222 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21223 eval ac_val=\$$ac_var
21227 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21228 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21231 _ | IFS | as_nl) ;; #(
21232 *) $as_unset $ac_var ;;
21238 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21239 *${as_nl}ac_space=\ *)
21240 # `set' does not quote correctly, so add quotes (double-quote
21241 # substitution turns \\\\ into \\, and sed turns \\ into \).
21244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21247 # `set' quotes correctly as required by POSIX, so do not add quotes.
21248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21259 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21261 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21262 if test -w "$cache_file"; then
21263 test "x$cache_file" != "x/dev/null" &&
21264 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21265 echo "$as_me: updating cache $cache_file" >&6;}
21266 cat confcache >$cache_file
21268 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21269 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21275 # Let make expand exec_prefix.
21276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21278 DEFS=-DHAVE_CONFIG_H
21282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21283 # 1. Remove the extension, and $U if already installed.
21284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21285 ac_i=`echo "$ac_i" | sed "$ac_script"`
21286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21287 # will be set to the directory where LIBOBJS objects are built.
21288 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21289 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21291 LIBOBJS=$ac_libobjs
21293 LTLIBOBJS=$ac_ltlibobjs
21296 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21297 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21298 Usually this means the macro was only invoked conditionally." >&5
21299 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21300 Usually this means the macro was only invoked conditionally." >&2;}
21301 { (exit 1); exit 1; }; }
21303 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21304 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21305 Usually this means the macro was only invoked conditionally." >&5
21306 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21307 Usually this means the macro was only invoked conditionally." >&2;}
21308 { (exit 1); exit 1; }; }
21310 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21311 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21312 Usually this means the macro was only invoked conditionally." >&5
21313 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21314 Usually this means the macro was only invoked conditionally." >&2;}
21315 { (exit 1); exit 1; }; }
21317 if test -z "${COND_XMLPARSE_TRUE}" && test -z "${COND_XMLPARSE_FALSE}"; then
21318 { { echo "$as_me:$LINENO: error: conditional \"COND_XMLPARSE\" was never defined.
21319 Usually this means the macro was only invoked conditionally." >&5
21320 echo "$as_me: error: conditional \"COND_XMLPARSE\" was never defined.
21321 Usually this means the macro was only invoked conditionally." >&2;}
21322 { (exit 1); exit 1; }; }
21324 if test -z "${COND_STATIC_TRUE}" && test -z "${COND_STATIC_FALSE}"; then
21325 { { echo "$as_me:$LINENO: error: conditional \"COND_STATIC\" was never defined.
21326 Usually this means the macro was only invoked conditionally." >&5
21327 echo "$as_me: error: conditional \"COND_STATIC\" was never defined.
21328 Usually this means the macro was only invoked conditionally." >&2;}
21329 { (exit 1); exit 1; }; }
21332 : ${CONFIG_STATUS=./config.status}
21333 ac_clean_files_save=$ac_clean_files
21334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21337 cat >$CONFIG_STATUS <<_ACEOF
21339 # Generated by $as_me.
21340 # Run this file to recreate the current configuration.
21341 # Compiler output produced by configure, useful for debugging
21342 # configure, is in config.log if it exists.
21345 ac_cs_recheck=false
21347 SHELL=\${CONFIG_SHELL-$SHELL}
21350 cat >>$CONFIG_STATUS <<\_ACEOF
21351 ## --------------------- ##
21352 ## M4sh Initialization. ##
21353 ## --------------------- ##
21355 # Be more Bourne compatible
21356 DUALCASE=1; export DUALCASE # for MKS sh
21357 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21360 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21361 # is contrary to our usage. Disable this feature.
21362 alias -g '${1+"$@"}'='"$@"'
21363 setopt NO_GLOB_SUBST
21365 case `(set -o) 2>/dev/null` in
21366 *posix*) set -o posix ;;
21375 # Avoid depending upon Character Ranges.
21376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21379 as_cr_digits='0123456789'
21380 as_cr_alnum=$as_cr_Letters$as_cr_digits
21382 # The user is always right.
21383 if test "${PATH_SEPARATOR+set}" != set; then
21384 echo "#! /bin/sh" >conf$$.sh
21385 echo "exit 0" >>conf$$.sh
21387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21395 # Support unset when possible.
21396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21404 # We need space, tab and new line, in precisely that order. Quoting is
21405 # there to prevent editors from complaining about space-tab.
21406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21407 # splitting by setting IFS to empty value.)
21412 # Find who we are. Look in the path if we contain no directory separator.
21414 *[\\/]* ) as_myself=$0 ;;
21415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21416 for as_dir in $PATH
21419 test -z "$as_dir" && as_dir=.
21420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21426 # We did not find ourselves, most probably we were run as `sh COMMAND'
21427 # in which case we are not to be found in the path.
21428 if test "x$as_myself" = x; then
21431 if test ! -f "$as_myself"; then
21432 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21433 { (exit 1); exit 1; }
21436 # Work around bugs in pre-3.0 UWIN ksh.
21437 for as_var in ENV MAIL MAILPATH
21438 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21446 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21448 LC_TELEPHONE LC_TIME
21450 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21451 eval $as_var=C; export $as_var
21453 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21457 # Required to use basename.
21458 if expr a : '\(a\)' >/dev/null 2>&1 &&
21459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21466 as_basename=basename
21472 # Name of the executable.
21473 as_me=`$as_basename -- "$0" ||
21474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21475 X"$0" : 'X\(//\)$' \| \
21476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21478 sed '/^.*\/\([^/][^/]*\)\/*$/{
21497 as_lineno_1=$LINENO
21498 as_lineno_2=$LINENO
21499 test "x$as_lineno_1" != "x$as_lineno_2" &&
21500 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21502 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21503 # uniformly replaced by the line number. The first 'sed' inserts a
21504 # line-number line after each line using $LINENO; the second 'sed'
21505 # does the real work. The second script uses 'N' to pair each
21506 # line-number line with the line containing $LINENO, and appends
21507 # trailing '-' during substitution so that $LINENO is not a special
21508 # case at line end.
21509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21510 # scripts with optimization help from Paolo Bonzini. Blame Lee
21511 # E. McMahon (1931-1989) for sed's syntax. :-)
21523 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21526 ' >$as_me.lineno &&
21527 chmod +x "$as_me.lineno" ||
21528 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21529 { (exit 1); exit 1; }; }
21531 # Don't try to exec as it changes $[0], causing all sort of problems
21532 # (the dirname of $[0] is not the place where we might find the
21533 # original and so on. Autoconf is especially sensitive to this).
21534 . "./$as_me.lineno"
21535 # Exit status is that of the last command.
21540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21546 ECHO_C= ECHO_N= ECHO_T=
21547 case `echo -n x` in
21549 case `echo 'x\c'` in
21550 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21557 if expr a : '\(a\)' >/dev/null 2>&1 &&
21558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21564 rm -f conf$$ conf$$.exe conf$$.file
21565 if test -d conf$$.dir; then
21566 rm -f conf$$.dir/conf$$.file
21572 if ln -s conf$$.file conf$$ 2>/dev/null; then
21574 # ... but there are two gotchas:
21575 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21576 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21577 # In both cases, we have to default to `cp -p'.
21578 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21580 elif ln conf$$.file conf$$ 2>/dev/null; then
21585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21586 rmdir conf$$.dir 2>/dev/null
21588 if mkdir -p . 2>/dev/null; then
21591 test -d ./-p && rmdir ./-p
21595 if test -x / >/dev/null 2>&1; then
21596 as_test_x='test -x'
21598 if ls -dL / >/dev/null 2>&1; then
21605 if test -d "$1"; then
21611 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21612 ???[sx]*):;;*)false;;esac;fi
21616 as_executable_p=$as_test_x
21618 # Sed expression to map a string onto a valid CPP name.
21619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21621 # Sed expression to map a string onto a valid variable name.
21622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21627 # Save the log message, to keep $[0] and so on meaningful, and to
21628 # report actual input values of CONFIG_FILES etc. instead of their
21629 # values after options handling.
21631 This file was extended by $as_me, which was
21632 generated by GNU Autoconf 2.61. Invocation command line was
21634 CONFIG_FILES = $CONFIG_FILES
21635 CONFIG_HEADERS = $CONFIG_HEADERS
21636 CONFIG_LINKS = $CONFIG_LINKS
21637 CONFIG_COMMANDS = $CONFIG_COMMANDS
21640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21645 cat >>$CONFIG_STATUS <<_ACEOF
21646 # Files that config.status was made for.
21647 config_files="$ac_config_files"
21648 config_headers="$ac_config_headers"
21649 config_commands="$ac_config_commands"
21653 cat >>$CONFIG_STATUS <<\_ACEOF
21655 \`$as_me' instantiates files from templates according to the
21656 current configuration.
21658 Usage: $0 [OPTIONS] [FILE]...
21660 -h, --help print this help, then exit
21661 -V, --version print version number and configuration settings, then exit
21662 -q, --quiet do not print progress messages
21663 -d, --debug don't remove temporary files
21664 --recheck update $as_me by reconfiguring in the same conditions
21665 --file=FILE[:TEMPLATE]
21666 instantiate the configuration file FILE
21667 --header=FILE[:TEMPLATE]
21668 instantiate the configuration header FILE
21670 Configuration files:
21673 Configuration headers:
21676 Configuration commands:
21679 Report bugs to <bug-autoconf@gnu.org>."
21682 cat >>$CONFIG_STATUS <<_ACEOF
21685 configured by $0, generated by GNU Autoconf 2.61,
21686 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21688 Copyright (C) 2006 Free Software Foundation, Inc.
21689 This config.status script is free software; the Free Software Foundation
21690 gives unlimited permission to copy, distribute and modify it."
21698 cat >>$CONFIG_STATUS <<\_ACEOF
21699 # If no file are specified by the user, then we need to provide default
21700 # value. By we need to know if files were specified by the user.
21706 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21707 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21718 # Handling of the options.
21719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21721 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21722 echo "$ac_cs_version"; exit ;;
21723 --debug | --debu | --deb | --de | --d | -d )
21725 --file | --fil | --fi | --f )
21727 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21728 ac_need_defaults=false;;
21729 --header | --heade | --head | --hea )
21731 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21732 ac_need_defaults=false;;
21734 # Conflict between --help and --header
21735 { echo "$as_me: error: ambiguous option: $1
21736 Try \`$0 --help' for more information." >&2
21737 { (exit 1); exit 1; }; };;
21738 --help | --hel | -h )
21739 echo "$ac_cs_usage"; exit ;;
21740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21741 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21744 # This is an error.
21745 -*) { echo "$as_me: error: unrecognized option: $1
21746 Try \`$0 --help' for more information." >&2
21747 { (exit 1); exit 1; }; } ;;
21749 *) ac_config_targets="$ac_config_targets $1"
21750 ac_need_defaults=false ;;
21756 ac_configure_extra_args=
21758 if $ac_cs_silent; then
21760 ac_configure_extra_args="$ac_configure_extra_args --silent"
21764 cat >>$CONFIG_STATUS <<_ACEOF
21765 if \$ac_cs_recheck; then
21766 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21767 CONFIG_SHELL=$SHELL
21768 export CONFIG_SHELL
21769 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21773 cat >>$CONFIG_STATUS <<\_ACEOF
21777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21778 ## Running $as_me. ##
21784 cat >>$CONFIG_STATUS <<_ACEOF
21788 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21792 cat >>$CONFIG_STATUS <<\_ACEOF
21794 # Handling of arguments.
21795 for ac_config_target in $ac_config_targets
21797 case $ac_config_target in
21798 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21799 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21800 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21801 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21802 "synthesis.pc") CONFIG_FILES="$CONFIG_FILES synthesis.pc" ;;
21803 "synthesis-sdk.pc") CONFIG_FILES="$CONFIG_FILES synthesis-sdk.pc" ;;
21805 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21807 { (exit 1); exit 1; }; };;
21812 # If the user did not use the arguments to specify the items to instantiate,
21813 # then the envvar interface is used. Set only those that are not.
21814 # We use the long form for the default assignment because of an extremely
21815 # bizarre bug on SunOS 4.1.3.
21816 if $ac_need_defaults; then
21817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21822 # Have a temporary directory for convenience. Make it in the build tree
21823 # simply because there is no reason against having it here, and in addition,
21824 # creating and moving files from /tmp can sometimes cause problems.
21825 # Hook for its removal unless debugging.
21826 # Note that there is a small window in which the directory will not be cleaned:
21827 # after its creation but before its name has been assigned to `$tmp'.
21831 trap 'exit_status=$?
21832 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21834 trap '{ (exit 1); exit 1; }' 1 2 13 15
21836 # Create a (secure) tmp directory for tmp files.
21839 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21840 test -n "$tmp" && test -d "$tmp"
21843 tmp=./conf$$-$RANDOM
21844 (umask 077 && mkdir "$tmp")
21847 echo "$me: cannot create a temporary directory in ." >&2
21848 { (exit 1); exit 1; }
21852 # Set up the sed scripts for CONFIG_FILES section.
21855 # No need to generate the scripts if there are no CONFIG_FILES.
21856 # This happens for instance when ./config.status config.h
21857 if test -n "$CONFIG_FILES"; then
21864 for ac_last_try in false false false false false :; do
21865 cat >conf$$subs.sed <<_ACEOF
21866 SHELL!$SHELL$ac_delim
21867 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21868 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21869 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21870 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21871 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21872 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21873 exec_prefix!$exec_prefix$ac_delim
21874 prefix!$prefix$ac_delim
21875 program_transform_name!$program_transform_name$ac_delim
21876 bindir!$bindir$ac_delim
21877 sbindir!$sbindir$ac_delim
21878 libexecdir!$libexecdir$ac_delim
21879 datarootdir!$datarootdir$ac_delim
21880 datadir!$datadir$ac_delim
21881 sysconfdir!$sysconfdir$ac_delim
21882 sharedstatedir!$sharedstatedir$ac_delim
21883 localstatedir!$localstatedir$ac_delim
21884 includedir!$includedir$ac_delim
21885 oldincludedir!$oldincludedir$ac_delim
21886 docdir!$docdir$ac_delim
21887 infodir!$infodir$ac_delim
21888 htmldir!$htmldir$ac_delim
21889 dvidir!$dvidir$ac_delim
21890 pdfdir!$pdfdir$ac_delim
21891 psdir!$psdir$ac_delim
21892 libdir!$libdir$ac_delim
21893 localedir!$localedir$ac_delim
21894 mandir!$mandir$ac_delim
21895 DEFS!$DEFS$ac_delim
21896 ECHO_C!$ECHO_C$ac_delim
21897 ECHO_N!$ECHO_N$ac_delim
21898 ECHO_T!$ECHO_T$ac_delim
21899 LIBS!$LIBS$ac_delim
21900 build_alias!$build_alias$ac_delim
21901 host_alias!$host_alias$ac_delim
21902 target_alias!$target_alias$ac_delim
21903 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21904 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21905 INSTALL_DATA!$INSTALL_DATA$ac_delim
21906 am__isrc!$am__isrc$ac_delim
21907 CYGPATH_W!$CYGPATH_W$ac_delim
21908 PACKAGE!$PACKAGE$ac_delim
21909 VERSION!$VERSION$ac_delim
21910 ACLOCAL!$ACLOCAL$ac_delim
21911 AUTOCONF!$AUTOCONF$ac_delim
21912 AUTOMAKE!$AUTOMAKE$ac_delim
21913 AUTOHEADER!$AUTOHEADER$ac_delim
21914 MAKEINFO!$MAKEINFO$ac_delim
21915 install_sh!$install_sh$ac_delim
21916 STRIP!$STRIP$ac_delim
21917 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21918 mkdir_p!$mkdir_p$ac_delim
21920 SET_MAKE!$SET_MAKE$ac_delim
21921 am__leading_dot!$am__leading_dot$ac_delim
21922 AMTAR!$AMTAR$ac_delim
21923 am__tar!$am__tar$ac_delim
21924 am__untar!$am__untar$ac_delim
21926 CXXFLAGS!$CXXFLAGS$ac_delim
21927 LDFLAGS!$LDFLAGS$ac_delim
21928 CPPFLAGS!$CPPFLAGS$ac_delim
21929 ac_ct_CXX!$ac_ct_CXX$ac_delim
21930 EXEEXT!$EXEEXT$ac_delim
21931 OBJEXT!$OBJEXT$ac_delim
21932 DEPDIR!$DEPDIR$ac_delim
21933 am__include!$am__include$ac_delim
21934 am__quote!$am__quote$ac_delim
21935 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21936 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21937 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21938 CXXDEPMODE!$CXXDEPMODE$ac_delim
21939 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21940 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21941 build!$build$ac_delim
21942 build_cpu!$build_cpu$ac_delim
21943 build_vendor!$build_vendor$ac_delim
21944 build_os!$build_os$ac_delim
21945 host!$host$ac_delim
21946 host_cpu!$host_cpu$ac_delim
21947 host_vendor!$host_vendor$ac_delim
21948 host_os!$host_os$ac_delim
21950 CFLAGS!$CFLAGS$ac_delim
21951 ac_ct_CC!$ac_ct_CC$ac_delim
21952 CCDEPMODE!$CCDEPMODE$ac_delim
21953 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21954 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21956 GREP!$GREP$ac_delim
21957 EGREP!$EGREP$ac_delim
21958 LN_S!$LN_S$ac_delim
21959 ECHO!$ECHO$ac_delim
21961 RANLIB!$RANLIB$ac_delim
21962 DSYMUTIL!$DSYMUTIL$ac_delim
21965 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21967 elif $ac_last_try; then
21968 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21969 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21970 { (exit 1); exit 1; }; }
21972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21976 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21977 if test -n "$ac_eof"; then
21978 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21979 ac_eof=`expr $ac_eof + 1`
21982 cat >>$CONFIG_STATUS <<_ACEOF
21983 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21987 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21988 s/^/s,@/; s/!/@,|#_!!_#|/
21991 s/'"$ac_delim"'$/,g/; t
21993 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21994 ' >>$CONFIG_STATUS <conf$$subs.sed
21995 rm -f conf$$subs.sed
21996 cat >>$CONFIG_STATUS <<_ACEOF
22002 for ac_last_try in false false false false false :; do
22003 cat >conf$$subs.sed <<_ACEOF
22004 NMEDIT!$NMEDIT$ac_delim
22006 CXXCPP!$CXXCPP$ac_delim
22008 FFLAGS!$FFLAGS$ac_delim
22009 ac_ct_F77!$ac_ct_F77$ac_delim
22010 LIBTOOL!$LIBTOOL$ac_delim
22011 PKG_CONFIG!$PKG_CONFIG$ac_delim
22012 PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim
22013 PCRE_LIBS!$PCRE_LIBS$ac_delim
22014 SQLITE3_CFLAGS!$SQLITE3_CFLAGS$ac_delim
22015 SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
22016 LIBICAL_CFLAGS!$LIBICAL_CFLAGS$ac_delim
22017 LIBICAL_LIBS!$LIBICAL_LIBS$ac_delim
22018 LIBECAL_CFLAGS!$LIBECAL_CFLAGS$ac_delim
22019 LIBECAL_LIBS!$LIBECAL_LIBS$ac_delim
22020 XMLPARSE_LIBS!$XMLPARSE_LIBS$ac_delim
22021 XMLPARSE_CFLAGS!$XMLPARSE_CFLAGS$ac_delim
22022 COND_XMLPARSE_TRUE!$COND_XMLPARSE_TRUE$ac_delim
22023 COND_XMLPARSE_FALSE!$COND_XMLPARSE_FALSE$ac_delim
22024 COND_STATIC_TRUE!$COND_STATIC_TRUE$ac_delim
22025 COND_STATIC_FALSE!$COND_STATIC_FALSE$ac_delim
22026 LIBOBJS!$LIBOBJS$ac_delim
22027 LTLIBOBJS!$LTLIBOBJS$ac_delim
22030 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
22032 elif $ac_last_try; then
22033 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22035 { (exit 1); exit 1; }; }
22037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22042 if test -n "$ac_eof"; then
22043 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22044 ac_eof=`expr $ac_eof + 1`
22047 cat >>$CONFIG_STATUS <<_ACEOF
22048 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22053 s/^/s,@/; s/!/@,|#_!!_#|/
22056 s/'"$ac_delim"'$/,g/; t
22058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22059 ' >>$CONFIG_STATUS <conf$$subs.sed
22060 rm -f conf$$subs.sed
22061 cat >>$CONFIG_STATUS <<_ACEOF
22068 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22069 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22070 # trailing colons and then remove the whole line if VPATH becomes empty
22071 # (actually we leave an empty line to preserve line numbers).
22072 if test "x$srcdir" = x.; then
22073 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22074 s/:*\$(srcdir):*/:/
22075 s/:*\${srcdir}:*/:/
22077 s/^\([^=]*=[ ]*\):*/\1/
22083 cat >>$CONFIG_STATUS <<\_ACEOF
22084 fi # test -n "$CONFIG_FILES"
22087 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22090 :[FHLC]) ac_mode=$ac_tag; continue;;
22092 case $ac_mode$ac_tag in
22094 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22095 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22096 { (exit 1); exit 1; }; };;
22097 :[FH]-) ac_tag=-:-;;
22098 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22115 -) ac_f="$tmp/stdin";;
22116 *) # Look for the file first in the build tree, then in the source tree
22117 # (if the path is not absolute). The absolute path cannot be DOS-style,
22118 # because $ac_f cannot contain `:'.
22122 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22124 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22125 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22126 { (exit 1); exit 1; }; };;
22128 ac_file_inputs="$ac_file_inputs $ac_f"
22131 # Let's still pretend it is `configure' which instantiates (i.e., don't
22132 # use $as_me), people would be surprised to read:
22133 # /* config.h. Generated by config.status. */
22134 configure_input="Generated from "`IFS=:
22135 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22136 if test x"$ac_file" != x-; then
22137 configure_input="$ac_file. $configure_input"
22138 { echo "$as_me:$LINENO: creating $ac_file" >&5
22139 echo "$as_me: creating $ac_file" >&6;}
22143 *:-:* | *:-) cat >"$tmp/stdin";;
22148 ac_dir=`$as_dirname -- "$ac_file" ||
22149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22150 X"$ac_file" : 'X\(//\)[^/]' \| \
22151 X"$ac_file" : 'X\(//\)$' \| \
22152 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22158 /^X\(\/\/\)[^/].*/{
22173 -*) as_dir=./$as_dir;;
22175 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22179 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22180 *) as_qdir=$as_dir;;
22182 as_dirs="'$as_qdir' $as_dirs"
22183 as_dir=`$as_dirname -- "$as_dir" ||
22184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185 X"$as_dir" : 'X\(//\)[^/]' \| \
22186 X"$as_dir" : 'X\(//\)$' \| \
22187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22193 /^X\(\/\/\)[^/].*/{
22206 test -d "$as_dir" && break
22208 test -z "$as_dirs" || eval "mkdir $as_dirs"
22209 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22210 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22211 { (exit 1); exit 1; }; }; }
22215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22217 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22218 # A ".." for each directory in $ac_dir_suffix.
22219 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22220 case $ac_top_builddir_sub in
22221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22225 ac_abs_top_builddir=$ac_pwd
22226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22227 # for backward compatibility:
22228 ac_top_builddir=$ac_top_build_prefix
22231 .) # We are building in place.
22233 ac_top_srcdir=$ac_top_builddir_sub
22234 ac_abs_top_srcdir=$ac_pwd ;;
22235 [\\/]* | ?:[\\/]* ) # Absolute name.
22236 ac_srcdir=$srcdir$ac_dir_suffix;
22237 ac_top_srcdir=$srcdir
22238 ac_abs_top_srcdir=$srcdir ;;
22239 *) # Relative name.
22240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22241 ac_top_srcdir=$ac_top_build_prefix$srcdir
22242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22257 ac_MKDIR_P=$MKDIR_P
22259 [\\/$]* | ?:[\\/]* ) ;;
22260 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22264 cat >>$CONFIG_STATUS <<\_ACEOF
22265 # If the template does not know about datarootdir, expand it.
22266 # FIXME: This hack should be removed a few years after 2.60.
22267 ac_datarootdir_hack=; ac_datarootdir_seen=
22269 case `sed -n '/datarootdir/ {
22278 ' $ac_file_inputs` in
22279 *datarootdir*) ac_datarootdir_seen=yes;;
22280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22281 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22282 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22284 cat >>$CONFIG_STATUS <<_ACEOF
22285 ac_datarootdir_hack='
22286 s&@datadir@&$datadir&g
22287 s&@docdir@&$docdir&g
22288 s&@infodir@&$infodir&g
22289 s&@localedir@&$localedir&g
22290 s&@mandir@&$mandir&g
22291 s&\\\${datarootdir}&$datarootdir&g' ;;
22295 # Neutralize VPATH when `$srcdir' = `.'.
22296 # Shell code in configure.ac might set extrasub.
22297 # FIXME: do we really want to maintain this feature?
22298 cat >>$CONFIG_STATUS <<_ACEOF
22302 cat >>$CONFIG_STATUS <<\_ACEOF
22304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22305 s&@configure_input@&$configure_input&;t t
22306 s&@top_builddir@&$ac_top_builddir_sub&;t t
22307 s&@srcdir@&$ac_srcdir&;t t
22308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22309 s&@top_srcdir@&$ac_top_srcdir&;t t
22310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22311 s&@builddir@&$ac_builddir&;t t
22312 s&@abs_builddir@&$ac_abs_builddir&;t t
22313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22314 s&@INSTALL@&$ac_INSTALL&;t t
22315 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22316 $ac_datarootdir_hack
22317 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22322 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined. Please make sure it is defined." >&5
22324 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22325 which seems to be undefined. Please make sure it is defined." >&2;}
22329 -) cat "$tmp/out"; rm -f "$tmp/out";;
22330 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22339 # Transform confdefs.h into a sed script `conftest.defines', that
22340 # substitutes the proper values into config.h.in to produce config.h.
22341 rm -f conftest.defines conftest.tail
22342 # First, append a space to every undef/define line, to ease matching.
22343 echo 's/$/ /' >conftest.defines
22344 # Then, protect against being on the right side of a sed subst, or in
22345 # an unquoted here document, in config.status. If some macros were
22346 # called several times there might be several #defines for the same
22347 # symbol, which is useless. But do not sort them, since the last
22348 # AC_DEFINE must be honored.
22349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22350 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22351 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22352 # PARAMS is the parameter list in the macro definition--in most cases, it's
22353 # just an empty string.
22354 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22355 ac_dB='\\)[ (].*,\\1define\\2'
22363 s/^[ ]*#[ ]*define[ ][ ]*//
22368 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22369 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22370 ' >>conftest.defines
22372 # Remove the space that was appended to ease matching.
22373 # Then replace #undef with comments. This is necessary, for
22374 # example, in the case of _POSIX_SOURCE, which is predefined and required
22375 # on some systems where configure will not decide to define it.
22376 # (The regexp can be short, since the line contains either #define or #undef.)
22378 s,^[ #]*u.*,/* & */,' >>conftest.defines
22380 # Break up conftest.defines:
22381 ac_max_sed_lines=50
22383 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22384 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22385 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22387 ac_in='$ac_file_inputs'
22388 ac_out='"$tmp/out1"'
22389 ac_nxt='"$tmp/out2"'
22393 # Write a here document:
22394 cat >>$CONFIG_STATUS <<_ACEOF
22395 # First, check the format of the line:
22396 cat >"\$tmp/defines.sed" <<\\CEOF
22397 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22398 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22402 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22404 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22405 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22406 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22407 grep . conftest.tail >/dev/null || break
22408 rm -f conftest.defines
22409 mv conftest.tail conftest.defines
22411 rm -f conftest.defines conftest.tail
22413 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22414 cat >>$CONFIG_STATUS <<\_ACEOF
22415 if test x"$ac_file" != x-; then
22416 echo "/* $configure_input */" >"$tmp/config.h"
22417 cat "$ac_result" >>"$tmp/config.h"
22418 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22419 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22420 echo "$as_me: $ac_file is unchanged" >&6;}
22423 mv "$tmp/config.h" $ac_file
22426 echo "/* $configure_input */"
22430 # Compute $ac_file's index in $config_headers.
22433 for _am_header in $config_headers :; do
22434 case $_am_header in
22435 $_am_arg | $_am_arg:* )
22438 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22441 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22442 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22443 X"$_am_arg" : 'X\(//\)[^/]' \| \
22444 X"$_am_arg" : 'X\(//\)$' \| \
22445 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22451 /^X\(\/\/\)[^/].*/{
22463 s/.*/./; q'`/stamp-h$_am_stamp_count
22466 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22467 echo "$as_me: executing $ac_file commands" >&6;}
22472 case $ac_file$ac_mode in
22473 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22474 # Strip MF so we end up with the name of the file.
22475 mf=`echo "$mf" | sed -e 's/:.*$//'`
22476 # Check whether this is an Automake generated Makefile or not.
22477 # We used to match only the files named `Makefile.in', but
22478 # some people rename them; so instead we look at the file content.
22479 # Grep'ing the first line is not enough: some people post-process
22480 # each Makefile.in and add a new line on top of each file to say so.
22481 # Grep'ing the whole file is not good either: AIX grep has a line
22482 # limit of 2048, but all sed's we know have understand at least 4000.
22483 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22484 dirpart=`$as_dirname -- "$mf" ||
22485 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22486 X"$mf" : 'X\(//\)[^/]' \| \
22487 X"$mf" : 'X\(//\)$' \| \
22488 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22494 /^X\(\/\/\)[^/].*/{
22510 # Extract the definition of DEPDIR, am__include, and am__quote
22511 # from the Makefile without running `make'.
22512 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22513 test -z "$DEPDIR" && continue
22514 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22515 test -z "am__include" && continue
22516 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22517 # When using ansi2knr, U may be empty or an underscore; expand it
22518 U=`sed -n 's/^U = //p' < "$mf"`
22519 # Find all dependency output files, they are included files with
22520 # $(DEPDIR) in their names. We invoke sed twice because it is the
22521 # simplest approach to changing $(DEPDIR) to its actual value in the
22523 for file in `sed -n "
22524 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22525 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22526 # Make sure the directory exists.
22527 test -f "$dirpart/$file" && continue
22528 fdir=`$as_dirname -- "$file" ||
22529 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22530 X"$file" : 'X\(//\)[^/]' \| \
22531 X"$file" : 'X\(//\)$' \| \
22532 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22538 /^X\(\/\/\)[^/].*/{
22551 { as_dir=$dirpart/$fdir
22553 -*) as_dir=./$as_dir;;
22555 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22559 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22560 *) as_qdir=$as_dir;;
22562 as_dirs="'$as_qdir' $as_dirs"
22563 as_dir=`$as_dirname -- "$as_dir" ||
22564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565 X"$as_dir" : 'X\(//\)[^/]' \| \
22566 X"$as_dir" : 'X\(//\)$' \| \
22567 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22573 /^X\(\/\/\)[^/].*/{
22586 test -d "$as_dir" && break
22588 test -z "$as_dirs" || eval "mkdir $as_dirs"
22589 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22590 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22591 { (exit 1); exit 1; }; }; }
22592 # echo "creating $dirpart/$file"
22593 echo '# dummy' > "$dirpart/$file"
22602 { (exit 0); exit 0; }
22604 chmod +x $CONFIG_STATUS
22605 ac_clean_files=$ac_clean_files_save
22608 # configure is writing to config.log, and then calls config.status.
22609 # config.status does its own redirection, appending to config.log.
22610 # Unfortunately, on DOS this fails, as config.log is still kept open
22611 # by configure, so config.status won't be able to write to it; its
22612 # output is simply discarded. So we exec the FD to /dev/null,
22613 # effectively closing config.log, so it can be properly (re)opened and
22614 # appended to by config.status. When coming back to configure, we
22615 # need to make the FD available again.
22616 if test "$no_create" != yes; then
22618 ac_config_status_args=
22619 test "$silent" = yes &&
22620 ac_config_status_args="$ac_config_status_args --quiet"
22622 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22625 # would make configure fail if this is the last instruction.
22626 $ac_cs_success || { (exit 1); exit 1; }