2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sharing-plugin-template 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='sharing-plugin-template'
728 PACKAGE_TARNAME='sharing-plugin-template'
729 PACKAGE_VERSION='0.1'
730 PACKAGE_STRING='sharing-plugin-template 0.1'
733 # Factoring default headers for most tests.
734 ac_includes_default="\
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
746 # ifdef HAVE_STDLIB_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
778 program_transform_name
820 INSTALL_STRIP_PROGRAM
826 MAINTAINER_MODE_FALSE
886 ac_precious_vars='build_alias
908 # Initialize some variables set by options.
910 ac_init_version=false
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
920 program_transform_name=s,x,x,
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945 infodir='${datarootdir}/info'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\$ac_option
966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 # Accept the important Cygnus configure options, so we can diagnose typos.
972 case $ac_dashdash$ac_option in
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
994 cache_file=config.cache ;;
996 -datadir | --datadir | --datadi | --datad)
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1008 -disable-* | --disable-*)
1009 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015 eval enable_$ac_feature=no ;;
1017 -docdir | --docdir | --docdi | --doc | --do)
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
1027 -enable-* | --enable-*)
1028 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034 eval enable_$ac_feature=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1198 -site=* | --site=* | --sit=*)
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1225 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=\$ac_optarg ;;
1233 -without-* | --without-*)
1234 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=no ;;
1243 # Obsolete; use --with-x.
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1260 -*) { echo "$as_me: error: unrecognized option: $ac_option
1261 Try \`$0 --help' for more information." >&2
1262 { (exit 1); exit 1; }; }
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270 { (exit 1); exit 1; }; }
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 { echo "$as_me: error: missing argument to $ac_option" >&2
1288 { (exit 1); exit 1; }; }
1291 # Be sure to have absolute directory names.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303 { (exit 1); exit 1; }; }
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1311 target=$target_alias
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used." >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327 test "$silent" = yes && exec 6>/dev/null
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 { echo "$as_me: error: Working directory cannot be determined" >&2
1334 { (exit 1); exit 1; }; }
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 { echo "$as_me: error: pwd does not report name of working directory" >&2
1337 { (exit 1); exit 1; }; }
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$0" ||
1345 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$0" : 'X\(//\)[^/]' \| \
1347 X"$0" : 'X\(//\)$' \| \
1348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1372 ac_srcdir_defaulted=no
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377 { (exit 1); exit 1; }; }
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382 { (exit 1); exit 1; }; }
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 # Report the --help message.
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1408 \`configure' configures sharing-plugin-template 0.1 to adapt to many kinds of systems.
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1415 Defaults for the options are specified in brackets.
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1439 For better control, use the options below.
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/sharing-plugin-template]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of sharing-plugin-template 0.1:";;
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-maintainer-mode enable make rules and dependencies not useful
1486 (and sometimes confusing) to the casual installer
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-static[=PKGS] build static libraries [default=no]
1489 --disable-dependency-tracking speeds up one-time build
1490 --enable-dependency-tracking do not reject slow dependency extractors
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-debug Turn on debug messages
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1502 --with-tags[=TAGS] include additional configurations [automatic]
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1515 CXXCPP C++ preprocessor
1516 F77 Fortran 77 compiler command
1517 FFLAGS Fortran 77 compiler flags
1518 PKG_CONFIG path to pkg-config utility
1520 C compiler flags for PACKAGE, overriding pkg-config
1522 linker flags for PACKAGE, overriding pkg-config
1524 C compiler flags for SHARING, overriding pkg-config
1526 linker flags for SHARING, overriding pkg-config
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" || continue
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1558 .) # We are building in place.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1582 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1591 sharing-plugin-template configure 0.1
1592 generated by GNU Autoconf 2.61
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by sharing-plugin-template $as_me 0.1, which was
1606 generated by GNU Autoconf 2.61. Invocation command line was
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 echo "PATH: $as_dir"
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_must_keep_next=false
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1677 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 -* ) ac_must_keep_next=true ;;
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1729 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733 _ | IFS | as_nl) ;; #(
1734 *) $as_unset $ac_var ;;
1739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740 *${as_nl}ac_space=\ *)
1742 "s/'\''/'\''\\\\'\'''\''/g;
1743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1759 for ac_var in $ac_subst_vars
1761 eval ac_val=\$$ac_var
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 echo "$ac_var='\''$ac_val'\''"
1769 if test -n "$ac_subst_files"; then
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1776 for ac_var in $ac_subst_files
1778 eval ac_val=\$$ac_var
1780 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 echo "$ac_var='\''$ac_val'\''"
1787 if test -s confdefs.h; then
1797 test "$ac_signal" != 0 &&
1798 echo "$as_me: caught signal $ac_signal"
1799 echo "$as_me: exit $exit_status"
1801 rm -f core *.core core.conftest.* &&
1802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805 for ac_signal in 1 2 13 15; do
1806 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1813 # Predefined preprocessor variables.
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_NAME "$PACKAGE_NAME"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_STRING "$PACKAGE_STRING"
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1840 # Let the site file select an alternate cache file if it wants to.
1841 # Prefer explicitly selected file to automatically selected ones.
1842 if test -n "$CONFIG_SITE"; then
1843 set x "$CONFIG_SITE"
1844 elif test "x$prefix" != xNONE; then
1845 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847 set x "$ac_default_prefix/share/config.site" \
1848 "$ac_default_prefix/etc/config.site"
1853 if test -r "$ac_site_file"; then
1854 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855 echo "$as_me: loading site script $ac_site_file" >&6;}
1856 sed 's/^/| /' "$ac_site_file" >&5
1861 if test -r "$cache_file"; then
1862 # Some versions of bash will fail to source /dev/null (special
1863 # files actually), so we avoid doing that.
1864 if test -f "$cache_file"; then
1865 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866 echo "$as_me: loading cache $cache_file" >&6;}
1868 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869 *) . "./$cache_file";;
1873 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874 echo "$as_me: creating cache $cache_file" >&6;}
1878 # Check that the precious variables saved in the cache have kept the same
1880 ac_cache_corrupted=false
1881 for ac_var in $ac_precious_vars; do
1882 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883 eval ac_new_set=\$ac_env_${ac_var}_set
1884 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885 eval ac_new_val=\$ac_env_${ac_var}_value
1886 case $ac_old_set,$ac_new_set in
1888 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890 ac_cache_corrupted=: ;;
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1897 if test "x$ac_old_val" != "x$ac_new_val"; then
1898 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1901 echo "$as_me: former value: $ac_old_val" >&2;}
1902 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1903 echo "$as_me: current value: $ac_new_val" >&2;}
1904 ac_cache_corrupted=:
1907 # Pass precious variables to config.status.
1908 if test "$ac_new_set" = set; then
1910 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 *) ac_arg=$ac_var=$ac_new_val ;;
1913 case " $ac_configure_args " in
1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919 if $ac_cache_corrupted; then
1920 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924 { (exit 1); exit 1; }; }
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958 am__api_version="1.8"
1960 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1961 if test -f "$ac_dir/install-sh"; then
1963 ac_install_sh="$ac_aux_dir/install-sh -c"
1965 elif test -f "$ac_dir/install.sh"; then
1967 ac_install_sh="$ac_aux_dir/install.sh -c"
1969 elif test -f "$ac_dir/shtool"; then
1971 ac_install_sh="$ac_aux_dir/shtool install -c"
1975 if test -z "$ac_aux_dir"; then
1976 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1977 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1978 { (exit 1); exit 1; }; }
1981 # These three variables are undocumented and unsupported,
1982 # and are intended to be withdrawn in a future Autoconf release.
1983 # They can cause serious problems if a builder's source tree is in a directory
1984 # whose full name contains unusual characters.
1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1987 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1990 # Find a good install program. We prefer a C program (faster),
1991 # so one script is as good as another. But avoid the broken or
1992 # incompatible versions:
1993 # SysV /etc/install, /usr/sbin/install
1994 # SunOS /usr/etc/install
1995 # IRIX /sbin/install
1997 # AmigaOS /C/install, which installs bootblocks on floppy discs
1998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2001 # OS/2's system install, which has a completely different semantic
2002 # ./install, which can be erroneously created by make from ./install.sh.
2003 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2004 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2005 if test -z "$INSTALL"; then
2006 if test "${ac_cv_path_install+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 # Account for people who put trailing slashes in PATH elements.
2016 ./ | .// | /cC/* | \
2017 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2018 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2021 # OSF1 and SCO ODT 3.0 have their own names for install.
2022 # Don't use installbsd from OSF since it installs stuff as root
2024 for ac_prog in ginstall scoinst install; do
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2027 if test $ac_prog = install &&
2028 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029 # AIX install. It has an incompatible calling convention.
2031 elif test $ac_prog = install &&
2032 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2033 # program-specific install script used by HP pwplus--don't use.
2036 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2049 if test "${ac_cv_path_install+set}" = set; then
2050 INSTALL=$ac_cv_path_install
2052 # As a last resort, use the slow shell script. Don't cache a
2053 # value for INSTALL within a source directory, because that will
2054 # break other packages using the cache if that directory is
2055 # removed, or if the value is a relative name.
2056 INSTALL=$ac_install_sh
2059 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2060 echo "${ECHO_T}$INSTALL" >&6; }
2062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2063 # It thinks the first close brace ends the variable substitution.
2064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2070 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2071 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2074 echo timestamp > conftest.file
2075 # Do `set' in a subshell so we don't clobber the current shell's
2076 # arguments. Must try -L first in case configure is actually a
2077 # symlink; some systems play weird games with the mod time of symlinks
2078 # (eg FreeBSD returns the mod time of the symlink's containing
2081 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2082 if test "$*" = "X"; then
2084 set X `ls -t $srcdir/configure conftest.file`
2087 if test "$*" != "X $srcdir/configure conftest.file" \
2088 && test "$*" != "X conftest.file $srcdir/configure"; then
2090 # If neither matched, then we have a broken ls. This can happen
2091 # if, for instance, CONFIG_SHELL is bash and it inherits a
2092 # broken ls alias from the environment. This has actually
2093 # happened. Such a system could not be considered "sane".
2094 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2095 alias in your environment" >&5
2096 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2097 alias in your environment" >&2;}
2098 { (exit 1); exit 1; }; }
2101 test "$2" = conftest.file
2107 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2108 Check your system clock" >&5
2109 echo "$as_me: error: newly created file is older than distributed files!
2110 Check your system clock" >&2;}
2111 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: yes" >&5
2114 echo "${ECHO_T}yes" >&6; }
2115 test "$program_prefix" != NONE &&
2116 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2117 # Use a double $ so make ignores it.
2118 test "$program_suffix" != NONE &&
2119 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2120 # Double any \ or $. echo might interpret backslashes.
2121 # By default was `s,x,x', remove it if useless.
2122 cat <<\_ACEOF >conftest.sed
2123 s/[\\$]/&&/g;s/;s,x,x,$//
2125 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2128 # expand $ac_aux_dir to an absolute path
2129 am_aux_dir=`cd $ac_aux_dir && pwd`
2131 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2132 # Use eval to expand $SHELL
2133 if eval "$MISSING --run true"; then
2134 am_missing_run="$MISSING --run "
2137 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2138 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2141 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2142 # Keeping the `.' argument allows $(mkdir_p) to be used without
2143 # argument. Indeed, we sometimes output rules like
2144 # $(mkdir_p) $(somedir)
2145 # where $(somedir) is conditionally defined.
2146 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2147 # expensive solution, as it forces Make to start a sub-shell.)
2148 mkdir_p='mkdir -p -- .'
2150 # On NextStep and OpenStep, the `mkdir' command does not
2151 # recognize any option. It will interpret all options as
2152 # directories to create, and then abort because `.' already
2154 for d in ./-p ./--version;
2156 test -d $d && rmdir $d
2158 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2159 if test -f "$ac_aux_dir/mkinstalldirs"; then
2160 mkdir_p='$(mkinstalldirs)'
2162 mkdir_p='$(install_sh) -d'
2166 for ac_prog in gawk mawk nawk awk
2168 # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_AWK+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$AWK"; then
2176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 ac_cv_prog_AWK="$ac_prog"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 if test -n "$AWK"; then
2197 { echo "$as_me:$LINENO: result: $AWK" >&5
2198 echo "${ECHO_T}$AWK" >&6; }
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2205 test -n "$AWK" && break
2208 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2209 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2210 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 cat >conftest.make <<\_ACEOF
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2233 { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2245 rmdir .tst 2>/dev/null
2247 # test to see if srcdir already configured
2248 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2249 test -f $srcdir/config.status; then
2250 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252 { (exit 1); exit 1; }; }
2255 # test whether we have cygpath
2256 if test -z "$CYGPATH_W"; then
2257 if (cygpath --version) >/dev/null 2>/dev/null; then
2258 CYGPATH_W='cygpath -w'
2265 # Define the identity of the package.
2266 PACKAGE='sharing-plugin-template'
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE "$PACKAGE"
2275 cat >>confdefs.h <<_ACEOF
2276 #define VERSION "$VERSION"
2279 # Some tools Automake needs.
2281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296 AMTAR=${AMTAR-"${am_missing_run}tar"}
2298 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2300 # Installed binaries are usually stripped using `strip' when the user
2301 # run `make install-strip'. However `strip' might not be the right
2302 # tool to use in cross-compilation environments, therefore Automake
2303 # will honor the `STRIP' environment variable to overrule this program.
2304 if test "$cross_compiling" != no; then
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}strip; ac_word=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_STRIP+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 if test -n "$STRIP"; then
2314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 STRIP=$ac_cv_prog_STRIP
2334 if test -n "$STRIP"; then
2335 { echo "$as_me:$LINENO: result: $STRIP" >&5
2336 echo "${ECHO_T}$STRIP" >&6; }
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2344 if test -z "$ac_cv_prog_STRIP"; then
2346 # Extract the first word of "strip", so it can be a program name with args.
2347 set dummy strip; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 if test -n "$ac_ct_STRIP"; then
2354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_ac_ct_STRIP="strip"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2374 if test -n "$ac_ct_STRIP"; then
2375 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2376 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2378 { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2382 if test "x$ac_ct_STRIP" = x; then
2385 case $cross_compiling:$ac_tool_warned in
2387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&5
2390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet. If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2393 ac_tool_warned=yes ;;
2398 STRIP="$ac_cv_prog_STRIP"
2402 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2404 # We need awk for the "check" target. The system "awk" is bad on
2410 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2411 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2412 # Check whether --enable-maintainer-mode was given.
2413 if test "${enable_maintainer_mode+set}" = set; then
2414 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2416 USE_MAINTAINER_MODE=no
2419 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2420 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2423 if test $USE_MAINTAINER_MODE = yes; then
2424 MAINTAINER_MODE_TRUE=
2425 MAINTAINER_MODE_FALSE='#'
2427 MAINTAINER_MODE_TRUE='#'
2428 MAINTAINER_MODE_FALSE=
2431 MAINT=$MAINTAINER_MODE_TRUE
2434 ac_config_headers="$ac_config_headers config.h"
2439 # Check whether --enable-shared was given.
2440 if test "${enable_shared+set}" = set; then
2441 enableval=$enable_shared; p=${PACKAGE-default}
2443 yes) enable_shared=yes ;;
2444 no) enable_shared=no ;;
2447 # Look at the argument we got. We use all the common list separators.
2448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2449 for pkg in $enableval; do
2451 if test "X$pkg" = "X$p"; then
2463 # Check whether --enable-static was given.
2464 if test "${enable_static+set}" = set; then
2465 enableval=$enable_static; p=${PACKAGE-default}
2467 yes) enable_static=yes ;;
2468 no) enable_static=no ;;
2471 # Look at the argument we got. We use all the common list separators.
2472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2473 for pkg in $enableval; do
2475 if test "X$pkg" = "X$p"; then
2487 DEPDIR="${am__leading_dot}deps"
2489 ac_config_commands="$ac_config_commands depfiles"
2492 am_make=${MAKE-make}
2493 cat > confinc << 'END'
2498 # If we don't find an include directive, just comment out the code.
2499 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2500 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2504 # First try GNU make style include.
2505 echo "include confinc" > confmf
2506 # We grep out `Entering directory' and `Leaving directory'
2507 # messages which can occur if `w' ends up in MAKEFLAGS.
2508 # In particular we don't look at `^make:' because GNU make might
2509 # be invoked under some other name (usually "gmake"), in which
2510 # case it prints its new name instead of `make'.
2511 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2516 # Now try BSD make style include.
2517 if test "$am__include" = "#"; then
2518 echo '.include "confinc"' > confmf
2519 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2520 am__include=.include
2527 { echo "$as_me:$LINENO: result: $_am_result" >&5
2528 echo "${ECHO_T}$_am_result" >&6; }
2529 rm -f confinc confmf
2531 # Check whether --enable-dependency-tracking was given.
2532 if test "${enable_dependency_tracking+set}" = set; then
2533 enableval=$enable_dependency_tracking;
2536 if test "x$enable_dependency_tracking" != xno; then
2537 am_depcomp="$ac_aux_dir/depcomp"
2542 if test "x$enable_dependency_tracking" != xno; then
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2596 if test -z "$ac_cv_prog_CC"; then
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="gcc"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628 echo "${ECHO_T}$ac_ct_CC" >&6; }
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2634 if test "x$ac_ct_CC" = x; then
2637 case $cross_compiling:$ac_tool_warned in
2639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet. If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&5
2642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet. If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645 ac_tool_warned=yes ;;
2653 if test -z "$CC"; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_CC+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_CC="${ac_tool_prefix}cc"
2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 if test -n "$CC"; then
2684 { echo "$as_me:$LINENO: result: $CC" >&5
2685 echo "${ECHO_T}$CC" >&6; }
2687 { echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6; }
2694 if test -z "$CC"; then
2695 # Extract the first word of "cc", so it can be a program name with args.
2696 set dummy cc; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714 ac_prog_rejected=yes
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2740 if test -n "$CC"; then
2741 { echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6; }
2744 { echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6; }
2750 if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
2752 for ac_prog in cl.exe
2754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test -n "$CC"; then
2783 { echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6; }
2786 { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2791 test -n "$CC" && break
2794 if test -z "$CC"; then
2796 for ac_prog in cl.exe
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="$ac_prog"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828 echo "${ECHO_T}$ac_ct_CC" >&6; }
2830 { echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6; }
2835 test -n "$ac_ct_CC" && break
2838 if test "x$ac_ct_CC" = x; then
2841 case $cross_compiling:$ac_tool_warned in
2843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2844 whose name does not start with the host triplet. If you think this
2845 configuration is useful to you, please write to autoconf@gnu.org." >&5
2846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2847 whose name does not start with the host triplet. If you think this
2848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2849 ac_tool_warned=yes ;;
2858 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: no acceptable C compiler found in \$PATH
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2864 # Provide some information about the compiler.
2865 echo "$as_me:$LINENO: checking for C compiler version" >&5
2866 ac_compiler=`set X $ac_compile; echo $2`
2867 { (ac_try="$ac_compiler --version >&5"
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_compiler --version >&5") 2>&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -v >&5"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compiler -v >&5") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887 { (ac_try="$ac_compiler -V >&5"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compiler -V >&5") 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2898 cat >conftest.$ac_ext <<_ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2913 ac_clean_files_save=$ac_clean_files
2914 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2915 # Try to create an executable without -o first, disregard a.out.
2916 # It will help us diagnose broken compilers, and finding out an intuition
2918 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2919 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2920 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2922 # List of possible output files, starting from the most likely.
2923 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2924 # only as a last resort. b.out is created by i960 compilers.
2925 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2927 # The IRIX 6 linker writes into existing files which may not be
2928 # executable, retaining their permissions. Remove them first so a
2929 # subsequent execution test works.
2931 for ac_file in $ac_files
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2940 if { (ac_try="$ac_link_default"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_link_default") 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; then
2950 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2953 # so that the user can short-circuit this test for compilers unknown to
2955 for ac_file in $ac_files ''
2957 test -f "$ac_file" || continue
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2962 # We found the default executable, but exeext='' is most
2966 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970 # We set ac_cv_exeext here because the later test for it is not
2971 # safe: cross compilers may not add the suffix if given an `-o'
2972 # argument, so we may need to know it at that point already.
2973 # Even if this section looks crufty: it has the advantage of
2980 test "$ac_cv_exeext" = no && ac_cv_exeext=
2986 { echo "$as_me:$LINENO: result: $ac_file" >&5
2987 echo "${ECHO_T}$ac_file" >&6; }
2988 if test -z "$ac_file"; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&2;}
2996 { (exit 77); exit 77; }; }
2999 ac_exeext=$ac_cv_exeext
3001 # Check that the compiler produces executables we can run. If not, either
3002 # the compiler is broken, or we cross compile.
3003 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3004 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3005 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3006 # If not cross compiling, check that we can run a simple program.
3007 if test "$cross_compiling" != yes; then
3008 if { ac_try='./$ac_file'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3020 if test "$cross_compiling" = maybe; then
3023 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3024 If you meant to cross compile, use \`--host'.
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: cannot run C compiled programs.
3027 If you meant to cross compile, use \`--host'.
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }
3033 { echo "$as_me:$LINENO: result: yes" >&5
3034 echo "${ECHO_T}yes" >&6; }
3036 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3041 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3042 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3043 echo "${ECHO_T}$cross_compiling" >&6; }
3045 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3046 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3047 if { (ac_try="$ac_link"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_link") 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3058 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3059 # work properly (i.e., refer to `conftest.exe'), while it won't with
3061 for ac_file in conftest.exe conftest conftest.*; do
3062 test -f "$ac_file" || continue
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details." >&5
3073 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3074 See \`config.log' for more details." >&2;}
3075 { (exit 1); exit 1; }; }
3078 rm -f conftest$ac_cv_exeext
3079 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3080 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3082 rm -f conftest.$ac_ext
3083 EXEEXT=$ac_cv_exeext
3085 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3086 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3087 if test "${ac_cv_objext+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 cat >conftest.$ac_ext <<_ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3105 rm -f conftest.o conftest.obj
3106 if { (ac_try="$ac_compile"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_compile") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; then
3116 for ac_file in conftest.o conftest.obj conftest.*; do
3117 test -f "$ac_file" || continue;
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3135 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3137 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3138 echo "${ECHO_T}$ac_cv_objext" >&6; }
3139 OBJEXT=$ac_cv_objext
3141 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3195 GCC=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CFLAGS=${CFLAGS+set}
3197 ac_save_CFLAGS=$CFLAGS
3198 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3200 if test "${ac_cv_prog_cc_g+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 ac_save_c_werror_flag=$ac_c_werror_flag
3204 ac_c_werror_flag=yes
3207 cat >conftest.$ac_ext <<_ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3245 cat >conftest.$ac_ext <<_ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3260 rm -f conftest.$ac_objext
3261 if { (ac_try="$ac_compile"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>conftest.er1
3269 grep -v '^ *+' conftest.er1 >conftest.err
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && {
3274 test -z "$ac_c_werror_flag" ||
3275 test ! -s conftest.err
3276 } && test -s conftest.$ac_objext; then
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 ac_c_werror_flag=$ac_save_c_werror_flag
3284 cat >conftest.$ac_ext <<_ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3334 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336 CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338 if test "$GCC" = yes; then
3344 if test "$GCC" = yes; then
3350 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3351 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 ac_cv_prog_cc_c89=no
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3365 #include <sys/types.h>
3366 #include <sys/stat.h>
3367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3368 struct buf { int x; };
3369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370 static char *e (p, i)
3376 static char *f (char * (*g) (char **, int), char **p, ...)
3381 s = g (p, va_arg (v,int));
3386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3387 function prototypes and stuff, but not '\xHH' hex character constants.
3388 These don't provoke an error unfortunately, instead are silently treated
3389 as 'x'. The following induces an error, until -std is added to get
3390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3391 array size at least. It's necessary to write '\x00'==0 to get something
3392 that's true only with -std. */
3393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396 inside strings and character constants. */
3398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3417 CC="$ac_save_CC $ac_arg"
3418 rm -f conftest.$ac_objext
3419 if { (ac_try="$ac_compile"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } && {
3432 test -z "$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3434 } && test -s conftest.$ac_objext; then
3435 ac_cv_prog_cc_c89=$ac_arg
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3443 rm -f core conftest.err conftest.$ac_objext
3444 test "x$ac_cv_prog_cc_c89" != "xno" && break
3446 rm -f conftest.$ac_ext
3451 case "x$ac_cv_prog_cc_c89" in
3453 { echo "$as_me:$LINENO: result: none needed" >&5
3454 echo "${ECHO_T}none needed" >&6; } ;;
3456 { echo "$as_me:$LINENO: result: unsupported" >&5
3457 echo "${ECHO_T}unsupported" >&6; } ;;
3459 CC="$CC $ac_cv_prog_cc_c89"
3460 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3461 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 depcc="$CC" am_compiler_list=
3473 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3474 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3475 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3479 # We make a subdir and do the tests there. Otherwise we can end up
3480 # making bogus files that we don't know about and never remove. For
3481 # instance it was reported that on HP-UX the gcc test will end up
3482 # making a dummy file named `D' -- because `-MD' means `put the output
3485 # Copy depcomp to subdir because otherwise we won't find it if we're
3486 # using a relative directory.
3487 cp "$am_depcomp" conftest.dir
3489 # We will build objects and dependencies in a subdirectory because
3490 # it helps to detect inapplicable dependency modes. For instance
3491 # both Tru64's cc and ICC support -MD to output dependencies as a
3492 # side effect of compilation, but ICC will put the dependencies in
3493 # the current directory while Tru64 will put them in the object
3497 am_cv_CC_dependencies_compiler_type=none
3498 if test "$am_compiler_list" = ""; then
3499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3501 for depmode in $am_compiler_list; do
3502 # Setup a source with many dependencies, because some compilers
3503 # like to wrap large dependency lists on column 80 (with \), and
3504 # we should not choose a depcomp mode which is confused by this.
3506 # We need to recreate these files for each test, as the compiler may
3507 # overwrite some of them when testing with obscure command lines.
3508 # This happens at least with the AIX C compiler.
3510 for i in 1 2 3 4 5 6; do
3511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3513 # Solaris 8's {/usr,}/bin/sh.
3514 touch sub/conftst$i.h
3516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3520 # after this tag, mechanisms are not by side-effect, so they'll
3521 # only be used when explicitly requested
3522 if test "x$enable_dependency_tracking" = xyes; then
3530 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3531 # mode. It turns out that the SunPro C++ compiler does not properly
3532 # handle `-M -o', and we need to detect this.
3533 if depmode=$depmode \
3534 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3536 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3537 >/dev/null 2>conftest.err &&
3538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3539 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3541 # icc doesn't choke on unknown options, it will just issue warnings
3542 # or remarks (even with -Werror). So we grep stderr for any message
3543 # that says an option was ignored or not supported.
3544 # When given -MP, icc 7.0 and 7.1 complain thusly:
3545 # icc: Command line warning: ignoring option '-M'; no argument required
3546 # The diagnosis changed in icc 8.0:
3547 # icc: Command line remark: option '-MP' not supported
3548 if (grep 'ignoring option' conftest.err ||
3549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3550 am_cv_CC_dependencies_compiler_type=$depmode
3559 am_cv_CC_dependencies_compiler_type=none
3563 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3564 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3570 test "x$enable_dependency_tracking" != xno \
3571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3573 am__fastdepCC_FALSE='#'
3575 am__fastdepCC_TRUE='#'
3576 am__fastdepCC_FALSE=
3581 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3582 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3583 if test "${ac_cv_search_strerror+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 ac_func_search_save_LIBS=$LIBS
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3594 /* Override any GCC internal prototype to avoid an error.
3595 Use char because int might match the return type of a GCC
3596 builtin and then its argument prototype would still apply. */
3609 for ac_lib in '' cposix; do
3610 if test -z "$ac_lib"; then
3611 ac_res="none required"
3614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (ac_try="$ac_link"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_link") 2>conftest.er1
3625 grep -v '^ *+' conftest.er1 >conftest.err
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } && {
3630 test -z "$ac_c_werror_flag" ||
3631 test ! -s conftest.err
3632 } && test -s conftest$ac_exeext &&
3633 $as_test_x conftest$ac_exeext; then
3634 ac_cv_search_strerror=$ac_res
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3644 if test "${ac_cv_search_strerror+set}" = set; then
3648 if test "${ac_cv_search_strerror+set}" = set; then
3651 ac_cv_search_strerror=no
3654 LIBS=$ac_func_search_save_LIBS
3656 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3657 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3658 ac_res=$ac_cv_search_strerror
3659 if test "$ac_res" != no; then
3660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3665 ac_cpp='$CXXCPP $CPPFLAGS'
3666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3669 if test -z "$CXX"; then
3670 if test -n "$CCC"; then
3673 if test -n "$ac_tool_prefix"; then
3674 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3680 if test "${ac_cv_prog_CXX+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 if test -n "$CXX"; then
3684 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test -n "$CXX"; then
3705 { echo "$as_me:$LINENO: result: $CXX" >&5
3706 echo "${ECHO_T}$CXX" >&6; }
3708 { echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6; }
3713 test -n "$CXX" && break
3716 if test -z "$CXX"; then
3718 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3720 # Extract the first word of "$ac_prog", so it can be a program name with args.
3721 set dummy $ac_prog; ac_word=$2
3722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 if test -n "$ac_ct_CXX"; then
3728 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_ac_ct_CXX="$ac_prog"
3738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3748 if test -n "$ac_ct_CXX"; then
3749 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3750 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3757 test -n "$ac_ct_CXX" && break
3760 if test "x$ac_ct_CXX" = x; then
3763 case $cross_compiling:$ac_tool_warned in
3765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3766 whose name does not start with the host triplet. If you think this
3767 configuration is useful to you, please write to autoconf@gnu.org." >&5
3768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3769 whose name does not start with the host triplet. If you think this
3770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3771 ac_tool_warned=yes ;;
3779 # Provide some information about the compiler.
3780 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3781 ac_compiler=`set X $ac_compile; echo $2`
3782 { (ac_try="$ac_compiler --version >&5"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compiler --version >&5") 2>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3792 { (ac_try="$ac_compiler -v >&5"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compiler -v >&5") 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }
3802 { (ac_try="$ac_compiler -V >&5"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_compiler -V >&5") 2>&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }
3813 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3814 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3815 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3836 rm -f conftest.$ac_objext
3837 if { (ac_try="$ac_compile"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_compile") 2>conftest.er1
3845 grep -v '^ *+' conftest.er1 >conftest.err
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } && {
3850 test -z "$ac_cxx_werror_flag" ||
3851 test ! -s conftest.err
3852 } && test -s conftest.$ac_objext; then
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3865 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3866 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3867 GXX=`test $ac_compiler_gnu = yes && echo yes`
3868 ac_test_CXXFLAGS=${CXXFLAGS+set}
3869 ac_save_CXXFLAGS=$CXXFLAGS
3870 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3871 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3872 if test "${ac_cv_prog_cxx_g+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3876 ac_cxx_werror_flag=yes
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_cxx_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3911 ac_cv_prog_cxx_g=yes
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compile") 2>conftest.er1
3941 grep -v '^ *+' conftest.er1 >conftest.err
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && {
3946 test -z "$ac_cxx_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest.$ac_objext; then
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3971 rm -f conftest.$ac_objext
3972 if { (ac_try="$ac_compile"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_cxx_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 ac_cv_prog_cxx_g=yes
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4005 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4006 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4007 if test "$ac_test_CXXFLAGS" = set; then
4008 CXXFLAGS=$ac_save_CXXFLAGS
4009 elif test $ac_cv_prog_cxx_g = yes; then
4010 if test "$GXX" = yes; then
4016 if test "$GXX" = yes; then
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028 depcc="$CXX" am_compiler_list=
4030 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4031 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4032 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4036 # We make a subdir and do the tests there. Otherwise we can end up
4037 # making bogus files that we don't know about and never remove. For
4038 # instance it was reported that on HP-UX the gcc test will end up
4039 # making a dummy file named `D' -- because `-MD' means `put the output
4042 # Copy depcomp to subdir because otherwise we won't find it if we're
4043 # using a relative directory.
4044 cp "$am_depcomp" conftest.dir
4046 # We will build objects and dependencies in a subdirectory because
4047 # it helps to detect inapplicable dependency modes. For instance
4048 # both Tru64's cc and ICC support -MD to output dependencies as a
4049 # side effect of compilation, but ICC will put the dependencies in
4050 # the current directory while Tru64 will put them in the object
4054 am_cv_CXX_dependencies_compiler_type=none
4055 if test "$am_compiler_list" = ""; then
4056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4058 for depmode in $am_compiler_list; do
4059 # Setup a source with many dependencies, because some compilers
4060 # like to wrap large dependency lists on column 80 (with \), and
4061 # we should not choose a depcomp mode which is confused by this.
4063 # We need to recreate these files for each test, as the compiler may
4064 # overwrite some of them when testing with obscure command lines.
4065 # This happens at least with the AIX C compiler.
4067 for i in 1 2 3 4 5 6; do
4068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4070 # Solaris 8's {/usr,}/bin/sh.
4071 touch sub/conftst$i.h
4073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4077 # after this tag, mechanisms are not by side-effect, so they'll
4078 # only be used when explicitly requested
4079 if test "x$enable_dependency_tracking" = xyes; then
4087 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4088 # mode. It turns out that the SunPro C++ compiler does not properly
4089 # handle `-M -o', and we need to detect this.
4090 if depmode=$depmode \
4091 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4093 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4094 >/dev/null 2>conftest.err &&
4095 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4096 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4097 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4098 # icc doesn't choke on unknown options, it will just issue warnings
4099 # or remarks (even with -Werror). So we grep stderr for any message
4100 # that says an option was ignored or not supported.
4101 # When given -MP, icc 7.0 and 7.1 complain thusly:
4102 # icc: Command line warning: ignoring option '-M'; no argument required
4103 # The diagnosis changed in icc 8.0:
4104 # icc: Command line remark: option '-MP' not supported
4105 if (grep 'ignoring option' conftest.err ||
4106 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4107 am_cv_CXX_dependencies_compiler_type=$depmode
4116 am_cv_CXX_dependencies_compiler_type=none
4120 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4121 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4122 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4127 test "x$enable_dependency_tracking" != xno \
4128 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4129 am__fastdepCXX_TRUE=
4130 am__fastdepCXX_FALSE='#'
4132 am__fastdepCXX_TRUE='#'
4133 am__fastdepCXX_FALSE=
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4143 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4144 # On Suns, sometimes $CPP names a directory.
4145 if test -n "$CPP" && test -d "$CPP"; then
4148 if test -z "$CPP"; then
4149 if test "${ac_cv_prog_CPP+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 # Double quotes because CPP needs to be expanded
4153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4156 for ac_c_preproc_warn_flag in '' yes
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4171 # include <limits.h>
4173 # include <assert.h>
4177 if { (ac_try="$ac_cpp conftest.$ac_ext"
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4185 grep -v '^ *+' conftest.er1 >conftest.err
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } >/dev/null && {
4190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4191 test ! -s conftest.err
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 # Broken: fails on valid input.
4202 rm -f conftest.err conftest.$ac_ext
4204 # OK, works on sane cases. Now check whether nonexistent headers
4205 # can be detected and how.
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <ac_nonexistent.h>
4214 if { (ac_try="$ac_cpp conftest.$ac_ext"
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } >/dev/null && {
4227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4228 test ! -s conftest.err
4230 # Broken: success on invalid input.
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 # Passes both tests.
4241 rm -f conftest.err conftest.$ac_ext
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then
4258 { echo "$as_me:$LINENO: result: $CPP" >&5
4259 echo "${ECHO_T}$CPP" >&6; }
4261 for ac_c_preproc_warn_flag in '' yes
4263 # Use a header file that comes with gcc, so configuring glibc
4264 # with a fresh cross-compiler works.
4265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266 # <limits.h> exists even on freestanding compilers.
4267 # On the NeXT, cc -E runs the code through the compiler's parser,
4268 # not just through cpp. "Syntax error" is here to catch this case.
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4276 # include <limits.h>
4278 # include <assert.h>
4282 if { (ac_try="$ac_cpp conftest.$ac_ext"
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } >/dev/null && {
4295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4296 test ! -s conftest.err
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 # Broken: fails on valid input.
4307 rm -f conftest.err conftest.$ac_ext
4309 # OK, works on sane cases. Now check whether nonexistent headers
4310 # can be detected and how.
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <ac_nonexistent.h>
4319 if { (ac_try="$ac_cpp conftest.$ac_ext"
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } >/dev/null && {
4332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4335 # Broken: success on invalid input.
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 # Passes both tests.
4346 rm -f conftest.err conftest.$ac_ext
4349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4350 rm -f conftest.err conftest.$ac_ext
4351 if $ac_preproc_ok; then
4354 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4355 See \`config.log' for more details." >&5
4356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4357 See \`config.log' for more details." >&2;}
4358 { (exit 1); exit 1; }; }
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372 if test -n "$ac_tool_prefix"; then
4373 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4374 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_CC+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test -n "$CC"; then
4381 ac_cv_prog_CC="$CC" # Let the user override the test.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 if test -n "$CC"; then
4402 { echo "$as_me:$LINENO: result: $CC" >&5
4403 echo "${ECHO_T}$CC" >&6; }
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4411 if test -z "$ac_cv_prog_CC"; then
4413 # Extract the first word of "gcc", so it can be a program name with args.
4414 set dummy gcc; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 if test -n "$ac_ct_CC"; then
4421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_ac_ct_CC="gcc"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4441 if test -n "$ac_ct_CC"; then
4442 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4443 echo "${ECHO_T}$ac_ct_CC" >&6; }
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4449 if test "x$ac_ct_CC" = x; then
4452 case $cross_compiling:$ac_tool_warned in
4454 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4455 whose name does not start with the host triplet. If you think this
4456 configuration is useful to you, please write to autoconf@gnu.org." >&5
4457 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4458 whose name does not start with the host triplet. If you think this
4459 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4460 ac_tool_warned=yes ;;
4468 if test -z "$CC"; then
4469 if test -n "$ac_tool_prefix"; then
4470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4471 set dummy ${ac_tool_prefix}cc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_CC="${ac_tool_prefix}cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 if test -n "$CC"; then
4499 { echo "$as_me:$LINENO: result: $CC" >&5
4500 echo "${ECHO_T}$CC" >&6; }
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4509 if test -z "$CC"; then
4510 # Extract the first word of "cc", so it can be a program name with args.
4511 set dummy cc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 if test -n "$CC"; then
4518 ac_cv_prog_CC="$CC" # Let the user override the test.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4529 ac_prog_rejected=yes
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 if test $ac_prog_rejected = yes; then
4541 # We found a bogon in the path, so make sure we never use it.
4542 set dummy $ac_cv_prog_CC
4544 if test $# != 0; then
4545 # We chose a different compiler from the bogus one.
4546 # However, it has the same basename, so the bogon will be chosen
4547 # first if we set CC to just the basename; use the full file name.
4549 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4555 if test -n "$CC"; then
4556 { echo "$as_me:$LINENO: result: $CC" >&5
4557 echo "${ECHO_T}$CC" >&6; }
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4565 if test -z "$CC"; then
4566 if test -n "$ac_tool_prefix"; then
4567 for ac_prog in cl.exe
4569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC="$CC" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 if test -n "$CC"; then
4598 { echo "$as_me:$LINENO: result: $CC" >&5
4599 echo "${ECHO_T}$CC" >&6; }
4601 { echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6; }
4606 test -n "$CC" && break
4609 if test -z "$CC"; then
4611 for ac_prog in cl.exe
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 if test -n "$ac_ct_CC"; then
4621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_ac_ct_CC="$ac_prog"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4641 if test -n "$ac_ct_CC"; then
4642 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4643 echo "${ECHO_T}$ac_ct_CC" >&6; }
4645 { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4650 test -n "$ac_ct_CC" && break
4653 if test "x$ac_ct_CC" = x; then
4656 case $cross_compiling:$ac_tool_warned in
4658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4659 whose name does not start with the host triplet. If you think this
4660 configuration is useful to you, please write to autoconf@gnu.org." >&5
4661 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4662 whose name does not start with the host triplet. If you think this
4663 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4664 ac_tool_warned=yes ;;
4673 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4674 See \`config.log' for more details." >&5
4675 echo "$as_me: error: no acceptable C compiler found in \$PATH
4676 See \`config.log' for more details." >&2;}
4677 { (exit 1); exit 1; }; }
4679 # Provide some information about the compiler.
4680 echo "$as_me:$LINENO: checking for C compiler version" >&5
4681 ac_compiler=`set X $ac_compile; echo $2`
4682 { (ac_try="$ac_compiler --version >&5"
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_compiler --version >&5") 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }
4692 { (ac_try="$ac_compiler -v >&5"
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_compiler -v >&5") 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }
4702 { (ac_try="$ac_compiler -V >&5"
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708 (eval "$ac_compiler -V >&5") 2>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }
4713 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4714 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4715 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 cat >conftest.$ac_ext <<_ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4745 grep -v '^ *+' conftest.er1 >conftest.err
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4765 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4767 GCC=`test $ac_compiler_gnu = yes && echo yes`
4768 ac_test_CFLAGS=${CFLAGS+set}
4769 ac_save_CFLAGS=$CFLAGS
4770 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_cc_g+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 ac_save_c_werror_flag=$ac_c_werror_flag
4776 ac_c_werror_flag=yes
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4794 rm -f conftest.$ac_objext
4795 if { (ac_try="$ac_compile"
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_compile") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest.$ac_objext; then
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4817 cat >conftest.$ac_ext <<_ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_compile") 2>conftest.er1
4841 grep -v '^ *+' conftest.er1 >conftest.err
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } && {
4846 test -z "$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 } && test -s conftest.$ac_objext; then
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 ac_c_werror_flag=$ac_save_c_werror_flag
4856 cat >conftest.$ac_ext <<_ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_compile") 2>conftest.er1
4880 grep -v '^ *+' conftest.er1 >conftest.err
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } && {
4885 test -z "$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 } && test -s conftest.$ac_objext; then
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_c_werror_flag=$ac_save_c_werror_flag
4905 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4906 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4907 if test "$ac_test_CFLAGS" = set; then
4908 CFLAGS=$ac_save_CFLAGS
4909 elif test $ac_cv_prog_cc_g = yes; then
4910 if test "$GCC" = yes; then
4916 if test "$GCC" = yes; then
4922 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4923 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4924 if test "${ac_cv_prog_cc_c89+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 ac_cv_prog_cc_c89=no
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4937 #include <sys/types.h>
4938 #include <sys/stat.h>
4939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4940 struct buf { int x; };
4941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4942 static char *e (p, i)
4948 static char *f (char * (*g) (char **, int), char **p, ...)
4953 s = g (p, va_arg (v,int));
4958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4959 function prototypes and stuff, but not '\xHH' hex character constants.
4960 These don't provoke an error unfortunately, instead are silently treated
4961 as 'x'. The following induces an error, until -std is added to get
4962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4963 array size at least. It's necessary to write '\x00'==0 to get something
4964 that's true only with -std. */
4965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4968 inside strings and character constants. */
4970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4972 int test (int i, double x);
4973 struct s1 {int (*f) (int a);};
4974 struct s2 {int (*f) (double a);};
4975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4989 CC="$ac_save_CC $ac_arg"
4990 rm -f conftest.$ac_objext
4991 if { (ac_try="$ac_compile"
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_compile") 2>conftest.er1
4999 grep -v '^ *+' conftest.er1 >conftest.err
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && {
5004 test -z "$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 } && test -s conftest.$ac_objext; then
5007 ac_cv_prog_cc_c89=$ac_arg
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5015 rm -f core conftest.err conftest.$ac_objext
5016 test "x$ac_cv_prog_cc_c89" != "xno" && break
5018 rm -f conftest.$ac_ext
5023 case "x$ac_cv_prog_cc_c89" in
5025 { echo "$as_me:$LINENO: result: none needed" >&5
5026 echo "${ECHO_T}none needed" >&6; } ;;
5028 { echo "$as_me:$LINENO: result: unsupported" >&5
5029 echo "${ECHO_T}unsupported" >&6; } ;;
5031 CC="$CC $ac_cv_prog_cc_c89"
5032 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5033 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 depcc="$CC" am_compiler_list=
5045 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5046 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5047 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5051 # We make a subdir and do the tests there. Otherwise we can end up
5052 # making bogus files that we don't know about and never remove. For
5053 # instance it was reported that on HP-UX the gcc test will end up
5054 # making a dummy file named `D' -- because `-MD' means `put the output
5057 # Copy depcomp to subdir because otherwise we won't find it if we're
5058 # using a relative directory.
5059 cp "$am_depcomp" conftest.dir
5061 # We will build objects and dependencies in a subdirectory because
5062 # it helps to detect inapplicable dependency modes. For instance
5063 # both Tru64's cc and ICC support -MD to output dependencies as a
5064 # side effect of compilation, but ICC will put the dependencies in
5065 # the current directory while Tru64 will put them in the object
5069 am_cv_CC_dependencies_compiler_type=none
5070 if test "$am_compiler_list" = ""; then
5071 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5073 for depmode in $am_compiler_list; do
5074 # Setup a source with many dependencies, because some compilers
5075 # like to wrap large dependency lists on column 80 (with \), and
5076 # we should not choose a depcomp mode which is confused by this.
5078 # We need to recreate these files for each test, as the compiler may
5079 # overwrite some of them when testing with obscure command lines.
5080 # This happens at least with the AIX C compiler.
5082 for i in 1 2 3 4 5 6; do
5083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5084 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5085 # Solaris 8's {/usr,}/bin/sh.
5086 touch sub/conftst$i.h
5088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5092 # after this tag, mechanisms are not by side-effect, so they'll
5093 # only be used when explicitly requested
5094 if test "x$enable_dependency_tracking" = xyes; then
5102 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5103 # mode. It turns out that the SunPro C++ compiler does not properly
5104 # handle `-M -o', and we need to detect this.
5105 if depmode=$depmode \
5106 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5107 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5108 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5109 >/dev/null 2>conftest.err &&
5110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5111 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5113 # icc doesn't choke on unknown options, it will just issue warnings
5114 # or remarks (even with -Werror). So we grep stderr for any message
5115 # that says an option was ignored or not supported.
5116 # When given -MP, icc 7.0 and 7.1 complain thusly:
5117 # icc: Command line warning: ignoring option '-M'; no argument required
5118 # The diagnosis changed in icc 8.0:
5119 # icc: Command line remark: option '-MP' not supported
5120 if (grep 'ignoring option' conftest.err ||
5121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5122 am_cv_CC_dependencies_compiler_type=$depmode
5131 am_cv_CC_dependencies_compiler_type=none
5135 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5136 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5142 test "x$enable_dependency_tracking" != xno \
5143 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5145 am__fastdepCC_FALSE='#'
5147 am__fastdepCC_TRUE='#'
5148 am__fastdepCC_FALSE=
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162 if test "${ac_cv_prog_CC+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -n "$CC"; then
5166 ac_cv_prog_CC="$CC" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 if test -n "$CC"; then
5187 { echo "$as_me:$LINENO: result: $CC" >&5
5188 echo "${ECHO_T}$CC" >&6; }
5190 { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5196 if test -z "$ac_cv_prog_CC"; then
5198 # Extract the first word of "gcc", so it can be a program name with args.
5199 set dummy gcc; ac_word=$2
5200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 if test -n "$ac_ct_CC"; then
5206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_CC="gcc"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5226 if test -n "$ac_ct_CC"; then
5227 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5228 echo "${ECHO_T}$ac_ct_CC" >&6; }
5230 { echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6; }
5234 if test "x$ac_ct_CC" = x; then
5237 case $cross_compiling:$ac_tool_warned in
5239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5240 whose name does not start with the host triplet. If you think this
5241 configuration is useful to you, please write to autoconf@gnu.org." >&5
5242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5243 whose name does not start with the host triplet. If you think this
5244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5245 ac_tool_warned=yes ;;
5253 if test -z "$CC"; then
5254 if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}cc; ac_word=$2
5257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5259 if test "${ac_cv_prog_CC+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 if test -n "$CC"; then
5263 ac_cv_prog_CC="$CC" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_CC="${ac_tool_prefix}cc"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 if test -n "$CC"; then
5284 { echo "$as_me:$LINENO: result: $CC" >&5
5285 echo "${ECHO_T}$CC" >&6; }
5287 { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5294 if test -z "$CC"; then
5295 # Extract the first word of "cc", so it can be a program name with args.
5296 set dummy cc; ac_word=$2
5297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5299 if test "${ac_cv_prog_CC+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 if test -n "$CC"; then
5303 ac_cv_prog_CC="$CC" # Let the user override the test.
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5314 ac_prog_rejected=yes
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 if test $ac_prog_rejected = yes; then
5326 # We found a bogon in the path, so make sure we never use it.
5327 set dummy $ac_cv_prog_CC
5329 if test $# != 0; then
5330 # We chose a different compiler from the bogus one.
5331 # However, it has the same basename, so the bogon will be chosen
5332 # first if we set CC to just the basename; use the full file name.
5334 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5340 if test -n "$CC"; then
5341 { echo "$as_me:$LINENO: result: $CC" >&5
5342 echo "${ECHO_T}$CC" >&6; }
5344 { echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6; }
5350 if test -z "$CC"; then
5351 if test -n "$ac_tool_prefix"; then
5352 for ac_prog in cl.exe
5354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5358 if test "${ac_cv_prog_CC+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 if test -n "$CC"; then
5362 ac_cv_prog_CC="$CC" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 if test -n "$CC"; then
5383 { echo "$as_me:$LINENO: result: $CC" >&5
5384 echo "${ECHO_T}$CC" >&6; }
5386 { echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6; }
5391 test -n "$CC" && break
5394 if test -z "$CC"; then
5396 for ac_prog in cl.exe
5398 # Extract the first word of "$ac_prog", so it can be a program name with args.
5399 set dummy $ac_prog; ac_word=$2
5400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 if test -n "$ac_ct_CC"; then
5406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_ac_ct_CC="$ac_prog"
5416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5426 if test -n "$ac_ct_CC"; then
5427 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5428 echo "${ECHO_T}$ac_ct_CC" >&6; }
5430 { echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6; }
5435 test -n "$ac_ct_CC" && break
5438 if test "x$ac_ct_CC" = x; then
5441 case $cross_compiling:$ac_tool_warned in
5443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5444 whose name does not start with the host triplet. If you think this
5445 configuration is useful to you, please write to autoconf@gnu.org." >&5
5446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5447 whose name does not start with the host triplet. If you think this
5448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5449 ac_tool_warned=yes ;;
5458 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5459 See \`config.log' for more details." >&5
5460 echo "$as_me: error: no acceptable C compiler found in \$PATH
5461 See \`config.log' for more details." >&2;}
5462 { (exit 1); exit 1; }; }
5464 # Provide some information about the compiler.
5465 echo "$as_me:$LINENO: checking for C compiler version" >&5
5466 ac_compiler=`set X $ac_compile; echo $2`
5467 { (ac_try="$ac_compiler --version >&5"
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compiler --version >&5") 2>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }
5477 { (ac_try="$ac_compiler -v >&5"
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compiler -v >&5") 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }
5487 { (ac_try="$ac_compiler -V >&5"
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compiler -V >&5") 2>&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }
5498 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5499 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5500 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5550 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5551 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5552 GCC=`test $ac_compiler_gnu = yes && echo yes`
5553 ac_test_CFLAGS=${CFLAGS+set}
5554 ac_save_CFLAGS=$CFLAGS
5555 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5556 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5557 if test "${ac_cv_prog_cc_g+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 ac_save_c_werror_flag=$ac_c_werror_flag
5561 ac_c_werror_flag=yes
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5588 grep -v '^ *+' conftest.er1 >conftest.err
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_c_werror_flag=$ac_save_c_werror_flag
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 ac_c_werror_flag=$ac_save_c_werror_flag
5690 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5691 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5692 if test "$ac_test_CFLAGS" = set; then
5693 CFLAGS=$ac_save_CFLAGS
5694 elif test $ac_cv_prog_cc_g = yes; then
5695 if test "$GCC" = yes; then
5701 if test "$GCC" = yes; then
5707 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5708 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5709 if test "${ac_cv_prog_cc_c89+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 ac_cv_prog_cc_c89=no
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5722 #include <sys/types.h>
5723 #include <sys/stat.h>
5724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5725 struct buf { int x; };
5726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5727 static char *e (p, i)
5733 static char *f (char * (*g) (char **, int), char **p, ...)
5738 s = g (p, va_arg (v,int));
5743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5744 function prototypes and stuff, but not '\xHH' hex character constants.
5745 These don't provoke an error unfortunately, instead are silently treated
5746 as 'x'. The following induces an error, until -std is added to get
5747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5748 array size at least. It's necessary to write '\x00'==0 to get something
5749 that's true only with -std. */
5750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5753 inside strings and character constants. */
5755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5757 int test (int i, double x);
5758 struct s1 {int (*f) (int a);};
5759 struct s2 {int (*f) (double a);};
5760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5774 CC="$ac_save_CC $ac_arg"
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 ac_cv_prog_cc_c89=$ac_arg
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5800 rm -f core conftest.err conftest.$ac_objext
5801 test "x$ac_cv_prog_cc_c89" != "xno" && break
5803 rm -f conftest.$ac_ext
5808 case "x$ac_cv_prog_cc_c89" in
5810 { echo "$as_me:$LINENO: result: none needed" >&5
5811 echo "${ECHO_T}none needed" >&6; } ;;
5813 { echo "$as_me:$LINENO: result: unsupported" >&5
5814 echo "${ECHO_T}unsupported" >&6; } ;;
5816 CC="$CC $ac_cv_prog_cc_c89"
5817 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5818 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828 depcc="$CC" am_compiler_list=
5830 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5831 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5832 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5836 # We make a subdir and do the tests there. Otherwise we can end up
5837 # making bogus files that we don't know about and never remove. For
5838 # instance it was reported that on HP-UX the gcc test will end up
5839 # making a dummy file named `D' -- because `-MD' means `put the output
5842 # Copy depcomp to subdir because otherwise we won't find it if we're
5843 # using a relative directory.
5844 cp "$am_depcomp" conftest.dir
5846 # We will build objects and dependencies in a subdirectory because
5847 # it helps to detect inapplicable dependency modes. For instance
5848 # both Tru64's cc and ICC support -MD to output dependencies as a
5849 # side effect of compilation, but ICC will put the dependencies in
5850 # the current directory while Tru64 will put them in the object
5854 am_cv_CC_dependencies_compiler_type=none
5855 if test "$am_compiler_list" = ""; then
5856 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5858 for depmode in $am_compiler_list; do
5859 # Setup a source with many dependencies, because some compilers
5860 # like to wrap large dependency lists on column 80 (with \), and
5861 # we should not choose a depcomp mode which is confused by this.
5863 # We need to recreate these files for each test, as the compiler may
5864 # overwrite some of them when testing with obscure command lines.
5865 # This happens at least with the AIX C compiler.
5867 for i in 1 2 3 4 5 6; do
5868 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5869 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5870 # Solaris 8's {/usr,}/bin/sh.
5871 touch sub/conftst$i.h
5873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5877 # after this tag, mechanisms are not by side-effect, so they'll
5878 # only be used when explicitly requested
5879 if test "x$enable_dependency_tracking" = xyes; then
5887 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5888 # mode. It turns out that the SunPro C++ compiler does not properly
5889 # handle `-M -o', and we need to detect this.
5890 if depmode=$depmode \
5891 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5892 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5893 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5894 >/dev/null 2>conftest.err &&
5895 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5896 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5897 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5898 # icc doesn't choke on unknown options, it will just issue warnings
5899 # or remarks (even with -Werror). So we grep stderr for any message
5900 # that says an option was ignored or not supported.
5901 # When given -MP, icc 7.0 and 7.1 complain thusly:
5902 # icc: Command line warning: ignoring option '-M'; no argument required
5903 # The diagnosis changed in icc 8.0:
5904 # icc: Command line remark: option '-MP' not supported
5905 if (grep 'ignoring option' conftest.err ||
5906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5907 am_cv_CC_dependencies_compiler_type=$depmode
5916 am_cv_CC_dependencies_compiler_type=none
5920 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5921 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5927 test "x$enable_dependency_tracking" != xno \
5928 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5930 am__fastdepCC_FALSE='#'
5932 am__fastdepCC_TRUE='#'
5933 am__fastdepCC_FALSE=
5938 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5941 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5942 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5943 if test "${ac_cv_path_GREP+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 # Extract the first word of "grep ggrep" to use in msg output
5947 if test -z "$GREP"; then
5948 set dummy grep ggrep; ac_prog_name=$2
5949 if test "${ac_cv_path_GREP+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 ac_path_GREP_found=false
5953 # Loop through the user's path and test for each of PROGNAME-LIST
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5958 test -z "$as_dir" && as_dir=.
5959 for ac_prog in grep ggrep; do
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5962 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5963 # Check for GNU ac_path_GREP and select it if it is found.
5964 # Check for GNU $ac_path_GREP
5965 case `"$ac_path_GREP" --version 2>&1` in
5967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5970 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5973 cat "conftest.in" "conftest.in" >"conftest.tmp"
5974 mv "conftest.tmp" "conftest.in"
5975 cp "conftest.in" "conftest.nl"
5976 echo 'GREP' >> "conftest.nl"
5977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5979 ac_count=`expr $ac_count + 1`
5980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5981 # Best one so far, save it but keep looking for a better one
5982 ac_cv_path_GREP="$ac_path_GREP"
5983 ac_path_GREP_max=$ac_count
5985 # 10*(2^10) chars as input seems more than enough
5986 test $ac_count -gt 10 && break
5988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5992 $ac_path_GREP_found && break 3
6002 GREP="$ac_cv_path_GREP"
6003 if test -z "$GREP"; then
6004 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6005 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6006 { (exit 1); exit 1; }; }
6010 ac_cv_path_GREP=$GREP
6015 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6016 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6017 GREP="$ac_cv_path_GREP"
6020 { echo "$as_me:$LINENO: checking for egrep" >&5
6021 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6022 if test "${ac_cv_path_EGREP+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6026 then ac_cv_path_EGREP="$GREP -E"
6028 # Extract the first word of "egrep" to use in msg output
6029 if test -z "$EGREP"; then
6030 set dummy egrep; ac_prog_name=$2
6031 if test "${ac_cv_path_EGREP+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 ac_path_EGREP_found=false
6035 # Loop through the user's path and test for each of PROGNAME-LIST
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6040 test -z "$as_dir" && as_dir=.
6041 for ac_prog in egrep; do
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6044 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6045 # Check for GNU ac_path_EGREP and select it if it is found.
6046 # Check for GNU $ac_path_EGREP
6047 case `"$ac_path_EGREP" --version 2>&1` in
6049 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6052 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6055 cat "conftest.in" "conftest.in" >"conftest.tmp"
6056 mv "conftest.tmp" "conftest.in"
6057 cp "conftest.in" "conftest.nl"
6058 echo 'EGREP' >> "conftest.nl"
6059 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6061 ac_count=`expr $ac_count + 1`
6062 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6063 # Best one so far, save it but keep looking for a better one
6064 ac_cv_path_EGREP="$ac_path_EGREP"
6065 ac_path_EGREP_max=$ac_count
6067 # 10*(2^10) chars as input seems more than enough
6068 test $ac_count -gt 10 && break
6070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6074 $ac_path_EGREP_found && break 3
6084 EGREP="$ac_cv_path_EGREP"
6085 if test -z "$EGREP"; then
6086 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6087 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6088 { (exit 1); exit 1; }; }
6092 ac_cv_path_EGREP=$EGREP
6098 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6099 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6100 EGREP="$ac_cv_path_EGREP"
6103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6105 if test "${ac_cv_header_stdc+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 cat >conftest.$ac_ext <<_ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6144 ac_cv_header_stdc=yes
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149 ac_cv_header_stdc=no
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 if test $ac_cv_header_stdc = yes; then
6155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166 $EGREP "memchr" >/dev/null 2>&1; then
6169 ac_cv_header_stdc=no
6175 if test $ac_cv_header_stdc = yes; then
6176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6177 cat >conftest.$ac_ext <<_ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187 $EGREP "free" >/dev/null 2>&1; then
6190 ac_cv_header_stdc=no
6196 if test $ac_cv_header_stdc = yes; then
6197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6198 if test "$cross_compiling" = yes; then
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6209 #if ((' ' & 0x0FF) == 0x020)
6210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6213 # define ISLOWER(c) \
6214 (('a' <= (c) && (c) <= 'i') \
6215 || ('j' <= (c) && (c) <= 'r') \
6216 || ('s' <= (c) && (c) <= 'z'))
6217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6225 for (i = 0; i < 256; i++)
6226 if (XOR (islower (i), ISLOWER (i))
6227 || toupper (i) != TOUPPER (i))
6232 rm -f conftest$ac_exeext
6233 if { (ac_try="$ac_link"
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_link") 2>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6243 { (case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_try") 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6254 echo "$as_me: program exited with status $ac_status" >&5
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_cv_header_stdc=no
6261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6269 if test $ac_cv_header_stdc = yes; then
6271 cat >>confdefs.h <<\_ACEOF
6272 #define STDC_HEADERS 1
6277 # Find a good install program. We prefer a C program (faster),
6278 # so one script is as good as another. But avoid the broken or
6279 # incompatible versions:
6280 # SysV /etc/install, /usr/sbin/install
6281 # SunOS /usr/etc/install
6282 # IRIX /sbin/install
6284 # AmigaOS /C/install, which installs bootblocks on floppy discs
6285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6288 # OS/2's system install, which has a completely different semantic
6289 # ./install, which can be erroneously created by make from ./install.sh.
6290 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6291 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6292 if test -z "$INSTALL"; then
6293 if test "${ac_cv_path_install+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 # Account for people who put trailing slashes in PATH elements.
6303 ./ | .// | /cC/* | \
6304 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6305 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6308 # OSF1 and SCO ODT 3.0 have their own names for install.
6309 # Don't use installbsd from OSF since it installs stuff as root
6311 for ac_prog in ginstall scoinst install; do
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6314 if test $ac_prog = install &&
6315 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6316 # AIX install. It has an incompatible calling convention.
6318 elif test $ac_prog = install &&
6319 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6320 # program-specific install script used by HP pwplus--don't use.
6323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6336 if test "${ac_cv_path_install+set}" = set; then
6337 INSTALL=$ac_cv_path_install
6339 # As a last resort, use the slow shell script. Don't cache a
6340 # value for INSTALL within a source directory, because that will
6341 # break other packages using the cache if that directory is
6342 # removed, or if the value is a relative name.
6343 INSTALL=$ac_install_sh
6346 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6347 echo "${ECHO_T}$INSTALL" >&6; }
6349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6350 # It thinks the first close brace ends the variable substitution.
6351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6357 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6360 if test "$LN_S" = "ln -s"; then
6361 { echo "$as_me:$LINENO: result: yes" >&5
6362 echo "${ECHO_T}yes" >&6; }
6364 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6365 echo "${ECHO_T}no, using $LN_S" >&6; }
6368 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6369 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6370 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6371 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.make <<\_ACEOF
6377 @echo '@@@%%%=$(MAKE)=@@@%%%'
6379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6380 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6382 eval ac_cv_prog_make_${ac_make}_set=yes;;
6384 eval ac_cv_prog_make_${ac_make}_set=no;;
6388 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6389 { echo "$as_me:$LINENO: result: yes" >&5
6390 echo "${ECHO_T}yes" >&6; }
6393 { echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6; }
6395 SET_MAKE="MAKE=${MAKE-make}"
6398 # Check whether --enable-fast-install was given.
6399 if test "${enable_fast_install+set}" = set; then
6400 enableval=$enable_fast_install; p=${PACKAGE-default}
6402 yes) enable_fast_install=yes ;;
6403 no) enable_fast_install=no ;;
6405 enable_fast_install=no
6406 # Look at the argument we got. We use all the common list separators.
6407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6408 for pkg in $enableval; do
6410 if test "X$pkg" = "X$p"; then
6411 enable_fast_install=yes
6418 enable_fast_install=yes
6422 # Make sure we can run config.sub.
6423 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6424 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6425 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6426 { (exit 1); exit 1; }; }
6428 { echo "$as_me:$LINENO: checking build system type" >&5
6429 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6430 if test "${ac_cv_build+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 ac_build_alias=$build_alias
6434 test "x$ac_build_alias" = x &&
6435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6436 test "x$ac_build_alias" = x &&
6437 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6438 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6439 { (exit 1); exit 1; }; }
6440 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6441 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6442 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6443 { (exit 1); exit 1; }; }
6446 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6447 echo "${ECHO_T}$ac_cv_build" >&6; }
6448 case $ac_cv_build in
6450 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6451 echo "$as_me: error: invalid value of canonical build" >&2;}
6452 { (exit 1); exit 1; }; };;
6455 ac_save_IFS=$IFS; IFS='-'
6461 # Remember, the first character of IFS is used to create $*,
6462 # except with old shells:
6465 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6468 { echo "$as_me:$LINENO: checking host system type" >&5
6469 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6470 if test "${ac_cv_host+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 if test "x$host_alias" = x; then
6474 ac_cv_host=$ac_cv_build
6476 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6477 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6478 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6479 { (exit 1); exit 1; }; }
6483 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6484 echo "${ECHO_T}$ac_cv_host" >&6; }
6487 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6488 echo "$as_me: error: invalid value of canonical host" >&2;}
6489 { (exit 1); exit 1; }; };;
6492 ac_save_IFS=$IFS; IFS='-'
6498 # Remember, the first character of IFS is used to create $*,
6499 # except with old shells:
6502 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6505 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6506 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6507 if test "${lt_cv_path_SED+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 # Loop through the user's path and test for sed and gsed.
6511 # Then use that list of sed's as ones to test for truncation.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for lt_ac_prog in sed gsed; do
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6520 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6528 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6529 # along with /bin/sed that truncates output.
6530 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6531 test ! -f $lt_ac_sed && continue
6532 cat /dev/null > conftest.in
6534 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6535 # Check for GNU sed and select it if it is found.
6536 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6537 lt_cv_path_SED=$lt_ac_sed
6541 cat conftest.in conftest.in >conftest.tmp
6542 mv conftest.tmp conftest.in
6543 cp conftest.in conftest.nl
6545 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6546 cmp -s conftest.out conftest.nl || break
6547 # 10000 chars as input seems more than enough
6548 test $lt_ac_count -gt 10 && break
6549 lt_ac_count=`expr $lt_ac_count + 1`
6550 if test $lt_ac_count -gt $lt_ac_max; then
6551 lt_ac_max=$lt_ac_count
6552 lt_cv_path_SED=$lt_ac_sed
6561 { echo "$as_me:$LINENO: result: $SED" >&5
6562 echo "${ECHO_T}$SED" >&6; }
6565 # Check whether --with-gnu-ld was given.
6566 if test "${with_gnu_ld+set}" = set; then
6567 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6573 if test "$GCC" = yes; then
6574 # Check if gcc -print-prog-name=ld gives a path.
6575 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6576 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6579 # gcc leaves a trailing carriage return which upsets mingw
6580 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6582 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6585 # Accept absolute paths.
6587 re_direlt='/[^/][^/]*/\.\./'
6588 # Canonicalize the pathname of ld
6589 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6590 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6591 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6593 test -z "$LD" && LD="$ac_prog"
6596 # If it fails, then pretend we aren't using GCC.
6600 # If it is relative, then search for the first ld in PATH.
6604 elif test "$with_gnu_ld" = yes; then
6605 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6606 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6608 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6609 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6611 if test "${lt_cv_path_LD+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -z "$LD"; then
6615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6616 for ac_dir in $PATH; do
6618 test -z "$ac_dir" && ac_dir=.
6619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6620 lt_cv_path_LD="$ac_dir/$ac_prog"
6621 # Check to see if the program is GNU ld. I'd rather use --version,
6622 # but apparently some variants of GNU ld only accept -v.
6623 # Break only if it was the GNU/non-GNU ld that we prefer.
6624 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6625 *GNU* | *'with BFD'*)
6626 test "$with_gnu_ld" != no && break
6629 test "$with_gnu_ld" != yes && break
6636 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6641 if test -n "$LD"; then
6642 { echo "$as_me:$LINENO: result: $LD" >&5
6643 echo "${ECHO_T}$LD" >&6; }
6645 { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6648 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6649 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6650 { (exit 1); exit 1; }; }
6651 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6652 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6653 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6657 case `$LD -v 2>&1 </dev/null` in
6658 *GNU* | *'with BFD'*)
6659 lt_cv_prog_gnu_ld=yes
6662 lt_cv_prog_gnu_ld=no
6666 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6667 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6668 with_gnu_ld=$lt_cv_prog_gnu_ld
6671 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6672 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6673 if test "${lt_cv_ld_reload_flag+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 lt_cv_ld_reload_flag='-r'
6678 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6679 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6680 reload_flag=$lt_cv_ld_reload_flag
6681 case $reload_flag in
6683 *) reload_flag=" $reload_flag" ;;
6685 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6688 if test "$GCC" = yes; then
6689 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6696 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6697 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6698 if test "${lt_cv_path_NM+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 if test -n "$NM"; then
6702 # Let the user override the test.
6705 lt_nm_to_check="${ac_tool_prefix}nm"
6706 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6707 lt_nm_to_check="$lt_nm_to_check nm"
6709 for lt_tmp_nm in $lt_nm_to_check; do
6710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6711 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6713 test -z "$ac_dir" && ac_dir=.
6714 tmp_nm="$ac_dir/$lt_tmp_nm"
6715 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6716 # Check to see if the nm accepts a BSD-compat flag.
6717 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6718 # nm: unknown option "B" ignored
6719 # Tru64's nm complains that /dev/null is an invalid object file
6720 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6721 */dev/null* | *'Invalid file or object type'*)
6722 lt_cv_path_NM="$tmp_nm -B"
6726 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6728 lt_cv_path_NM="$tmp_nm -p"
6732 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6733 continue # so that we can try to find one that supports BSD flags
6742 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6745 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6746 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6749 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6750 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6751 if test "${lt_cv_deplibs_check_method+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 lt_cv_file_magic_cmd='$MAGIC_CMD'
6755 lt_cv_file_magic_test_file=
6756 lt_cv_deplibs_check_method='unknown'
6757 # Need to set the preceding variable on all platforms that support
6758 # interlibrary dependencies.
6759 # 'none' -- dependencies not supported.
6760 # `unknown' -- same as none, but documents that we really don't know.
6761 # 'pass_all' -- all dependencies passed with no checks.
6762 # 'test_compile' -- check by making test program.
6763 # 'file_magic [[regex]]' -- check by looking for files in library path
6764 # which responds to the $file_magic_cmd with a given extended regex.
6765 # If you have `file' or equivalent on your system and you're not sure
6766 # whether `pass_all' will *always* work, you probably want this one.
6770 lt_cv_deplibs_check_method=pass_all
6774 lt_cv_deplibs_check_method=pass_all
6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6779 lt_cv_file_magic_cmd='/usr/bin/file -L'
6780 lt_cv_file_magic_test_file=/shlib/libc.so
6784 # func_win32_libid is a shell function defined in ltmain.sh
6785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6786 lt_cv_file_magic_cmd='func_win32_libid'
6790 # Base MSYS/MinGW do not provide the 'file' command needed by
6791 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6792 # unless we find 'file', for example because we are cross-compiling.
6793 if ( file / ) >/dev/null 2>&1; then
6794 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6795 lt_cv_file_magic_cmd='func_win32_libid'
6797 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6798 lt_cv_file_magic_cmd='$OBJDUMP -f'
6802 darwin* | rhapsody*)
6803 lt_cv_deplibs_check_method=pass_all
6806 freebsd* | dragonfly*)
6807 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6810 # Not sure whether the presence of OpenBSD here was a mistake.
6811 # Let's accept both of them until this is cleared up.
6812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6813 lt_cv_file_magic_cmd=/usr/bin/file
6814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6818 lt_cv_deplibs_check_method=pass_all
6823 lt_cv_deplibs_check_method=pass_all
6826 hpux10.20* | hpux11*)
6827 lt_cv_file_magic_cmd=/usr/bin/file
6830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6834 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]'
6835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6849 irix5* | irix6* | nonstopux*)
6851 *-32|*"-32 ") libmagic=32-bit;;
6852 *-n32|*"-n32 ") libmagic=N32;;
6853 *-64|*"-64 ") libmagic=64-bit;;
6854 *) libmagic=never-match;;
6856 lt_cv_deplibs_check_method=pass_all
6859 # This must be Linux ELF.
6860 linux* | k*bsd*-gnu)
6861 lt_cv_deplibs_check_method=pass_all
6865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6874 lt_cv_file_magic_cmd=/usr/bin/file
6875 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6879 lt_cv_deplibs_check_method=unknown
6883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6890 osf3* | osf4* | osf5*)
6891 lt_cv_deplibs_check_method=pass_all
6895 lt_cv_deplibs_check_method=pass_all
6899 lt_cv_deplibs_check_method=pass_all
6903 case $host_vendor in
6905 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]'
6906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6909 lt_cv_deplibs_check_method=pass_all
6912 lt_cv_file_magic_cmd='/bin/file'
6913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6916 lt_cv_file_magic_cmd='/bin/file'
6917 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6918 lt_cv_file_magic_test_file=/lib/libc.so
6921 lt_cv_deplibs_check_method=pass_all
6924 lt_cv_deplibs_check_method=pass_all
6929 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6930 lt_cv_deplibs_check_method=pass_all
6935 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6936 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6937 file_magic_cmd=$lt_cv_file_magic_cmd
6938 deplibs_check_method=$lt_cv_deplibs_check_method
6939 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6944 # If no C compiler was specified, use CC.
6947 # If no C compiler flags were specified, use CFLAGS.
6948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6950 # Allow CC to be a program name with arguments.
6953 # Check whether --enable-libtool-lock was given.
6954 if test "${enable_libtool_lock+set}" = set; then
6955 enableval=$enable_libtool_lock;
6958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6960 # Some flags need to be propagated to the compiler or linker for good
6964 # Find out which ABI we are using.
6965 echo 'int i;' > conftest.$ac_ext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; then
6971 case `/usr/bin/file conftest.$ac_objext` in
6983 # Find out which ABI we are using.
6984 echo '#line 6984 "configure"' > conftest.$ac_ext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; then
6990 if test "$lt_cv_prog_gnu_ld" = yes; then
6991 case `/usr/bin/file conftest.$ac_objext` in
6993 LD="${LD-ld} -melf32bsmip"
6996 LD="${LD-ld} -melf32bmipn32"
6999 LD="${LD-ld} -melf64bmip"
7003 case `/usr/bin/file conftest.$ac_objext` in
7019 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7020 s390*-*linux*|sparc*-*linux*)
7021 # Find out which ABI we are using.
7022 echo 'int i;' > conftest.$ac_ext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; then
7028 case `/usr/bin/file conftest.o` in
7031 x86_64-*kfreebsd*-gnu)
7032 LD="${LD-ld} -m elf_i386_fbsd"
7035 LD="${LD-ld} -m elf_i386"
7037 ppc64-*linux*|powerpc64-*linux*)
7038 LD="${LD-ld} -m elf32ppclinux"
7041 LD="${LD-ld} -m elf_s390"
7044 LD="${LD-ld} -m elf32_sparc"
7050 x86_64-*kfreebsd*-gnu)
7051 LD="${LD-ld} -m elf_x86_64_fbsd"
7054 LD="${LD-ld} -m elf_x86_64"
7056 ppc*-*linux*|powerpc*-*linux*)
7057 LD="${LD-ld} -m elf64ppc"
7060 LD="${LD-ld} -m elf64_s390"
7063 LD="${LD-ld} -m elf64_sparc"
7073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7074 SAVE_CFLAGS="$CFLAGS"
7075 CFLAGS="$CFLAGS -belf"
7076 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7077 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7078 if test "${lt_cv_cc_needs_belf+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 ac_cpp='$CPP $CPPFLAGS'
7083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7087 cat >conftest.$ac_ext <<_ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7102 rm -f conftest.$ac_objext conftest$ac_exeext
7103 if { (ac_try="$ac_link"
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109 (eval "$ac_link") 2>conftest.er1
7111 grep -v '^ *+' conftest.er1 >conftest.err
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } && {
7116 test -z "$ac_c_werror_flag" ||
7117 test ! -s conftest.err
7118 } && test -s conftest$ac_exeext &&
7119 $as_test_x conftest$ac_exeext; then
7120 lt_cv_cc_needs_belf=yes
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 lt_cv_cc_needs_belf=no
7128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7129 conftest$ac_exeext conftest.$ac_ext
7131 ac_cpp='$CPP $CPPFLAGS'
7132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7137 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7138 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7139 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7140 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7141 CFLAGS="$SAVE_CFLAGS"
7145 # Find out which ABI we are using.
7146 echo 'int i;' > conftest.$ac_ext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148 (eval $ac_compile) 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; then
7152 case `/usr/bin/file conftest.o` in
7154 case $lt_cv_prog_gnu_ld in
7155 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7157 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7171 need_locks="$enable_libtool_lock"
7174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7184 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7185 inttypes.h stdint.h unistd.h
7187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7201 #include <$ac_header>
7203 rm -f conftest.$ac_objext
7204 if { (ac_try="$ac_compile"
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 eval "$as_ac_Header=yes"
7222 echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 eval "$as_ac_Header=no"
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 ac_res=`eval echo '${'$as_ac_Header'}'`
7231 { echo "$as_me:$LINENO: result: $ac_res" >&5
7232 echo "${ECHO_T}$ac_res" >&6; }
7233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7234 cat >>confdefs.h <<_ACEOF
7235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7244 for ac_header in dlfcn.h
7246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_res=`eval echo '${'$as_ac_Header'}'`
7254 { echo "$as_me:$LINENO: result: $ac_res" >&5
7255 echo "${ECHO_T}$ac_res" >&6; }
7257 # Is the header compilable?
7258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 $ac_includes_default
7267 #include <$ac_header>
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_compile") 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && {
7283 test -z "$ac_c_werror_flag" ||
7284 test ! -s conftest.err
7285 } && test -s conftest.$ac_objext; then
7286 ac_header_compiler=yes
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 ac_header_compiler=no
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7296 echo "${ECHO_T}$ac_header_compiler" >&6; }
7298 # Is the header present?
7299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <$ac_header>
7309 if { (ac_try="$ac_cpp conftest.$ac_ext"
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } >/dev/null && {
7322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7325 ac_header_preproc=yes
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 ac_header_preproc=no
7333 rm -f conftest.err conftest.$ac_ext
7334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7335 echo "${ECHO_T}$ac_header_preproc" >&6; }
7337 # So? What about this header?
7338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7344 ac_header_preproc=yes
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 eval "$as_ac_Header=\$ac_header_preproc"
7369 ac_res=`eval echo '${'$as_ac_Header'}'`
7370 { echo "$as_me:$LINENO: result: $ac_res" >&5
7371 echo "${ECHO_T}$ac_res" >&6; }
7374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7375 cat >>confdefs.h <<_ACEOF
7376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7386 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7387 (test "X$CXX" != "Xg++"))) ; then
7389 ac_cpp='$CXXCPP $CPPFLAGS'
7390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7393 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7394 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7395 if test -z "$CXXCPP"; then
7396 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 # Double quotes because CXXCPP needs to be expanded
7400 for CXXCPP in "$CXX -E" "/lib/cpp"
7403 for ac_cxx_preproc_warn_flag in '' yes
7405 # Use a header file that comes with gcc, so configuring glibc
7406 # with a fresh cross-compiler works.
7407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7408 # <limits.h> exists even on freestanding compilers.
7409 # On the NeXT, cc -E runs the code through the compiler's parser,
7410 # not just through cpp. "Syntax error" is here to catch this case.
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7418 # include <limits.h>
7420 # include <assert.h>
7424 if { (ac_try="$ac_cpp conftest.$ac_ext"
7426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427 *) ac_try_echo=$ac_try;;
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7432 grep -v '^ *+' conftest.er1 >conftest.err
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } >/dev/null && {
7437 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7438 test ! -s conftest.err
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 # Broken: fails on valid input.
7449 rm -f conftest.err conftest.$ac_ext
7451 # OK, works on sane cases. Now check whether nonexistent headers
7452 # can be detected and how.
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <ac_nonexistent.h>
7461 if { (ac_try="$ac_cpp conftest.$ac_ext"
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1 >conftest.err
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } >/dev/null && {
7474 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7475 test ! -s conftest.err
7477 # Broken: success on invalid input.
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 # Passes both tests.
7488 rm -f conftest.err conftest.$ac_ext
7491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492 rm -f conftest.err conftest.$ac_ext
7493 if $ac_preproc_ok; then
7498 ac_cv_prog_CXXCPP=$CXXCPP
7501 CXXCPP=$ac_cv_prog_CXXCPP
7503 ac_cv_prog_CXXCPP=$CXXCPP
7505 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7506 echo "${ECHO_T}$CXXCPP" >&6; }
7508 for ac_cxx_preproc_warn_flag in '' yes
7510 # Use a header file that comes with gcc, so configuring glibc
7511 # with a fresh cross-compiler works.
7512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513 # <limits.h> exists even on freestanding compilers.
7514 # On the NeXT, cc -E runs the code through the compiler's parser,
7515 # not just through cpp. "Syntax error" is here to catch this case.
7516 cat >conftest.$ac_ext <<_ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7523 # include <limits.h>
7525 # include <assert.h>
7529 if { (ac_try="$ac_cpp conftest.$ac_ext"
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } >/dev/null && {
7542 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7543 test ! -s conftest.err
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 # Broken: fails on valid input.
7554 rm -f conftest.err conftest.$ac_ext
7556 # OK, works on sane cases. Now check whether nonexistent headers
7557 # can be detected and how.
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 #include <ac_nonexistent.h>
7566 if { (ac_try="$ac_cpp conftest.$ac_ext"
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } >/dev/null && {
7579 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7580 test ! -s conftest.err
7582 # Broken: success on invalid input.
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 # Passes both tests.
7593 rm -f conftest.err conftest.$ac_ext
7596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7597 rm -f conftest.err conftest.$ac_ext
7598 if $ac_preproc_ok; then
7601 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7602 See \`config.log' for more details." >&5
7603 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7604 See \`config.log' for more details." >&2;}
7605 { (exit 1); exit 1; }; }
7609 ac_cpp='$CXXCPP $CPPFLAGS'
7610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7618 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7619 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7621 if test -n "$ac_tool_prefix"; then
7622 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
7624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_prog_F77+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 if test -n "$F77"; then
7632 ac_cv_prog_F77="$F77" # Let the user override the test.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 if test -n "$F77"; then
7653 { echo "$as_me:$LINENO: result: $F77" >&5
7654 echo "${ECHO_T}$F77" >&6; }
7656 { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7661 test -n "$F77" && break
7664 if test -z "$F77"; then
7666 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
7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 if test -n "$ac_ct_F77"; then
7676 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_prog_ac_ct_F77="$ac_prog"
7686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7696 if test -n "$ac_ct_F77"; then
7697 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7698 echo "${ECHO_T}$ac_ct_F77" >&6; }
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 test -n "$ac_ct_F77" && break
7708 if test "x$ac_ct_F77" = x; then
7711 case $cross_compiling:$ac_tool_warned in
7713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7714 whose name does not start with the host triplet. If you think this
7715 configuration is useful to you, please write to autoconf@gnu.org." >&5
7716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7717 whose name does not start with the host triplet. If you think this
7718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7719 ac_tool_warned=yes ;;
7726 # Provide some information about the compiler.
7727 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7728 ac_compiler=`set X $ac_compile; echo $2`
7729 { (ac_try="$ac_compiler --version >&5"
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compiler --version >&5") 2>&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }
7739 { (ac_try="$ac_compiler -v >&5"
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_compiler -v >&5") 2>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }
7749 { (ac_try="$ac_compiler -V >&5"
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_compiler -V >&5") 2>&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }
7761 # If we don't use `.F' as extension, the preprocessor is not run on the
7762 # input file. (Note that this only needs to work for GNU compilers.)
7765 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7766 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7767 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 cat >conftest.$ac_ext <<_ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (ac_try="$ac_compile"
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_compile") 2>conftest.er1
7787 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && {
7792 test -z "$ac_f77_werror_flag" ||
7793 test ! -s conftest.err
7794 } && test -s conftest.$ac_objext; then
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7807 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7808 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7810 ac_test_FFLAGS=${FFLAGS+set}
7811 ac_save_FFLAGS=$FFLAGS
7813 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7814 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7815 if test "${ac_cv_prog_f77_g+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 cat >conftest.$ac_ext <<_ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (ac_try="$ac_compile"
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1 >conftest.err
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_f77_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest.$ac_objext; then
7841 ac_cv_prog_f77_g=yes
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7853 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7854 if test "$ac_test_FFLAGS" = set; then
7855 FFLAGS=$ac_save_FFLAGS
7856 elif test $ac_cv_prog_f77_g = yes; then
7857 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7863 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7870 G77=`test $ac_compiler_gnu = yes && echo yes`
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7880 # find the maximum length of command line arguments
7881 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7882 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7883 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 # On DJGPP, this test can blow up pretty badly due to problems in libc
7892 # (any single argument exceeding 2000 bytes causes a buffer overrun
7893 # during glob expansion). Even if it were fixed, the result of this
7894 # check would be larger than it should be.
7895 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7899 # Under GNU Hurd, this test is not required because there is
7900 # no limit to the length of command line arguments.
7901 # Libtool will interpret -1 as no limit whatsoever
7902 lt_cv_sys_max_cmd_len=-1;
7906 # On Win9x/ME, this test blows up -- it succeeds, but takes
7907 # about 5 minutes as the teststring grows exponentially.
7908 # Worse, since 9x/ME are not pre-emptively multitasking,
7909 # you end up with a "frozen" computer, even though with patience
7910 # the test eventually succeeds (with a max line length of 256k).
7911 # Instead, let's just punt: use the minimum linelength reported by
7912 # all of the supported platforms: 8192 (on NT/2K/XP).
7913 lt_cv_sys_max_cmd_len=8192;
7917 # On AmigaOS with pdksh, this test takes hours, literally.
7918 # So we just punt and use a minimum line length of 8192.
7919 lt_cv_sys_max_cmd_len=8192;
7922 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7923 # This has been around since 386BSD, at least. Likely further.
7924 if test -x /sbin/sysctl; then
7925 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7926 elif test -x /usr/sbin/sysctl; then
7927 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7929 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7931 # And add a safety zone
7932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7937 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7938 lt_cv_sys_max_cmd_len=196608
7942 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7943 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7944 # nice to cause kernel panics so lets avoid the loop below.
7945 # First set a reasonable default.
7946 lt_cv_sys_max_cmd_len=16384
7948 if test -x /sbin/sysconfig; then
7949 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7950 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7955 lt_cv_sys_max_cmd_len=102400
7957 sysv5* | sco5v6* | sysv4.2uw2*)
7958 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7959 if test -n "$kargmax"; then
7960 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7962 lt_cv_sys_max_cmd_len=32768
7966 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7967 if test -n "$lt_cv_sys_max_cmd_len"; then
7968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7971 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7972 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7973 = "XX$teststring") >/dev/null 2>&1 &&
7974 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7975 lt_cv_sys_max_cmd_len=$new_result &&
7976 test $i != 17 # 1/2 MB should be enough
7979 teststring=$teststring$teststring
7982 # Add a significant safety factor because C++ compilers can tack on massive
7983 # amounts of additional arguments before passing them to the linker.
7984 # It appears as though 1/2 is a usable value.
7985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7992 if test -n $lt_cv_sys_max_cmd_len ; then
7993 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7994 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7996 { echo "$as_me:$LINENO: result: none" >&5
7997 echo "${ECHO_T}none" >&6; }
8004 # Check for command to grab the raw symbol name followed by C symbol from nm.
8005 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8006 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8007 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 # These are sane defaults that work on at least a few old systems.
8012 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8014 # Character class describing NM global symbol codes.
8015 symcode='[BCDEGRST]'
8017 # Regexp to match symbols that can be accessed directly from C.
8018 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8020 # Transform an extracted symbol line into a proper C declaration
8021 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8023 # Transform an extracted symbol line into symbol name and symbol address
8024 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'"
8026 # Define system-specific variables.
8031 cygwin* | mingw* | pw32*)
8032 symcode='[ABCDGISTW]'
8034 hpux*) # Its linker distinguishes data from code symbols
8035 if test "$host_cpu" = ia64; then
8036 symcode='[ABCDEGRST]'
8038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8039 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'"
8041 linux* | k*bsd*-gnu)
8042 if test "$host_cpu" = ia64; then
8043 symcode='[ABCDGIRSTW]'
8044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8045 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'"
8049 symcode='[BCDEGRST]'
8052 symcode='[BCDEGQRST]'
8063 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8071 # Handle CRLF in mingw tool chain
8075 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8079 # If we're using GNU nm, then use its standard symbol codes.
8080 case `$NM -V 2>&1` in
8081 *GNU* | *'with BFD'*)
8082 symcode='[ABCDGIRSTW]' ;;
8085 # Try without a prefix undercore, then with it.
8086 for ac_symprfx in "" "_"; do
8088 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8089 symxfrm="\\1 $ac_symprfx\\2 \\2"
8091 # Write the raw and C identifiers.
8092 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8094 # Check to see that the pipe works correctly.
8098 cat > conftest.$ac_ext <<EOF
8103 void nm_test_func(){}
8107 int main(){nm_test_var='a';nm_test_func();return(0);}
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; then
8115 # Now try to grab the symbols.
8117 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8118 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && test -s "$nlist"; then
8122 # Try sorting and uniquifying the output.
8123 if sort "$nlist" | uniq > "$nlist"T; then
8124 mv -f "$nlist"T "$nlist"
8129 # Make sure that we snagged all the symbols we need.
8130 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8131 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8132 cat <<EOF > conftest.$ac_ext
8138 # Now generate the symbol file.
8139 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8141 cat <<EOF >> conftest.$ac_ext
8142 #if defined (__STDC__) && __STDC__
8143 # define lt_ptr_t void *
8145 # define lt_ptr_t char *
8149 /* The mapping between symbol names and symbols. */
8154 lt_preloaded_symbols[] =
8157 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8158 cat <<\EOF >> conftest.$ac_ext
8166 # Now try linking the two files.
8167 mv conftest.$ac_objext conftstm.$ac_objext
8168 lt_save_LIBS="$LIBS"
8169 lt_save_CFLAGS="$CFLAGS"
8170 LIBS="conftstm.$ac_objext"
8171 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8179 LIBS="$lt_save_LIBS"
8180 CFLAGS="$lt_save_CFLAGS"
8182 echo "cannot find nm_test_func in $nlist" >&5
8185 echo "cannot find nm_test_var in $nlist" >&5
8188 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8191 echo "$progname: failed program was:" >&5
8192 cat conftest.$ac_ext >&5
8194 rm -rf conftest* conftst*
8196 # Do not use the global_symbol_pipe unless it works.
8197 if test "$pipe_works" = yes; then
8200 lt_cv_sys_global_symbol_pipe=
8206 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8207 lt_cv_sys_global_symbol_to_cdecl=
8209 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8210 { echo "$as_me:$LINENO: result: failed" >&5
8211 echo "${ECHO_T}failed" >&6; }
8213 { echo "$as_me:$LINENO: result: ok" >&5
8214 echo "${ECHO_T}ok" >&6; }
8217 { echo "$as_me:$LINENO: checking for objdir" >&5
8218 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8219 if test "${lt_cv_objdir+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 rm -f .libs 2>/dev/null
8223 mkdir .libs 2>/dev/null
8224 if test -d .libs; then
8227 # MS-DOS does not allow filenames that begin with a dot.
8230 rmdir .libs 2>/dev/null
8232 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8233 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8234 objdir=$lt_cv_objdir
8242 # AIX sometimes has problems with the GCC collect2 program. For some
8243 # reason, if we set the COLLECT_NAMES environment variable, the problems
8244 # vanish in a puff of smoke.
8245 if test "X${COLLECT_NAMES+set}" != Xset; then
8247 export COLLECT_NAMES
8252 # Sed substitution that helps us do robust quoting. It backslashifies
8253 # metacharacters that are still active within double-quoted strings.
8254 Xsed='sed -e 1s/^X//'
8255 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8257 # Same as above, but do not quote variable references.
8258 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8260 # Sed substitution to delay expansion of an escaped shell variable in a
8261 # double_quote_subst'ed string.
8262 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8264 # Sed substitution to avoid accidental globbing in evaled expressions
8265 no_glob_subst='s/\*/\\\*/g'
8271 default_ofile=libtool
8272 can_build_shared=yes
8274 # All known linkers require a `.a' archive for static linking (except MSVC,
8275 # which needs '.lib').
8277 ltmain="$ac_aux_dir/ltmain.sh"
8278 ofile="$default_ofile"
8279 with_gnu_ld="$lt_cv_prog_gnu_ld"
8281 if test -n "$ac_tool_prefix"; then
8282 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8283 set dummy ${ac_tool_prefix}ar; ac_word=$2
8284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8286 if test "${ac_cv_prog_AR+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 if test -n "$AR"; then
8290 ac_cv_prog_AR="$AR" # Let the user override the test.
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_AR="${ac_tool_prefix}ar"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 if test -n "$AR"; then
8311 { echo "$as_me:$LINENO: result: $AR" >&5
8312 echo "${ECHO_T}$AR" >&6; }
8314 { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8320 if test -z "$ac_cv_prog_AR"; then
8322 # Extract the first word of "ar", so it can be a program name with args.
8323 set dummy ar; ac_word=$2
8324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8326 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 if test -n "$ac_ct_AR"; then
8330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339 ac_cv_prog_ac_ct_AR="ar"
8340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8350 if test -n "$ac_ct_AR"; then
8351 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8352 echo "${ECHO_T}$ac_ct_AR" >&6; }
8354 { echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6; }
8358 if test "x$ac_ct_AR" = x; then
8361 case $cross_compiling:$ac_tool_warned in
8363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8364 whose name does not start with the host triplet. If you think this
8365 configuration is useful to you, please write to autoconf@gnu.org." >&5
8366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8367 whose name does not start with the host triplet. If you think this
8368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8369 ac_tool_warned=yes ;;
8377 if test -n "$ac_tool_prefix"; then
8378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8382 if test "${ac_cv_prog_RANLIB+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 if test -n "$RANLIB"; then
8386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 RANLIB=$ac_cv_prog_RANLIB
8406 if test -n "$RANLIB"; then
8407 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8408 echo "${ECHO_T}$RANLIB" >&6; }
8410 { echo "$as_me:$LINENO: result: no" >&5
8411 echo "${ECHO_T}no" >&6; }
8416 if test -z "$ac_cv_prog_RANLIB"; then
8417 ac_ct_RANLIB=$RANLIB
8418 # Extract the first word of "ranlib", so it can be a program name with args.
8419 set dummy ranlib; ac_word=$2
8420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8422 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 if test -n "$ac_ct_RANLIB"; then
8426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 test -z "$as_dir" && as_dir=.
8433 for ac_exec_ext in '' $ac_executable_extensions; do
8434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8435 ac_cv_prog_ac_ct_RANLIB="ranlib"
8436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8446 if test -n "$ac_ct_RANLIB"; then
8447 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8448 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8450 { echo "$as_me:$LINENO: result: no" >&5
8451 echo "${ECHO_T}no" >&6; }
8454 if test "x$ac_ct_RANLIB" = x; then
8457 case $cross_compiling:$ac_tool_warned in
8459 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8460 whose name does not start with the host triplet. If you think this
8461 configuration is useful to you, please write to autoconf@gnu.org." >&5
8462 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8463 whose name does not start with the host triplet. If you think this
8464 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8465 ac_tool_warned=yes ;;
8467 RANLIB=$ac_ct_RANLIB
8470 RANLIB="$ac_cv_prog_RANLIB"
8473 if test -n "$ac_tool_prefix"; then
8474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8475 set dummy ${ac_tool_prefix}strip; ac_word=$2
8476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8478 if test "${ac_cv_prog_STRIP+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 if test -n "$STRIP"; then
8482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 STRIP=$ac_cv_prog_STRIP
8502 if test -n "$STRIP"; then
8503 { echo "$as_me:$LINENO: result: $STRIP" >&5
8504 echo "${ECHO_T}$STRIP" >&6; }
8506 { echo "$as_me:$LINENO: result: no" >&5
8507 echo "${ECHO_T}no" >&6; }
8512 if test -z "$ac_cv_prog_STRIP"; then
8514 # Extract the first word of "strip", so it can be a program name with args.
8515 set dummy strip; ac_word=$2
8516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8518 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 if test -n "$ac_ct_STRIP"; then
8522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_prog_ac_ct_STRIP="strip"
8532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8542 if test -n "$ac_ct_STRIP"; then
8543 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8544 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8546 { echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6; }
8550 if test "x$ac_ct_STRIP" = x; then
8553 case $cross_compiling:$ac_tool_warned in
8555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8556 whose name does not start with the host triplet. If you think this
8557 configuration is useful to you, please write to autoconf@gnu.org." >&5
8558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8559 whose name does not start with the host triplet. If you think this
8560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8561 ac_tool_warned=yes ;;
8566 STRIP="$ac_cv_prog_STRIP"
8571 old_CFLAGS="$CFLAGS"
8573 # Set sane defaults for various variables
8574 test -z "$AR" && AR=ar
8575 test -z "$AR_FLAGS" && AR_FLAGS=cru
8576 test -z "$AS" && AS=as
8577 test -z "$CC" && CC=cc
8578 test -z "$LTCC" && LTCC=$CC
8579 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8580 test -z "$DLLTOOL" && DLLTOOL=dlltool
8581 test -z "$LD" && LD=ld
8582 test -z "$LN_S" && LN_S="ln -s"
8583 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8584 test -z "$NM" && NM=nm
8585 test -z "$SED" && SED=sed
8586 test -z "$OBJDUMP" && OBJDUMP=objdump
8587 test -z "$RANLIB" && RANLIB=:
8588 test -z "$STRIP" && STRIP=:
8589 test -z "$ac_objext" && ac_objext=o
8591 # Determine commands to create old-style static archives.
8592 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8593 old_postinstall_cmds='chmod 644 $oldlib'
8594 old_postuninstall_cmds=
8596 if test -n "$RANLIB"; then
8599 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8602 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8605 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8608 for cc_temp in $compiler""; do
8610 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8611 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8616 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8619 # Only perform the check for file, if the check method requires it
8620 case $deplibs_check_method in
8622 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8623 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8624 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8625 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8633 lt_save_MAGIC_CMD="$MAGIC_CMD"
8634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8636 for ac_dir in $ac_dummy; do
8638 test -z "$ac_dir" && ac_dir=.
8639 if test -f $ac_dir/${ac_tool_prefix}file; then
8640 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8641 if test -n "$file_magic_test_file"; then
8642 case $deplibs_check_method in
8644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8647 $EGREP "$file_magic_regex" > /dev/null; then
8652 *** Warning: the command libtool uses to detect shared libraries,
8653 *** $file_magic_cmd, produces output that libtool cannot recognize.
8654 *** The result is that libtool may fail to recognize shared libraries
8655 *** as such. This will affect the creation of libtool libraries that
8656 *** depend on shared libraries, but programs linked with such libtool
8657 *** libraries will work regardless of this problem. Nevertheless, you
8658 *** may want to report the problem to your system manager and/or to
8659 *** bug-libtool@gnu.org
8669 MAGIC_CMD="$lt_save_MAGIC_CMD"
8674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 if test -n "$MAGIC_CMD"; then
8676 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8677 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8679 { echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6; }
8683 if test -z "$lt_cv_path_MAGIC_CMD"; then
8684 if test -n "$ac_tool_prefix"; then
8685 { echo "$as_me:$LINENO: checking for file" >&5
8686 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8687 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8695 lt_save_MAGIC_CMD="$MAGIC_CMD"
8696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8698 for ac_dir in $ac_dummy; do
8700 test -z "$ac_dir" && ac_dir=.
8701 if test -f $ac_dir/file; then
8702 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8703 if test -n "$file_magic_test_file"; then
8704 case $deplibs_check_method in
8706 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8709 $EGREP "$file_magic_regex" > /dev/null; then
8714 *** Warning: the command libtool uses to detect shared libraries,
8715 *** $file_magic_cmd, produces output that libtool cannot recognize.
8716 *** The result is that libtool may fail to recognize shared libraries
8717 *** as such. This will affect the creation of libtool libraries that
8718 *** depend on shared libraries, but programs linked with such libtool
8719 *** libraries will work regardless of this problem. Nevertheless, you
8720 *** may want to report the problem to your system manager and/or to
8721 *** bug-libtool@gnu.org
8731 MAGIC_CMD="$lt_save_MAGIC_CMD"
8736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8737 if test -n "$MAGIC_CMD"; then
8738 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8739 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8741 { echo "$as_me:$LINENO: result: no" >&5
8742 echo "${ECHO_T}no" >&6; }
8756 rhapsody* | darwin*)
8757 if test -n "$ac_tool_prefix"; then
8758 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8759 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8762 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 if test -n "$DSYMUTIL"; then
8766 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8775 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8786 if test -n "$DSYMUTIL"; then
8787 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8788 echo "${ECHO_T}$DSYMUTIL" >&6; }
8790 { echo "$as_me:$LINENO: result: no" >&5
8791 echo "${ECHO_T}no" >&6; }
8796 if test -z "$ac_cv_prog_DSYMUTIL"; then
8797 ac_ct_DSYMUTIL=$DSYMUTIL
8798 # Extract the first word of "dsymutil", so it can be a program name with args.
8799 set dummy dsymutil; ac_word=$2
8800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8802 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 if test -n "$ac_ct_DSYMUTIL"; then
8806 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8826 if test -n "$ac_ct_DSYMUTIL"; then
8827 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8828 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8830 { echo "$as_me:$LINENO: result: no" >&5
8831 echo "${ECHO_T}no" >&6; }
8834 if test "x$ac_ct_DSYMUTIL" = x; then
8837 case $cross_compiling:$ac_tool_warned in
8839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8840 whose name does not start with the host triplet. If you think this
8841 configuration is useful to you, please write to autoconf@gnu.org." >&5
8842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8843 whose name does not start with the host triplet. If you think this
8844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8845 ac_tool_warned=yes ;;
8847 DSYMUTIL=$ac_ct_DSYMUTIL
8850 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8853 if test -n "$ac_tool_prefix"; then
8854 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8855 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8858 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 if test -n "$NMEDIT"; then
8862 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 NMEDIT=$ac_cv_prog_NMEDIT
8882 if test -n "$NMEDIT"; then
8883 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8884 echo "${ECHO_T}$NMEDIT" >&6; }
8886 { echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6; }
8892 if test -z "$ac_cv_prog_NMEDIT"; then
8893 ac_ct_NMEDIT=$NMEDIT
8894 # Extract the first word of "nmedit", so it can be a program name with args.
8895 set dummy nmedit; ac_word=$2
8896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8898 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 if test -n "$ac_ct_NMEDIT"; then
8902 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8911 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8922 if test -n "$ac_ct_NMEDIT"; then
8923 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8924 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8926 { echo "$as_me:$LINENO: result: no" >&5
8927 echo "${ECHO_T}no" >&6; }
8930 if test "x$ac_ct_NMEDIT" = x; then
8933 case $cross_compiling:$ac_tool_warned in
8935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8936 whose name does not start with the host triplet. If you think this
8937 configuration is useful to you, please write to autoconf@gnu.org." >&5
8938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8939 whose name does not start with the host triplet. If you think this
8940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8941 ac_tool_warned=yes ;;
8943 NMEDIT=$ac_ct_NMEDIT
8946 NMEDIT="$ac_cv_prog_NMEDIT"
8950 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8951 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8952 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 lt_cv_apple_cc_single_mod=no
8956 if test -z "${LT_MULTI_MODULE}"; then
8957 # By default we will add the -single_module flag. You can override
8958 # by either setting the environment variable LT_MULTI_MODULE
8959 # non-empty at configure time, or by adding -multi_module to the
8961 echo "int foo(void){return 1;}" > conftest.c
8962 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8963 -dynamiclib ${wl}-single_module conftest.c
8964 if test -f libconftest.dylib; then
8965 lt_cv_apple_cc_single_mod=yes
8966 rm -rf libconftest.dylib*
8971 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8972 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8973 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8974 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8975 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 lt_cv_ld_exported_symbols_list=no
8979 save_LDFLAGS=$LDFLAGS
8980 echo "_main" > conftest.sym
8981 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (ac_try="$ac_link"
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_link") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1 >conftest.err
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest$ac_exeext &&
9014 $as_test_x conftest$ac_exeext; then
9015 lt_cv_ld_exported_symbols_list=yes
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 lt_cv_ld_exported_symbols_list=no
9023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9024 conftest$ac_exeext conftest.$ac_ext
9025 LDFLAGS="$save_LDFLAGS"
9028 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9029 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
9031 rhapsody* | darwin1.[0123])
9032 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9034 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9036 # if running on 10.5 or later, the deployment target defaults
9037 # to the OS version, if on x86, and 10.4, the deployment
9038 # target defaults to 10.4. Don't you love it?
9039 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9040 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9041 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9043 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9045 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9049 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9050 _lt_dar_single_mod='$single_module'
9052 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9053 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9055 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9057 if test "$DSYMUTIL" != ":"; then
9058 _lt_dsymutil="~$DSYMUTIL \$lib || :"
9069 # Check whether --enable-libtool-lock was given.
9070 if test "${enable_libtool_lock+set}" = set; then
9071 enableval=$enable_libtool_lock;
9074 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9077 # Check whether --with-pic was given.
9078 if test "${with_pic+set}" = set; then
9079 withval=$with_pic; pic_mode="$withval"
9084 test -z "$pic_mode" && pic_mode=default
9086 # Use C for the default configuration in the libtool script
9090 ac_cpp='$CPP $CPPFLAGS'
9091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9096 # Source file extension for C test sources.
9099 # Object file extension for compiled C test sources.
9103 # Code to be used in simple compile tests
9104 lt_simple_compile_test_code="int some_variable = 0;"
9106 # Code to be used in simple link tests
9107 lt_simple_link_test_code='int main(){return(0);}'
9110 # If no C compiler was specified, use CC.
9113 # If no C compiler flags were specified, use CFLAGS.
9114 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9116 # Allow CC to be a program name with arguments.
9120 # save warnings/boilerplate of simple test code
9121 ac_outfile=conftest.$ac_objext
9122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9124 _lt_compiler_boilerplate=`cat conftest.err`
9127 ac_outfile=conftest.$ac_objext
9128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9130 _lt_linker_boilerplate=`cat conftest.err`
9135 lt_prog_compiler_no_builtin_flag=
9137 if test "$GCC" = yes; then
9138 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9141 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9142 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9143 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 lt_cv_prog_compiler_rtti_exceptions=no
9147 ac_outfile=conftest.$ac_objext
9148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9149 lt_compiler_flag="-fno-rtti -fno-exceptions"
9150 # Insert the option either (1) after the last *FLAGS variable, or
9151 # (2) before a word containing "conftest.", or (3) at the end.
9152 # Note that $ac_compile itself does not contain backslashes and begins
9153 # with a dollar sign (not a hyphen), so the echo should work correctly.
9154 # The option is referenced via a variable to avoid confusing sed.
9155 lt_compile=`echo "$ac_compile" | $SED \
9156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9158 -e 's:$: $lt_compiler_flag:'`
9159 (eval echo "\"\$as_me:9159: $lt_compile\"" >&5)
9160 (eval "$lt_compile" 2>conftest.err)
9162 cat conftest.err >&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 if (exit $ac_status) && test -s "$ac_outfile"; then
9165 # The compiler can only warn and ignore the option if not recognized
9166 # So say no if there are warnings other than the usual output.
9167 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9169 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9170 lt_cv_prog_compiler_rtti_exceptions=yes
9176 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9177 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9179 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9180 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9187 lt_prog_compiler_wl=
9188 lt_prog_compiler_pic=
9189 lt_prog_compiler_static=
9191 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9192 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9194 if test "$GCC" = yes; then
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_static='-static'
9200 # All AIX code is PIC.
9201 if test "$host_cpu" = ia64; then
9202 # AIX 5 now supports IA64 processor
9203 lt_prog_compiler_static='-Bstatic'
9208 # FIXME: we need at least 68020 code to build shared libraries, but
9209 # adding the `-m68020' flag to GCC prevents building anything better,
9211 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9214 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9215 # PIC is the default for these OSes.
9218 mingw* | cygwin* | pw32* | os2*)
9219 # This hack is so that the source file can tell whether it is being
9220 # built for inclusion in a dll (and should export symbols for example).
9221 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9222 # (--disable-auto-import) libraries
9223 lt_prog_compiler_pic='-DDLL_EXPORT'
9226 darwin* | rhapsody*)
9227 # PIC is the default on this platform
9228 # Common symbols not allowed in MH_DYLIB files
9229 lt_prog_compiler_pic='-fno-common'
9233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9234 # Instead, we relocate shared libraries at runtime.
9238 # Just because we use GCC doesn't mean we suddenly get shared libraries
9239 # on systems that don't support them.
9240 lt_prog_compiler_can_build_shared=no
9245 if test -d /usr/nec; then
9246 lt_prog_compiler_pic=-Kconform_pic
9251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9258 lt_prog_compiler_pic='-fPIC'
9264 lt_prog_compiler_pic='-fPIC'
9268 # PORTME Check for flag to pass linker flags through the system compiler.
9271 lt_prog_compiler_wl='-Wl,'
9272 if test "$host_cpu" = ia64; then
9273 # AIX 5 now supports IA64 processor
9274 lt_prog_compiler_static='-Bstatic'
9276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9280 # PIC is the default on this platform
9281 # Common symbols not allowed in MH_DYLIB files
9282 case $cc_basename in
9284 lt_prog_compiler_pic='-qnocommon'
9285 lt_prog_compiler_wl='-Wl,'
9290 mingw* | cygwin* | pw32* | os2*)
9291 # This hack is so that the source file can tell whether it is being
9292 # built for inclusion in a dll (and should export symbols for example).
9293 lt_prog_compiler_pic='-DDLL_EXPORT'
9296 hpux9* | hpux10* | hpux11*)
9297 lt_prog_compiler_wl='-Wl,'
9298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9305 lt_prog_compiler_pic='+Z'
9308 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9309 lt_prog_compiler_static='${wl}-a ${wl}archive'
9312 irix5* | irix6* | nonstopux*)
9313 lt_prog_compiler_wl='-Wl,'
9314 # PIC (with -KPIC) is the default.
9315 lt_prog_compiler_static='-non_shared'
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9323 linux* | k*bsd*-gnu)
9324 case $cc_basename in
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-static'
9330 pgcc* | pgf77* | pgf90* | pgf95*)
9331 # Portland Group compilers (*not* the Pentium gcc compiler,
9332 # which looks to be a dead project)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-fpic'
9335 lt_prog_compiler_static='-Bstatic'
9338 lt_prog_compiler_wl='-Wl,'
9339 # All Alpha code is PIC.
9340 lt_prog_compiler_static='-non_shared'
9343 case `$CC -V 2>&1 | sed 5q` in
9346 lt_prog_compiler_pic='-KPIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 lt_prog_compiler_wl='-Wl,'
9351 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9352 lt_prog_compiler_pic='-KPIC'
9353 lt_prog_compiler_static='-Bstatic'
9354 lt_prog_compiler_wl=''
9361 osf3* | osf4* | osf5*)
9362 lt_prog_compiler_wl='-Wl,'
9363 # All OSF/1 code is PIC.
9364 lt_prog_compiler_static='-non_shared'
9368 lt_prog_compiler_static='-non_shared'
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 case $cc_basename in
9376 lt_prog_compiler_wl='-Qoption ld ';;
9378 lt_prog_compiler_wl='-Wl,';;
9383 lt_prog_compiler_wl='-Qoption ld '
9384 lt_prog_compiler_pic='-PIC'
9385 lt_prog_compiler_static='-Bstatic'
9388 sysv4 | sysv4.2uw2* | sysv4.3*)
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-KPIC'
9391 lt_prog_compiler_static='-Bstatic'
9395 if test -d /usr/nec ;then
9396 lt_prog_compiler_pic='-Kconform_pic'
9397 lt_prog_compiler_static='-Bstatic'
9401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9402 lt_prog_compiler_wl='-Wl,'
9403 lt_prog_compiler_pic='-KPIC'
9404 lt_prog_compiler_static='-Bstatic'
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_can_build_shared=no
9413 lt_prog_compiler_pic='-pic'
9414 lt_prog_compiler_static='-Bstatic'
9418 lt_prog_compiler_can_build_shared=no
9423 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9424 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9427 # Check to make sure the PIC flag actually works.
9429 if test -n "$lt_prog_compiler_pic"; then
9431 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9432 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9433 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 lt_cv_prog_compiler_pic_works=no
9437 ac_outfile=conftest.$ac_objext
9438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9439 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9440 # Insert the option either (1) after the last *FLAGS variable, or
9441 # (2) before a word containing "conftest.", or (3) at the end.
9442 # Note that $ac_compile itself does not contain backslashes and begins
9443 # with a dollar sign (not a hyphen), so the echo should work correctly.
9444 # The option is referenced via a variable to avoid confusing sed.
9445 lt_compile=`echo "$ac_compile" | $SED \
9446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9448 -e 's:$: $lt_compiler_flag:'`
9449 (eval echo "\"\$as_me:9449: $lt_compile\"" >&5)
9450 (eval "$lt_compile" 2>conftest.err)
9452 cat conftest.err >&5
9453 echo "$as_me:9453: \$? = $ac_status" >&5
9454 if (exit $ac_status) && test -s "$ac_outfile"; then
9455 # The compiler can only warn and ignore the option if not recognized
9456 # So say no if there are warnings other than the usual output.
9457 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9460 lt_cv_prog_compiler_pic_works=yes
9466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9467 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9469 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9470 case $lt_prog_compiler_pic in
9472 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9475 lt_prog_compiler_pic=
9476 lt_prog_compiler_can_build_shared=no
9481 # For platforms which do not support PIC, -DPIC is meaningless:
9483 lt_prog_compiler_pic=
9486 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9491 # Check to make sure the static flag actually works.
9493 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9494 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9495 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9496 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 lt_cv_prog_compiler_static_works=no
9500 save_LDFLAGS="$LDFLAGS"
9501 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9502 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9504 # The linker can only warn and ignore the option if not recognized
9505 # So say no if there are warnings
9506 if test -s conftest.err; then
9507 # Append any errors to the config.log.
9508 cat conftest.err 1>&5
9509 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9511 if diff conftest.exp conftest.er2 >/dev/null; then
9512 lt_cv_prog_compiler_static_works=yes
9515 lt_cv_prog_compiler_static_works=yes
9519 LDFLAGS="$save_LDFLAGS"
9522 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9523 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9525 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9528 lt_prog_compiler_static=
9532 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9533 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 lt_cv_prog_compiler_c_o=no
9538 $rm -r conftest 2>/dev/null
9542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9544 lt_compiler_flag="-o out/conftest2.$ac_objext"
9545 # Insert the option either (1) after the last *FLAGS variable, or
9546 # (2) before a word containing "conftest.", or (3) at the end.
9547 # Note that $ac_compile itself does not contain backslashes and begins
9548 # with a dollar sign (not a hyphen), so the echo should work correctly.
9549 lt_compile=`echo "$ac_compile" | $SED \
9550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9552 -e 's:$: $lt_compiler_flag:'`
9553 (eval echo "\"\$as_me:9553: $lt_compile\"" >&5)
9554 (eval "$lt_compile" 2>out/conftest.err)
9556 cat out/conftest.err >&5
9557 echo "$as_me:9557: \$? = $ac_status" >&5
9558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9560 # The compiler can only warn and ignore the option if not recognized
9561 # So say no if there are warnings
9562 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9565 lt_cv_prog_compiler_c_o=yes
9570 # SGI C++ compiler will create directory out/ii_files/ for
9571 # template instantiation
9572 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9573 $rm out/* && rmdir out
9579 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9580 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9583 hard_links="nottested"
9584 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9585 # do not overwrite the value of need_locks provided by the user
9586 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9587 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9592 ln conftest.a conftest.b 2>&5 || hard_links=no
9593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9594 { echo "$as_me:$LINENO: result: $hard_links" >&5
9595 echo "${ECHO_T}$hard_links" >&6; }
9596 if test "$hard_links" = no; then
9597 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9598 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9605 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9606 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9609 allow_undefined_flag=
9610 enable_shared_with_static_runtimes=no
9612 archive_expsym_cmds=
9613 old_archive_From_new_cmds=
9614 old_archive_from_expsyms_cmds=
9615 export_dynamic_flag_spec=
9616 whole_archive_flag_spec=
9617 thread_safe_flag_spec=
9618 hardcode_libdir_flag_spec=
9619 hardcode_libdir_flag_spec_ld=
9620 hardcode_libdir_separator=
9623 hardcode_shlibpath_var=unsupported
9624 link_all_deplibs=unknown
9625 hardcode_automatic=no
9628 always_export_symbols=no
9629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9630 # include_expsyms should be a list of space-separated symbols to be *always*
9631 # included in the symbol list
9633 # exclude_expsyms can be an extended regexp of symbols to exclude
9634 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9635 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9636 # as well as any symbol that contains `d'.
9637 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9639 # platforms (ab)use it in PIC code, but their linkers get confused if
9640 # the symbol is explicitly referenced. Since portable code cannot
9641 # rely on this symbol name, it's probably fine to never include it in
9642 # preloaded symbol tables.
9643 # Exclude shared library initialization/finalization symbols.
9644 extract_expsyms_cmds=
9645 # Just being paranoid about ensuring that cc_basename is set.
9646 for cc_temp in $compiler""; do
9648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9654 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9657 cygwin* | mingw* | pw32*)
9658 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9659 # When not using gcc, we currently assume that we are using
9660 # Microsoft Visual C++.
9661 if test "$GCC" != yes; then
9666 # we just hope/assume this is gcc and not c89 (= MSVC++)
9675 if test "$with_gnu_ld" = yes; then
9676 # If archive_cmds runs LD, not CC, wlarc should be empty
9679 # Set some defaults for GNU ld with shared library support. These
9680 # are reset later if shared libraries are not supported. Putting them
9681 # here allows them to be overridden if necessary.
9682 runpath_var=LD_RUN_PATH
9683 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9684 export_dynamic_flag_spec='${wl}--export-dynamic'
9685 # ancient GNU ld didn't support --whole-archive et. al.
9686 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9687 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9689 whole_archive_flag_spec=
9691 supports_anon_versioning=no
9692 case `$LD -v 2>/dev/null` in
9693 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9696 *\ 2.11.*) ;; # other 2.11 versions
9697 *) supports_anon_versioning=yes ;;
9700 # See if GNU ld supports shared libraries.
9703 # On AIX/PPC, the GNU linker is very broken
9704 if test "$host_cpu" != ia64; then
9708 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9709 *** to be unable to reliably create shared libraries on AIX.
9710 *** Therefore, libtool is disabling shared libraries support. If you
9711 *** really care for shared libraries, you may want to modify your PATH
9712 *** so that a non-GNU linker is found, and then restart.
9719 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)'
9720 hardcode_libdir_flag_spec='-L$libdir'
9721 hardcode_minus_L=yes
9723 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9724 # that the semantics of dynamic libraries on AmigaOS, at least up
9725 # to version 4, is to share data among multiple programs linked
9726 # with the same dynamic library. Since this doesn't match the
9727 # behavior of shared libraries on other platforms, we can't use
9733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9734 allow_undefined_flag=unsupported
9735 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9736 # support --undefined. This deserves some investigation. FIXME
9737 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743 cygwin* | mingw* | pw32*)
9744 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9745 # as there is no search path for DLLs.
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 allow_undefined_flag=unsupported
9748 always_export_symbols=no
9749 enable_shared_with_static_runtimes=yes
9750 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9752 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9754 # If the export-symbols file already is a .def file (1st line
9755 # is EXPORTS), use it as is; otherwise, prepend...
9756 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9757 cp $export_symbols $output_objdir/$soname.def;
9759 echo EXPORTS > $output_objdir/$soname.def;
9760 cat $export_symbols >> $output_objdir/$soname.def;
9762 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9770 hardcode_shlibpath_var=no
9771 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9772 export_dynamic_flag_spec='${wl}-E'
9773 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9774 # Instead, shared libraries are loaded at an image base (0x10000000 by
9775 # default) and relocated if they conflict, which is a slow very memory
9776 # consuming and fragmenting process. To avoid this, we pick a random,
9777 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9778 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9780 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'
9783 gnu* | linux* | k*bsd*-gnu)
9784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9786 case $cc_basename,$host_cpu in
9787 pgcc*) # Portland Group C compiler
9788 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'
9789 tmp_addflag=' $pic_flag'
9791 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9792 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'
9793 tmp_addflag=' $pic_flag -Mnomain' ;;
9794 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9795 tmp_addflag=' -i_dynamic' ;;
9796 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9797 tmp_addflag=' -i_dynamic -nofor_main' ;;
9798 ifc* | ifort*) # Intel Fortran compiler
9799 tmp_addflag=' -nofor_main' ;;
9801 case `$CC -V 2>&1 | sed 5q` in
9802 *Sun\ C*) # Sun C 5.9
9803 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'
9804 tmp_sharedflag='-G' ;;
9805 *Sun\ F*) # Sun Fortran 8.3
9806 tmp_sharedflag='-G' ;;
9808 tmp_sharedflag='-shared' ;;
9810 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812 if test $supports_anon_versioning = yes; then
9813 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9815 $echo "local: *; };" >> $output_objdir/$libname.ver~
9816 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9825 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9829 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9834 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9839 *** create shared libraries on Solaris systems. Therefore, libtool
9840 *** is disabling shared libraries support. We urge you to upgrade GNU
9841 *** binutils to release 2.9.1 or newer. Another option is to modify
9842 *** your PATH or compiler configuration so that the native linker is
9843 *** used, and then restart.
9846 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9855 case `$LD -v 2>&1` in
9856 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9861 *** reliably create shared libraries on SCO systems. Therefore, libtool
9862 *** is disabling shared libraries support. We urge you to upgrade GNU
9863 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9864 *** your PATH or compiler configuration so that the native linker is
9865 *** used, and then restart.
9870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9871 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9882 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9885 hardcode_shlibpath_var=no
9889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9898 if test "$ld_shlibs" = no; then
9900 hardcode_libdir_flag_spec=
9901 export_dynamic_flag_spec=
9902 whole_archive_flag_spec=
9905 # PORTME fill in a description of your system's linker (not GNU ld)
9908 allow_undefined_flag=unsupported
9909 always_export_symbols=yes
9910 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'
9911 # Note: this linker hardcodes the directories in LIBPATH if there
9912 # are no directories specified by -L.
9913 hardcode_minus_L=yes
9914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9915 # Neither direct hardcoding nor static linking is supported with a
9917 hardcode_direct=unsupported
9922 if test "$host_cpu" = ia64; then
9923 # On IA64, the linker does run time linking by default, so we don't
9924 # have to do anything special.
9925 aix_use_runtimelinking=no
9926 exp_sym_flag='-Bexport'
9929 # If we're using GNU nm, then we don't want the "-C" option.
9930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9931 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9932 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'
9934 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'
9936 aix_use_runtimelinking=no
9938 # Test if we are trying to use run time linking or normal
9939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9940 # need to do runtime linking.
9941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9942 for ld_flag in $LDFLAGS; do
9943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9944 aix_use_runtimelinking=yes
9951 exp_sym_flag='-bexport'
9952 no_entry_flag='-bnoentry'
9955 # When large executables or shared objects are built, AIX ld can
9956 # have problems creating the table of contents. If linking a library
9957 # or program results in "error TOC overflow" add -mminimal-toc to
9958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9963 hardcode_libdir_separator=':'
9964 link_all_deplibs=yes
9966 if test "$GCC" = yes; then
9967 case $host_os in aix4.[012]|aix4.[012].*)
9968 # We only want to do this on AIX 4.2 and lower, the check
9969 # below for broken collect2 doesn't work under 4.3+
9970 collect2name=`${CC} -print-prog-name=collect2`
9971 if test -f "$collect2name" && \
9972 strings "$collect2name" | grep resolve_lib_name >/dev/null
9974 # We have reworked collect2
9977 # We have old collect2
9978 hardcode_direct=unsupported
9979 # It fails to find uninstalled libraries when the uninstalled
9980 # path is not listed in the libpath. Setting hardcode_minus_L
9981 # to unsupported forces relinking
9982 hardcode_minus_L=yes
9983 hardcode_libdir_flag_spec='-L$libdir'
9984 hardcode_libdir_separator=
9988 shared_flag='-shared'
9989 if test "$aix_use_runtimelinking" = yes; then
9990 shared_flag="$shared_flag "'${wl}-G'
9994 if test "$host_cpu" = ia64; then
9995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9996 # chokes on -Wl,-G. The following line is correct:
9999 if test "$aix_use_runtimelinking" = yes; then
10000 shared_flag='${wl}-G'
10002 shared_flag='${wl}-bM:SRE'
10007 # It seems that -bexpall does not export symbols beginning with
10008 # underscore (_), so it is better to generate a list of symbols to export.
10009 always_export_symbols=yes
10010 if test "$aix_use_runtimelinking" = yes; then
10011 # Warning - without using the other runtime loading flags (-brtl),
10012 # -berok will link without error, but may produce a broken library.
10013 allow_undefined_flag='-berok'
10014 # Determine the default libpath from the value encoded in an empty executable.
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (ac_try="$ac_link"
10032 case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_link") 2>conftest.er1
10039 grep -v '^ *+' conftest.er1 >conftest.err
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } && {
10044 test -z "$ac_c_werror_flag" ||
10045 test ! -s conftest.err
10046 } && test -s conftest$ac_exeext &&
10047 $as_test_x conftest$ac_exeext; then
10049 lt_aix_libpath_sed='
10050 /Import File Strings/,/^$/ {
10056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10057 # Check for a 64-bit object if we didn't find anything.
10058 if test -z "$aix_libpath"; then
10059 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069 conftest$ac_exeext conftest.$ac_ext
10070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10072 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10073 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"
10075 if test "$host_cpu" = ia64; then
10076 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10077 allow_undefined_flag="-z nodefs"
10078 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"
10080 # Determine the default libpath from the value encoded in an empty executable.
10081 cat >conftest.$ac_ext <<_ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1 >conftest.err
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
10115 lt_aix_libpath_sed='
10116 /Import File Strings/,/^$/ {
10122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123 # Check for a 64-bit object if we didn't find anything.
10124 if test -z "$aix_libpath"; then
10125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10135 conftest$ac_exeext conftest.$ac_ext
10136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10138 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10139 # Warning - without using the other run time loading flags,
10140 # -berok will link without error, but may produce a broken library.
10141 no_undefined_flag=' ${wl}-bernotok'
10142 allow_undefined_flag=' ${wl}-berok'
10143 # Exported symbols can be pulled into shared objects from archives
10144 whole_archive_flag_spec='$convenience'
10145 archive_cmds_need_lc=yes
10146 # This is similar to how AIX traditionally builds its shared libraries.
10147 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'
10153 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)'
10154 hardcode_libdir_flag_spec='-L$libdir'
10155 hardcode_minus_L=yes
10156 # see comment about different semantics on the GNU ld section
10161 export_dynamic_flag_spec=-rdynamic
10164 cygwin* | mingw* | pw32*)
10165 # When not using gcc, we currently assume that we are using
10166 # Microsoft Visual C++.
10167 # hardcode_libdir_flag_spec is actually meaningless, as there is
10168 # no search path for DLLs.
10169 hardcode_libdir_flag_spec=' '
10170 allow_undefined_flag=unsupported
10171 # Tell ltmain to make .lib files, not .a files.
10173 # Tell ltmain to make .dll files, not .so files.
10175 # FIXME: Setting linknames here is a bad hack.
10176 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10177 # The linker will automatically build a .lib file if we build a DLL.
10178 old_archive_From_new_cmds='true'
10179 # FIXME: Should let the user specify the lib program.
10180 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10181 fix_srcfile_path='`cygpath -w "$srcfile"`'
10182 enable_shared_with_static_runtimes=yes
10185 darwin* | rhapsody*)
10187 rhapsody* | darwin1.[012])
10188 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10191 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10192 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10194 case ${MACOSX_DEPLOYMENT_TARGET} in
10196 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10199 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10205 archive_cmds_need_lc=no
10207 hardcode_automatic=yes
10208 hardcode_shlibpath_var=unsupported
10209 whole_archive_flag_spec=''
10210 link_all_deplibs=yes
10211 if test "$GCC" = yes ; then
10212 output_verbose_link_cmd='echo'
10213 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10214 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10215 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}"
10216 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}"
10218 case $cc_basename in
10220 output_verbose_link_cmd='echo'
10221 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10222 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10224 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}'
10225 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}'
10235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10236 hardcode_libdir_flag_spec='-L$libdir'
10237 hardcode_shlibpath_var=no
10244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10245 # support. Future versions do this automatically, but an explicit c++rt0.o
10246 # does not break anything, and helps significantly (at the cost of a little
10249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10250 hardcode_libdir_flag_spec='-R$libdir'
10251 hardcode_direct=yes
10252 hardcode_shlibpath_var=no
10255 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10258 hardcode_direct=yes
10259 hardcode_minus_L=yes
10260 hardcode_shlibpath_var=no
10263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10264 freebsd* | dragonfly*)
10265 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10266 hardcode_libdir_flag_spec='-R$libdir'
10267 hardcode_direct=yes
10268 hardcode_shlibpath_var=no
10272 if test "$GCC" = yes; then
10273 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'
10275 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'
10277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10278 hardcode_libdir_separator=:
10279 hardcode_direct=yes
10281 # hardcode_minus_L: Not really in the search PATH,
10282 # but as the default location of the library.
10283 hardcode_minus_L=yes
10284 export_dynamic_flag_spec='${wl}-E'
10288 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10289 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10293 if test "$with_gnu_ld" = no; then
10294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10295 hardcode_libdir_separator=:
10297 hardcode_direct=yes
10298 export_dynamic_flag_spec='${wl}-E'
10300 # hardcode_minus_L: Not really in the search PATH,
10301 # but as the default location of the library.
10302 hardcode_minus_L=yes
10307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10310 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10316 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10328 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10332 if test "$with_gnu_ld" = no; then
10333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10334 hardcode_libdir_separator=:
10338 hardcode_libdir_flag_spec_ld='+b $libdir'
10340 hardcode_shlibpath_var=no
10343 hardcode_direct=yes
10344 export_dynamic_flag_spec='${wl}-E'
10346 # hardcode_minus_L: Not really in the search PATH,
10347 # but as the default location of the library.
10348 hardcode_minus_L=yes
10354 irix5* | irix6* | nonstopux*)
10355 if test "$GCC" = yes; then
10356 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'
10358 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'
10359 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10362 hardcode_libdir_separator=:
10363 link_all_deplibs=yes
10367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10370 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10372 hardcode_libdir_flag_spec='-R$libdir'
10373 hardcode_direct=yes
10374 hardcode_shlibpath_var=no
10378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379 hardcode_direct=yes
10380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381 hardcode_libdir_separator=:
10382 hardcode_shlibpath_var=no
10386 if test -f /usr/libexec/ld.so; then
10387 hardcode_direct=yes
10388 hardcode_shlibpath_var=no
10389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10393 export_dynamic_flag_spec='${wl}-E'
10396 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_libdir_flag_spec='-R$libdir'
10401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_minus_L=yes
10414 allow_undefined_flag=unsupported
10415 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'
10416 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10420 if test "$GCC" = yes; then
10421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10422 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'
10424 allow_undefined_flag=' -expect_unresolved \*'
10425 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'
10427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator=:
10431 osf4* | osf5*) # as osf3* with the addition of -msym flag
10432 if test "$GCC" = yes; then
10433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10434 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'
10435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10437 allow_undefined_flag=' -expect_unresolved \*'
10438 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'
10439 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10440 $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'
10442 # Both c and cxx compiler support -rpath directly
10443 hardcode_libdir_flag_spec='-rpath $libdir'
10445 hardcode_libdir_separator=:
10449 no_undefined_flag=' -z text'
10450 if test "$GCC" = yes; then
10452 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10453 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10454 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10457 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10459 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10461 hardcode_libdir_flag_spec='-R$libdir'
10462 hardcode_shlibpath_var=no
10464 solaris2.[0-5] | solaris2.[0-5].*) ;;
10466 # The compiler driver will combine and reorder linker options,
10467 # but understands `-z linker_flag'. GCC discards it without `$wl',
10468 # but is careful enough not to reorder.
10469 # Supported since Solaris 2.6 (maybe 2.5.1?)
10470 if test "$GCC" = yes; then
10471 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10473 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10477 link_all_deplibs=yes
10481 if test "x$host_vendor" = xsequent; then
10482 # Use $CC to link under sequent, because it throws in some extra .o
10483 # files that make .init and .fini sections work.
10484 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10486 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10488 hardcode_libdir_flag_spec='-L$libdir'
10489 hardcode_direct=yes
10490 hardcode_minus_L=yes
10491 hardcode_shlibpath_var=no
10495 case $host_vendor in
10497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498 hardcode_direct=yes # is this really true???
10501 ## LD is ld it makes a PLAMLIB
10502 ## CC just makes a GrossModule.
10503 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10504 reload_cmds='$CC -r -o $output$reload_objs'
10508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10509 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10512 runpath_var='LD_RUN_PATH'
10513 hardcode_shlibpath_var=no
10517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518 hardcode_shlibpath_var=no
10519 export_dynamic_flag_spec='-Bexport'
10523 if test -d /usr/nec; then
10524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525 hardcode_shlibpath_var=no
10526 runpath_var=LD_RUN_PATH
10527 hardcode_runpath_var=yes
10532 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10533 no_undefined_flag='${wl}-z,text'
10534 archive_cmds_need_lc=no
10535 hardcode_shlibpath_var=no
10536 runpath_var='LD_RUN_PATH'
10538 if test "$GCC" = yes; then
10539 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10540 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10542 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10547 sysv5* | sco3.2v5* | sco5v6*)
10548 # Note: We can NOT use -z defs as we might desire, because we do not
10549 # link with -lc, and that would cause any symbols used from libc to
10550 # always be unresolved, which means just about no library would
10551 # ever link correctly. If we're not using GNU ld we use -z text
10552 # though, which does catch some bad symbols but isn't as heavy-handed
10554 no_undefined_flag='${wl}-z,text'
10555 allow_undefined_flag='${wl}-z,nodefs'
10556 archive_cmds_need_lc=no
10557 hardcode_shlibpath_var=no
10558 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10559 hardcode_libdir_separator=':'
10560 link_all_deplibs=yes
10561 export_dynamic_flag_spec='${wl}-Bexport'
10562 runpath_var='LD_RUN_PATH'
10564 if test "$GCC" = yes; then
10565 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_libdir_flag_spec='-L$libdir'
10576 hardcode_shlibpath_var=no
10585 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10586 echo "${ECHO_T}$ld_shlibs" >&6; }
10587 test "$ld_shlibs" = no && can_build_shared=no
10590 # Do we need to explicitly link libc?
10592 case "x$archive_cmds_need_lc" in
10594 # Assume -lc should be added
10595 archive_cmds_need_lc=yes
10597 if test "$enable_shared" = yes && test "$GCC" = yes; then
10598 case $archive_cmds in
10600 # FIXME: we may have to deal with multi-command sequences.
10603 # Test whether the compiler implicitly links with -lc since on some
10604 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10605 # to ld, don't add -lc before -lgcc.
10606 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10607 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612 (eval $ac_compile) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } 2>conftest.err; then
10618 libobjs=conftest.$ac_objext
10620 wl=$lt_prog_compiler_wl
10621 pic_flag=$lt_prog_compiler_pic
10627 lt_save_allow_undefined_flag=$allow_undefined_flag
10628 allow_undefined_flag=
10629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10630 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }
10635 archive_cmds_need_lc=no
10637 archive_cmds_need_lc=yes
10639 allow_undefined_flag=$lt_save_allow_undefined_flag
10641 cat conftest.err 1>&5
10644 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10645 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10652 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10654 library_names_spec=
10655 libname_spec='lib$name'
10659 postuninstall_cmds=
10663 shlibpath_overrides_runpath=unknown
10665 dynamic_linker="$host_os ld.so"
10666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10668 if test "$GCC" = yes; then
10670 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10671 *) lt_awk_arg="/^libraries:/" ;;
10673 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10674 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10675 # if the path contains ";" then we assume it to be the separator
10676 # otherwise default to the standard path separator (i.e. ":") - it is
10677 # assumed that no part of a normal pathname contains ";" but that should
10678 # okay in the real world where ";" in dirpaths is itself problematic.
10679 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10681 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10683 # Ok, now we have the path, separated by spaces, we can step through it
10684 # and add multilib dir if necessary.
10685 lt_tmp_lt_search_path_spec=
10686 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10687 for lt_sys_path in $lt_search_path_spec; do
10688 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10689 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10691 test -d "$lt_sys_path" && \
10692 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10695 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10696 BEGIN {RS=" "; FS="/|\n";} {
10699 for (lt_i = NF; lt_i > 0; lt_i--) {
10700 if ($lt_i != "" && $lt_i != ".") {
10701 if ($lt_i == "..") {
10704 if (lt_count == 0) {
10705 lt_foo="/" $lt_i lt_foo;
10712 if (lt_foo != "") { lt_freq[lt_foo]++; }
10713 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10715 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10717 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10719 need_lib_prefix=unknown
10720 hardcode_into_libs=no
10722 # when you set need_version to no, make sure it does not cause -set_version
10723 # flags to be left without arguments
10724 need_version=unknown
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10730 shlibpath_var=LIBPATH
10732 # AIX 3 has no versioning support, so we append a major version to the name.
10733 soname_spec='${libname}${release}${shared_ext}$major'
10740 hardcode_into_libs=yes
10741 if test "$host_cpu" = ia64; then
10742 # AIX 5 supports IA64
10743 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10744 shlibpath_var=LD_LIBRARY_PATH
10746 # With GCC up to 2.95.x, collect2 would create an import file
10747 # for dependence libraries. The import file would start with
10748 # the line `#! .'. This would cause the generated library to
10749 # depend on `.', always an invalid library. This was fixed in
10750 # development snapshots of GCC prior to 3.0.
10752 aix4 | aix4.[01] | aix4.[01].*)
10753 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10755 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10758 can_build_shared=no
10762 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10763 # soname into executable. Probably we can add versioning support to
10764 # collect2, so additional links can be useful in future.
10765 if test "$aix_use_runtimelinking" = yes; then
10766 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10767 # instead of lib<name>.a to let people know that these are not
10768 # typical AIX shared libraries.
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 # We preserve .a as extension for shared libraries through AIX4.2
10772 # and later when we are not doing run time linking.
10773 library_names_spec='${libname}${release}.a $libname.a'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LIBPATH
10781 library_names_spec='$libname.ixlibrary $libname.a'
10782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10783 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'
10787 library_names_spec='${libname}${shared_ext}'
10788 dynamic_linker="$host_os ld.so"
10789 shlibpath_var=LIBRARY_PATH
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10798 shlibpath_var=LD_LIBRARY_PATH
10799 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10800 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10801 # the default ld.so.conf also contains /usr/contrib/lib and
10802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10803 # libtool to hard-code these into programs
10806 cygwin* | mingw* | pw32*)
10807 version_type=windows
10812 case $GCC,$host_os in
10813 yes,cygwin* | yes,mingw* | yes,pw32*)
10814 library_names_spec='$libname.dll.a'
10815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10816 postinstall_cmds='base_file=`basename \${file}`~
10817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10818 dldir=$destdir/`dirname \$dlpath`~
10819 test -d \$dldir || mkdir -p \$dldir~
10820 $install_prog $dir/$dlname \$dldir/$dlname~
10821 chmod a+x \$dldir/$dlname'
10822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10823 dlpath=$dir/\$dldll~
10825 shlibpath_overrides_runpath=yes
10829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10831 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10834 # MinGW DLLs use traditional 'lib' prefix
10835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10837 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10838 # It is most probably a Windows format PATH printed by
10839 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10840 # path with ; separators, and with drive letters. We can handle the
10841 # drive letters (cygwin fileutils understands them), so leave them,
10842 # especially as we might pass files found there to a mingw objdump,
10843 # which wouldn't understand a cygwinified path. Ahh.
10844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10850 # pw32 DLLs use 'pw' prefix rather than 'lib'
10851 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10857 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10860 dynamic_linker='Win32 ld.exe'
10861 # FIXME: first we should search . and the directory the executable is in
10865 darwin* | rhapsody*)
10866 dynamic_linker="$host_os dyld"
10867 version_type=darwin
10870 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10871 soname_spec='${libname}${release}${major}$shared_ext'
10872 shlibpath_overrides_runpath=yes
10873 shlibpath_var=DYLD_LIBRARY_PATH
10874 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10876 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 shlibpath_var=LD_LIBRARY_PATH
10893 freebsd* | dragonfly*)
10894 # DragonFly does not have aout. When/if they implement a new
10895 # versioning mechanism, adjust this.
10896 if test -x /usr/bin/objformat; then
10897 objformat=`/usr/bin/objformat`
10900 freebsd[123]*) objformat=aout ;;
10901 *) objformat=elf ;;
10904 version_type=freebsd-$objformat
10905 case $version_type in
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10916 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=yes
10921 freebsd3.[01]* | freebsdelf3.[01]*)
10922 shlibpath_overrides_runpath=yes
10923 hardcode_into_libs=yes
10925 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10926 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10927 shlibpath_overrides_runpath=no
10928 hardcode_into_libs=yes
10930 *) # from 4.6 on, and DragonFly
10931 shlibpath_overrides_runpath=yes
10932 hardcode_into_libs=yes
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 hardcode_into_libs=yes
10947 hpux9* | hpux10* | hpux11*)
10948 # Give a soname corresponding to the major version so that dld.sl refuses to
10949 # link against other versions.
10956 hardcode_into_libs=yes
10957 dynamic_linker="$host_os dld.so"
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 if test "X$HPUX_IA64_MODE" = X32; then
10963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10971 hardcode_into_libs=yes
10972 dynamic_linker="$host_os dld.sl"
10973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10982 dynamic_linker="$host_os dld.sl"
10983 shlibpath_var=SHLIB_PATH
10984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10989 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10990 postinstall_cmds='chmod 555 $lib'
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath=no
11002 hardcode_into_libs=yes
11005 irix5* | irix6* | nonstopux*)
11007 nonstopux*) version_type=nonstopux ;;
11009 if test "$lt_cv_prog_gnu_ld" = yes; then
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11020 irix5* | nonstopux*)
11021 libsuff= shlibsuff=
11024 case $LD in # libtool.m4 will add one of these switches to LD
11025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11026 libsuff= shlibsuff= libmagic=32-bit;;
11027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11028 libsuff=32 shlibsuff=N32 libmagic=N32;;
11029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11030 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11031 *) libsuff= shlibsuff= libmagic=never-match;;
11035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11036 shlibpath_overrides_runpath=no
11037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11039 hardcode_into_libs=yes
11042 # No shared lib support for Linux oldld, aout, or coff.
11043 linux*oldld* | linux*aout* | linux*coff*)
11047 # This must be Linux ELF.
11048 linux* | k*bsd*-gnu)
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=no
11057 # This implies no fast_install, which is unacceptable.
11058 # Some rework will be needed to allow for fast_install
11059 # before this can be enabled.
11060 hardcode_into_libs=yes
11062 # Append ld.so.conf contents to the search path
11063 if test -f /etc/ld.so.conf; then
11064 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' ' '`
11065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 dynamic_linker='NetBSD (a.out) ld.so'
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 dynamic_linker='NetBSD ld.elf_so'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11114 sys_lib_dlsearch_path_spec="/usr/lib"
11116 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11118 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11119 *) need_version=no ;;
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11126 openbsd2.[89] | openbsd2.[89].*)
11127 shlibpath_overrides_runpath=no
11130 shlibpath_overrides_runpath=yes
11134 shlibpath_overrides_runpath=yes
11139 libname_spec='$name'
11142 library_names_spec='$libname${shared_ext} $libname.a'
11143 dynamic_linker='OS/2 ld.exe'
11144 shlibpath_var=LIBPATH
11147 osf3* | osf4* | osf5*)
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11155 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=yes
11170 hardcode_into_libs=yes
11171 # ldd complains unless libraries are executable
11172 postinstall_cmds='chmod +x $lib'
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=yes
11181 if test "$with_gnu_ld" = yes; then
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 case $host_vendor in
11194 shlibpath_overrides_runpath=no
11196 export_dynamic_flag_spec='${wl}-Blargedynsym'
11197 runpath_var=LD_RUN_PATH
11205 shlibpath_overrides_runpath=no
11206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11212 if test -d /usr/nec ;then
11214 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11215 soname_spec='$libname${shared_ext}.$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11221 version_type=freebsd-elf
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 hardcode_into_libs=yes
11228 if test "$with_gnu_ld" = yes; then
11229 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11230 shlibpath_overrides_runpath=no
11232 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11233 shlibpath_overrides_runpath=yes
11236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11240 sys_lib_dlsearch_path_spec='/usr/lib'
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246 soname_spec='${libname}${release}${shared_ext}$major'
11247 shlibpath_var=LD_LIBRARY_PATH
11254 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11255 echo "${ECHO_T}$dynamic_linker" >&6; }
11256 test "$dynamic_linker" = no && can_build_shared=no
11258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11265 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11273 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11274 if test "$GCC" = yes; then
11275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11278 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11279 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11281 if test -n "$hardcode_libdir_flag_spec" || \
11282 test -n "$runpath_var" || \
11283 test "X$hardcode_automatic" = "Xyes" ; then
11285 # We can hardcode non-existant directories.
11286 if test "$hardcode_direct" != no &&
11287 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11288 # have to relink, otherwise we might link with an installed library
11289 # when we should be linking with a yet-to-be-installed one
11290 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11291 test "$hardcode_minus_L" != no; then
11292 # Linking always hardcodes the temporary library directory.
11293 hardcode_action=relink
11295 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11296 hardcode_action=immediate
11299 # We cannot hardcode anything, or else we can only hardcode existing
11301 hardcode_action=unsupported
11303 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11304 echo "${ECHO_T}$hardcode_action" >&6; }
11306 if test "$hardcode_action" = relink; then
11307 # Fast installation is not supported
11308 enable_fast_install=no
11309 elif test "$shlibpath_overrides_runpath" = yes ||
11310 test "$enable_shared" = no; then
11311 # Fast installation is not necessary
11312 enable_fast_install=needless
11317 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11318 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11319 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11320 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11321 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11322 { echo "$as_me:$LINENO: result: yes" >&5
11323 echo "${ECHO_T}yes" >&6; }
11325 # FIXME - insert some real tests, host_os isn't really good enough
11328 if test -n "$STRIP" ; then
11329 striplib="$STRIP -x"
11330 old_striplib="$STRIP -S"
11331 { echo "$as_me:$LINENO: result: yes" >&5
11332 echo "${ECHO_T}yes" >&6; }
11334 { echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6; }
11339 { echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6; }
11345 if test "x$enable_dlopen" != xyes; then
11346 enable_dlopen=unknown
11347 enable_dlopen_self=unknown
11348 enable_dlopen_self_static=unknown
11355 lt_cv_dlopen="load_add_on"
11357 lt_cv_dlopen_self=yes
11361 lt_cv_dlopen="LoadLibrary"
11366 lt_cv_dlopen="dlopen"
11371 # if libdl is installed we need to link against it
11372 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11373 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11374 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 ac_check_lib_save_LIBS=$LIBS
11379 cat >conftest.$ac_ext <<_ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (ac_try="$ac_link"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_link") 2>conftest.er1
11410 grep -v '^ *+' conftest.er1 >conftest.err
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } && {
11415 test -z "$ac_c_werror_flag" ||
11416 test ! -s conftest.err
11417 } && test -s conftest$ac_exeext &&
11418 $as_test_x conftest$ac_exeext; then
11419 ac_cv_lib_dl_dlopen=yes
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_cv_lib_dl_dlopen=no
11427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11431 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11432 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11433 if test $ac_cv_lib_dl_dlopen = yes; then
11434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11437 lt_cv_dlopen="dyld"
11439 lt_cv_dlopen_self=yes
11446 { echo "$as_me:$LINENO: checking for shl_load" >&5
11447 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11448 if test "${ac_cv_func_shl_load+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 cat >conftest.$ac_ext <<_ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11459 #define shl_load innocuous_shl_load
11461 /* System header to define __stub macros and hopefully few prototypes,
11462 which can conflict with char shl_load (); below.
11463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11464 <limits.h> exists even on freestanding compilers. */
11467 # include <limits.h>
11469 # include <assert.h>
11474 /* Override any GCC internal prototype to avoid an error.
11475 Use char because int might match the return type of a GCC
11476 builtin and then its argument prototype would still apply. */
11481 /* The GNU C library defines this for functions which it implements
11482 to always fail with ENOSYS. Some functions are actually named
11483 something starting with __ and the normal name is an alias. */
11484 #if defined __stub_shl_load || defined __stub___shl_load
11491 return shl_load ();
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>conftest.er1
11505 grep -v '^ *+' conftest.er1 >conftest.err
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && {
11510 test -z "$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11512 } && test -s conftest$ac_exeext &&
11513 $as_test_x conftest$ac_exeext; then
11514 ac_cv_func_shl_load=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_func_shl_load=no
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11526 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11527 if test $ac_cv_func_shl_load = yes; then
11528 lt_cv_dlopen="shl_load"
11530 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11531 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11532 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 ac_check_lib_save_LIBS=$LIBS
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11554 return shl_load ();
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (ac_try="$ac_link"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_link") 2>conftest.er1
11568 grep -v '^ *+' conftest.er1 >conftest.err
11570 cat conftest.err >&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && {
11573 test -z "$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11575 } && test -s conftest$ac_exeext &&
11576 $as_test_x conftest$ac_exeext; then
11577 ac_cv_lib_dld_shl_load=yes
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 ac_cv_lib_dld_shl_load=no
11585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11589 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11590 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11591 if test $ac_cv_lib_dld_shl_load = yes; then
11592 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11594 { echo "$as_me:$LINENO: checking for dlopen" >&5
11595 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11596 if test "${ac_cv_func_dlopen+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 cat >conftest.$ac_ext <<_ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11607 #define dlopen innocuous_dlopen
11609 /* System header to define __stub macros and hopefully few prototypes,
11610 which can conflict with char dlopen (); below.
11611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612 <limits.h> exists even on freestanding compilers. */
11615 # include <limits.h>
11617 # include <assert.h>
11622 /* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11629 /* The GNU C library defines this for functions which it implements
11630 to always fail with ENOSYS. Some functions are actually named
11631 something starting with __ and the normal name is an alias. */
11632 #if defined __stub_dlopen || defined __stub___dlopen
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_link") 2>conftest.er1
11653 grep -v '^ *+' conftest.er1 >conftest.err
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } && {
11658 test -z "$ac_c_werror_flag" ||
11659 test ! -s conftest.err
11660 } && test -s conftest$ac_exeext &&
11661 $as_test_x conftest$ac_exeext; then
11662 ac_cv_func_dlopen=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_cv_func_dlopen=no
11670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11671 conftest$ac_exeext conftest.$ac_ext
11673 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11674 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11675 if test $ac_cv_func_dlopen = yes; then
11676 lt_cv_dlopen="dlopen"
11678 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 ac_check_lib_save_LIBS=$LIBS
11685 cat >conftest.$ac_ext <<_ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (ac_try="$ac_link"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_link") 2>conftest.er1
11716 grep -v '^ *+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && {
11721 test -z "$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11723 } && test -s conftest$ac_exeext &&
11724 $as_test_x conftest$ac_exeext; then
11725 ac_cv_lib_dl_dlopen=yes
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 ac_cv_lib_dl_dlopen=no
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11739 if test $ac_cv_lib_dl_dlopen = yes; then
11740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11742 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11743 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11744 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 ac_check_lib_save_LIBS=$LIBS
11748 LIBS="-lsvld $LIBS"
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11756 /* Override any GCC internal prototype to avoid an error.
11757 Use char because int might match the return type of a GCC
11758 builtin and then its argument prototype would still apply. */
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_link") 2>conftest.er1
11780 grep -v '^ *+' conftest.er1 >conftest.err
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && {
11785 test -z "$ac_c_werror_flag" ||
11786 test ! -s conftest.err
11787 } && test -s conftest$ac_exeext &&
11788 $as_test_x conftest$ac_exeext; then
11789 ac_cv_lib_svld_dlopen=yes
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_cv_lib_svld_dlopen=no
11797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11798 conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11801 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11802 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11803 if test $ac_cv_lib_svld_dlopen = yes; then
11804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11806 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11807 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11808 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 ac_check_lib_save_LIBS=$LIBS
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11830 return dld_link ();
11835 rm -f conftest.$ac_objext conftest$ac_exeext
11836 if { (ac_try="$ac_link"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_link") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest$ac_exeext &&
11852 $as_test_x conftest$ac_exeext; then
11853 ac_cv_lib_dld_dld_link=yes
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_cv_lib_dld_dld_link=no
11861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11862 conftest$ac_exeext conftest.$ac_ext
11863 LIBS=$ac_check_lib_save_LIBS
11865 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11866 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11867 if test $ac_cv_lib_dld_dld_link = yes; then
11868 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11889 if test "x$lt_cv_dlopen" != xno; then
11895 case $lt_cv_dlopen in
11897 save_CPPFLAGS="$CPPFLAGS"
11898 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11900 save_LDFLAGS="$LDFLAGS"
11901 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11904 LIBS="$lt_cv_dlopen_libs $LIBS"
11906 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11907 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11908 if test "${lt_cv_dlopen_self+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 if test "$cross_compiling" = yes; then :
11912 lt_cv_dlopen_self=cross
11914 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11915 lt_status=$lt_dlunknown
11916 cat > conftest.$ac_ext <<EOF
11917 #line 11917 "configure"
11918 #include "confdefs.h"
11927 # define LT_DLGLOBAL RTLD_GLOBAL
11930 # define LT_DLGLOBAL DL_GLOBAL
11932 # define LT_DLGLOBAL 0
11936 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11937 find out it does not work in some platform. */
11938 #ifndef LT_DLLAZY_OR_NOW
11940 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11943 # define LT_DLLAZY_OR_NOW DL_LAZY
11946 # define LT_DLLAZY_OR_NOW RTLD_NOW
11949 # define LT_DLLAZY_OR_NOW DL_NOW
11951 # define LT_DLLAZY_OR_NOW 0
11959 extern "C" void exit (int);
11962 void fnord() { int i=42;}
11965 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11966 int status = $lt_dlunknown;
11970 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11971 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11972 /* dlclose (self); */
11980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981 (eval $ac_link) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11985 (./conftest; exit; ) >&5 2>/dev/null
11987 case x$lt_status in
11988 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11989 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11990 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11993 # compilation failed
11994 lt_cv_dlopen_self=no
12001 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12002 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12004 if test "x$lt_cv_dlopen_self" = xyes; then
12005 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12006 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12007 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12008 if test "${lt_cv_dlopen_self_static+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 if test "$cross_compiling" = yes; then :
12012 lt_cv_dlopen_self_static=cross
12014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12015 lt_status=$lt_dlunknown
12016 cat > conftest.$ac_ext <<EOF
12017 #line 12017 "configure"
12018 #include "confdefs.h"
12027 # define LT_DLGLOBAL RTLD_GLOBAL
12030 # define LT_DLGLOBAL DL_GLOBAL
12032 # define LT_DLGLOBAL 0
12036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12037 find out it does not work in some platform. */
12038 #ifndef LT_DLLAZY_OR_NOW
12040 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12043 # define LT_DLLAZY_OR_NOW DL_LAZY
12046 # define LT_DLLAZY_OR_NOW RTLD_NOW
12049 # define LT_DLLAZY_OR_NOW DL_NOW
12051 # define LT_DLLAZY_OR_NOW 0
12059 extern "C" void exit (int);
12062 void fnord() { int i=42;}
12065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12066 int status = $lt_dlunknown;
12070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12071 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12072 /* dlclose (self); */
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081 (eval $ac_link) 2>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12085 (./conftest; exit; ) >&5 2>/dev/null
12087 case x$lt_status in
12088 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12089 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12090 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12093 # compilation failed
12094 lt_cv_dlopen_self_static=no
12101 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12102 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12105 CPPFLAGS="$save_CPPFLAGS"
12106 LDFLAGS="$save_LDFLAGS"
12111 case $lt_cv_dlopen_self in
12112 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12113 *) enable_dlopen_self=unknown ;;
12116 case $lt_cv_dlopen_self_static in
12117 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12118 *) enable_dlopen_self_static=unknown ;;
12123 # Report which library types will actually be built
12124 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12125 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12126 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12127 echo "${ECHO_T}$can_build_shared" >&6; }
12129 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12130 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12131 test "$can_build_shared" = "no" && enable_shared=no
12133 # On AIX, shared libraries and static libraries use the same namespace, and
12134 # are all built from PIC.
12137 test "$enable_shared" = yes && enable_static=no
12138 if test -n "$RANLIB"; then
12139 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12140 postinstall_cmds='$RANLIB $lib'
12145 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12146 test "$enable_shared" = yes && enable_static=no
12150 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12151 echo "${ECHO_T}$enable_shared" >&6; }
12153 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12154 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12155 # Make sure either enable_shared or enable_static is yes.
12156 test "$enable_shared" = yes || enable_static=yes
12157 { echo "$as_me:$LINENO: result: $enable_static" >&5
12158 echo "${ECHO_T}$enable_static" >&6; }
12160 # The else clause should only fire when bootstrapping the
12161 # libtool distribution, otherwise you forgot to ship ltmain.sh
12162 # with your package, and you will get complaints that there are
12163 # no rules to generate ltmain.sh.
12164 if test -f "$ltmain"; then
12165 # See if we are running on zsh, and set the options which allow our commands through
12166 # without removal of \ escapes.
12167 if test -n "${ZSH_VERSION+set}" ; then
12168 setopt NO_GLOB_SUBST
12170 # Now quote all the things that may contain metacharacters while being
12171 # careful not to overquote the AC_SUBSTed values. We take copies of the
12172 # variables and quote the copies for generation of the libtool script.
12173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12175 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12176 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12177 deplibs_check_method reload_flag reload_cmds need_locks \
12178 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12179 lt_cv_sys_global_symbol_to_c_name_address \
12180 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12181 old_postinstall_cmds old_postuninstall_cmds \
12185 lt_prog_compiler_wl \
12186 lt_prog_compiler_pic \
12187 lt_prog_compiler_static \
12188 lt_prog_compiler_no_builtin_flag \
12189 export_dynamic_flag_spec \
12190 thread_safe_flag_spec \
12191 whole_archive_flag_spec \
12192 enable_shared_with_static_runtimes \
12194 old_archive_from_new_cmds \
12199 compiler_lib_search_path \
12200 compiler_lib_search_dirs \
12202 archive_expsym_cmds \
12204 postuninstall_cmds \
12205 old_archive_from_expsyms_cmds \
12206 allow_undefined_flag \
12207 no_undefined_flag \
12208 export_symbols_cmds \
12209 hardcode_libdir_flag_spec \
12210 hardcode_libdir_flag_spec_ld \
12211 hardcode_libdir_separator \
12212 hardcode_automatic \
12214 module_expsym_cmds \
12215 lt_cv_prog_compiler_c_o \
12218 include_expsyms; do
12221 old_archive_cmds | \
12222 old_archive_from_new_cmds | \
12224 archive_expsym_cmds | \
12226 module_expsym_cmds | \
12227 old_archive_from_expsyms_cmds | \
12228 export_symbols_cmds | \
12229 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12230 postinstall_cmds | postuninstall_cmds | \
12231 old_postinstall_cmds | old_postuninstall_cmds | \
12232 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12233 # Double-quote double-evaled strings.
12234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12243 *'\$0 --fallback-echo"')
12244 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12248 cfgfile="${ofile}T"
12249 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12251 { echo "$as_me:$LINENO: creating $ofile" >&5
12252 echo "$as_me: creating $ofile" >&6;}
12254 cat <<__EOF__ >> "$cfgfile"
12257 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12258 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12259 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12261 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12262 # Free Software Foundation, Inc.
12264 # This file is part of GNU Libtool:
12265 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12267 # This program is free software; you can redistribute it and/or modify
12268 # it under the terms of the GNU General Public License as published by
12269 # the Free Software Foundation; either version 2 of the License, or
12270 # (at your option) any later version.
12272 # This program is distributed in the hope that it will be useful, but
12273 # WITHOUT ANY WARRANTY; without even the implied warranty of
12274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12275 # General Public License for more details.
12277 # You should have received a copy of the GNU General Public License
12278 # along with this program; if not, write to the Free Software
12279 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12281 # As a special exception to the GNU General Public License, if you
12282 # distribute this file as part of a program that contains a
12283 # configuration script generated by Autoconf, you may include it under
12284 # the same distribution terms that you use for the rest of that program.
12286 # A sed program that does not truncate output.
12289 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12290 Xsed="$SED -e 1s/^X//"
12292 # The HP-UX ksh and POSIX shell print the target directory to stdout
12293 # if CDPATH is set.
12294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12296 # The names of the tagged configurations supported by this script.
12299 # ### BEGIN LIBTOOL CONFIG
12301 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12303 # Shell to use when invoking shell scripts.
12306 # Whether or not to build shared libraries.
12307 build_libtool_libs=$enable_shared
12309 # Whether or not to build static libraries.
12310 build_old_libs=$enable_static
12312 # Whether or not to add -lc for building shared libraries.
12313 build_libtool_need_lc=$archive_cmds_need_lc
12315 # Whether or not to disallow shared libs when runtime libs are static
12316 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12318 # Whether or not to optimize for fast installation.
12319 fast_install=$enable_fast_install
12322 host_alias=$host_alias
12326 # The build system.
12327 build_alias=$build_alias
12331 # An echo program that does not interpret backslashes.
12336 AR_FLAGS=$lt_AR_FLAGS
12341 # LTCC compiler flags.
12342 LTCFLAGS=$lt_LTCFLAGS
12344 # A language-specific compiler.
12347 # Is the compiler the GNU C compiler?
12353 # The linker used to build libraries.
12356 # Whether we need hard or soft links.
12359 # A BSD-compatible nm program.
12362 # A symbol stripping program
12365 # Used to examine libraries when file_magic_cmd begins "file"
12366 MAGIC_CMD=$MAGIC_CMD
12368 # Used on cygwin: DLL creation program.
12371 # Used on cygwin: object dumper.
12374 # Used on cygwin: assembler.
12377 # The name of the directory that contains temporary libtool files.
12380 # How to create reloadable object files.
12381 reload_flag=$lt_reload_flag
12382 reload_cmds=$lt_reload_cmds
12384 # How to pass a linker flag through the compiler.
12385 wl=$lt_lt_prog_compiler_wl
12387 # Object file suffix (normally "o").
12388 objext="$ac_objext"
12390 # Old archive suffix (normally "a").
12393 # Shared library suffix (normally ".so").
12394 shrext_cmds='$shrext_cmds'
12396 # Executable file suffix (normally "").
12399 # Additional compiler flags for building library objects.
12400 pic_flag=$lt_lt_prog_compiler_pic
12403 # What is the maximum length of a command?
12404 max_cmd_len=$lt_cv_sys_max_cmd_len
12406 # Does compiler simultaneously support -c and -o options?
12407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12409 # Must we lock files when doing compilation?
12410 need_locks=$lt_need_locks
12412 # Do we need the lib prefix for modules?
12413 need_lib_prefix=$need_lib_prefix
12415 # Do we need a version for libraries?
12416 need_version=$need_version
12418 # Whether dlopen is supported.
12419 dlopen_support=$enable_dlopen
12421 # Whether dlopen of programs is supported.
12422 dlopen_self=$enable_dlopen_self
12424 # Whether dlopen of statically linked programs is supported.
12425 dlopen_self_static=$enable_dlopen_self_static
12427 # Compiler flag to prevent dynamic linking.
12428 link_static_flag=$lt_lt_prog_compiler_static
12430 # Compiler flag to turn off builtin functions.
12431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12433 # Compiler flag to allow reflexive dlopens.
12434 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12436 # Compiler flag to generate shared objects directly from archives.
12437 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12439 # Compiler flag to generate thread-safe objects.
12440 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12442 # Library versioning type.
12443 version_type=$version_type
12445 # Format of library name prefix.
12446 libname_spec=$lt_libname_spec
12448 # List of archive names. First name is the real one, the rest are links.
12449 # The last name is the one that the linker finds with -lNAME.
12450 library_names_spec=$lt_library_names_spec
12452 # The coded name of the library, if different from the real name.
12453 soname_spec=$lt_soname_spec
12455 # Commands used to build and install an old-style archive.
12457 old_archive_cmds=$lt_old_archive_cmds
12458 old_postinstall_cmds=$lt_old_postinstall_cmds
12459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12461 # Create an old-style archive from a shared archive.
12462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12464 # Create a temporary old-style archive to link instead of a shared archive.
12465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12467 # Commands used to build and install a shared archive.
12468 archive_cmds=$lt_archive_cmds
12469 archive_expsym_cmds=$lt_archive_expsym_cmds
12470 postinstall_cmds=$lt_postinstall_cmds
12471 postuninstall_cmds=$lt_postuninstall_cmds
12473 # Commands used to build a loadable module (assumed same as above if empty)
12474 module_cmds=$lt_module_cmds
12475 module_expsym_cmds=$lt_module_expsym_cmds
12477 # Commands to strip libraries.
12478 old_striplib=$lt_old_striplib
12479 striplib=$lt_striplib
12481 # Dependencies to place before the objects being linked to create a
12483 predep_objects=$lt_predep_objects
12485 # Dependencies to place after the objects being linked to create a
12487 postdep_objects=$lt_postdep_objects
12489 # Dependencies to place before the objects being linked to create a
12491 predeps=$lt_predeps
12493 # Dependencies to place after the objects being linked to create a
12495 postdeps=$lt_postdeps
12497 # The directories searched by this compiler when creating a shared
12499 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12501 # The library search path used internally by the compiler when linking
12502 # a shared library.
12503 compiler_lib_search_path=$lt_compiler_lib_search_path
12505 # Method to check whether dependent libraries are shared objects.
12506 deplibs_check_method=$lt_deplibs_check_method
12508 # Command to use when deplibs_check_method == file_magic.
12509 file_magic_cmd=$lt_file_magic_cmd
12511 # Flag that allows shared libraries with undefined symbols to be built.
12512 allow_undefined_flag=$lt_allow_undefined_flag
12514 # Flag that forces no undefined symbols.
12515 no_undefined_flag=$lt_no_undefined_flag
12517 # Commands used to finish a libtool library installation in a directory.
12518 finish_cmds=$lt_finish_cmds
12520 # Same as above, but a single script fragment to be evaled but not shown.
12521 finish_eval=$lt_finish_eval
12523 # Take the output of nm and produce a listing of raw symbols and C names.
12524 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12526 # Transform the output of nm in a proper C declaration
12527 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12529 # Transform the output of nm in a C name address pair
12530 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12532 # This is the shared library runtime path variable.
12533 runpath_var=$runpath_var
12535 # This is the shared library path variable.
12536 shlibpath_var=$shlibpath_var
12538 # Is shlibpath searched before the hard-coded library search path?
12539 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12541 # How to hardcode a shared library path into an executable.
12542 hardcode_action=$hardcode_action
12544 # Whether we should hardcode library paths into libraries.
12545 hardcode_into_libs=$hardcode_into_libs
12547 # Flag to hardcode \$libdir into a binary during linking.
12548 # This must work even if \$libdir does not exist.
12549 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12551 # If ld is used when linking, flag to hardcode \$libdir into
12552 # a binary during linking. This must work even if \$libdir does
12554 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12556 # Whether we need a single -rpath flag with a separated argument.
12557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12559 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12560 # resulting binary.
12561 hardcode_direct=$hardcode_direct
12563 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12564 # resulting binary.
12565 hardcode_minus_L=$hardcode_minus_L
12567 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12568 # the resulting binary.
12569 hardcode_shlibpath_var=$hardcode_shlibpath_var
12571 # Set to yes if building a shared library automatically hardcodes DIR into the library
12572 # and all subsequent libraries and executables linked against it.
12573 hardcode_automatic=$hardcode_automatic
12575 # Variables whose values should be saved in libtool wrapper scripts and
12576 # restored at relink time.
12577 variables_saved_for_relink="$variables_saved_for_relink"
12579 # Whether libtool must link a program against all its dependency libraries.
12580 link_all_deplibs=$link_all_deplibs
12582 # Compile-time system search path for libraries
12583 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12585 # Run-time system search path for libraries
12586 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12588 # Fix the shell variable \$srcfile for the compiler.
12589 fix_srcfile_path=$lt_fix_srcfile_path
12591 # Set to yes if exported symbols are required.
12592 always_export_symbols=$always_export_symbols
12594 # The commands to list exported symbols.
12595 export_symbols_cmds=$lt_export_symbols_cmds
12597 # The commands to extract the exported symbol list from a shared archive.
12598 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12600 # Symbols that should not be listed in the preloaded symbols.
12601 exclude_expsyms=$lt_exclude_expsyms
12603 # Symbols that must always be exported.
12604 include_expsyms=$lt_include_expsyms
12606 # ### END LIBTOOL CONFIG
12613 cat <<\EOF >> "$cfgfile"
12615 # AIX sometimes has problems with the GCC collect2 program. For some
12616 # reason, if we set the COLLECT_NAMES environment variable, the problems
12617 # vanish in a puff of smoke.
12618 if test "X${COLLECT_NAMES+set}" != Xset; then
12620 export COLLECT_NAMES
12626 # We use sed instead of cat because bash on DJGPP gets confused if
12627 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12628 # text mode, it properly converts lines to CR/LF. This bash problem
12629 # is reportedly fixed, but why not run on old versions too?
12630 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12632 mv -f "$cfgfile" "$ofile" || \
12633 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12637 # If there is no Makefile yet, we rely on a make rule to execute
12638 # `config.status --recheck' to rerun these tests and create the
12639 # libtool script then.
12640 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12641 if test -f "$ltmain_in"; then
12642 test -f Makefile && make "$ltmain"
12648 ac_cpp='$CPP $CPPFLAGS'
12649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12656 # Check whether --with-tags was given.
12657 if test "${with_tags+set}" = set; then
12658 withval=$with_tags; tagnames="$withval"
12662 if test -f "$ltmain" && test -n "$tagnames"; then
12663 if test ! -f "${ofile}"; then
12664 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12665 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12668 if test -z "$LTCC"; then
12669 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12670 if test -z "$LTCC"; then
12671 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12672 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12675 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12678 if test -z "$LTCFLAGS"; then
12679 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12682 # Extract list of available tagged configurations in $ofile.
12683 # Note that this assumes the entire list is on one line.
12684 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12687 for tagname in $tagnames; do
12689 # Check whether tagname contains only valid characters
12690 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12692 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12693 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12694 { (exit 1); exit 1; }; }
12698 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12700 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12701 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12702 { (exit 1); exit 1; }; }
12705 # Update the list of available tags.
12706 if test -n "$tagname"; then
12707 echo appending configuration tag \"$tagname\" to $ofile
12711 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12712 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12713 (test "X$CXX" != "Xg++"))) ; then
12715 ac_cpp='$CXXCPP $CPPFLAGS'
12716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12723 archive_cmds_need_lc_CXX=no
12724 allow_undefined_flag_CXX=
12725 always_export_symbols_CXX=no
12726 archive_expsym_cmds_CXX=
12727 export_dynamic_flag_spec_CXX=
12728 hardcode_direct_CXX=no
12729 hardcode_libdir_flag_spec_CXX=
12730 hardcode_libdir_flag_spec_ld_CXX=
12731 hardcode_libdir_separator_CXX=
12732 hardcode_minus_L_CXX=no
12733 hardcode_shlibpath_var_CXX=unsupported
12734 hardcode_automatic_CXX=no
12736 module_expsym_cmds_CXX=
12737 link_all_deplibs_CXX=unknown
12738 old_archive_cmds_CXX=$old_archive_cmds
12739 no_undefined_flag_CXX=
12740 whole_archive_flag_spec_CXX=
12741 enable_shared_with_static_runtimes_CXX=no
12743 # Dependencies to place before and after the object being linked:
12744 predep_objects_CXX=
12745 postdep_objects_CXX=
12748 compiler_lib_search_path_CXX=
12749 compiler_lib_search_dirs_CXX=
12751 # Source file extension for C++ test sources.
12754 # Object file extension for compiled C++ test sources.
12758 # Code to be used in simple compile tests
12759 lt_simple_compile_test_code="int some_variable = 0;"
12761 # Code to be used in simple link tests
12762 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12764 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12766 # If no C compiler was specified, use CC.
12769 # If no C compiler flags were specified, use CFLAGS.
12770 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12772 # Allow CC to be a program name with arguments.
12776 # save warnings/boilerplate of simple test code
12777 ac_outfile=conftest.$ac_objext
12778 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12779 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12780 _lt_compiler_boilerplate=`cat conftest.err`
12783 ac_outfile=conftest.$ac_objext
12784 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12785 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12786 _lt_linker_boilerplate=`cat conftest.err`
12790 # Allow CC to be a program name with arguments.
12795 lt_save_with_gnu_ld=$with_gnu_ld
12796 lt_save_path_LD=$lt_cv_path_LD
12797 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12798 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12800 $as_unset lt_cv_prog_gnu_ld
12802 if test -n "${lt_cv_path_LDCXX+set}"; then
12803 lt_cv_path_LD=$lt_cv_path_LDCXX
12805 $as_unset lt_cv_path_LD
12807 test -z "${LDCXX+set}" || LD=$LDCXX
12811 for cc_temp in $compiler""; do
12813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12819 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12822 # We don't want -fno-exception wen compiling C++ code, so set the
12823 # no_builtin_flag separately
12824 if test "$GXX" = yes; then
12825 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12827 lt_prog_compiler_no_builtin_flag_CXX=
12830 if test "$GXX" = yes; then
12831 # Set up default GNU C++ configuration
12834 # Check whether --with-gnu-ld was given.
12835 if test "${with_gnu_ld+set}" = set; then
12836 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12842 if test "$GCC" = yes; then
12843 # Check if gcc -print-prog-name=ld gives a path.
12844 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12845 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12848 # gcc leaves a trailing carriage return which upsets mingw
12849 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12851 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12854 # Accept absolute paths.
12856 re_direlt='/[^/][^/]*/\.\./'
12857 # Canonicalize the pathname of ld
12858 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12859 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12860 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12862 test -z "$LD" && LD="$ac_prog"
12865 # If it fails, then pretend we aren't using GCC.
12869 # If it is relative, then search for the first ld in PATH.
12870 with_gnu_ld=unknown
12873 elif test "$with_gnu_ld" = yes; then
12874 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12875 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12877 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12878 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12880 if test "${lt_cv_path_LD+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 if test -z "$LD"; then
12884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12885 for ac_dir in $PATH; do
12887 test -z "$ac_dir" && ac_dir=.
12888 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12889 lt_cv_path_LD="$ac_dir/$ac_prog"
12890 # Check to see if the program is GNU ld. I'd rather use --version,
12891 # but apparently some variants of GNU ld only accept -v.
12892 # Break only if it was the GNU/non-GNU ld that we prefer.
12893 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12894 *GNU* | *'with BFD'*)
12895 test "$with_gnu_ld" != no && break
12898 test "$with_gnu_ld" != yes && break
12905 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12909 LD="$lt_cv_path_LD"
12910 if test -n "$LD"; then
12911 { echo "$as_me:$LINENO: result: $LD" >&5
12912 echo "${ECHO_T}$LD" >&6; }
12914 { echo "$as_me:$LINENO: result: no" >&5
12915 echo "${ECHO_T}no" >&6; }
12917 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12918 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12919 { (exit 1); exit 1; }; }
12920 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12921 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12922 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12926 case `$LD -v 2>&1 </dev/null` in
12927 *GNU* | *'with BFD'*)
12928 lt_cv_prog_gnu_ld=yes
12931 lt_cv_prog_gnu_ld=no
12935 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12936 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12937 with_gnu_ld=$lt_cv_prog_gnu_ld
12941 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12942 # archiving commands below assume that GNU ld is being used.
12943 if test "$with_gnu_ld" = yes; then
12944 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 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'
12947 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12950 # If archive_cmds runs LD, not CC, wlarc should be empty
12951 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12952 # investigate it a little bit more. (MM)
12955 # ancient GNU ld didn't support --whole-archive et. al.
12956 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12957 grep 'no-whole-archive' > /dev/null; then
12958 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12960 whole_archive_flag_spec_CXX=
12966 # A generic and very simple default shared library creation
12967 # command for GNU C++ for the case where it uses the native
12968 # linker, instead of GNU ld. If possible, this setting should
12969 # overridden to take advantage of the native linker features on
12970 # the platform it is being used on.
12971 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12974 # Commands to make compiler produce verbose output that lists
12975 # what "hidden" libraries, object files and flags are used when
12976 # linking a shared library.
12977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12985 # PORTME: fill in a description of your system's C++ link characteristics
12986 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12991 # FIXME: insert proper C++ library support
12995 if test "$host_cpu" = ia64; then
12996 # On IA64, the linker does run time linking by default, so we don't
12997 # have to do anything special.
12998 aix_use_runtimelinking=no
12999 exp_sym_flag='-Bexport'
13002 aix_use_runtimelinking=no
13004 # Test if we are trying to use run time linking or normal
13005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13006 # need to do runtime linking.
13007 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13008 for ld_flag in $LDFLAGS; do
13011 aix_use_runtimelinking=yes
13019 exp_sym_flag='-bexport'
13020 no_entry_flag='-bnoentry'
13023 # When large executables or shared objects are built, AIX ld can
13024 # have problems creating the table of contents. If linking a library
13025 # or program results in "error TOC overflow" add -mminimal-toc to
13026 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13027 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13029 archive_cmds_CXX=''
13030 hardcode_direct_CXX=yes
13031 hardcode_libdir_separator_CXX=':'
13032 link_all_deplibs_CXX=yes
13034 if test "$GXX" = yes; then
13035 case $host_os in aix4.[012]|aix4.[012].*)
13036 # We only want to do this on AIX 4.2 and lower, the check
13037 # below for broken collect2 doesn't work under 4.3+
13038 collect2name=`${CC} -print-prog-name=collect2`
13039 if test -f "$collect2name" && \
13040 strings "$collect2name" | grep resolve_lib_name >/dev/null
13042 # We have reworked collect2
13045 # We have old collect2
13046 hardcode_direct_CXX=unsupported
13047 # It fails to find uninstalled libraries when the uninstalled
13048 # path is not listed in the libpath. Setting hardcode_minus_L
13049 # to unsupported forces relinking
13050 hardcode_minus_L_CXX=yes
13051 hardcode_libdir_flag_spec_CXX='-L$libdir'
13052 hardcode_libdir_separator_CXX=
13056 shared_flag='-shared'
13057 if test "$aix_use_runtimelinking" = yes; then
13058 shared_flag="$shared_flag "'${wl}-G'
13062 if test "$host_cpu" = ia64; then
13063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13064 # chokes on -Wl,-G. The following line is correct:
13067 if test "$aix_use_runtimelinking" = yes; then
13068 shared_flag='${wl}-G'
13070 shared_flag='${wl}-bM:SRE'
13075 # It seems that -bexpall does not export symbols beginning with
13076 # underscore (_), so it is better to generate a list of symbols to export.
13077 always_export_symbols_CXX=yes
13078 if test "$aix_use_runtimelinking" = yes; then
13079 # Warning - without using the other runtime loading flags (-brtl),
13080 # -berok will link without error, but may produce a broken library.
13081 allow_undefined_flag_CXX='-berok'
13082 # Determine the default libpath from the value encoded in an empty executable.
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13098 rm -f conftest.$ac_objext conftest$ac_exeext
13099 if { (ac_try="$ac_link"
13100 case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_link") 2>conftest.er1
13107 grep -v '^ *+' conftest.er1 >conftest.err
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } && {
13112 test -z "$ac_cxx_werror_flag" ||
13113 test ! -s conftest.err
13114 } && test -s conftest$ac_exeext &&
13115 $as_test_x conftest$ac_exeext; then
13117 lt_aix_libpath_sed='
13118 /Import File Strings/,/^$/ {
13124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13125 # Check for a 64-bit object if we didn't find anything.
13126 if test -z "$aix_libpath"; then
13127 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13137 conftest$ac_exeext conftest.$ac_ext
13138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13140 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13142 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"
13144 if test "$host_cpu" = ia64; then
13145 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13146 allow_undefined_flag_CXX="-z nodefs"
13147 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"
13149 # Determine the default libpath from the value encoded in an empty executable.
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (ac_try="$ac_link"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_link") 2>conftest.er1
13174 grep -v '^ *+' conftest.er1 >conftest.err
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } && {
13179 test -z "$ac_cxx_werror_flag" ||
13180 test ! -s conftest.err
13181 } && test -s conftest$ac_exeext &&
13182 $as_test_x conftest$ac_exeext; then
13184 lt_aix_libpath_sed='
13185 /Import File Strings/,/^$/ {
13191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13192 # Check for a 64-bit object if we didn't find anything.
13193 if test -z "$aix_libpath"; then
13194 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204 conftest$ac_exeext conftest.$ac_ext
13205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13207 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13208 # Warning - without using the other run time loading flags,
13209 # -berok will link without error, but may produce a broken library.
13210 no_undefined_flag_CXX=' ${wl}-bernotok'
13211 allow_undefined_flag_CXX=' ${wl}-berok'
13212 # Exported symbols can be pulled into shared objects from archives
13213 whole_archive_flag_spec_CXX='$convenience'
13214 archive_cmds_need_lc_CXX=yes
13215 # This is similar to how AIX traditionally builds its shared libraries.
13216 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'
13222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13223 allow_undefined_flag_CXX=unsupported
13224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13225 # support --undefined. This deserves some investigation. FIXME
13226 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13233 case $cc_basename in
13235 # FIXME: insert proper C++ library support
13241 cygwin* | mingw* | pw32*)
13242 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13243 # as there is no search path for DLLs.
13244 hardcode_libdir_flag_spec_CXX='-L$libdir'
13245 allow_undefined_flag_CXX=unsupported
13246 always_export_symbols_CXX=no
13247 enable_shared_with_static_runtimes_CXX=yes
13249 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13250 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'
13251 # If the export-symbols file already is a .def file (1st line
13252 # is EXPORTS), use it as is; otherwise, prepend...
13253 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13254 cp $export_symbols $output_objdir/$soname.def;
13256 echo EXPORTS > $output_objdir/$soname.def;
13257 cat $export_symbols >> $output_objdir/$soname.def;
13259 $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'
13264 darwin* | rhapsody*)
13265 archive_cmds_need_lc_CXX=no
13266 hardcode_direct_CXX=no
13267 hardcode_automatic_CXX=yes
13268 hardcode_shlibpath_var_CXX=unsupported
13269 whole_archive_flag_spec_CXX=''
13270 link_all_deplibs_CXX=yes
13271 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13272 if test "$GXX" = yes ; then
13273 output_verbose_link_cmd='echo'
13274 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}"
13275 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13276 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}"
13277 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}"
13278 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13279 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}"
13280 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}"
13283 case $cc_basename in
13285 output_verbose_link_cmd='echo'
13286 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'
13287 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13288 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13289 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}'
13290 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}'
13300 case $cc_basename in
13302 # FIXME: insert proper C++ library support
13306 # Green Hills C++ Compiler
13307 # FIXME: insert proper C++ library support
13311 # FIXME: insert proper C++ library support
13317 # C++ shared libraries reported to be fairly broken before switch to ELF
13321 archive_cmds_need_lc_CXX=no
13323 freebsd* | dragonfly*)
13324 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13331 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13332 hardcode_libdir_separator_CXX=:
13333 export_dynamic_flag_spec_CXX='${wl}-E'
13334 hardcode_direct_CXX=yes
13335 hardcode_minus_L_CXX=yes # Not in the search PATH,
13336 # but as the default
13337 # location of the library.
13339 case $cc_basename in
13341 # FIXME: insert proper C++ library support
13345 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'
13346 # Commands to make compiler produce verbose output that lists
13347 # what "hidden" libraries, object files and flags are used when
13348 # linking a shared library.
13350 # There doesn't appear to be a way to prevent this compiler from
13351 # explicitly linking system object files so we need to strip them
13352 # from the output so that they don't get included in the library
13354 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'
13357 if test "$GXX" = yes; then
13358 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'
13360 # FIXME: insert proper C++ library support
13367 if test $with_gnu_ld = no; then
13368 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13369 hardcode_libdir_separator_CXX=:
13374 export_dynamic_flag_spec_CXX='${wl}-E'
13380 hardcode_direct_CXX=no
13381 hardcode_shlibpath_var_CXX=no
13384 hardcode_direct_CXX=yes
13385 hardcode_minus_L_CXX=yes # Not in the search PATH,
13386 # but as the default
13387 # location of the library.
13391 case $cc_basename in
13393 # FIXME: insert proper C++ library support
13399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13402 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13405 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13408 # Commands to make compiler produce verbose output that lists
13409 # what "hidden" libraries, object files and flags are used when
13410 # linking a shared library.
13412 # There doesn't appear to be a way to prevent this compiler from
13413 # explicitly linking system object files so we need to strip them
13414 # from the output so that they don't get included in the library
13416 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'
13419 if test "$GXX" = yes; then
13420 if test $with_gnu_ld = no; then
13423 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13426 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13429 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'
13434 # FIXME: insert proper C++ library support
13441 hardcode_direct_CXX=no
13442 hardcode_shlibpath_var_CXX=no
13443 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13444 export_dynamic_flag_spec_CXX='${wl}-E'
13445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13446 # Instead, shared libraries are loaded at an image base (0x10000000 by
13447 # default) and relocated if they conflict, which is a slow very memory
13448 # consuming and fragmenting process. To avoid this, we pick a random,
13449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13451 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'
13452 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'
13455 case $cc_basename in
13458 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'
13460 # Archives containing C++ object files must be created using
13461 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13462 # necessary to make sure instantiated templates are included
13464 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13467 if test "$GXX" = yes; then
13468 if test "$with_gnu_ld" = no; then
13469 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'
13471 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'
13474 link_all_deplibs_CXX=yes
13477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13478 hardcode_libdir_separator_CXX=:
13480 linux* | k*bsd*-gnu)
13481 case $cc_basename in
13483 # Kuck and Associates, Inc. (KAI) C++ Compiler
13485 # KCC will only create a shared library if the output file
13486 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13487 # to its proper name (with version) after linking.
13488 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'
13489 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'
13490 # Commands to make compiler produce verbose output that lists
13491 # what "hidden" libraries, object files and flags are used when
13492 # linking a shared library.
13494 # There doesn't appear to be a way to prevent this compiler from
13495 # explicitly linking system object files so we need to strip them
13496 # from the output so that they don't get included in the library
13498 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'
13500 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13501 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13503 # Archives containing C++ object files must be created using
13504 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13505 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13510 # version 8.0 and above of icpc choke on multiply defined symbols
13511 # if we add $predep_objects and $postdep_objects, however 7.1 and
13512 # earlier do not add the objects themselves.
13513 case `$CC -V 2>&1` in
13515 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13516 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'
13518 *) # Version 8.0 or newer
13521 ia64*) tmp_idyn=' -i_dynamic';;
13523 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13524 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'
13527 archive_cmds_need_lc_CXX=no
13528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13530 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13533 # Portland Group C++ compiler
13534 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13535 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'
13537 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13538 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13539 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'
13543 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544 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'
13546 runpath_var=LD_RUN_PATH
13547 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13548 hardcode_libdir_separator_CXX=:
13550 # Commands to make compiler produce verbose output that lists
13551 # what "hidden" libraries, object files and flags are used when
13552 # linking a shared library.
13554 # There doesn't appear to be a way to prevent this compiler from
13555 # explicitly linking system object files so we need to strip them
13556 # from the output so that they don't get included in the library
13558 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'
13561 case `$CC -V 2>&1 | sed 5q` in
13564 no_undefined_flag_CXX=' -zdefs'
13565 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13566 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'
13567 hardcode_libdir_flag_spec_CXX='-R$libdir'
13568 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'
13570 # Not sure whether something based on
13571 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13573 output_verbose_link_cmd='echo'
13575 # Archives containing C++ object files must be created using
13576 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13577 # necessary to make sure instantiated templates are included
13579 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13586 # FIXME: insert proper C++ library support
13590 # FIXME: insert proper C++ library support
13594 case $cc_basename in
13596 # FIXME: insert proper C++ library support
13600 # FIXME: insert proper C++ library support
13606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13607 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13609 hardcode_libdir_flag_spec_CXX='-R$libdir'
13610 hardcode_direct_CXX=yes
13611 hardcode_shlibpath_var_CXX=no
13613 # Workaround some broken pre-1.5 toolchains
13614 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13617 # C++ shared libraries are fairly broken
13621 if test -f /usr/libexec/ld.so; then
13622 hardcode_direct_CXX=yes
13623 hardcode_shlibpath_var_CXX=no
13624 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13627 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13628 export_dynamic_flag_spec_CXX='${wl}-E'
13629 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13631 output_verbose_link_cmd='echo'
13637 case $cc_basename in
13639 # Kuck and Associates, Inc. (KAI) C++ Compiler
13641 # KCC will only create a shared library if the output file
13642 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13643 # to its proper name (with version) after linking.
13644 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'
13646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13647 hardcode_libdir_separator_CXX=:
13649 # Archives containing C++ object files must be created using
13650 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13651 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13655 # Rational C++ 2.4.1
13656 # FIXME: insert proper C++ library support
13660 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13661 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'
13663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13664 hardcode_libdir_separator_CXX=:
13666 # Commands to make compiler produce verbose output that lists
13667 # what "hidden" libraries, object files and flags are used when
13668 # linking a shared library.
13670 # There doesn't appear to be a way to prevent this compiler from
13671 # explicitly linking system object files so we need to strip them
13672 # from the output so that they don't get included in the library
13674 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'
13677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13679 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'
13681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13682 hardcode_libdir_separator_CXX=:
13684 # Commands to make compiler produce verbose output that lists
13685 # what "hidden" libraries, object files and flags are used when
13686 # linking a shared library.
13687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13690 # FIXME: insert proper C++ library support
13697 case $cc_basename in
13699 # Kuck and Associates, Inc. (KAI) C++ Compiler
13701 # KCC will only create a shared library if the output file
13702 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13703 # to its proper name (with version) after linking.
13704 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'
13706 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13707 hardcode_libdir_separator_CXX=:
13709 # Archives containing C++ object files must be created using
13710 # the KAI C++ compiler.
13711 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13714 # Rational C++ 2.4.1
13715 # FIXME: insert proper C++ library support
13719 allow_undefined_flag_CXX=' -expect_unresolved \*'
13720 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'
13721 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13722 echo "-hidden">> $lib.exp~
13723 $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~
13726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13727 hardcode_libdir_separator_CXX=:
13729 # Commands to make compiler produce verbose output that lists
13730 # what "hidden" libraries, object files and flags are used when
13731 # linking a shared library.
13733 # There doesn't appear to be a way to prevent this compiler from
13734 # explicitly linking system object files so we need to strip them
13735 # from the output so that they don't get included in the library
13737 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'
13740 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13741 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13742 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'
13744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13745 hardcode_libdir_separator_CXX=:
13747 # Commands to make compiler produce verbose output that lists
13748 # what "hidden" libraries, object files and flags are used when
13749 # linking a shared library.
13750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13753 # FIXME: insert proper C++ library support
13760 # FIXME: insert proper C++ library support
13764 case $cc_basename in
13767 # FIXME: insert proper C++ library support
13772 # FIXME: insert proper C++ library support
13776 # FIXME: insert proper C++ library support
13782 case $cc_basename in
13784 # Sun C++ 4.2, 5.x and Centerline C++
13785 archive_cmds_need_lc_CXX=yes
13786 no_undefined_flag_CXX=' -zdefs'
13787 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13788 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13789 $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'
13791 hardcode_libdir_flag_spec_CXX='-R$libdir'
13792 hardcode_shlibpath_var_CXX=no
13794 solaris2.[0-5] | solaris2.[0-5].*) ;;
13796 # The compiler driver will combine and reorder linker options,
13797 # but understands `-z linker_flag'.
13798 # Supported since Solaris 2.6 (maybe 2.5.1?)
13799 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13802 link_all_deplibs_CXX=yes
13804 output_verbose_link_cmd='echo'
13806 # Archives containing C++ object files must be created using
13807 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13808 # necessary to make sure instantiated templates are included
13810 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13813 # Green Hills C++ Compiler
13814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13816 # The C++ compiler must be used to create the archive.
13817 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13820 # GNU C++ compiler with Solaris linker
13821 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13822 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13823 if $CC --version | grep -v '^2\.7' > /dev/null; then
13824 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13825 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13826 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13828 # Commands to make compiler produce verbose output that lists
13829 # what "hidden" libraries, object files and flags are used when
13830 # linking a shared library.
13831 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13833 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13835 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13836 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13837 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13839 # Commands to make compiler produce verbose output that lists
13840 # what "hidden" libraries, object files and flags are used when
13841 # linking a shared library.
13842 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13845 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13847 solaris2.[0-5] | solaris2.[0-5].*) ;;
13849 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13857 no_undefined_flag_CXX='${wl}-z,text'
13858 archive_cmds_need_lc_CXX=no
13859 hardcode_shlibpath_var_CXX=no
13860 runpath_var='LD_RUN_PATH'
13862 case $cc_basename in
13864 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13873 sysv5* | sco3.2v5* | sco5v6*)
13874 # Note: We can NOT use -z defs as we might desire, because we do not
13875 # link with -lc, and that would cause any symbols used from libc to
13876 # always be unresolved, which means just about no library would
13877 # ever link correctly. If we're not using GNU ld we use -z text
13878 # though, which does catch some bad symbols but isn't as heavy-handed
13880 # For security reasons, it is highly recommended that you always
13881 # use absolute paths for naming shared libraries, and exclude the
13882 # DT_RUNPATH tag from executables and libraries. But doing so
13883 # requires that you compile everything twice, which is a pain.
13884 # So that behaviour is only enabled if SCOABSPATH is set to a
13885 # non-empty value in the environment. Most likely only useful for
13886 # creating official distributions of packages.
13887 # This is a hack until libtool officially supports absolute path
13888 # names for shared libraries.
13889 no_undefined_flag_CXX='${wl}-z,text'
13890 allow_undefined_flag_CXX='${wl}-z,nodefs'
13891 archive_cmds_need_lc_CXX=no
13892 hardcode_shlibpath_var_CXX=no
13893 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13894 hardcode_libdir_separator_CXX=':'
13895 link_all_deplibs_CXX=yes
13896 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13897 runpath_var='LD_RUN_PATH'
13899 case $cc_basename in
13901 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13902 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13906 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13911 case $cc_basename in
13913 # NonStop-UX NCC 3.20
13914 # FIXME: insert proper C++ library support
13918 # FIXME: insert proper C++ library support
13924 # FIXME: insert proper C++ library support
13928 # FIXME: insert proper C++ library support
13932 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13933 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13934 test "$ld_shlibs_CXX" = no && can_build_shared=no
13939 cat > conftest.$ac_ext <<EOF
13943 Foo (void) { a = 0; }
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950 (eval $ac_compile) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; then
13954 # Parse the compiler output and extract the necessary
13955 # objects, libraries and library flags.
13957 # Sentinel used to keep track of whether or not we are before
13958 # the conftest object file.
13959 pre_test_object_deps_done=no
13961 # The `*' in the case matches for architectures that use `case' in
13962 # $output_verbose_cmd can trigger glob expansion during the loop
13963 # eval without this substitution.
13964 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13966 for p in `eval $output_verbose_link_cmd`; do
13970 # Some compilers place space between "-{L,R}" and the path.
13971 # Remove the space.
13972 if test $p = "-L" \
13973 || test $p = "-R"; then
13980 if test "$pre_test_object_deps_done" = no; then
13983 # Internal compiler library paths should come after those
13984 # provided the user. The postdeps already come after the
13985 # user supplied libs so there is no need to process them.
13986 if test -z "$compiler_lib_search_path_CXX"; then
13987 compiler_lib_search_path_CXX="${prev}${p}"
13989 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13992 # The "-l" case would never come before the object being
13993 # linked, so don't bother handling this case.
13996 if test -z "$postdeps_CXX"; then
13997 postdeps_CXX="${prev}${p}"
13999 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14005 # This assumes that the test object file only shows up
14006 # once in the compiler output.
14007 if test "$p" = "conftest.$objext"; then
14008 pre_test_object_deps_done=yes
14012 if test "$pre_test_object_deps_done" = no; then
14013 if test -z "$predep_objects_CXX"; then
14014 predep_objects_CXX="$p"
14016 predep_objects_CXX="$predep_objects_CXX $p"
14019 if test -z "$postdep_objects_CXX"; then
14020 postdep_objects_CXX="$p"
14022 postdep_objects_CXX="$postdep_objects_CXX $p"
14027 *) ;; # Ignore the rest.
14035 echo "libtool.m4: error: problem compiling CXX test program"
14038 $rm -f confest.$objext
14040 compiler_lib_search_dirs_CXX=
14041 if test -n "$compiler_lib_search_path_CXX"; then
14042 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14045 # PORTME: override above test on systems where it is broken
14048 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14049 # hack all around it, let's just trust "g++" to DTRT.
14050 predep_objects_CXX=
14051 postdep_objects_CXX=
14056 case `$CC -V 2>&1 | sed 5q` in
14060 # The more standards-conforming stlport4 library is
14061 # incompatible with the Cstd library. Avoid specifying
14062 # it if it's in CXXFLAGS. Ignore libCrun as
14063 # -library=stlport4 depends on it.
14064 case " $CXX $CXXFLAGS " in
14065 *" -library=stlport4 "*)
14066 solaris_use_stlport4=yes
14069 if test "$solaris_use_stlport4" != yes; then
14070 postdeps_CXX='-library=Cstd -library=Crun'
14077 case $cc_basename in
14079 # The more standards-conforming stlport4 library is
14080 # incompatible with the Cstd library. Avoid specifying
14081 # it if it's in CXXFLAGS. Ignore libCrun as
14082 # -library=stlport4 depends on it.
14083 case " $CXX $CXXFLAGS " in
14084 *" -library=stlport4 "*)
14085 solaris_use_stlport4=yes
14089 # Adding this requires a known-good setup of shared libraries for
14090 # Sun compiler versions before 5.6, else PIC objects from an old
14091 # archive will be linked into the output, leading to subtle bugs.
14092 if test "$solaris_use_stlport4" != yes; then
14093 postdeps_CXX='-library=Cstd -library=Crun'
14100 case " $postdeps_CXX " in
14101 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14104 lt_prog_compiler_wl_CXX=
14105 lt_prog_compiler_pic_CXX=
14106 lt_prog_compiler_static_CXX=
14108 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14109 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14111 # C++ specific cases for pic, static, wl, etc.
14112 if test "$GXX" = yes; then
14113 lt_prog_compiler_wl_CXX='-Wl,'
14114 lt_prog_compiler_static_CXX='-static'
14118 # All AIX code is PIC.
14119 if test "$host_cpu" = ia64; then
14120 # AIX 5 now supports IA64 processor
14121 lt_prog_compiler_static_CXX='-Bstatic'
14125 # FIXME: we need at least 68020 code to build shared libraries, but
14126 # adding the `-m68020' flag to GCC prevents building anything better,
14128 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14130 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14131 # PIC is the default for these OSes.
14133 mingw* | cygwin* | os2* | pw32*)
14134 # This hack is so that the source file can tell whether it is being
14135 # built for inclusion in a dll (and should export symbols for example).
14136 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14137 # (--disable-auto-import) libraries
14138 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14140 darwin* | rhapsody*)
14141 # PIC is the default on this platform
14142 # Common symbols not allowed in MH_DYLIB files
14143 lt_prog_compiler_pic_CXX='-fno-common'
14146 # DJGPP does not support shared libraries at all
14147 lt_prog_compiler_pic_CXX=
14150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14151 # Instead, we relocate shared libraries at runtime.
14154 if test -d /usr/nec; then
14155 lt_prog_compiler_pic_CXX=-Kconform_pic
14159 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14160 # not for PA HP-UX.
14165 lt_prog_compiler_pic_CXX='-fPIC'
14170 lt_prog_compiler_pic_CXX='-fPIC'
14176 # All AIX code is PIC.
14177 if test "$host_cpu" = ia64; then
14178 # AIX 5 now supports IA64 processor
14179 lt_prog_compiler_static_CXX='-Bstatic'
14181 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14185 case $cc_basename in
14187 # Green Hills C++ Compiler
14188 # _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"
14193 # PIC is the default on this platform
14194 # Common symbols not allowed in MH_DYLIB files
14195 case $cc_basename in
14197 lt_prog_compiler_pic_CXX='-qnocommon'
14198 lt_prog_compiler_wl_CXX='-Wl,'
14203 case $cc_basename in
14205 lt_prog_compiler_pic_CXX='-KPIC'
14208 # Green Hills C++ Compiler
14209 lt_prog_compiler_pic_CXX='-pic'
14215 freebsd* | dragonfly*)
14216 # FreeBSD uses GNU C++
14218 hpux9* | hpux10* | hpux11*)
14219 case $cc_basename in
14221 lt_prog_compiler_wl_CXX='-Wl,'
14222 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14223 if test "$host_cpu" != ia64; then
14224 lt_prog_compiler_pic_CXX='+Z'
14228 lt_prog_compiler_wl_CXX='-Wl,'
14229 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14235 lt_prog_compiler_pic_CXX='+Z'
14244 # This is c89, which is MS Visual C++ (no shared libs)
14245 # Anyone wants to do a port?
14247 irix5* | irix6* | nonstopux*)
14248 case $cc_basename in
14250 lt_prog_compiler_wl_CXX='-Wl,'
14251 lt_prog_compiler_static_CXX='-non_shared'
14252 # CC pic flag -KPIC is the default.
14258 linux* | k*bsd*-gnu)
14259 case $cc_basename in
14262 lt_prog_compiler_wl_CXX='--backend -Wl,'
14263 lt_prog_compiler_pic_CXX='-fPIC'
14267 lt_prog_compiler_wl_CXX='-Wl,'
14268 lt_prog_compiler_pic_CXX='-KPIC'
14269 lt_prog_compiler_static_CXX='-static'
14272 # Portland Group C++ compiler.
14273 lt_prog_compiler_wl_CXX='-Wl,'
14274 lt_prog_compiler_pic_CXX='-fpic'
14275 lt_prog_compiler_static_CXX='-Bstatic'
14279 # Make sure the PIC flag is empty. It appears that all Alpha
14280 # Linux and Compaq Tru64 Unix objects are PIC.
14281 lt_prog_compiler_pic_CXX=
14282 lt_prog_compiler_static_CXX='-non_shared'
14285 case `$CC -V 2>&1 | sed 5q` in
14288 lt_prog_compiler_pic_CXX='-KPIC'
14289 lt_prog_compiler_static_CXX='-Bstatic'
14290 lt_prog_compiler_wl_CXX='-Qoption ld '
14301 case $cc_basename in
14303 lt_prog_compiler_pic_CXX='-W c,exportall'
14311 osf3* | osf4* | osf5*)
14312 case $cc_basename in
14314 lt_prog_compiler_wl_CXX='--backend -Wl,'
14317 # Rational C++ 2.4.1
14318 lt_prog_compiler_pic_CXX='-pic'
14321 # Digital/Compaq C++
14322 lt_prog_compiler_wl_CXX='-Wl,'
14323 # Make sure the PIC flag is empty. It appears that all Alpha
14324 # Linux and Compaq Tru64 Unix objects are PIC.
14325 lt_prog_compiler_pic_CXX=
14326 lt_prog_compiler_static_CXX='-non_shared'
14335 case $cc_basename in
14337 # Sun C++ 4.2, 5.x and Centerline C++
14338 lt_prog_compiler_pic_CXX='-KPIC'
14339 lt_prog_compiler_static_CXX='-Bstatic'
14340 lt_prog_compiler_wl_CXX='-Qoption ld '
14343 # Green Hills C++ Compiler
14344 lt_prog_compiler_pic_CXX='-PIC'
14351 case $cc_basename in
14354 lt_prog_compiler_pic_CXX='-pic'
14355 lt_prog_compiler_static_CXX='-Bstatic'
14359 lt_prog_compiler_pic_CXX='-pic'
14366 case $cc_basename in
14368 # NonStop-UX NCC 3.20
14369 lt_prog_compiler_pic_CXX='-KPIC'
14375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14376 case $cc_basename in
14378 lt_prog_compiler_wl_CXX='-Wl,'
14379 lt_prog_compiler_pic_CXX='-KPIC'
14380 lt_prog_compiler_static_CXX='-Bstatic'
14387 lt_prog_compiler_can_build_shared_CXX=no
14392 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14393 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14396 # Check to make sure the PIC flag actually works.
14398 if test -n "$lt_prog_compiler_pic_CXX"; then
14400 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14401 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14402 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14405 lt_cv_prog_compiler_pic_works_CXX=no
14406 ac_outfile=conftest.$ac_objext
14407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14408 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14409 # Insert the option either (1) after the last *FLAGS variable, or
14410 # (2) before a word containing "conftest.", or (3) at the end.
14411 # Note that $ac_compile itself does not contain backslashes and begins
14412 # with a dollar sign (not a hyphen), so the echo should work correctly.
14413 # The option is referenced via a variable to avoid confusing sed.
14414 lt_compile=`echo "$ac_compile" | $SED \
14415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14417 -e 's:$: $lt_compiler_flag:'`
14418 (eval echo "\"\$as_me:14418: $lt_compile\"" >&5)
14419 (eval "$lt_compile" 2>conftest.err)
14421 cat conftest.err >&5
14422 echo "$as_me:14422: \$? = $ac_status" >&5
14423 if (exit $ac_status) && test -s "$ac_outfile"; then
14424 # The compiler can only warn and ignore the option if not recognized
14425 # So say no if there are warnings other than the usual output.
14426 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14429 lt_cv_prog_compiler_pic_works_CXX=yes
14435 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14436 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14438 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14439 case $lt_prog_compiler_pic_CXX in
14441 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14444 lt_prog_compiler_pic_CXX=
14445 lt_prog_compiler_can_build_shared_CXX=no
14450 # For platforms which do not support PIC, -DPIC is meaningless:
14452 lt_prog_compiler_pic_CXX=
14455 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14460 # Check to make sure the static flag actually works.
14462 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14463 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14464 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14465 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 lt_cv_prog_compiler_static_works_CXX=no
14469 save_LDFLAGS="$LDFLAGS"
14470 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14471 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14472 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14473 # The linker can only warn and ignore the option if not recognized
14474 # So say no if there are warnings
14475 if test -s conftest.err; then
14476 # Append any errors to the config.log.
14477 cat conftest.err 1>&5
14478 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14480 if diff conftest.exp conftest.er2 >/dev/null; then
14481 lt_cv_prog_compiler_static_works_CXX=yes
14484 lt_cv_prog_compiler_static_works_CXX=yes
14488 LDFLAGS="$save_LDFLAGS"
14491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14492 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14494 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14497 lt_prog_compiler_static_CXX=
14501 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14502 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14503 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 lt_cv_prog_compiler_c_o_CXX=no
14507 $rm -r conftest 2>/dev/null
14511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14513 lt_compiler_flag="-o out/conftest2.$ac_objext"
14514 # Insert the option either (1) after the last *FLAGS variable, or
14515 # (2) before a word containing "conftest.", or (3) at the end.
14516 # Note that $ac_compile itself does not contain backslashes and begins
14517 # with a dollar sign (not a hyphen), so the echo should work correctly.
14518 lt_compile=`echo "$ac_compile" | $SED \
14519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14521 -e 's:$: $lt_compiler_flag:'`
14522 (eval echo "\"\$as_me:14522: $lt_compile\"" >&5)
14523 (eval "$lt_compile" 2>out/conftest.err)
14525 cat out/conftest.err >&5
14526 echo "$as_me:14526: \$? = $ac_status" >&5
14527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14529 # The compiler can only warn and ignore the option if not recognized
14530 # So say no if there are warnings
14531 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14534 lt_cv_prog_compiler_c_o_CXX=yes
14539 # SGI C++ compiler will create directory out/ii_files/ for
14540 # template instantiation
14541 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14542 $rm out/* && rmdir out
14548 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14549 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14552 hard_links="nottested"
14553 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14554 # do not overwrite the value of need_locks provided by the user
14555 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14556 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14561 ln conftest.a conftest.b 2>&5 || hard_links=no
14562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14563 { echo "$as_me:$LINENO: result: $hard_links" >&5
14564 echo "${ECHO_T}$hard_links" >&6; }
14565 if test "$hard_links" = no; then
14566 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14567 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14574 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14575 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14580 # If we're using GNU nm, then we don't want the "-C" option.
14581 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14582 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14583 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'
14585 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'
14589 export_symbols_cmds_CXX="$ltdll_cmds"
14592 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'
14595 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14598 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14600 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14601 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14602 test "$ld_shlibs_CXX" = no && can_build_shared=no
14605 # Do we need to explicitly link libc?
14607 case "x$archive_cmds_need_lc_CXX" in
14609 # Assume -lc should be added
14610 archive_cmds_need_lc_CXX=yes
14612 if test "$enable_shared" = yes && test "$GCC" = yes; then
14613 case $archive_cmds_CXX in
14615 # FIXME: we may have to deal with multi-command sequences.
14618 # Test whether the compiler implicitly links with -lc since on some
14619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14620 # to ld, don't add -lc before -lgcc.
14621 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14622 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14627 (eval $ac_compile) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } 2>conftest.err; then
14633 libobjs=conftest.$ac_objext
14635 wl=$lt_prog_compiler_wl_CXX
14636 pic_flag=$lt_prog_compiler_pic_CXX
14642 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14643 allow_undefined_flag_CXX=
14644 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14645 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }
14650 archive_cmds_need_lc_CXX=no
14652 archive_cmds_need_lc_CXX=yes
14654 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14656 cat conftest.err 1>&5
14659 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14660 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14667 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14669 library_names_spec=
14670 libname_spec='lib$name'
14674 postuninstall_cmds=
14678 shlibpath_overrides_runpath=unknown
14680 dynamic_linker="$host_os ld.so"
14681 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14683 need_lib_prefix=unknown
14684 hardcode_into_libs=no
14686 # when you set need_version to no, make sure it does not cause -set_version
14687 # flags to be left without arguments
14688 need_version=unknown
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14694 shlibpath_var=LIBPATH
14696 # AIX 3 has no versioning support, so we append a major version to the name.
14697 soname_spec='${libname}${release}${shared_ext}$major'
14704 hardcode_into_libs=yes
14705 if test "$host_cpu" = ia64; then
14706 # AIX 5 supports IA64
14707 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14708 shlibpath_var=LD_LIBRARY_PATH
14710 # With GCC up to 2.95.x, collect2 would create an import file
14711 # for dependence libraries. The import file would start with
14712 # the line `#! .'. This would cause the generated library to
14713 # depend on `.', always an invalid library. This was fixed in
14714 # development snapshots of GCC prior to 3.0.
14716 aix4 | aix4.[01] | aix4.[01].*)
14717 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14719 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14722 can_build_shared=no
14726 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14727 # soname into executable. Probably we can add versioning support to
14728 # collect2, so additional links can be useful in future.
14729 if test "$aix_use_runtimelinking" = yes; then
14730 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14731 # instead of lib<name>.a to let people know that these are not
14732 # typical AIX shared libraries.
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 # We preserve .a as extension for shared libraries through AIX4.2
14736 # and later when we are not doing run time linking.
14737 library_names_spec='${libname}${release}.a $libname.a'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14740 shlibpath_var=LIBPATH
14745 library_names_spec='$libname.ixlibrary $libname.a'
14746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14747 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'
14751 library_names_spec='${libname}${shared_ext}'
14752 dynamic_linker="$host_os ld.so"
14753 shlibpath_var=LIBRARY_PATH
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760 soname_spec='${libname}${release}${shared_ext}$major'
14761 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14762 shlibpath_var=LD_LIBRARY_PATH
14763 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14764 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14765 # the default ld.so.conf also contains /usr/contrib/lib and
14766 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14767 # libtool to hard-code these into programs
14770 cygwin* | mingw* | pw32*)
14771 version_type=windows
14776 case $GCC,$host_os in
14777 yes,cygwin* | yes,mingw* | yes,pw32*)
14778 library_names_spec='$libname.dll.a'
14779 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14780 postinstall_cmds='base_file=`basename \${file}`~
14781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14782 dldir=$destdir/`dirname \$dlpath`~
14783 test -d \$dldir || mkdir -p \$dldir~
14784 $install_prog $dir/$dlname \$dldir/$dlname~
14785 chmod a+x \$dldir/$dlname'
14786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14787 dlpath=$dir/\$dldll~
14789 shlibpath_overrides_runpath=yes
14793 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14795 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14798 # MinGW DLLs use traditional 'lib' prefix
14799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14801 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14802 # It is most probably a Windows format PATH printed by
14803 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14804 # path with ; separators, and with drive letters. We can handle the
14805 # drive letters (cygwin fileutils understands them), so leave them,
14806 # especially as we might pass files found there to a mingw objdump,
14807 # which wouldn't understand a cygwinified path. Ahh.
14808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14814 # pw32 DLLs use 'pw' prefix rather than 'lib'
14815 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14821 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14824 dynamic_linker='Win32 ld.exe'
14825 # FIXME: first we should search . and the directory the executable is in
14829 darwin* | rhapsody*)
14830 dynamic_linker="$host_os dyld"
14831 version_type=darwin
14834 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14835 soname_spec='${libname}${release}${major}$shared_ext'
14836 shlibpath_overrides_runpath=yes
14837 shlibpath_var=DYLD_LIBRARY_PATH
14838 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 shlibpath_var=LD_LIBRARY_PATH
14856 freebsd* | dragonfly*)
14857 # DragonFly does not have aout. When/if they implement a new
14858 # versioning mechanism, adjust this.
14859 if test -x /usr/bin/objformat; then
14860 objformat=`/usr/bin/objformat`
14863 freebsd[123]*) objformat=aout ;;
14864 *) objformat=elf ;;
14867 version_type=freebsd-$objformat
14868 case $version_type in
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14879 shlibpath_var=LD_LIBRARY_PATH
14882 shlibpath_overrides_runpath=yes
14884 freebsd3.[01]* | freebsdelf3.[01]*)
14885 shlibpath_overrides_runpath=yes
14886 hardcode_into_libs=yes
14888 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14889 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14890 shlibpath_overrides_runpath=no
14891 hardcode_into_libs=yes
14893 *) # from 4.6 on, and DragonFly
14894 shlibpath_overrides_runpath=yes
14895 hardcode_into_libs=yes
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 hardcode_into_libs=yes
14910 hpux9* | hpux10* | hpux11*)
14911 # Give a soname corresponding to the major version so that dld.sl refuses to
14912 # link against other versions.
14919 hardcode_into_libs=yes
14920 dynamic_linker="$host_os dld.so"
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 if test "X$HPUX_IA64_MODE" = X32; then
14926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14934 hardcode_into_libs=yes
14935 dynamic_linker="$host_os dld.sl"
14936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14945 dynamic_linker="$host_os dld.sl"
14946 shlibpath_var=SHLIB_PATH
14947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14953 postinstall_cmds='chmod 555 $lib'
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14963 shlibpath_var=LD_LIBRARY_PATH
14964 shlibpath_overrides_runpath=no
14965 hardcode_into_libs=yes
14968 irix5* | irix6* | nonstopux*)
14970 nonstopux*) version_type=nonstopux ;;
14972 if test "$lt_cv_prog_gnu_ld" = yes; then
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14983 irix5* | nonstopux*)
14984 libsuff= shlibsuff=
14987 case $LD in # libtool.m4 will add one of these switches to LD
14988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14989 libsuff= shlibsuff= libmagic=32-bit;;
14990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14991 libsuff=32 shlibsuff=N32 libmagic=N32;;
14992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14993 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14994 *) libsuff= shlibsuff= libmagic=never-match;;
14998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14999 shlibpath_overrides_runpath=no
15000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15002 hardcode_into_libs=yes
15005 # No shared lib support for Linux oldld, aout, or coff.
15006 linux*oldld* | linux*aout* | linux*coff*)
15010 # This must be Linux ELF.
15011 linux* | k*bsd*-gnu)
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15018 shlibpath_var=LD_LIBRARY_PATH
15019 shlibpath_overrides_runpath=no
15020 # This implies no fast_install, which is unacceptable.
15021 # Some rework will be needed to allow for fast_install
15022 # before this can be enabled.
15023 hardcode_into_libs=yes
15025 # Append ld.so.conf contents to the search path
15026 if test -f /etc/ld.so.conf; then
15027 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' ' '`
15028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15031 # We used to test for /lib/ld.so.1 and disable shared libraries on
15032 # powerpc, because MkLinux only supported shared libraries with the
15033 # GNU dynamic linker. Since this was broken with cross compilers,
15034 # most powerpc-linux boxes support dynamic linking these days and
15035 # people can always --disable-shared, the test was removed, and we
15036 # assume the GNU/Linux dynamic linker is in use.
15037 dynamic_linker='GNU/Linux ld.so'
15044 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15047 dynamic_linker='NetBSD (a.out) ld.so'
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 dynamic_linker='NetBSD ld.elf_so'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 shlibpath_overrides_runpath=yes
15055 hardcode_into_libs=yes
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 shlibpath_overrides_runpath=yes
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=yes
15077 sys_lib_dlsearch_path_spec="/usr/lib"
15079 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15081 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15082 *) need_version=no ;;
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15089 openbsd2.[89] | openbsd2.[89].*)
15090 shlibpath_overrides_runpath=no
15093 shlibpath_overrides_runpath=yes
15097 shlibpath_overrides_runpath=yes
15102 libname_spec='$name'
15105 library_names_spec='$libname${shared_ext} $libname.a'
15106 dynamic_linker='OS/2 ld.exe'
15107 shlibpath_var=LIBPATH
15110 osf3* | osf4* | osf5*)
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 shlibpath_var=LD_LIBRARY_PATH
15117 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15118 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 shlibpath_var=LD_LIBRARY_PATH
15132 shlibpath_overrides_runpath=yes
15133 hardcode_into_libs=yes
15134 # ldd complains unless libraries are executable
15135 postinstall_cmds='chmod +x $lib'
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15141 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=yes
15144 if test "$with_gnu_ld" = yes; then
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 case $host_vendor in
15157 shlibpath_overrides_runpath=no
15159 export_dynamic_flag_spec='${wl}-Blargedynsym'
15160 runpath_var=LD_RUN_PATH
15168 shlibpath_overrides_runpath=no
15169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15175 if test -d /usr/nec ;then
15177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15178 soname_spec='$libname${shared_ext}.$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15184 version_type=freebsd-elf
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 hardcode_into_libs=yes
15191 if test "$with_gnu_ld" = yes; then
15192 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15193 shlibpath_overrides_runpath=no
15195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15196 shlibpath_overrides_runpath=yes
15199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15203 sys_lib_dlsearch_path_spec='/usr/lib'
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15217 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15218 echo "${ECHO_T}$dynamic_linker" >&6; }
15219 test "$dynamic_linker" = no && can_build_shared=no
15221 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15227 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15228 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
15231 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15237 if test "$GCC" = yes; then
15238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15241 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15242 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15243 hardcode_action_CXX=
15244 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15245 test -n "$runpath_var_CXX" || \
15246 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15248 # We can hardcode non-existant directories.
15249 if test "$hardcode_direct_CXX" != no &&
15250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15251 # have to relink, otherwise we might link with an installed library
15252 # when we should be linking with a yet-to-be-installed one
15253 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15254 test "$hardcode_minus_L_CXX" != no; then
15255 # Linking always hardcodes the temporary library directory.
15256 hardcode_action_CXX=relink
15258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15259 hardcode_action_CXX=immediate
15262 # We cannot hardcode anything, or else we can only hardcode existing
15264 hardcode_action_CXX=unsupported
15266 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15267 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15269 if test "$hardcode_action_CXX" = relink; then
15270 # Fast installation is not supported
15271 enable_fast_install=no
15272 elif test "$shlibpath_overrides_runpath" = yes ||
15273 test "$enable_shared" = no; then
15274 # Fast installation is not necessary
15275 enable_fast_install=needless
15279 # The else clause should only fire when bootstrapping the
15280 # libtool distribution, otherwise you forgot to ship ltmain.sh
15281 # with your package, and you will get complaints that there are
15282 # no rules to generate ltmain.sh.
15283 if test -f "$ltmain"; then
15284 # See if we are running on zsh, and set the options which allow our commands through
15285 # without removal of \ escapes.
15286 if test -n "${ZSH_VERSION+set}" ; then
15287 setopt NO_GLOB_SUBST
15289 # Now quote all the things that may contain metacharacters while being
15290 # careful not to overquote the AC_SUBSTed values. We take copies of the
15291 # variables and quote the copies for generation of the libtool script.
15292 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15294 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15295 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15296 deplibs_check_method reload_flag reload_cmds need_locks \
15297 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15298 lt_cv_sys_global_symbol_to_c_name_address \
15299 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15300 old_postinstall_cmds old_postuninstall_cmds \
15304 lt_prog_compiler_wl_CXX \
15305 lt_prog_compiler_pic_CXX \
15306 lt_prog_compiler_static_CXX \
15307 lt_prog_compiler_no_builtin_flag_CXX \
15308 export_dynamic_flag_spec_CXX \
15309 thread_safe_flag_spec_CXX \
15310 whole_archive_flag_spec_CXX \
15311 enable_shared_with_static_runtimes_CXX \
15312 old_archive_cmds_CXX \
15313 old_archive_from_new_cmds_CXX \
15314 predep_objects_CXX \
15315 postdep_objects_CXX \
15318 compiler_lib_search_path_CXX \
15319 compiler_lib_search_dirs_CXX \
15321 archive_expsym_cmds_CXX \
15322 postinstall_cmds_CXX \
15323 postuninstall_cmds_CXX \
15324 old_archive_from_expsyms_cmds_CXX \
15325 allow_undefined_flag_CXX \
15326 no_undefined_flag_CXX \
15327 export_symbols_cmds_CXX \
15328 hardcode_libdir_flag_spec_CXX \
15329 hardcode_libdir_flag_spec_ld_CXX \
15330 hardcode_libdir_separator_CXX \
15331 hardcode_automatic_CXX \
15333 module_expsym_cmds_CXX \
15334 lt_cv_prog_compiler_c_o_CXX \
15335 fix_srcfile_path_CXX \
15336 exclude_expsyms_CXX \
15337 include_expsyms_CXX; do
15340 old_archive_cmds_CXX | \
15341 old_archive_from_new_cmds_CXX | \
15342 archive_cmds_CXX | \
15343 archive_expsym_cmds_CXX | \
15344 module_cmds_CXX | \
15345 module_expsym_cmds_CXX | \
15346 old_archive_from_expsyms_cmds_CXX | \
15347 export_symbols_cmds_CXX | \
15348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15349 postinstall_cmds | postuninstall_cmds | \
15350 old_postinstall_cmds | old_postuninstall_cmds | \
15351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15352 # Double-quote double-evaled strings.
15353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15362 *'\$0 --fallback-echo"')
15363 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15369 cat <<__EOF__ >> "$cfgfile"
15370 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15374 # Shell to use when invoking shell scripts.
15377 # Whether or not to build shared libraries.
15378 build_libtool_libs=$enable_shared
15380 # Whether or not to build static libraries.
15381 build_old_libs=$enable_static
15383 # Whether or not to add -lc for building shared libraries.
15384 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15386 # Whether or not to disallow shared libs when runtime libs are static
15387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15389 # Whether or not to optimize for fast installation.
15390 fast_install=$enable_fast_install
15393 host_alias=$host_alias
15397 # The build system.
15398 build_alias=$build_alias
15402 # An echo program that does not interpret backslashes.
15407 AR_FLAGS=$lt_AR_FLAGS
15412 # LTCC compiler flags.
15413 LTCFLAGS=$lt_LTCFLAGS
15415 # A language-specific compiler.
15416 CC=$lt_compiler_CXX
15418 # Is the compiler the GNU C compiler?
15424 # The linker used to build libraries.
15427 # Whether we need hard or soft links.
15430 # A BSD-compatible nm program.
15433 # A symbol stripping program
15436 # Used to examine libraries when file_magic_cmd begins "file"
15437 MAGIC_CMD=$MAGIC_CMD
15439 # Used on cygwin: DLL creation program.
15442 # Used on cygwin: object dumper.
15445 # Used on cygwin: assembler.
15448 # The name of the directory that contains temporary libtool files.
15451 # How to create reloadable object files.
15452 reload_flag=$lt_reload_flag
15453 reload_cmds=$lt_reload_cmds
15455 # How to pass a linker flag through the compiler.
15456 wl=$lt_lt_prog_compiler_wl_CXX
15458 # Object file suffix (normally "o").
15459 objext="$ac_objext"
15461 # Old archive suffix (normally "a").
15464 # Shared library suffix (normally ".so").
15465 shrext_cmds='$shrext_cmds'
15467 # Executable file suffix (normally "").
15470 # Additional compiler flags for building library objects.
15471 pic_flag=$lt_lt_prog_compiler_pic_CXX
15474 # What is the maximum length of a command?
15475 max_cmd_len=$lt_cv_sys_max_cmd_len
15477 # Does compiler simultaneously support -c and -o options?
15478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15480 # Must we lock files when doing compilation?
15481 need_locks=$lt_need_locks
15483 # Do we need the lib prefix for modules?
15484 need_lib_prefix=$need_lib_prefix
15486 # Do we need a version for libraries?
15487 need_version=$need_version
15489 # Whether dlopen is supported.
15490 dlopen_support=$enable_dlopen
15492 # Whether dlopen of programs is supported.
15493 dlopen_self=$enable_dlopen_self
15495 # Whether dlopen of statically linked programs is supported.
15496 dlopen_self_static=$enable_dlopen_self_static
15498 # Compiler flag to prevent dynamic linking.
15499 link_static_flag=$lt_lt_prog_compiler_static_CXX
15501 # Compiler flag to turn off builtin functions.
15502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15504 # Compiler flag to allow reflexive dlopens.
15505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15507 # Compiler flag to generate shared objects directly from archives.
15508 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15510 # Compiler flag to generate thread-safe objects.
15511 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15513 # Library versioning type.
15514 version_type=$version_type
15516 # Format of library name prefix.
15517 libname_spec=$lt_libname_spec
15519 # List of archive names. First name is the real one, the rest are links.
15520 # The last name is the one that the linker finds with -lNAME.
15521 library_names_spec=$lt_library_names_spec
15523 # The coded name of the library, if different from the real name.
15524 soname_spec=$lt_soname_spec
15526 # Commands used to build and install an old-style archive.
15528 old_archive_cmds=$lt_old_archive_cmds_CXX
15529 old_postinstall_cmds=$lt_old_postinstall_cmds
15530 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15532 # Create an old-style archive from a shared archive.
15533 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15535 # Create a temporary old-style archive to link instead of a shared archive.
15536 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15538 # Commands used to build and install a shared archive.
15539 archive_cmds=$lt_archive_cmds_CXX
15540 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15541 postinstall_cmds=$lt_postinstall_cmds
15542 postuninstall_cmds=$lt_postuninstall_cmds
15544 # Commands used to build a loadable module (assumed same as above if empty)
15545 module_cmds=$lt_module_cmds_CXX
15546 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15548 # Commands to strip libraries.
15549 old_striplib=$lt_old_striplib
15550 striplib=$lt_striplib
15552 # Dependencies to place before the objects being linked to create a
15554 predep_objects=$lt_predep_objects_CXX
15556 # Dependencies to place after the objects being linked to create a
15558 postdep_objects=$lt_postdep_objects_CXX
15560 # Dependencies to place before the objects being linked to create a
15562 predeps=$lt_predeps_CXX
15564 # Dependencies to place after the objects being linked to create a
15566 postdeps=$lt_postdeps_CXX
15568 # The directories searched by this compiler when creating a shared
15570 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15572 # The library search path used internally by the compiler when linking
15573 # a shared library.
15574 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15576 # Method to check whether dependent libraries are shared objects.
15577 deplibs_check_method=$lt_deplibs_check_method
15579 # Command to use when deplibs_check_method == file_magic.
15580 file_magic_cmd=$lt_file_magic_cmd
15582 # Flag that allows shared libraries with undefined symbols to be built.
15583 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15585 # Flag that forces no undefined symbols.
15586 no_undefined_flag=$lt_no_undefined_flag_CXX
15588 # Commands used to finish a libtool library installation in a directory.
15589 finish_cmds=$lt_finish_cmds
15591 # Same as above, but a single script fragment to be evaled but not shown.
15592 finish_eval=$lt_finish_eval
15594 # Take the output of nm and produce a listing of raw symbols and C names.
15595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15597 # Transform the output of nm in a proper C declaration
15598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15600 # Transform the output of nm in a C name address pair
15601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15603 # This is the shared library runtime path variable.
15604 runpath_var=$runpath_var
15606 # This is the shared library path variable.
15607 shlibpath_var=$shlibpath_var
15609 # Is shlibpath searched before the hard-coded library search path?
15610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15612 # How to hardcode a shared library path into an executable.
15613 hardcode_action=$hardcode_action_CXX
15615 # Whether we should hardcode library paths into libraries.
15616 hardcode_into_libs=$hardcode_into_libs
15618 # Flag to hardcode \$libdir into a binary during linking.
15619 # This must work even if \$libdir does not exist.
15620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15622 # If ld is used when linking, flag to hardcode \$libdir into
15623 # a binary during linking. This must work even if \$libdir does
15625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15627 # Whether we need a single -rpath flag with a separated argument.
15628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15631 # resulting binary.
15632 hardcode_direct=$hardcode_direct_CXX
15634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15635 # resulting binary.
15636 hardcode_minus_L=$hardcode_minus_L_CXX
15638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15639 # the resulting binary.
15640 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15642 # Set to yes if building a shared library automatically hardcodes DIR into the library
15643 # and all subsequent libraries and executables linked against it.
15644 hardcode_automatic=$hardcode_automatic_CXX
15646 # Variables whose values should be saved in libtool wrapper scripts and
15647 # restored at relink time.
15648 variables_saved_for_relink="$variables_saved_for_relink"
15650 # Whether libtool must link a program against all its dependency libraries.
15651 link_all_deplibs=$link_all_deplibs_CXX
15653 # Compile-time system search path for libraries
15654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15656 # Run-time system search path for libraries
15657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15659 # Fix the shell variable \$srcfile for the compiler.
15660 fix_srcfile_path=$lt_fix_srcfile_path
15662 # Set to yes if exported symbols are required.
15663 always_export_symbols=$always_export_symbols_CXX
15665 # The commands to list exported symbols.
15666 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15668 # The commands to extract the exported symbol list from a shared archive.
15669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15671 # Symbols that should not be listed in the preloaded symbols.
15672 exclude_expsyms=$lt_exclude_expsyms_CXX
15674 # Symbols that must always be exported.
15675 include_expsyms=$lt_include_expsyms_CXX
15677 # ### END LIBTOOL TAG CONFIG: $tagname
15683 # If there is no Makefile yet, we rely on a make rule to execute
15684 # `config.status --recheck' to rerun these tests and create the
15685 # libtool script then.
15686 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15687 if test -f "$ltmain_in"; then
15688 test -f Makefile && make "$ltmain"
15694 ac_cpp='$CPP $CPPFLAGS'
15695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15703 with_gnu_ldcxx=$with_gnu_ld
15704 with_gnu_ld=$lt_save_with_gnu_ld
15705 lt_cv_path_LDCXX=$lt_cv_path_LD
15706 lt_cv_path_LD=$lt_save_path_LD
15707 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15708 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15716 if test -n "$F77" && test "X$F77" != "Xno"; then
15719 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15720 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15721 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15724 archive_cmds_need_lc_F77=no
15725 allow_undefined_flag_F77=
15726 always_export_symbols_F77=no
15727 archive_expsym_cmds_F77=
15728 export_dynamic_flag_spec_F77=
15729 hardcode_direct_F77=no
15730 hardcode_libdir_flag_spec_F77=
15731 hardcode_libdir_flag_spec_ld_F77=
15732 hardcode_libdir_separator_F77=
15733 hardcode_minus_L_F77=no
15734 hardcode_automatic_F77=no
15736 module_expsym_cmds_F77=
15737 link_all_deplibs_F77=unknown
15738 old_archive_cmds_F77=$old_archive_cmds
15739 no_undefined_flag_F77=
15740 whole_archive_flag_spec_F77=
15741 enable_shared_with_static_runtimes_F77=no
15743 # Source file extension for f77 test sources.
15746 # Object file extension for compiled f77 test sources.
15750 # Code to be used in simple compile tests
15751 lt_simple_compile_test_code="\
15757 # Code to be used in simple link tests
15758 lt_simple_link_test_code="\
15763 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15765 # If no C compiler was specified, use CC.
15768 # If no C compiler flags were specified, use CFLAGS.
15769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15771 # Allow CC to be a program name with arguments.
15775 # save warnings/boilerplate of simple test code
15776 ac_outfile=conftest.$ac_objext
15777 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15779 _lt_compiler_boilerplate=`cat conftest.err`
15782 ac_outfile=conftest.$ac_objext
15783 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15785 _lt_linker_boilerplate=`cat conftest.err`
15789 # Allow CC to be a program name with arguments.
15794 for cc_temp in $compiler""; do
15796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15802 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15805 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15806 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15807 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15808 echo "${ECHO_T}$can_build_shared" >&6; }
15810 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15811 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15812 test "$can_build_shared" = "no" && enable_shared=no
15814 # On AIX, shared libraries and static libraries use the same namespace, and
15815 # are all built from PIC.
15818 test "$enable_shared" = yes && enable_static=no
15819 if test -n "$RANLIB"; then
15820 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15821 postinstall_cmds='$RANLIB $lib'
15825 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15826 test "$enable_shared" = yes && enable_static=no
15830 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15831 echo "${ECHO_T}$enable_shared" >&6; }
15833 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15835 # Make sure either enable_shared or enable_static is yes.
15836 test "$enable_shared" = yes || enable_static=yes
15837 { echo "$as_me:$LINENO: result: $enable_static" >&5
15838 echo "${ECHO_T}$enable_static" >&6; }
15843 lt_prog_compiler_wl_F77=
15844 lt_prog_compiler_pic_F77=
15845 lt_prog_compiler_static_F77=
15847 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15850 if test "$GCC" = yes; then
15851 lt_prog_compiler_wl_F77='-Wl,'
15852 lt_prog_compiler_static_F77='-static'
15856 # All AIX code is PIC.
15857 if test "$host_cpu" = ia64; then
15858 # AIX 5 now supports IA64 processor
15859 lt_prog_compiler_static_F77='-Bstatic'
15864 # FIXME: we need at least 68020 code to build shared libraries, but
15865 # adding the `-m68020' flag to GCC prevents building anything better,
15867 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15870 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15871 # PIC is the default for these OSes.
15874 mingw* | cygwin* | pw32* | os2*)
15875 # This hack is so that the source file can tell whether it is being
15876 # built for inclusion in a dll (and should export symbols for example).
15877 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15878 # (--disable-auto-import) libraries
15879 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15882 darwin* | rhapsody*)
15883 # PIC is the default on this platform
15884 # Common symbols not allowed in MH_DYLIB files
15885 lt_prog_compiler_pic_F77='-fno-common'
15889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15890 # Instead, we relocate shared libraries at runtime.
15894 # Just because we use GCC doesn't mean we suddenly get shared libraries
15895 # on systems that don't support them.
15896 lt_prog_compiler_can_build_shared_F77=no
15901 if test -d /usr/nec; then
15902 lt_prog_compiler_pic_F77=-Kconform_pic
15907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15908 # not for PA HP-UX.
15914 lt_prog_compiler_pic_F77='-fPIC'
15920 lt_prog_compiler_pic_F77='-fPIC'
15924 # PORTME Check for flag to pass linker flags through the system compiler.
15927 lt_prog_compiler_wl_F77='-Wl,'
15928 if test "$host_cpu" = ia64; then
15929 # AIX 5 now supports IA64 processor
15930 lt_prog_compiler_static_F77='-Bstatic'
15932 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15936 # PIC is the default on this platform
15937 # Common symbols not allowed in MH_DYLIB files
15938 case $cc_basename in
15940 lt_prog_compiler_pic_F77='-qnocommon'
15941 lt_prog_compiler_wl_F77='-Wl,'
15946 mingw* | cygwin* | pw32* | os2*)
15947 # This hack is so that the source file can tell whether it is being
15948 # built for inclusion in a dll (and should export symbols for example).
15949 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15952 hpux9* | hpux10* | hpux11*)
15953 lt_prog_compiler_wl_F77='-Wl,'
15954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15955 # not for PA HP-UX.
15961 lt_prog_compiler_pic_F77='+Z'
15964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15965 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15968 irix5* | irix6* | nonstopux*)
15969 lt_prog_compiler_wl_F77='-Wl,'
15970 # PIC (with -KPIC) is the default.
15971 lt_prog_compiler_static_F77='-non_shared'
15975 lt_prog_compiler_pic_F77='-KPIC'
15976 lt_prog_compiler_static_F77='-Bstatic'
15979 linux* | k*bsd*-gnu)
15980 case $cc_basename in
15982 lt_prog_compiler_wl_F77='-Wl,'
15983 lt_prog_compiler_pic_F77='-KPIC'
15984 lt_prog_compiler_static_F77='-static'
15986 pgcc* | pgf77* | pgf90* | pgf95*)
15987 # Portland Group compilers (*not* the Pentium gcc compiler,
15988 # which looks to be a dead project)
15989 lt_prog_compiler_wl_F77='-Wl,'
15990 lt_prog_compiler_pic_F77='-fpic'
15991 lt_prog_compiler_static_F77='-Bstatic'
15994 lt_prog_compiler_wl_F77='-Wl,'
15995 # All Alpha code is PIC.
15996 lt_prog_compiler_static_F77='-non_shared'
15999 case `$CC -V 2>&1 | sed 5q` in
16002 lt_prog_compiler_pic_F77='-KPIC'
16003 lt_prog_compiler_static_F77='-Bstatic'
16004 lt_prog_compiler_wl_F77='-Wl,'
16007 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16008 lt_prog_compiler_pic_F77='-KPIC'
16009 lt_prog_compiler_static_F77='-Bstatic'
16010 lt_prog_compiler_wl_F77=''
16017 osf3* | osf4* | osf5*)
16018 lt_prog_compiler_wl_F77='-Wl,'
16019 # All OSF/1 code is PIC.
16020 lt_prog_compiler_static_F77='-non_shared'
16024 lt_prog_compiler_static_F77='-non_shared'
16028 lt_prog_compiler_pic_F77='-KPIC'
16029 lt_prog_compiler_static_F77='-Bstatic'
16030 case $cc_basename in
16031 f77* | f90* | f95*)
16032 lt_prog_compiler_wl_F77='-Qoption ld ';;
16034 lt_prog_compiler_wl_F77='-Wl,';;
16039 lt_prog_compiler_wl_F77='-Qoption ld '
16040 lt_prog_compiler_pic_F77='-PIC'
16041 lt_prog_compiler_static_F77='-Bstatic'
16044 sysv4 | sysv4.2uw2* | sysv4.3*)
16045 lt_prog_compiler_wl_F77='-Wl,'
16046 lt_prog_compiler_pic_F77='-KPIC'
16047 lt_prog_compiler_static_F77='-Bstatic'
16051 if test -d /usr/nec ;then
16052 lt_prog_compiler_pic_F77='-Kconform_pic'
16053 lt_prog_compiler_static_F77='-Bstatic'
16057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16058 lt_prog_compiler_wl_F77='-Wl,'
16059 lt_prog_compiler_pic_F77='-KPIC'
16060 lt_prog_compiler_static_F77='-Bstatic'
16064 lt_prog_compiler_wl_F77='-Wl,'
16065 lt_prog_compiler_can_build_shared_F77=no
16069 lt_prog_compiler_pic_F77='-pic'
16070 lt_prog_compiler_static_F77='-Bstatic'
16074 lt_prog_compiler_can_build_shared_F77=no
16079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16080 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16083 # Check to make sure the PIC flag actually works.
16085 if test -n "$lt_prog_compiler_pic_F77"; then
16087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16089 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 lt_cv_prog_compiler_pic_works_F77=no
16093 ac_outfile=conftest.$ac_objext
16094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16095 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16096 # Insert the option either (1) after the last *FLAGS variable, or
16097 # (2) before a word containing "conftest.", or (3) at the end.
16098 # Note that $ac_compile itself does not contain backslashes and begins
16099 # with a dollar sign (not a hyphen), so the echo should work correctly.
16100 # The option is referenced via a variable to avoid confusing sed.
16101 lt_compile=`echo "$ac_compile" | $SED \
16102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16104 -e 's:$: $lt_compiler_flag:'`
16105 (eval echo "\"\$as_me:16105: $lt_compile\"" >&5)
16106 (eval "$lt_compile" 2>conftest.err)
16108 cat conftest.err >&5
16109 echo "$as_me:16109: \$? = $ac_status" >&5
16110 if (exit $ac_status) && test -s "$ac_outfile"; then
16111 # The compiler can only warn and ignore the option if not recognized
16112 # So say no if there are warnings other than the usual output.
16113 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16116 lt_cv_prog_compiler_pic_works_F77=yes
16122 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16123 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16125 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16126 case $lt_prog_compiler_pic_F77 in
16128 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16131 lt_prog_compiler_pic_F77=
16132 lt_prog_compiler_can_build_shared_F77=no
16137 # For platforms which do not support PIC, -DPIC is meaningless:
16139 lt_prog_compiler_pic_F77=
16142 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16147 # Check to make sure the static flag actually works.
16149 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16152 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 lt_cv_prog_compiler_static_works_F77=no
16156 save_LDFLAGS="$LDFLAGS"
16157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16160 # The linker can only warn and ignore the option if not recognized
16161 # So say no if there are warnings
16162 if test -s conftest.err; then
16163 # Append any errors to the config.log.
16164 cat conftest.err 1>&5
16165 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16167 if diff conftest.exp conftest.er2 >/dev/null; then
16168 lt_cv_prog_compiler_static_works_F77=yes
16171 lt_cv_prog_compiler_static_works_F77=yes
16175 LDFLAGS="$save_LDFLAGS"
16178 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16179 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16181 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16184 lt_prog_compiler_static_F77=
16188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16190 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 lt_cv_prog_compiler_c_o_F77=no
16194 $rm -r conftest 2>/dev/null
16198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16200 lt_compiler_flag="-o out/conftest2.$ac_objext"
16201 # Insert the option either (1) after the last *FLAGS variable, or
16202 # (2) before a word containing "conftest.", or (3) at the end.
16203 # Note that $ac_compile itself does not contain backslashes and begins
16204 # with a dollar sign (not a hyphen), so the echo should work correctly.
16205 lt_compile=`echo "$ac_compile" | $SED \
16206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16208 -e 's:$: $lt_compiler_flag:'`
16209 (eval echo "\"\$as_me:16209: $lt_compile\"" >&5)
16210 (eval "$lt_compile" 2>out/conftest.err)
16212 cat out/conftest.err >&5
16213 echo "$as_me:16213: \$? = $ac_status" >&5
16214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16216 # The compiler can only warn and ignore the option if not recognized
16217 # So say no if there are warnings
16218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16221 lt_cv_prog_compiler_c_o_F77=yes
16226 # SGI C++ compiler will create directory out/ii_files/ for
16227 # template instantiation
16228 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16229 $rm out/* && rmdir out
16235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16239 hard_links="nottested"
16240 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16241 # do not overwrite the value of need_locks provided by the user
16242 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16248 ln conftest.a conftest.b 2>&5 || hard_links=no
16249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16250 { echo "$as_me:$LINENO: result: $hard_links" >&5
16251 echo "${ECHO_T}$hard_links" >&6; }
16252 if test "$hard_links" = no; then
16253 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16265 allow_undefined_flag_F77=
16266 enable_shared_with_static_runtimes_F77=no
16268 archive_expsym_cmds_F77=
16269 old_archive_From_new_cmds_F77=
16270 old_archive_from_expsyms_cmds_F77=
16271 export_dynamic_flag_spec_F77=
16272 whole_archive_flag_spec_F77=
16273 thread_safe_flag_spec_F77=
16274 hardcode_libdir_flag_spec_F77=
16275 hardcode_libdir_flag_spec_ld_F77=
16276 hardcode_libdir_separator_F77=
16277 hardcode_direct_F77=no
16278 hardcode_minus_L_F77=no
16279 hardcode_shlibpath_var_F77=unsupported
16280 link_all_deplibs_F77=unknown
16281 hardcode_automatic_F77=no
16283 module_expsym_cmds_F77=
16284 always_export_symbols_F77=no
16285 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16286 # include_expsyms should be a list of space-separated symbols to be *always*
16287 # included in the symbol list
16288 include_expsyms_F77=
16289 # exclude_expsyms can be an extended regexp of symbols to exclude
16290 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16291 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16292 # as well as any symbol that contains `d'.
16293 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16294 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16295 # platforms (ab)use it in PIC code, but their linkers get confused if
16296 # the symbol is explicitly referenced. Since portable code cannot
16297 # rely on this symbol name, it's probably fine to never include it in
16298 # preloaded symbol tables.
16299 # Exclude shared library initialization/finalization symbols.
16300 extract_expsyms_cmds=
16301 # Just being paranoid about ensuring that cc_basename is set.
16302 for cc_temp in $compiler""; do
16304 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16305 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16310 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16313 cygwin* | mingw* | pw32*)
16314 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16315 # When not using gcc, we currently assume that we are using
16316 # Microsoft Visual C++.
16317 if test "$GCC" != yes; then
16322 # we just hope/assume this is gcc and not c89 (= MSVC++)
16331 if test "$with_gnu_ld" = yes; then
16332 # If archive_cmds runs LD, not CC, wlarc should be empty
16335 # Set some defaults for GNU ld with shared library support. These
16336 # are reset later if shared libraries are not supported. Putting them
16337 # here allows them to be overridden if necessary.
16338 runpath_var=LD_RUN_PATH
16339 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16340 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16341 # ancient GNU ld didn't support --whole-archive et. al.
16342 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16343 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16345 whole_archive_flag_spec_F77=
16347 supports_anon_versioning=no
16348 case `$LD -v 2>/dev/null` in
16349 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16350 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16351 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16352 *\ 2.11.*) ;; # other 2.11 versions
16353 *) supports_anon_versioning=yes ;;
16356 # See if GNU ld supports shared libraries.
16359 # On AIX/PPC, the GNU linker is very broken
16360 if test "$host_cpu" != ia64; then
16364 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16365 *** to be unable to reliably create shared libraries on AIX.
16366 *** Therefore, libtool is disabling shared libraries support. If you
16367 *** really care for shared libraries, you may want to modify your PATH
16368 *** so that a non-GNU linker is found, and then restart.
16375 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)'
16376 hardcode_libdir_flag_spec_F77='-L$libdir'
16377 hardcode_minus_L_F77=yes
16379 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16380 # that the semantics of dynamic libraries on AmigaOS, at least up
16381 # to version 4, is to share data among multiple programs linked
16382 # with the same dynamic library. Since this doesn't match the
16383 # behavior of shared libraries on other platforms, we can't use
16389 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16390 allow_undefined_flag_F77=unsupported
16391 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16392 # support --undefined. This deserves some investigation. FIXME
16393 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16399 cygwin* | mingw* | pw32*)
16400 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16401 # as there is no search path for DLLs.
16402 hardcode_libdir_flag_spec_F77='-L$libdir'
16403 allow_undefined_flag_F77=unsupported
16404 always_export_symbols_F77=no
16405 enable_shared_with_static_runtimes_F77=yes
16406 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16408 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16409 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16410 # If the export-symbols file already is a .def file (1st line
16411 # is EXPORTS), use it as is; otherwise, prepend...
16412 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16413 cp $export_symbols $output_objdir/$soname.def;
16415 echo EXPORTS > $output_objdir/$soname.def;
16416 cat $export_symbols >> $output_objdir/$soname.def;
16418 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16425 hardcode_direct_F77=no
16426 hardcode_shlibpath_var_F77=no
16427 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16428 export_dynamic_flag_spec_F77='${wl}-E'
16429 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16430 # Instead, shared libraries are loaded at an image base (0x10000000 by
16431 # default) and relocated if they conflict, which is a slow very memory
16432 # consuming and fragmenting process. To avoid this, we pick a random,
16433 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16434 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16435 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'
16436 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'
16439 gnu* | linux* | k*bsd*-gnu)
16440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16442 case $cc_basename,$host_cpu in
16443 pgcc*) # Portland Group C compiler
16444 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'
16445 tmp_addflag=' $pic_flag'
16447 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16448 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'
16449 tmp_addflag=' $pic_flag -Mnomain' ;;
16450 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16451 tmp_addflag=' -i_dynamic' ;;
16452 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16453 tmp_addflag=' -i_dynamic -nofor_main' ;;
16454 ifc* | ifort*) # Intel Fortran compiler
16455 tmp_addflag=' -nofor_main' ;;
16457 case `$CC -V 2>&1 | sed 5q` in
16458 *Sun\ C*) # Sun C 5.9
16459 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'
16460 tmp_sharedflag='-G' ;;
16461 *Sun\ F*) # Sun Fortran 8.3
16462 tmp_sharedflag='-G' ;;
16464 tmp_sharedflag='-shared' ;;
16466 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16468 if test $supports_anon_versioning = yes; then
16469 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16471 $echo "local: *; };" >> $output_objdir/$libname.ver~
16472 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16481 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16484 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16495 *** create shared libraries on Solaris systems. Therefore, libtool
16496 *** is disabling shared libraries support. We urge you to upgrade GNU
16497 *** binutils to release 2.9.1 or newer. Another option is to modify
16498 *** your PATH or compiler configuration so that the native linker is
16499 *** used, and then restart.
16502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16503 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16504 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16511 case `$LD -v 2>&1` in
16512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16517 *** reliably create shared libraries on SCO systems. Therefore, libtool
16518 *** is disabling shared libraries support. We urge you to upgrade GNU
16519 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16520 *** your PATH or compiler configuration so that the native linker is
16521 *** used, and then restart.
16526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16527 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16528 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16529 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16538 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_direct_F77=yes
16541 hardcode_shlibpath_var_F77=no
16545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16546 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16547 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16554 if test "$ld_shlibs_F77" = no; then
16556 hardcode_libdir_flag_spec_F77=
16557 export_dynamic_flag_spec_F77=
16558 whole_archive_flag_spec_F77=
16561 # PORTME fill in a description of your system's linker (not GNU ld)
16564 allow_undefined_flag_F77=unsupported
16565 always_export_symbols_F77=yes
16566 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'
16567 # Note: this linker hardcodes the directories in LIBPATH if there
16568 # are no directories specified by -L.
16569 hardcode_minus_L_F77=yes
16570 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16571 # Neither direct hardcoding nor static linking is supported with a
16573 hardcode_direct_F77=unsupported
16578 if test "$host_cpu" = ia64; then
16579 # On IA64, the linker does run time linking by default, so we don't
16580 # have to do anything special.
16581 aix_use_runtimelinking=no
16582 exp_sym_flag='-Bexport'
16585 # If we're using GNU nm, then we don't want the "-C" option.
16586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16588 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'
16590 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'
16592 aix_use_runtimelinking=no
16594 # Test if we are trying to use run time linking or normal
16595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16596 # need to do runtime linking.
16597 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16598 for ld_flag in $LDFLAGS; do
16599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16600 aix_use_runtimelinking=yes
16607 exp_sym_flag='-bexport'
16608 no_entry_flag='-bnoentry'
16611 # When large executables or shared objects are built, AIX ld can
16612 # have problems creating the table of contents. If linking a library
16613 # or program results in "error TOC overflow" add -mminimal-toc to
16614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16617 archive_cmds_F77=''
16618 hardcode_direct_F77=yes
16619 hardcode_libdir_separator_F77=':'
16620 link_all_deplibs_F77=yes
16622 if test "$GCC" = yes; then
16623 case $host_os in aix4.[012]|aix4.[012].*)
16624 # We only want to do this on AIX 4.2 and lower, the check
16625 # below for broken collect2 doesn't work under 4.3+
16626 collect2name=`${CC} -print-prog-name=collect2`
16627 if test -f "$collect2name" && \
16628 strings "$collect2name" | grep resolve_lib_name >/dev/null
16630 # We have reworked collect2
16633 # We have old collect2
16634 hardcode_direct_F77=unsupported
16635 # It fails to find uninstalled libraries when the uninstalled
16636 # path is not listed in the libpath. Setting hardcode_minus_L
16637 # to unsupported forces relinking
16638 hardcode_minus_L_F77=yes
16639 hardcode_libdir_flag_spec_F77='-L$libdir'
16640 hardcode_libdir_separator_F77=
16644 shared_flag='-shared'
16645 if test "$aix_use_runtimelinking" = yes; then
16646 shared_flag="$shared_flag "'${wl}-G'
16650 if test "$host_cpu" = ia64; then
16651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16652 # chokes on -Wl,-G. The following line is correct:
16655 if test "$aix_use_runtimelinking" = yes; then
16656 shared_flag='${wl}-G'
16658 shared_flag='${wl}-bM:SRE'
16663 # It seems that -bexpall does not export symbols beginning with
16664 # underscore (_), so it is better to generate a list of symbols to export.
16665 always_export_symbols_F77=yes
16666 if test "$aix_use_runtimelinking" = yes; then
16667 # Warning - without using the other runtime loading flags (-brtl),
16668 # -berok will link without error, but may produce a broken library.
16669 allow_undefined_flag_F77='-berok'
16670 # Determine the default libpath from the value encoded in an empty executable.
16671 cat >conftest.$ac_ext <<_ACEOF
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (ac_try="$ac_link"
16678 case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_link") 2>conftest.er1
16685 grep -v '^ *+' conftest.er1 >conftest.err
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && {
16690 test -z "$ac_f77_werror_flag" ||
16691 test ! -s conftest.err
16692 } && test -s conftest$ac_exeext &&
16693 $as_test_x conftest$ac_exeext; then
16695 lt_aix_libpath_sed='
16696 /Import File Strings/,/^$/ {
16702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16703 # Check for a 64-bit object if we didn't find anything.
16704 if test -z "$aix_libpath"; then
16705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16708 echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16715 conftest$ac_exeext conftest.$ac_ext
16716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16718 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16719 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"
16721 if test "$host_cpu" = ia64; then
16722 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16723 allow_undefined_flag_F77="-z nodefs"
16724 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"
16726 # Determine the default libpath from the value encoded in an empty executable.
16727 cat >conftest.$ac_ext <<_ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>conftest.er1
16741 grep -v '^ *+' conftest.er1 >conftest.err
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } && {
16746 test -z "$ac_f77_werror_flag" ||
16747 test ! -s conftest.err
16748 } && test -s conftest$ac_exeext &&
16749 $as_test_x conftest$ac_exeext; then
16751 lt_aix_libpath_sed='
16752 /Import File Strings/,/^$/ {
16758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16759 # Check for a 64-bit object if we didn't find anything.
16760 if test -z "$aix_libpath"; then
16761 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16771 conftest$ac_exeext conftest.$ac_ext
16772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16774 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16775 # Warning - without using the other run time loading flags,
16776 # -berok will link without error, but may produce a broken library.
16777 no_undefined_flag_F77=' ${wl}-bernotok'
16778 allow_undefined_flag_F77=' ${wl}-berok'
16779 # Exported symbols can be pulled into shared objects from archives
16780 whole_archive_flag_spec_F77='$convenience'
16781 archive_cmds_need_lc_F77=yes
16782 # This is similar to how AIX traditionally builds its shared libraries.
16783 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'
16789 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)'
16790 hardcode_libdir_flag_spec_F77='-L$libdir'
16791 hardcode_minus_L_F77=yes
16792 # see comment about different semantics on the GNU ld section
16797 export_dynamic_flag_spec_F77=-rdynamic
16800 cygwin* | mingw* | pw32*)
16801 # When not using gcc, we currently assume that we are using
16802 # Microsoft Visual C++.
16803 # hardcode_libdir_flag_spec is actually meaningless, as there is
16804 # no search path for DLLs.
16805 hardcode_libdir_flag_spec_F77=' '
16806 allow_undefined_flag_F77=unsupported
16807 # Tell ltmain to make .lib files, not .a files.
16809 # Tell ltmain to make .dll files, not .so files.
16811 # FIXME: Setting linknames here is a bad hack.
16812 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16813 # The linker will automatically build a .lib file if we build a DLL.
16814 old_archive_From_new_cmds_F77='true'
16815 # FIXME: Should let the user specify the lib program.
16816 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16817 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16818 enable_shared_with_static_runtimes_F77=yes
16821 darwin* | rhapsody*)
16823 rhapsody* | darwin1.[012])
16824 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16827 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16828 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16830 case ${MACOSX_DEPLOYMENT_TARGET} in
16832 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16835 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16841 archive_cmds_need_lc_F77=no
16842 hardcode_direct_F77=no
16843 hardcode_automatic_F77=yes
16844 hardcode_shlibpath_var_F77=unsupported
16845 whole_archive_flag_spec_F77=''
16846 link_all_deplibs_F77=yes
16847 if test "$GCC" = yes ; then
16848 output_verbose_link_cmd='echo'
16849 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}"
16850 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16851 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}"
16852 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}"
16854 case $cc_basename in
16856 output_verbose_link_cmd='echo'
16857 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16858 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16860 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}'
16861 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}'
16871 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16872 hardcode_libdir_flag_spec_F77='-L$libdir'
16873 hardcode_shlibpath_var_F77=no
16880 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16881 # support. Future versions do this automatically, but an explicit c++rt0.o
16882 # does not break anything, and helps significantly (at the cost of a little
16885 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16886 hardcode_libdir_flag_spec_F77='-R$libdir'
16887 hardcode_direct_F77=yes
16888 hardcode_shlibpath_var_F77=no
16891 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16893 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_direct_F77=yes
16895 hardcode_minus_L_F77=yes
16896 hardcode_shlibpath_var_F77=no
16899 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16900 freebsd* | dragonfly*)
16901 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16902 hardcode_libdir_flag_spec_F77='-R$libdir'
16903 hardcode_direct_F77=yes
16904 hardcode_shlibpath_var_F77=no
16908 if test "$GCC" = yes; then
16909 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'
16911 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'
16913 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16914 hardcode_libdir_separator_F77=:
16915 hardcode_direct_F77=yes
16917 # hardcode_minus_L: Not really in the search PATH,
16918 # but as the default location of the library.
16919 hardcode_minus_L_F77=yes
16920 export_dynamic_flag_spec_F77='${wl}-E'
16924 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16925 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16927 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16929 if test "$with_gnu_ld" = no; then
16930 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16931 hardcode_libdir_separator_F77=:
16933 hardcode_direct_F77=yes
16934 export_dynamic_flag_spec_F77='${wl}-E'
16936 # hardcode_minus_L: Not really in the search PATH,
16937 # but as the default location of the library.
16938 hardcode_minus_L_F77=yes
16943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16946 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16949 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16952 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16958 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16961 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16964 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16968 if test "$with_gnu_ld" = no; then
16969 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16970 hardcode_libdir_separator_F77=:
16974 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16975 hardcode_direct_F77=no
16976 hardcode_shlibpath_var_F77=no
16979 hardcode_direct_F77=yes
16980 export_dynamic_flag_spec_F77='${wl}-E'
16982 # hardcode_minus_L: Not really in the search PATH,
16983 # but as the default location of the library.
16984 hardcode_minus_L_F77=yes
16990 irix5* | irix6* | nonstopux*)
16991 if test "$GCC" = yes; then
16992 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'
16994 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'
16995 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16997 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16998 hardcode_libdir_separator_F77=:
16999 link_all_deplibs_F77=yes
17003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17004 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17006 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17008 hardcode_libdir_flag_spec_F77='-R$libdir'
17009 hardcode_direct_F77=yes
17010 hardcode_shlibpath_var_F77=no
17014 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_direct_F77=yes
17016 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17017 hardcode_libdir_separator_F77=:
17018 hardcode_shlibpath_var_F77=no
17022 if test -f /usr/libexec/ld.so; then
17023 hardcode_direct_F77=yes
17024 hardcode_shlibpath_var_F77=no
17025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17026 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17027 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17028 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17029 export_dynamic_flag_spec_F77='${wl}-E'
17032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17033 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17034 hardcode_libdir_flag_spec_F77='-R$libdir'
17037 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17038 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17048 hardcode_libdir_flag_spec_F77='-L$libdir'
17049 hardcode_minus_L_F77=yes
17050 allow_undefined_flag_F77=unsupported
17051 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'
17052 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17056 if test "$GCC" = yes; then
17057 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17058 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'
17060 allow_undefined_flag_F77=' -expect_unresolved \*'
17061 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'
17063 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17064 hardcode_libdir_separator_F77=:
17067 osf4* | osf5*) # as osf3* with the addition of -msym flag
17068 if test "$GCC" = yes; then
17069 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17070 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'
17071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17073 allow_undefined_flag_F77=' -expect_unresolved \*'
17074 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'
17075 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~
17076 $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'
17078 # Both c and cxx compiler support -rpath directly
17079 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17081 hardcode_libdir_separator_F77=:
17085 no_undefined_flag_F77=' -z text'
17086 if test "$GCC" = yes; then
17088 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17090 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17093 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17094 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17095 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17097 hardcode_libdir_flag_spec_F77='-R$libdir'
17098 hardcode_shlibpath_var_F77=no
17100 solaris2.[0-5] | solaris2.[0-5].*) ;;
17102 # The compiler driver will combine and reorder linker options,
17103 # but understands `-z linker_flag'. GCC discards it without `$wl',
17104 # but is careful enough not to reorder.
17105 # Supported since Solaris 2.6 (maybe 2.5.1?)
17106 if test "$GCC" = yes; then
17107 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17109 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17113 link_all_deplibs_F77=yes
17117 if test "x$host_vendor" = xsequent; then
17118 # Use $CC to link under sequent, because it throws in some extra .o
17119 # files that make .init and .fini sections work.
17120 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17122 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17124 hardcode_libdir_flag_spec_F77='-L$libdir'
17125 hardcode_direct_F77=yes
17126 hardcode_minus_L_F77=yes
17127 hardcode_shlibpath_var_F77=no
17131 case $host_vendor in
17133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17134 hardcode_direct_F77=yes # is this really true???
17137 ## LD is ld it makes a PLAMLIB
17138 ## CC just makes a GrossModule.
17139 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17140 reload_cmds_F77='$CC -r -o $output$reload_objs'
17141 hardcode_direct_F77=no
17144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17148 runpath_var='LD_RUN_PATH'
17149 hardcode_shlibpath_var_F77=no
17153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154 hardcode_shlibpath_var_F77=no
17155 export_dynamic_flag_spec_F77='-Bexport'
17159 if test -d /usr/nec; then
17160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17161 hardcode_shlibpath_var_F77=no
17162 runpath_var=LD_RUN_PATH
17163 hardcode_runpath_var=yes
17168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17169 no_undefined_flag_F77='${wl}-z,text'
17170 archive_cmds_need_lc_F77=no
17171 hardcode_shlibpath_var_F77=no
17172 runpath_var='LD_RUN_PATH'
17174 if test "$GCC" = yes; then
17175 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17176 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17178 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17179 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17183 sysv5* | sco3.2v5* | sco5v6*)
17184 # Note: We can NOT use -z defs as we might desire, because we do not
17185 # link with -lc, and that would cause any symbols used from libc to
17186 # always be unresolved, which means just about no library would
17187 # ever link correctly. If we're not using GNU ld we use -z text
17188 # though, which does catch some bad symbols but isn't as heavy-handed
17190 no_undefined_flag_F77='${wl}-z,text'
17191 allow_undefined_flag_F77='${wl}-z,nodefs'
17192 archive_cmds_need_lc_F77=no
17193 hardcode_shlibpath_var_F77=no
17194 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17195 hardcode_libdir_separator_F77=':'
17196 link_all_deplibs_F77=yes
17197 export_dynamic_flag_spec_F77='${wl}-Bexport'
17198 runpath_var='LD_RUN_PATH'
17200 if test "$GCC" = yes; then
17201 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17202 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17205 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17211 hardcode_libdir_flag_spec_F77='-L$libdir'
17212 hardcode_shlibpath_var_F77=no
17221 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17222 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17223 test "$ld_shlibs_F77" = no && can_build_shared=no
17226 # Do we need to explicitly link libc?
17228 case "x$archive_cmds_need_lc_F77" in
17230 # Assume -lc should be added
17231 archive_cmds_need_lc_F77=yes
17233 if test "$enable_shared" = yes && test "$GCC" = yes; then
17234 case $archive_cmds_F77 in
17236 # FIXME: we may have to deal with multi-command sequences.
17239 # Test whether the compiler implicitly links with -lc since on some
17240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17241 # to ld, don't add -lc before -lgcc.
17242 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248 (eval $ac_compile) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } 2>conftest.err; then
17254 libobjs=conftest.$ac_objext
17256 wl=$lt_prog_compiler_wl_F77
17257 pic_flag=$lt_prog_compiler_pic_F77
17263 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17264 allow_undefined_flag_F77=
17265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17266 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }
17271 archive_cmds_need_lc_F77=no
17273 archive_cmds_need_lc_F77=yes
17275 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17277 cat conftest.err 1>&5
17280 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17281 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17288 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17290 library_names_spec=
17291 libname_spec='lib$name'
17295 postuninstall_cmds=
17299 shlibpath_overrides_runpath=unknown
17301 dynamic_linker="$host_os ld.so"
17302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17304 need_lib_prefix=unknown
17305 hardcode_into_libs=no
17307 # when you set need_version to no, make sure it does not cause -set_version
17308 # flags to be left without arguments
17309 need_version=unknown
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17315 shlibpath_var=LIBPATH
17317 # AIX 3 has no versioning support, so we append a major version to the name.
17318 soname_spec='${libname}${release}${shared_ext}$major'
17325 hardcode_into_libs=yes
17326 if test "$host_cpu" = ia64; then
17327 # AIX 5 supports IA64
17328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17329 shlibpath_var=LD_LIBRARY_PATH
17331 # With GCC up to 2.95.x, collect2 would create an import file
17332 # for dependence libraries. The import file would start with
17333 # the line `#! .'. This would cause the generated library to
17334 # depend on `.', always an invalid library. This was fixed in
17335 # development snapshots of GCC prior to 3.0.
17337 aix4 | aix4.[01] | aix4.[01].*)
17338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17340 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17343 can_build_shared=no
17347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17348 # soname into executable. Probably we can add versioning support to
17349 # collect2, so additional links can be useful in future.
17350 if test "$aix_use_runtimelinking" = yes; then
17351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17352 # instead of lib<name>.a to let people know that these are not
17353 # typical AIX shared libraries.
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 # We preserve .a as extension for shared libraries through AIX4.2
17357 # and later when we are not doing run time linking.
17358 library_names_spec='${libname}${release}.a $libname.a'
17359 soname_spec='${libname}${release}${shared_ext}$major'
17361 shlibpath_var=LIBPATH
17366 library_names_spec='$libname.ixlibrary $libname.a'
17367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17368 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'
17372 library_names_spec='${libname}${shared_ext}'
17373 dynamic_linker="$host_os ld.so"
17374 shlibpath_var=LIBRARY_PATH
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381 soname_spec='${libname}${release}${shared_ext}$major'
17382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17386 # the default ld.so.conf also contains /usr/contrib/lib and
17387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17388 # libtool to hard-code these into programs
17391 cygwin* | mingw* | pw32*)
17392 version_type=windows
17397 case $GCC,$host_os in
17398 yes,cygwin* | yes,mingw* | yes,pw32*)
17399 library_names_spec='$libname.dll.a'
17400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17401 postinstall_cmds='base_file=`basename \${file}`~
17402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17403 dldir=$destdir/`dirname \$dlpath`~
17404 test -d \$dldir || mkdir -p \$dldir~
17405 $install_prog $dir/$dlname \$dldir/$dlname~
17406 chmod a+x \$dldir/$dlname'
17407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17408 dlpath=$dir/\$dldll~
17410 shlibpath_overrides_runpath=yes
17414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17416 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17419 # MinGW DLLs use traditional 'lib' prefix
17420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17422 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17423 # It is most probably a Windows format PATH printed by
17424 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17425 # path with ; separators, and with drive letters. We can handle the
17426 # drive letters (cygwin fileutils understands them), so leave them,
17427 # especially as we might pass files found there to a mingw objdump,
17428 # which wouldn't understand a cygwinified path. Ahh.
17429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17435 # pw32 DLLs use 'pw' prefix rather than 'lib'
17436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17445 dynamic_linker='Win32 ld.exe'
17446 # FIXME: first we should search . and the directory the executable is in
17450 darwin* | rhapsody*)
17451 dynamic_linker="$host_os dyld"
17452 version_type=darwin
17455 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17456 soname_spec='${libname}${release}${major}$shared_ext'
17457 shlibpath_overrides_runpath=yes
17458 shlibpath_var=DYLD_LIBRARY_PATH
17459 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17461 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 shlibpath_var=LD_LIBRARY_PATH
17477 freebsd* | dragonfly*)
17478 # DragonFly does not have aout. When/if they implement a new
17479 # versioning mechanism, adjust this.
17480 if test -x /usr/bin/objformat; then
17481 objformat=`/usr/bin/objformat`
17484 freebsd[123]*) objformat=aout ;;
17485 *) objformat=elf ;;
17488 version_type=freebsd-$objformat
17489 case $version_type in
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17500 shlibpath_var=LD_LIBRARY_PATH
17503 shlibpath_overrides_runpath=yes
17505 freebsd3.[01]* | freebsdelf3.[01]*)
17506 shlibpath_overrides_runpath=yes
17507 hardcode_into_libs=yes
17509 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17510 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17511 shlibpath_overrides_runpath=no
17512 hardcode_into_libs=yes
17514 *) # from 4.6 on, and DragonFly
17515 shlibpath_overrides_runpath=yes
17516 hardcode_into_libs=yes
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17526 soname_spec='${libname}${release}${shared_ext}$major'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 hardcode_into_libs=yes
17531 hpux9* | hpux10* | hpux11*)
17532 # Give a soname corresponding to the major version so that dld.sl refuses to
17533 # link against other versions.
17540 hardcode_into_libs=yes
17541 dynamic_linker="$host_os dld.so"
17542 shlibpath_var=LD_LIBRARY_PATH
17543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17546 if test "X$HPUX_IA64_MODE" = X32; then
17547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17555 hardcode_into_libs=yes
17556 dynamic_linker="$host_os dld.sl"
17557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560 soname_spec='${libname}${release}${shared_ext}$major'
17561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17566 dynamic_linker="$host_os dld.sl"
17567 shlibpath_var=SHLIB_PATH
17568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17573 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17574 postinstall_cmds='chmod 555 $lib'
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17582 soname_spec='${libname}${release}${shared_ext}$major'
17583 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17584 shlibpath_var=LD_LIBRARY_PATH
17585 shlibpath_overrides_runpath=no
17586 hardcode_into_libs=yes
17589 irix5* | irix6* | nonstopux*)
17591 nonstopux*) version_type=nonstopux ;;
17593 if test "$lt_cv_prog_gnu_ld" = yes; then
17601 soname_spec='${libname}${release}${shared_ext}$major'
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17604 irix5* | nonstopux*)
17605 libsuff= shlibsuff=
17608 case $LD in # libtool.m4 will add one of these switches to LD
17609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17610 libsuff= shlibsuff= libmagic=32-bit;;
17611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17612 libsuff=32 shlibsuff=N32 libmagic=N32;;
17613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17615 *) libsuff= shlibsuff= libmagic=never-match;;
17619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17620 shlibpath_overrides_runpath=no
17621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17623 hardcode_into_libs=yes
17626 # No shared lib support for Linux oldld, aout, or coff.
17627 linux*oldld* | linux*aout* | linux*coff*)
17631 # This must be Linux ELF.
17632 linux* | k*bsd*-gnu)
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637 soname_spec='${libname}${release}${shared_ext}$major'
17638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 shlibpath_overrides_runpath=no
17641 # This implies no fast_install, which is unacceptable.
17642 # Some rework will be needed to allow for fast_install
17643 # before this can be enabled.
17644 hardcode_into_libs=yes
17646 # Append ld.so.conf contents to the search path
17647 if test -f /etc/ld.so.conf; then
17648 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' ' '`
17649 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17652 # We used to test for /lib/ld.so.1 and disable shared libraries on
17653 # powerpc, because MkLinux only supported shared libraries with the
17654 # GNU dynamic linker. Since this was broken with cross compilers,
17655 # most powerpc-linux boxes support dynamic linking these days and
17656 # people can always --disable-shared, the test was removed, and we
17657 # assume the GNU/Linux dynamic linker is in use.
17658 dynamic_linker='GNU/Linux ld.so'
17665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17668 dynamic_linker='NetBSD (a.out) ld.so'
17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17671 soname_spec='${libname}${release}${shared_ext}$major'
17672 dynamic_linker='NetBSD ld.elf_so'
17674 shlibpath_var=LD_LIBRARY_PATH
17675 shlibpath_overrides_runpath=yes
17676 hardcode_into_libs=yes
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682 shlibpath_var=LD_LIBRARY_PATH
17683 shlibpath_overrides_runpath=yes
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691 soname_spec='${libname}${release}${shared_ext}$major'
17692 shlibpath_var=LD_LIBRARY_PATH
17693 shlibpath_overrides_runpath=yes
17698 sys_lib_dlsearch_path_spec="/usr/lib"
17700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17702 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17703 *) need_version=no ;;
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17710 openbsd2.[89] | openbsd2.[89].*)
17711 shlibpath_overrides_runpath=no
17714 shlibpath_overrides_runpath=yes
17718 shlibpath_overrides_runpath=yes
17723 libname_spec='$name'
17726 library_names_spec='$libname${shared_ext} $libname.a'
17727 dynamic_linker='OS/2 ld.exe'
17728 shlibpath_var=LIBPATH
17731 osf3* | osf4* | osf5*)
17735 soname_spec='${libname}${release}${shared_ext}$major'
17736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17737 shlibpath_var=LD_LIBRARY_PATH
17738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 shlibpath_var=LD_LIBRARY_PATH
17753 shlibpath_overrides_runpath=yes
17754 hardcode_into_libs=yes
17755 # ldd complains unless libraries are executable
17756 postinstall_cmds='chmod +x $lib'
17761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17763 shlibpath_var=LD_LIBRARY_PATH
17764 shlibpath_overrides_runpath=yes
17765 if test "$with_gnu_ld" = yes; then
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774 soname_spec='${libname}${release}${shared_ext}$major'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 case $host_vendor in
17778 shlibpath_overrides_runpath=no
17780 export_dynamic_flag_spec='${wl}-Blargedynsym'
17781 runpath_var=LD_RUN_PATH
17789 shlibpath_overrides_runpath=no
17790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17796 if test -d /usr/nec ;then
17798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17799 soname_spec='$libname${shared_ext}.$major'
17800 shlibpath_var=LD_LIBRARY_PATH
17804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17805 version_type=freebsd-elf
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17809 soname_spec='${libname}${release}${shared_ext}$major'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 hardcode_into_libs=yes
17812 if test "$with_gnu_ld" = yes; then
17813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17814 shlibpath_overrides_runpath=no
17816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17817 shlibpath_overrides_runpath=yes
17820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17824 sys_lib_dlsearch_path_spec='/usr/lib'
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 shlibpath_var=LD_LIBRARY_PATH
17838 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17839 echo "${ECHO_T}$dynamic_linker" >&6; }
17840 test "$dynamic_linker" = no && can_build_shared=no
17842 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17848 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17849 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17855 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17858 if test "$GCC" = yes; then
17859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17862 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17863 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17864 hardcode_action_F77=
17865 if test -n "$hardcode_libdir_flag_spec_F77" || \
17866 test -n "$runpath_var_F77" || \
17867 test "X$hardcode_automatic_F77" = "Xyes" ; then
17869 # We can hardcode non-existant directories.
17870 if test "$hardcode_direct_F77" != no &&
17871 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17872 # have to relink, otherwise we might link with an installed library
17873 # when we should be linking with a yet-to-be-installed one
17874 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17875 test "$hardcode_minus_L_F77" != no; then
17876 # Linking always hardcodes the temporary library directory.
17877 hardcode_action_F77=relink
17879 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17880 hardcode_action_F77=immediate
17883 # We cannot hardcode anything, or else we can only hardcode existing
17885 hardcode_action_F77=unsupported
17887 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17888 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17890 if test "$hardcode_action_F77" = relink; then
17891 # Fast installation is not supported
17892 enable_fast_install=no
17893 elif test "$shlibpath_overrides_runpath" = yes ||
17894 test "$enable_shared" = no; then
17895 # Fast installation is not necessary
17896 enable_fast_install=needless
17900 # The else clause should only fire when bootstrapping the
17901 # libtool distribution, otherwise you forgot to ship ltmain.sh
17902 # with your package, and you will get complaints that there are
17903 # no rules to generate ltmain.sh.
17904 if test -f "$ltmain"; then
17905 # See if we are running on zsh, and set the options which allow our commands through
17906 # without removal of \ escapes.
17907 if test -n "${ZSH_VERSION+set}" ; then
17908 setopt NO_GLOB_SUBST
17910 # Now quote all the things that may contain metacharacters while being
17911 # careful not to overquote the AC_SUBSTed values. We take copies of the
17912 # variables and quote the copies for generation of the libtool script.
17913 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17915 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17916 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17917 deplibs_check_method reload_flag reload_cmds need_locks \
17918 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17919 lt_cv_sys_global_symbol_to_c_name_address \
17920 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17921 old_postinstall_cmds old_postuninstall_cmds \
17925 lt_prog_compiler_wl_F77 \
17926 lt_prog_compiler_pic_F77 \
17927 lt_prog_compiler_static_F77 \
17928 lt_prog_compiler_no_builtin_flag_F77 \
17929 export_dynamic_flag_spec_F77 \
17930 thread_safe_flag_spec_F77 \
17931 whole_archive_flag_spec_F77 \
17932 enable_shared_with_static_runtimes_F77 \
17933 old_archive_cmds_F77 \
17934 old_archive_from_new_cmds_F77 \
17935 predep_objects_F77 \
17936 postdep_objects_F77 \
17939 compiler_lib_search_path_F77 \
17940 compiler_lib_search_dirs_F77 \
17942 archive_expsym_cmds_F77 \
17943 postinstall_cmds_F77 \
17944 postuninstall_cmds_F77 \
17945 old_archive_from_expsyms_cmds_F77 \
17946 allow_undefined_flag_F77 \
17947 no_undefined_flag_F77 \
17948 export_symbols_cmds_F77 \
17949 hardcode_libdir_flag_spec_F77 \
17950 hardcode_libdir_flag_spec_ld_F77 \
17951 hardcode_libdir_separator_F77 \
17952 hardcode_automatic_F77 \
17954 module_expsym_cmds_F77 \
17955 lt_cv_prog_compiler_c_o_F77 \
17956 fix_srcfile_path_F77 \
17957 exclude_expsyms_F77 \
17958 include_expsyms_F77; do
17961 old_archive_cmds_F77 | \
17962 old_archive_from_new_cmds_F77 | \
17963 archive_cmds_F77 | \
17964 archive_expsym_cmds_F77 | \
17965 module_cmds_F77 | \
17966 module_expsym_cmds_F77 | \
17967 old_archive_from_expsyms_cmds_F77 | \
17968 export_symbols_cmds_F77 | \
17969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17970 postinstall_cmds | postuninstall_cmds | \
17971 old_postinstall_cmds | old_postuninstall_cmds | \
17972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17973 # Double-quote double-evaled strings.
17974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17983 *'\$0 --fallback-echo"')
17984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17990 cat <<__EOF__ >> "$cfgfile"
17991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17995 # Shell to use when invoking shell scripts.
17998 # Whether or not to build shared libraries.
17999 build_libtool_libs=$enable_shared
18001 # Whether or not to build static libraries.
18002 build_old_libs=$enable_static
18004 # Whether or not to add -lc for building shared libraries.
18005 build_libtool_need_lc=$archive_cmds_need_lc_F77
18007 # Whether or not to disallow shared libs when runtime libs are static
18008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18010 # Whether or not to optimize for fast installation.
18011 fast_install=$enable_fast_install
18014 host_alias=$host_alias
18018 # The build system.
18019 build_alias=$build_alias
18023 # An echo program that does not interpret backslashes.
18028 AR_FLAGS=$lt_AR_FLAGS
18033 # LTCC compiler flags.
18034 LTCFLAGS=$lt_LTCFLAGS
18036 # A language-specific compiler.
18037 CC=$lt_compiler_F77
18039 # Is the compiler the GNU C compiler?
18045 # The linker used to build libraries.
18048 # Whether we need hard or soft links.
18051 # A BSD-compatible nm program.
18054 # A symbol stripping program
18057 # Used to examine libraries when file_magic_cmd begins "file"
18058 MAGIC_CMD=$MAGIC_CMD
18060 # Used on cygwin: DLL creation program.
18063 # Used on cygwin: object dumper.
18066 # Used on cygwin: assembler.
18069 # The name of the directory that contains temporary libtool files.
18072 # How to create reloadable object files.
18073 reload_flag=$lt_reload_flag
18074 reload_cmds=$lt_reload_cmds
18076 # How to pass a linker flag through the compiler.
18077 wl=$lt_lt_prog_compiler_wl_F77
18079 # Object file suffix (normally "o").
18080 objext="$ac_objext"
18082 # Old archive suffix (normally "a").
18085 # Shared library suffix (normally ".so").
18086 shrext_cmds='$shrext_cmds'
18088 # Executable file suffix (normally "").
18091 # Additional compiler flags for building library objects.
18092 pic_flag=$lt_lt_prog_compiler_pic_F77
18095 # What is the maximum length of a command?
18096 max_cmd_len=$lt_cv_sys_max_cmd_len
18098 # Does compiler simultaneously support -c and -o options?
18099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18101 # Must we lock files when doing compilation?
18102 need_locks=$lt_need_locks
18104 # Do we need the lib prefix for modules?
18105 need_lib_prefix=$need_lib_prefix
18107 # Do we need a version for libraries?
18108 need_version=$need_version
18110 # Whether dlopen is supported.
18111 dlopen_support=$enable_dlopen
18113 # Whether dlopen of programs is supported.
18114 dlopen_self=$enable_dlopen_self
18116 # Whether dlopen of statically linked programs is supported.
18117 dlopen_self_static=$enable_dlopen_self_static
18119 # Compiler flag to prevent dynamic linking.
18120 link_static_flag=$lt_lt_prog_compiler_static_F77
18122 # Compiler flag to turn off builtin functions.
18123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18125 # Compiler flag to allow reflexive dlopens.
18126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18128 # Compiler flag to generate shared objects directly from archives.
18129 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18131 # Compiler flag to generate thread-safe objects.
18132 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18134 # Library versioning type.
18135 version_type=$version_type
18137 # Format of library name prefix.
18138 libname_spec=$lt_libname_spec
18140 # List of archive names. First name is the real one, the rest are links.
18141 # The last name is the one that the linker finds with -lNAME.
18142 library_names_spec=$lt_library_names_spec
18144 # The coded name of the library, if different from the real name.
18145 soname_spec=$lt_soname_spec
18147 # Commands used to build and install an old-style archive.
18149 old_archive_cmds=$lt_old_archive_cmds_F77
18150 old_postinstall_cmds=$lt_old_postinstall_cmds
18151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18153 # Create an old-style archive from a shared archive.
18154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18156 # Create a temporary old-style archive to link instead of a shared archive.
18157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18159 # Commands used to build and install a shared archive.
18160 archive_cmds=$lt_archive_cmds_F77
18161 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18162 postinstall_cmds=$lt_postinstall_cmds
18163 postuninstall_cmds=$lt_postuninstall_cmds
18165 # Commands used to build a loadable module (assumed same as above if empty)
18166 module_cmds=$lt_module_cmds_F77
18167 module_expsym_cmds=$lt_module_expsym_cmds_F77
18169 # Commands to strip libraries.
18170 old_striplib=$lt_old_striplib
18171 striplib=$lt_striplib
18173 # Dependencies to place before the objects being linked to create a
18175 predep_objects=$lt_predep_objects_F77
18177 # Dependencies to place after the objects being linked to create a
18179 postdep_objects=$lt_postdep_objects_F77
18181 # Dependencies to place before the objects being linked to create a
18183 predeps=$lt_predeps_F77
18185 # Dependencies to place after the objects being linked to create a
18187 postdeps=$lt_postdeps_F77
18189 # The directories searched by this compiler when creating a shared
18191 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18193 # The library search path used internally by the compiler when linking
18194 # a shared library.
18195 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18197 # Method to check whether dependent libraries are shared objects.
18198 deplibs_check_method=$lt_deplibs_check_method
18200 # Command to use when deplibs_check_method == file_magic.
18201 file_magic_cmd=$lt_file_magic_cmd
18203 # Flag that allows shared libraries with undefined symbols to be built.
18204 allow_undefined_flag=$lt_allow_undefined_flag_F77
18206 # Flag that forces no undefined symbols.
18207 no_undefined_flag=$lt_no_undefined_flag_F77
18209 # Commands used to finish a libtool library installation in a directory.
18210 finish_cmds=$lt_finish_cmds
18212 # Same as above, but a single script fragment to be evaled but not shown.
18213 finish_eval=$lt_finish_eval
18215 # Take the output of nm and produce a listing of raw symbols and C names.
18216 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18218 # Transform the output of nm in a proper C declaration
18219 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18221 # Transform the output of nm in a C name address pair
18222 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18224 # This is the shared library runtime path variable.
18225 runpath_var=$runpath_var
18227 # This is the shared library path variable.
18228 shlibpath_var=$shlibpath_var
18230 # Is shlibpath searched before the hard-coded library search path?
18231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18233 # How to hardcode a shared library path into an executable.
18234 hardcode_action=$hardcode_action_F77
18236 # Whether we should hardcode library paths into libraries.
18237 hardcode_into_libs=$hardcode_into_libs
18239 # Flag to hardcode \$libdir into a binary during linking.
18240 # This must work even if \$libdir does not exist.
18241 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18243 # If ld is used when linking, flag to hardcode \$libdir into
18244 # a binary during linking. This must work even if \$libdir does
18246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18248 # Whether we need a single -rpath flag with a separated argument.
18249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18251 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18252 # resulting binary.
18253 hardcode_direct=$hardcode_direct_F77
18255 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18256 # resulting binary.
18257 hardcode_minus_L=$hardcode_minus_L_F77
18259 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18260 # the resulting binary.
18261 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18263 # Set to yes if building a shared library automatically hardcodes DIR into the library
18264 # and all subsequent libraries and executables linked against it.
18265 hardcode_automatic=$hardcode_automatic_F77
18267 # Variables whose values should be saved in libtool wrapper scripts and
18268 # restored at relink time.
18269 variables_saved_for_relink="$variables_saved_for_relink"
18271 # Whether libtool must link a program against all its dependency libraries.
18272 link_all_deplibs=$link_all_deplibs_F77
18274 # Compile-time system search path for libraries
18275 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18277 # Run-time system search path for libraries
18278 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18280 # Fix the shell variable \$srcfile for the compiler.
18281 fix_srcfile_path=$lt_fix_srcfile_path
18283 # Set to yes if exported symbols are required.
18284 always_export_symbols=$always_export_symbols_F77
18286 # The commands to list exported symbols.
18287 export_symbols_cmds=$lt_export_symbols_cmds_F77
18289 # The commands to extract the exported symbol list from a shared archive.
18290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18292 # Symbols that should not be listed in the preloaded symbols.
18293 exclude_expsyms=$lt_exclude_expsyms_F77
18295 # Symbols that must always be exported.
18296 include_expsyms=$lt_include_expsyms_F77
18298 # ### END LIBTOOL TAG CONFIG: $tagname
18304 # If there is no Makefile yet, we rely on a make rule to execute
18305 # `config.status --recheck' to rerun these tests and create the
18306 # libtool script then.
18307 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18308 if test -f "$ltmain_in"; then
18309 test -f Makefile && make "$ltmain"
18315 ac_cpp='$CPP $CPPFLAGS'
18316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18328 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18331 # Source file extension for Java test sources.
18334 # Object file extension for compiled Java test sources.
18338 # Code to be used in simple compile tests
18339 lt_simple_compile_test_code="class foo {}"
18341 # Code to be used in simple link tests
18342 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18346 # If no C compiler was specified, use CC.
18349 # If no C compiler flags were specified, use CFLAGS.
18350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18352 # Allow CC to be a program name with arguments.
18356 # save warnings/boilerplate of simple test code
18357 ac_outfile=conftest.$ac_objext
18358 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18360 _lt_compiler_boilerplate=`cat conftest.err`
18363 ac_outfile=conftest.$ac_objext
18364 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18366 _lt_linker_boilerplate=`cat conftest.err`
18370 # Allow CC to be a program name with arguments.
18375 for cc_temp in $compiler""; do
18377 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18378 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18386 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18387 archive_cmds_need_lc_GCJ=no
18389 old_archive_cmds_GCJ=$old_archive_cmds
18392 lt_prog_compiler_no_builtin_flag_GCJ=
18394 if test "$GCC" = yes; then
18395 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18398 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18399 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18400 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 lt_cv_prog_compiler_rtti_exceptions=no
18404 ac_outfile=conftest.$ac_objext
18405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18406 lt_compiler_flag="-fno-rtti -fno-exceptions"
18407 # Insert the option either (1) after the last *FLAGS variable, or
18408 # (2) before a word containing "conftest.", or (3) at the end.
18409 # Note that $ac_compile itself does not contain backslashes and begins
18410 # with a dollar sign (not a hyphen), so the echo should work correctly.
18411 # The option is referenced via a variable to avoid confusing sed.
18412 lt_compile=`echo "$ac_compile" | $SED \
18413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18415 -e 's:$: $lt_compiler_flag:'`
18416 (eval echo "\"\$as_me:18416: $lt_compile\"" >&5)
18417 (eval "$lt_compile" 2>conftest.err)
18419 cat conftest.err >&5
18420 echo "$as_me:18420: \$? = $ac_status" >&5
18421 if (exit $ac_status) && test -s "$ac_outfile"; then
18422 # The compiler can only warn and ignore the option if not recognized
18423 # So say no if there are warnings other than the usual output.
18424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18427 lt_cv_prog_compiler_rtti_exceptions=yes
18433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18434 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18436 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18437 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18444 lt_prog_compiler_wl_GCJ=
18445 lt_prog_compiler_pic_GCJ=
18446 lt_prog_compiler_static_GCJ=
18448 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18449 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18451 if test "$GCC" = yes; then
18452 lt_prog_compiler_wl_GCJ='-Wl,'
18453 lt_prog_compiler_static_GCJ='-static'
18457 # All AIX code is PIC.
18458 if test "$host_cpu" = ia64; then
18459 # AIX 5 now supports IA64 processor
18460 lt_prog_compiler_static_GCJ='-Bstatic'
18465 # FIXME: we need at least 68020 code to build shared libraries, but
18466 # adding the `-m68020' flag to GCC prevents building anything better,
18468 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18472 # PIC is the default for these OSes.
18475 mingw* | cygwin* | pw32* | os2*)
18476 # This hack is so that the source file can tell whether it is being
18477 # built for inclusion in a dll (and should export symbols for example).
18478 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18479 # (--disable-auto-import) libraries
18483 darwin* | rhapsody*)
18484 # PIC is the default on this platform
18485 # Common symbols not allowed in MH_DYLIB files
18486 lt_prog_compiler_pic_GCJ='-fno-common'
18490 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18491 # Instead, we relocate shared libraries at runtime.
18495 # Just because we use GCC doesn't mean we suddenly get shared libraries
18496 # on systems that don't support them.
18497 lt_prog_compiler_can_build_shared_GCJ=no
18502 if test -d /usr/nec; then
18503 lt_prog_compiler_pic_GCJ=-Kconform_pic
18508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18509 # not for PA HP-UX.
18515 lt_prog_compiler_pic_GCJ='-fPIC'
18521 lt_prog_compiler_pic_GCJ='-fPIC'
18525 # PORTME Check for flag to pass linker flags through the system compiler.
18528 lt_prog_compiler_wl_GCJ='-Wl,'
18529 if test "$host_cpu" = ia64; then
18530 # AIX 5 now supports IA64 processor
18531 lt_prog_compiler_static_GCJ='-Bstatic'
18533 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18537 # PIC is the default on this platform
18538 # Common symbols not allowed in MH_DYLIB files
18539 case $cc_basename in
18541 lt_prog_compiler_pic_GCJ='-qnocommon'
18542 lt_prog_compiler_wl_GCJ='-Wl,'
18547 mingw* | cygwin* | pw32* | os2*)
18548 # This hack is so that the source file can tell whether it is being
18549 # built for inclusion in a dll (and should export symbols for example).
18553 hpux9* | hpux10* | hpux11*)
18554 lt_prog_compiler_wl_GCJ='-Wl,'
18555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18556 # not for PA HP-UX.
18562 lt_prog_compiler_pic_GCJ='+Z'
18565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18566 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18569 irix5* | irix6* | nonstopux*)
18570 lt_prog_compiler_wl_GCJ='-Wl,'
18571 # PIC (with -KPIC) is the default.
18572 lt_prog_compiler_static_GCJ='-non_shared'
18576 lt_prog_compiler_pic_GCJ='-KPIC'
18577 lt_prog_compiler_static_GCJ='-Bstatic'
18580 linux* | k*bsd*-gnu)
18581 case $cc_basename in
18583 lt_prog_compiler_wl_GCJ='-Wl,'
18584 lt_prog_compiler_pic_GCJ='-KPIC'
18585 lt_prog_compiler_static_GCJ='-static'
18587 pgcc* | pgf77* | pgf90* | pgf95*)
18588 # Portland Group compilers (*not* the Pentium gcc compiler,
18589 # which looks to be a dead project)
18590 lt_prog_compiler_wl_GCJ='-Wl,'
18591 lt_prog_compiler_pic_GCJ='-fpic'
18592 lt_prog_compiler_static_GCJ='-Bstatic'
18595 lt_prog_compiler_wl_GCJ='-Wl,'
18596 # All Alpha code is PIC.
18597 lt_prog_compiler_static_GCJ='-non_shared'
18600 case `$CC -V 2>&1 | sed 5q` in
18603 lt_prog_compiler_pic_GCJ='-KPIC'
18604 lt_prog_compiler_static_GCJ='-Bstatic'
18605 lt_prog_compiler_wl_GCJ='-Wl,'
18608 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18609 lt_prog_compiler_pic_GCJ='-KPIC'
18610 lt_prog_compiler_static_GCJ='-Bstatic'
18611 lt_prog_compiler_wl_GCJ=''
18618 osf3* | osf4* | osf5*)
18619 lt_prog_compiler_wl_GCJ='-Wl,'
18620 # All OSF/1 code is PIC.
18621 lt_prog_compiler_static_GCJ='-non_shared'
18625 lt_prog_compiler_static_GCJ='-non_shared'
18629 lt_prog_compiler_pic_GCJ='-KPIC'
18630 lt_prog_compiler_static_GCJ='-Bstatic'
18631 case $cc_basename in
18632 f77* | f90* | f95*)
18633 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18635 lt_prog_compiler_wl_GCJ='-Wl,';;
18640 lt_prog_compiler_wl_GCJ='-Qoption ld '
18641 lt_prog_compiler_pic_GCJ='-PIC'
18642 lt_prog_compiler_static_GCJ='-Bstatic'
18645 sysv4 | sysv4.2uw2* | sysv4.3*)
18646 lt_prog_compiler_wl_GCJ='-Wl,'
18647 lt_prog_compiler_pic_GCJ='-KPIC'
18648 lt_prog_compiler_static_GCJ='-Bstatic'
18652 if test -d /usr/nec ;then
18653 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18654 lt_prog_compiler_static_GCJ='-Bstatic'
18658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18659 lt_prog_compiler_wl_GCJ='-Wl,'
18660 lt_prog_compiler_pic_GCJ='-KPIC'
18661 lt_prog_compiler_static_GCJ='-Bstatic'
18665 lt_prog_compiler_wl_GCJ='-Wl,'
18666 lt_prog_compiler_can_build_shared_GCJ=no
18670 lt_prog_compiler_pic_GCJ='-pic'
18671 lt_prog_compiler_static_GCJ='-Bstatic'
18675 lt_prog_compiler_can_build_shared_GCJ=no
18680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18681 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18684 # Check to make sure the PIC flag actually works.
18686 if test -n "$lt_prog_compiler_pic_GCJ"; then
18688 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18690 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 lt_cv_prog_compiler_pic_works_GCJ=no
18694 ac_outfile=conftest.$ac_objext
18695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18696 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18697 # Insert the option either (1) after the last *FLAGS variable, or
18698 # (2) before a word containing "conftest.", or (3) at the end.
18699 # Note that $ac_compile itself does not contain backslashes and begins
18700 # with a dollar sign (not a hyphen), so the echo should work correctly.
18701 # The option is referenced via a variable to avoid confusing sed.
18702 lt_compile=`echo "$ac_compile" | $SED \
18703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18705 -e 's:$: $lt_compiler_flag:'`
18706 (eval echo "\"\$as_me:18706: $lt_compile\"" >&5)
18707 (eval "$lt_compile" 2>conftest.err)
18709 cat conftest.err >&5
18710 echo "$as_me:18710: \$? = $ac_status" >&5
18711 if (exit $ac_status) && test -s "$ac_outfile"; then
18712 # The compiler can only warn and ignore the option if not recognized
18713 # So say no if there are warnings other than the usual output.
18714 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18717 lt_cv_prog_compiler_pic_works_GCJ=yes
18723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18724 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18726 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18727 case $lt_prog_compiler_pic_GCJ in
18729 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18732 lt_prog_compiler_pic_GCJ=
18733 lt_prog_compiler_can_build_shared_GCJ=no
18738 # For platforms which do not support PIC, -DPIC is meaningless:
18740 lt_prog_compiler_pic_GCJ=
18743 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18748 # Check to make sure the static flag actually works.
18750 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18751 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18752 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18753 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 lt_cv_prog_compiler_static_works_GCJ=no
18757 save_LDFLAGS="$LDFLAGS"
18758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18759 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18761 # The linker can only warn and ignore the option if not recognized
18762 # So say no if there are warnings
18763 if test -s conftest.err; then
18764 # Append any errors to the config.log.
18765 cat conftest.err 1>&5
18766 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18768 if diff conftest.exp conftest.er2 >/dev/null; then
18769 lt_cv_prog_compiler_static_works_GCJ=yes
18772 lt_cv_prog_compiler_static_works_GCJ=yes
18776 LDFLAGS="$save_LDFLAGS"
18779 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18780 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18782 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18785 lt_prog_compiler_static_GCJ=
18789 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18790 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18791 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 lt_cv_prog_compiler_c_o_GCJ=no
18795 $rm -r conftest 2>/dev/null
18799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18801 lt_compiler_flag="-o out/conftest2.$ac_objext"
18802 # Insert the option either (1) after the last *FLAGS variable, or
18803 # (2) before a word containing "conftest.", or (3) at the end.
18804 # Note that $ac_compile itself does not contain backslashes and begins
18805 # with a dollar sign (not a hyphen), so the echo should work correctly.
18806 lt_compile=`echo "$ac_compile" | $SED \
18807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18809 -e 's:$: $lt_compiler_flag:'`
18810 (eval echo "\"\$as_me:18810: $lt_compile\"" >&5)
18811 (eval "$lt_compile" 2>out/conftest.err)
18813 cat out/conftest.err >&5
18814 echo "$as_me:18814: \$? = $ac_status" >&5
18815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18817 # The compiler can only warn and ignore the option if not recognized
18818 # So say no if there are warnings
18819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18822 lt_cv_prog_compiler_c_o_GCJ=yes
18827 # SGI C++ compiler will create directory out/ii_files/ for
18828 # template instantiation
18829 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18830 $rm out/* && rmdir out
18836 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18837 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18840 hard_links="nottested"
18841 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18842 # do not overwrite the value of need_locks provided by the user
18843 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18844 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18849 ln conftest.a conftest.b 2>&5 || hard_links=no
18850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18851 { echo "$as_me:$LINENO: result: $hard_links" >&5
18852 echo "${ECHO_T}$hard_links" >&6; }
18853 if test "$hard_links" = no; then
18854 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18855 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18862 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18863 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18866 allow_undefined_flag_GCJ=
18867 enable_shared_with_static_runtimes_GCJ=no
18869 archive_expsym_cmds_GCJ=
18870 old_archive_From_new_cmds_GCJ=
18871 old_archive_from_expsyms_cmds_GCJ=
18872 export_dynamic_flag_spec_GCJ=
18873 whole_archive_flag_spec_GCJ=
18874 thread_safe_flag_spec_GCJ=
18875 hardcode_libdir_flag_spec_GCJ=
18876 hardcode_libdir_flag_spec_ld_GCJ=
18877 hardcode_libdir_separator_GCJ=
18878 hardcode_direct_GCJ=no
18879 hardcode_minus_L_GCJ=no
18880 hardcode_shlibpath_var_GCJ=unsupported
18881 link_all_deplibs_GCJ=unknown
18882 hardcode_automatic_GCJ=no
18884 module_expsym_cmds_GCJ=
18885 always_export_symbols_GCJ=no
18886 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18887 # include_expsyms should be a list of space-separated symbols to be *always*
18888 # included in the symbol list
18889 include_expsyms_GCJ=
18890 # exclude_expsyms can be an extended regexp of symbols to exclude
18891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18893 # as well as any symbol that contains `d'.
18894 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18896 # platforms (ab)use it in PIC code, but their linkers get confused if
18897 # the symbol is explicitly referenced. Since portable code cannot
18898 # rely on this symbol name, it's probably fine to never include it in
18899 # preloaded symbol tables.
18900 # Exclude shared library initialization/finalization symbols.
18901 extract_expsyms_cmds=
18902 # Just being paranoid about ensuring that cc_basename is set.
18903 for cc_temp in $compiler""; do
18905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18914 cygwin* | mingw* | pw32*)
18915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18916 # When not using gcc, we currently assume that we are using
18917 # Microsoft Visual C++.
18918 if test "$GCC" != yes; then
18923 # we just hope/assume this is gcc and not c89 (= MSVC++)
18932 if test "$with_gnu_ld" = yes; then
18933 # If archive_cmds runs LD, not CC, wlarc should be empty
18936 # Set some defaults for GNU ld with shared library support. These
18937 # are reset later if shared libraries are not supported. Putting them
18938 # here allows them to be overridden if necessary.
18939 runpath_var=LD_RUN_PATH
18940 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18941 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18942 # ancient GNU ld didn't support --whole-archive et. al.
18943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18944 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18946 whole_archive_flag_spec_GCJ=
18948 supports_anon_versioning=no
18949 case `$LD -v 2>/dev/null` in
18950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18953 *\ 2.11.*) ;; # other 2.11 versions
18954 *) supports_anon_versioning=yes ;;
18957 # See if GNU ld supports shared libraries.
18960 # On AIX/PPC, the GNU linker is very broken
18961 if test "$host_cpu" != ia64; then
18965 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18966 *** to be unable to reliably create shared libraries on AIX.
18967 *** Therefore, libtool is disabling shared libraries support. If you
18968 *** really care for shared libraries, you may want to modify your PATH
18969 *** so that a non-GNU linker is found, and then restart.
18976 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)'
18977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18978 hardcode_minus_L_GCJ=yes
18980 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18981 # that the semantics of dynamic libraries on AmigaOS, at least up
18982 # to version 4, is to share data among multiple programs linked
18983 # with the same dynamic library. Since this doesn't match the
18984 # behavior of shared libraries on other platforms, we can't use
18990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18991 allow_undefined_flag_GCJ=unsupported
18992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18993 # support --undefined. This deserves some investigation. FIXME
18994 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19000 cygwin* | mingw* | pw32*)
19001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19002 # as there is no search path for DLLs.
19003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19004 allow_undefined_flag_GCJ=unsupported
19005 always_export_symbols_GCJ=no
19006 enable_shared_with_static_runtimes_GCJ=yes
19007 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19011 # If the export-symbols file already is a .def file (1st line
19012 # is EXPORTS), use it as is; otherwise, prepend...
19013 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19014 cp $export_symbols $output_objdir/$soname.def;
19016 echo EXPORTS > $output_objdir/$soname.def;
19017 cat $export_symbols >> $output_objdir/$soname.def;
19019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19026 hardcode_direct_GCJ=no
19027 hardcode_shlibpath_var_GCJ=no
19028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19029 export_dynamic_flag_spec_GCJ='${wl}-E'
19030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19031 # Instead, shared libraries are loaded at an image base (0x10000000 by
19032 # default) and relocated if they conflict, which is a slow very memory
19033 # consuming and fragmenting process. To avoid this, we pick a random,
19034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19036 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'
19037 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'
19040 gnu* | linux* | k*bsd*-gnu)
19041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19043 case $cc_basename,$host_cpu in
19044 pgcc*) # Portland Group C compiler
19045 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'
19046 tmp_addflag=' $pic_flag'
19048 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19049 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'
19050 tmp_addflag=' $pic_flag -Mnomain' ;;
19051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19052 tmp_addflag=' -i_dynamic' ;;
19053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19054 tmp_addflag=' -i_dynamic -nofor_main' ;;
19055 ifc* | ifort*) # Intel Fortran compiler
19056 tmp_addflag=' -nofor_main' ;;
19058 case `$CC -V 2>&1 | sed 5q` in
19059 *Sun\ C*) # Sun C 5.9
19060 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'
19061 tmp_sharedflag='-G' ;;
19062 *Sun\ F*) # Sun Fortran 8.3
19063 tmp_sharedflag='-G' ;;
19065 tmp_sharedflag='-shared' ;;
19067 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19069 if test $supports_anon_versioning = yes; then
19070 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19072 $echo "local: *; };" >> $output_objdir/$libname.ver~
19073 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19082 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19085 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19086 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19091 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19096 *** create shared libraries on Solaris systems. Therefore, libtool
19097 *** is disabling shared libraries support. We urge you to upgrade GNU
19098 *** binutils to release 2.9.1 or newer. Another option is to modify
19099 *** your PATH or compiler configuration so that the native linker is
19100 *** used, and then restart.
19103 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19104 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19105 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19112 case `$LD -v 2>&1` in
19113 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19117 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19118 *** reliably create shared libraries on SCO systems. Therefore, libtool
19119 *** is disabling shared libraries support. We urge you to upgrade GNU
19120 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19121 *** your PATH or compiler configuration so that the native linker is
19122 *** used, and then restart.
19127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19128 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19130 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19139 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19141 hardcode_direct_GCJ=yes
19142 hardcode_shlibpath_var_GCJ=no
19146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19155 if test "$ld_shlibs_GCJ" = no; then
19157 hardcode_libdir_flag_spec_GCJ=
19158 export_dynamic_flag_spec_GCJ=
19159 whole_archive_flag_spec_GCJ=
19162 # PORTME fill in a description of your system's linker (not GNU ld)
19165 allow_undefined_flag_GCJ=unsupported
19166 always_export_symbols_GCJ=yes
19167 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'
19168 # Note: this linker hardcodes the directories in LIBPATH if there
19169 # are no directories specified by -L.
19170 hardcode_minus_L_GCJ=yes
19171 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19172 # Neither direct hardcoding nor static linking is supported with a
19174 hardcode_direct_GCJ=unsupported
19179 if test "$host_cpu" = ia64; then
19180 # On IA64, the linker does run time linking by default, so we don't
19181 # have to do anything special.
19182 aix_use_runtimelinking=no
19183 exp_sym_flag='-Bexport'
19186 # If we're using GNU nm, then we don't want the "-C" option.
19187 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19188 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19189 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'
19191 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'
19193 aix_use_runtimelinking=no
19195 # Test if we are trying to use run time linking or normal
19196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19197 # need to do runtime linking.
19198 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19199 for ld_flag in $LDFLAGS; do
19200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19201 aix_use_runtimelinking=yes
19208 exp_sym_flag='-bexport'
19209 no_entry_flag='-bnoentry'
19212 # When large executables or shared objects are built, AIX ld can
19213 # have problems creating the table of contents. If linking a library
19214 # or program results in "error TOC overflow" add -mminimal-toc to
19215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19218 archive_cmds_GCJ=''
19219 hardcode_direct_GCJ=yes
19220 hardcode_libdir_separator_GCJ=':'
19221 link_all_deplibs_GCJ=yes
19223 if test "$GCC" = yes; then
19224 case $host_os in aix4.[012]|aix4.[012].*)
19225 # We only want to do this on AIX 4.2 and lower, the check
19226 # below for broken collect2 doesn't work under 4.3+
19227 collect2name=`${CC} -print-prog-name=collect2`
19228 if test -f "$collect2name" && \
19229 strings "$collect2name" | grep resolve_lib_name >/dev/null
19231 # We have reworked collect2
19234 # We have old collect2
19235 hardcode_direct_GCJ=unsupported
19236 # It fails to find uninstalled libraries when the uninstalled
19237 # path is not listed in the libpath. Setting hardcode_minus_L
19238 # to unsupported forces relinking
19239 hardcode_minus_L_GCJ=yes
19240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19241 hardcode_libdir_separator_GCJ=
19245 shared_flag='-shared'
19246 if test "$aix_use_runtimelinking" = yes; then
19247 shared_flag="$shared_flag "'${wl}-G'
19251 if test "$host_cpu" = ia64; then
19252 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19253 # chokes on -Wl,-G. The following line is correct:
19256 if test "$aix_use_runtimelinking" = yes; then
19257 shared_flag='${wl}-G'
19259 shared_flag='${wl}-bM:SRE'
19264 # It seems that -bexpall does not export symbols beginning with
19265 # underscore (_), so it is better to generate a list of symbols to export.
19266 always_export_symbols_GCJ=yes
19267 if test "$aix_use_runtimelinking" = yes; then
19268 # Warning - without using the other runtime loading flags (-brtl),
19269 # -berok will link without error, but may produce a broken library.
19270 allow_undefined_flag_GCJ='-berok'
19271 # Determine the default libpath from the value encoded in an empty executable.
19272 cat >conftest.$ac_ext <<_ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h. */
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_link") 2>conftest.er1
19296 grep -v '^ *+' conftest.er1 >conftest.err
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
19303 } && test -s conftest$ac_exeext &&
19304 $as_test_x conftest$ac_exeext; then
19306 lt_aix_libpath_sed='
19307 /Import File Strings/,/^$/ {
19313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19314 # Check for a 64-bit object if we didn't find anything.
19315 if test -z "$aix_libpath"; then
19316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19326 conftest$ac_exeext conftest.$ac_ext
19327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19329 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19330 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"
19332 if test "$host_cpu" = ia64; then
19333 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19334 allow_undefined_flag_GCJ="-z nodefs"
19335 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"
19337 # Determine the default libpath from the value encoded in an empty executable.
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (ac_try="$ac_link"
19355 case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_link") 2>conftest.er1
19362 grep -v '^ *+' conftest.er1 >conftest.err
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } && {
19367 test -z "$ac_c_werror_flag" ||
19368 test ! -s conftest.err
19369 } && test -s conftest$ac_exeext &&
19370 $as_test_x conftest$ac_exeext; then
19372 lt_aix_libpath_sed='
19373 /Import File Strings/,/^$/ {
19379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19380 # Check for a 64-bit object if we didn't find anything.
19381 if test -z "$aix_libpath"; then
19382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19392 conftest$ac_exeext conftest.$ac_ext
19393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19395 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19396 # Warning - without using the other run time loading flags,
19397 # -berok will link without error, but may produce a broken library.
19398 no_undefined_flag_GCJ=' ${wl}-bernotok'
19399 allow_undefined_flag_GCJ=' ${wl}-berok'
19400 # Exported symbols can be pulled into shared objects from archives
19401 whole_archive_flag_spec_GCJ='$convenience'
19402 archive_cmds_need_lc_GCJ=yes
19403 # This is similar to how AIX traditionally builds its shared libraries.
19404 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'
19410 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)'
19411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19412 hardcode_minus_L_GCJ=yes
19413 # see comment about different semantics on the GNU ld section
19418 export_dynamic_flag_spec_GCJ=-rdynamic
19421 cygwin* | mingw* | pw32*)
19422 # When not using gcc, we currently assume that we are using
19423 # Microsoft Visual C++.
19424 # hardcode_libdir_flag_spec is actually meaningless, as there is
19425 # no search path for DLLs.
19426 hardcode_libdir_flag_spec_GCJ=' '
19427 allow_undefined_flag_GCJ=unsupported
19428 # Tell ltmain to make .lib files, not .a files.
19430 # Tell ltmain to make .dll files, not .so files.
19432 # FIXME: Setting linknames here is a bad hack.
19433 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19434 # The linker will automatically build a .lib file if we build a DLL.
19435 old_archive_From_new_cmds_GCJ='true'
19436 # FIXME: Should let the user specify the lib program.
19437 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19438 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19439 enable_shared_with_static_runtimes_GCJ=yes
19442 darwin* | rhapsody*)
19444 rhapsody* | darwin1.[012])
19445 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19448 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19449 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19451 case ${MACOSX_DEPLOYMENT_TARGET} in
19453 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19456 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19462 archive_cmds_need_lc_GCJ=no
19463 hardcode_direct_GCJ=no
19464 hardcode_automatic_GCJ=yes
19465 hardcode_shlibpath_var_GCJ=unsupported
19466 whole_archive_flag_spec_GCJ=''
19467 link_all_deplibs_GCJ=yes
19468 if test "$GCC" = yes ; then
19469 output_verbose_link_cmd='echo'
19470 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}"
19471 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19472 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}"
19473 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}"
19475 case $cc_basename in
19477 output_verbose_link_cmd='echo'
19478 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19479 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19480 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19481 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}'
19482 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}'
19492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19494 hardcode_shlibpath_var_GCJ=no
19501 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19502 # support. Future versions do this automatically, but an explicit c++rt0.o
19503 # does not break anything, and helps significantly (at the cost of a little
19506 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19507 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19508 hardcode_direct_GCJ=yes
19509 hardcode_shlibpath_var_GCJ=no
19512 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19515 hardcode_direct_GCJ=yes
19516 hardcode_minus_L_GCJ=yes
19517 hardcode_shlibpath_var_GCJ=no
19520 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19521 freebsd* | dragonfly*)
19522 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19523 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19524 hardcode_direct_GCJ=yes
19525 hardcode_shlibpath_var_GCJ=no
19529 if test "$GCC" = yes; then
19530 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'
19532 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'
19534 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19535 hardcode_libdir_separator_GCJ=:
19536 hardcode_direct_GCJ=yes
19538 # hardcode_minus_L: Not really in the search PATH,
19539 # but as the default location of the library.
19540 hardcode_minus_L_GCJ=yes
19541 export_dynamic_flag_spec_GCJ='${wl}-E'
19545 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19546 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19548 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19550 if test "$with_gnu_ld" = no; then
19551 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19552 hardcode_libdir_separator_GCJ=:
19554 hardcode_direct_GCJ=yes
19555 export_dynamic_flag_spec_GCJ='${wl}-E'
19557 # hardcode_minus_L: Not really in the search PATH,
19558 # but as the default location of the library.
19559 hardcode_minus_L_GCJ=yes
19564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19567 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19570 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19573 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19579 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19582 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19585 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19589 if test "$with_gnu_ld" = no; then
19590 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19591 hardcode_libdir_separator_GCJ=:
19595 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19596 hardcode_direct_GCJ=no
19597 hardcode_shlibpath_var_GCJ=no
19600 hardcode_direct_GCJ=yes
19601 export_dynamic_flag_spec_GCJ='${wl}-E'
19603 # hardcode_minus_L: Not really in the search PATH,
19604 # but as the default location of the library.
19605 hardcode_minus_L_GCJ=yes
19611 irix5* | irix6* | nonstopux*)
19612 if test "$GCC" = yes; then
19613 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'
19615 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'
19616 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19618 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19619 hardcode_libdir_separator_GCJ=:
19620 link_all_deplibs_GCJ=yes
19624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19625 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19627 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19629 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19630 hardcode_direct_GCJ=yes
19631 hardcode_shlibpath_var_GCJ=no
19635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19636 hardcode_direct_GCJ=yes
19637 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19638 hardcode_libdir_separator_GCJ=:
19639 hardcode_shlibpath_var_GCJ=no
19643 if test -f /usr/libexec/ld.so; then
19644 hardcode_direct_GCJ=yes
19645 hardcode_shlibpath_var_GCJ=no
19646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19647 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19648 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19649 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19650 export_dynamic_flag_spec_GCJ='${wl}-E'
19653 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19654 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19655 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19658 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19659 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19670 hardcode_minus_L_GCJ=yes
19671 allow_undefined_flag_GCJ=unsupported
19672 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'
19673 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19677 if test "$GCC" = yes; then
19678 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19679 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'
19681 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19682 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'
19684 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19685 hardcode_libdir_separator_GCJ=:
19688 osf4* | osf5*) # as osf3* with the addition of -msym flag
19689 if test "$GCC" = yes; then
19690 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19691 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'
19692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19694 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19695 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'
19696 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~
19697 $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'
19699 # Both c and cxx compiler support -rpath directly
19700 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19702 hardcode_libdir_separator_GCJ=:
19706 no_undefined_flag_GCJ=' -z text'
19707 if test "$GCC" = yes; then
19709 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19711 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19714 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19715 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19716 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19718 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19719 hardcode_shlibpath_var_GCJ=no
19721 solaris2.[0-5] | solaris2.[0-5].*) ;;
19723 # The compiler driver will combine and reorder linker options,
19724 # but understands `-z linker_flag'. GCC discards it without `$wl',
19725 # but is careful enough not to reorder.
19726 # Supported since Solaris 2.6 (maybe 2.5.1?)
19727 if test "$GCC" = yes; then
19728 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19730 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19734 link_all_deplibs_GCJ=yes
19738 if test "x$host_vendor" = xsequent; then
19739 # Use $CC to link under sequent, because it throws in some extra .o
19740 # files that make .init and .fini sections work.
19741 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19743 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19746 hardcode_direct_GCJ=yes
19747 hardcode_minus_L_GCJ=yes
19748 hardcode_shlibpath_var_GCJ=no
19752 case $host_vendor in
19754 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19755 hardcode_direct_GCJ=yes # is this really true???
19758 ## LD is ld it makes a PLAMLIB
19759 ## CC just makes a GrossModule.
19760 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19761 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19762 hardcode_direct_GCJ=no
19765 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19766 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19769 runpath_var='LD_RUN_PATH'
19770 hardcode_shlibpath_var_GCJ=no
19774 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19775 hardcode_shlibpath_var_GCJ=no
19776 export_dynamic_flag_spec_GCJ='-Bexport'
19780 if test -d /usr/nec; then
19781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19782 hardcode_shlibpath_var_GCJ=no
19783 runpath_var=LD_RUN_PATH
19784 hardcode_runpath_var=yes
19789 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19790 no_undefined_flag_GCJ='${wl}-z,text'
19791 archive_cmds_need_lc_GCJ=no
19792 hardcode_shlibpath_var_GCJ=no
19793 runpath_var='LD_RUN_PATH'
19795 if test "$GCC" = yes; then
19796 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19797 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19799 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19800 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19804 sysv5* | sco3.2v5* | sco5v6*)
19805 # Note: We can NOT use -z defs as we might desire, because we do not
19806 # link with -lc, and that would cause any symbols used from libc to
19807 # always be unresolved, which means just about no library would
19808 # ever link correctly. If we're not using GNU ld we use -z text
19809 # though, which does catch some bad symbols but isn't as heavy-handed
19811 no_undefined_flag_GCJ='${wl}-z,text'
19812 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19813 archive_cmds_need_lc_GCJ=no
19814 hardcode_shlibpath_var_GCJ=no
19815 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19816 hardcode_libdir_separator_GCJ=':'
19817 link_all_deplibs_GCJ=yes
19818 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19819 runpath_var='LD_RUN_PATH'
19821 if test "$GCC" = yes; then
19822 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19823 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19825 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19826 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19833 hardcode_shlibpath_var_GCJ=no
19842 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19843 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19844 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19847 # Do we need to explicitly link libc?
19849 case "x$archive_cmds_need_lc_GCJ" in
19851 # Assume -lc should be added
19852 archive_cmds_need_lc_GCJ=yes
19854 if test "$enable_shared" = yes && test "$GCC" = yes; then
19855 case $archive_cmds_GCJ in
19857 # FIXME: we may have to deal with multi-command sequences.
19860 # Test whether the compiler implicitly links with -lc since on some
19861 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19862 # to ld, don't add -lc before -lgcc.
19863 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19864 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19869 (eval $ac_compile) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } 2>conftest.err; then
19875 libobjs=conftest.$ac_objext
19877 wl=$lt_prog_compiler_wl_GCJ
19878 pic_flag=$lt_prog_compiler_pic_GCJ
19884 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19885 allow_undefined_flag_GCJ=
19886 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19887 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }
19892 archive_cmds_need_lc_GCJ=no
19894 archive_cmds_need_lc_GCJ=yes
19896 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19898 cat conftest.err 1>&5
19901 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19902 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19909 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19911 library_names_spec=
19912 libname_spec='lib$name'
19916 postuninstall_cmds=
19920 shlibpath_overrides_runpath=unknown
19922 dynamic_linker="$host_os ld.so"
19923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19925 need_lib_prefix=unknown
19926 hardcode_into_libs=no
19928 # when you set need_version to no, make sure it does not cause -set_version
19929 # flags to be left without arguments
19930 need_version=unknown
19935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19936 shlibpath_var=LIBPATH
19938 # AIX 3 has no versioning support, so we append a major version to the name.
19939 soname_spec='${libname}${release}${shared_ext}$major'
19946 hardcode_into_libs=yes
19947 if test "$host_cpu" = ia64; then
19948 # AIX 5 supports IA64
19949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19950 shlibpath_var=LD_LIBRARY_PATH
19952 # With GCC up to 2.95.x, collect2 would create an import file
19953 # for dependence libraries. The import file would start with
19954 # the line `#! .'. This would cause the generated library to
19955 # depend on `.', always an invalid library. This was fixed in
19956 # development snapshots of GCC prior to 3.0.
19958 aix4 | aix4.[01] | aix4.[01].*)
19959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19961 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19964 can_build_shared=no
19968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19969 # soname into executable. Probably we can add versioning support to
19970 # collect2, so additional links can be useful in future.
19971 if test "$aix_use_runtimelinking" = yes; then
19972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19973 # instead of lib<name>.a to let people know that these are not
19974 # typical AIX shared libraries.
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19977 # We preserve .a as extension for shared libraries through AIX4.2
19978 # and later when we are not doing run time linking.
19979 library_names_spec='${libname}${release}.a $libname.a'
19980 soname_spec='${libname}${release}${shared_ext}$major'
19982 shlibpath_var=LIBPATH
19987 library_names_spec='$libname.ixlibrary $libname.a'
19988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19989 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'
19993 library_names_spec='${libname}${shared_ext}'
19994 dynamic_linker="$host_os ld.so"
19995 shlibpath_var=LIBRARY_PATH
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20002 soname_spec='${libname}${release}${shared_ext}$major'
20003 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20004 shlibpath_var=LD_LIBRARY_PATH
20005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20007 # the default ld.so.conf also contains /usr/contrib/lib and
20008 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20009 # libtool to hard-code these into programs
20012 cygwin* | mingw* | pw32*)
20013 version_type=windows
20018 case $GCC,$host_os in
20019 yes,cygwin* | yes,mingw* | yes,pw32*)
20020 library_names_spec='$libname.dll.a'
20021 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20022 postinstall_cmds='base_file=`basename \${file}`~
20023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20024 dldir=$destdir/`dirname \$dlpath`~
20025 test -d \$dldir || mkdir -p \$dldir~
20026 $install_prog $dir/$dlname \$dldir/$dlname~
20027 chmod a+x \$dldir/$dlname'
20028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20029 dlpath=$dir/\$dldll~
20031 shlibpath_overrides_runpath=yes
20035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20037 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20040 # MinGW DLLs use traditional 'lib' prefix
20041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20043 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20044 # It is most probably a Windows format PATH printed by
20045 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20046 # path with ; separators, and with drive letters. We can handle the
20047 # drive letters (cygwin fileutils understands them), so leave them,
20048 # especially as we might pass files found there to a mingw objdump,
20049 # which wouldn't understand a cygwinified path. Ahh.
20050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20056 # pw32 DLLs use 'pw' prefix rather than 'lib'
20057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20066 dynamic_linker='Win32 ld.exe'
20067 # FIXME: first we should search . and the directory the executable is in
20071 darwin* | rhapsody*)
20072 dynamic_linker="$host_os dyld"
20073 version_type=darwin
20076 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20077 soname_spec='${libname}${release}${major}$shared_ext'
20078 shlibpath_overrides_runpath=yes
20079 shlibpath_var=DYLD_LIBRARY_PATH
20080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20090 soname_spec='${libname}${release}${shared_ext}$major'
20091 shlibpath_var=LD_LIBRARY_PATH
20098 freebsd* | dragonfly*)
20099 # DragonFly does not have aout. When/if they implement a new
20100 # versioning mechanism, adjust this.
20101 if test -x /usr/bin/objformat; then
20102 objformat=`/usr/bin/objformat`
20105 freebsd[123]*) objformat=aout ;;
20106 *) objformat=elf ;;
20109 version_type=freebsd-$objformat
20110 case $version_type in
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20121 shlibpath_var=LD_LIBRARY_PATH
20124 shlibpath_overrides_runpath=yes
20126 freebsd3.[01]* | freebsdelf3.[01]*)
20127 shlibpath_overrides_runpath=yes
20128 hardcode_into_libs=yes
20130 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20131 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20132 shlibpath_overrides_runpath=no
20133 hardcode_into_libs=yes
20135 *) # from 4.6 on, and DragonFly
20136 shlibpath_overrides_runpath=yes
20137 hardcode_into_libs=yes
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20147 soname_spec='${libname}${release}${shared_ext}$major'
20148 shlibpath_var=LD_LIBRARY_PATH
20149 hardcode_into_libs=yes
20152 hpux9* | hpux10* | hpux11*)
20153 # Give a soname corresponding to the major version so that dld.sl refuses to
20154 # link against other versions.
20161 hardcode_into_libs=yes
20162 dynamic_linker="$host_os dld.so"
20163 shlibpath_var=LD_LIBRARY_PATH
20164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20166 soname_spec='${libname}${release}${shared_ext}$major'
20167 if test "X$HPUX_IA64_MODE" = X32; then
20168 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20170 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20176 hardcode_into_libs=yes
20177 dynamic_linker="$host_os dld.sl"
20178 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20181 soname_spec='${libname}${release}${shared_ext}$major'
20182 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20187 dynamic_linker="$host_os dld.sl"
20188 shlibpath_var=SHLIB_PATH
20189 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20191 soname_spec='${libname}${release}${shared_ext}$major'
20194 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20195 postinstall_cmds='chmod 555 $lib'
20202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20203 soname_spec='${libname}${release}${shared_ext}$major'
20204 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 shlibpath_overrides_runpath=no
20207 hardcode_into_libs=yes
20210 irix5* | irix6* | nonstopux*)
20212 nonstopux*) version_type=nonstopux ;;
20214 if test "$lt_cv_prog_gnu_ld" = yes; then
20222 soname_spec='${libname}${release}${shared_ext}$major'
20223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20225 irix5* | nonstopux*)
20226 libsuff= shlibsuff=
20229 case $LD in # libtool.m4 will add one of these switches to LD
20230 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20231 libsuff= shlibsuff= libmagic=32-bit;;
20232 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20233 libsuff=32 shlibsuff=N32 libmagic=N32;;
20234 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20235 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20236 *) libsuff= shlibsuff= libmagic=never-match;;
20240 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20241 shlibpath_overrides_runpath=no
20242 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20243 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20244 hardcode_into_libs=yes
20247 # No shared lib support for Linux oldld, aout, or coff.
20248 linux*oldld* | linux*aout* | linux*coff*)
20252 # This must be Linux ELF.
20253 linux* | k*bsd*-gnu)
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20260 shlibpath_var=LD_LIBRARY_PATH
20261 shlibpath_overrides_runpath=no
20262 # This implies no fast_install, which is unacceptable.
20263 # Some rework will be needed to allow for fast_install
20264 # before this can be enabled.
20265 hardcode_into_libs=yes
20267 # Append ld.so.conf contents to the search path
20268 if test -f /etc/ld.so.conf; then
20269 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' ' '`
20270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20273 # We used to test for /lib/ld.so.1 and disable shared libraries on
20274 # powerpc, because MkLinux only supported shared libraries with the
20275 # GNU dynamic linker. Since this was broken with cross compilers,
20276 # most powerpc-linux boxes support dynamic linking these days and
20277 # people can always --disable-shared, the test was removed, and we
20278 # assume the GNU/Linux dynamic linker is in use.
20279 dynamic_linker='GNU/Linux ld.so'
20286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20289 dynamic_linker='NetBSD (a.out) ld.so'
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20292 soname_spec='${libname}${release}${shared_ext}$major'
20293 dynamic_linker='NetBSD ld.elf_so'
20295 shlibpath_var=LD_LIBRARY_PATH
20296 shlibpath_overrides_runpath=yes
20297 hardcode_into_libs=yes
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20303 shlibpath_var=LD_LIBRARY_PATH
20304 shlibpath_overrides_runpath=yes
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20314 shlibpath_overrides_runpath=yes
20319 sys_lib_dlsearch_path_spec="/usr/lib"
20321 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20323 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20324 *) need_version=no ;;
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20328 shlibpath_var=LD_LIBRARY_PATH
20329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20331 openbsd2.[89] | openbsd2.[89].*)
20332 shlibpath_overrides_runpath=no
20335 shlibpath_overrides_runpath=yes
20339 shlibpath_overrides_runpath=yes
20344 libname_spec='$name'
20347 library_names_spec='$libname${shared_ext} $libname.a'
20348 dynamic_linker='OS/2 ld.exe'
20349 shlibpath_var=LIBPATH
20352 osf3* | osf4* | osf5*)
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20360 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372 soname_spec='${libname}${release}${shared_ext}$major'
20373 shlibpath_var=LD_LIBRARY_PATH
20374 shlibpath_overrides_runpath=yes
20375 hardcode_into_libs=yes
20376 # ldd complains unless libraries are executable
20377 postinstall_cmds='chmod +x $lib'
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 shlibpath_overrides_runpath=yes
20386 if test "$with_gnu_ld" = yes; then
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 case $host_vendor in
20399 shlibpath_overrides_runpath=no
20401 export_dynamic_flag_spec='${wl}-Blargedynsym'
20402 runpath_var=LD_RUN_PATH
20410 shlibpath_overrides_runpath=no
20411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20417 if test -d /usr/nec ;then
20419 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20420 soname_spec='$libname${shared_ext}.$major'
20421 shlibpath_var=LD_LIBRARY_PATH
20425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20426 version_type=freebsd-elf
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 hardcode_into_libs=yes
20433 if test "$with_gnu_ld" = yes; then
20434 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20435 shlibpath_overrides_runpath=no
20437 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20438 shlibpath_overrides_runpath=yes
20441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20445 sys_lib_dlsearch_path_spec='/usr/lib'
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451 soname_spec='${libname}${release}${shared_ext}$major'
20452 shlibpath_var=LD_LIBRARY_PATH
20459 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20460 echo "${ECHO_T}$dynamic_linker" >&6; }
20461 test "$dynamic_linker" = no && can_build_shared=no
20463 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20470 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20476 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20479 if test "$GCC" = yes; then
20480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20483 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20484 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20485 hardcode_action_GCJ=
20486 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20487 test -n "$runpath_var_GCJ" || \
20488 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20490 # We can hardcode non-existant directories.
20491 if test "$hardcode_direct_GCJ" != no &&
20492 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20493 # have to relink, otherwise we might link with an installed library
20494 # when we should be linking with a yet-to-be-installed one
20495 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20496 test "$hardcode_minus_L_GCJ" != no; then
20497 # Linking always hardcodes the temporary library directory.
20498 hardcode_action_GCJ=relink
20500 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20501 hardcode_action_GCJ=immediate
20504 # We cannot hardcode anything, or else we can only hardcode existing
20506 hardcode_action_GCJ=unsupported
20508 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20509 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20511 if test "$hardcode_action_GCJ" = relink; then
20512 # Fast installation is not supported
20513 enable_fast_install=no
20514 elif test "$shlibpath_overrides_runpath" = yes ||
20515 test "$enable_shared" = no; then
20516 # Fast installation is not necessary
20517 enable_fast_install=needless
20521 # The else clause should only fire when bootstrapping the
20522 # libtool distribution, otherwise you forgot to ship ltmain.sh
20523 # with your package, and you will get complaints that there are
20524 # no rules to generate ltmain.sh.
20525 if test -f "$ltmain"; then
20526 # See if we are running on zsh, and set the options which allow our commands through
20527 # without removal of \ escapes.
20528 if test -n "${ZSH_VERSION+set}" ; then
20529 setopt NO_GLOB_SUBST
20531 # Now quote all the things that may contain metacharacters while being
20532 # careful not to overquote the AC_SUBSTed values. We take copies of the
20533 # variables and quote the copies for generation of the libtool script.
20534 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20536 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20537 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20538 deplibs_check_method reload_flag reload_cmds need_locks \
20539 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20540 lt_cv_sys_global_symbol_to_c_name_address \
20541 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20542 old_postinstall_cmds old_postuninstall_cmds \
20546 lt_prog_compiler_wl_GCJ \
20547 lt_prog_compiler_pic_GCJ \
20548 lt_prog_compiler_static_GCJ \
20549 lt_prog_compiler_no_builtin_flag_GCJ \
20550 export_dynamic_flag_spec_GCJ \
20551 thread_safe_flag_spec_GCJ \
20552 whole_archive_flag_spec_GCJ \
20553 enable_shared_with_static_runtimes_GCJ \
20554 old_archive_cmds_GCJ \
20555 old_archive_from_new_cmds_GCJ \
20556 predep_objects_GCJ \
20557 postdep_objects_GCJ \
20560 compiler_lib_search_path_GCJ \
20561 compiler_lib_search_dirs_GCJ \
20563 archive_expsym_cmds_GCJ \
20564 postinstall_cmds_GCJ \
20565 postuninstall_cmds_GCJ \
20566 old_archive_from_expsyms_cmds_GCJ \
20567 allow_undefined_flag_GCJ \
20568 no_undefined_flag_GCJ \
20569 export_symbols_cmds_GCJ \
20570 hardcode_libdir_flag_spec_GCJ \
20571 hardcode_libdir_flag_spec_ld_GCJ \
20572 hardcode_libdir_separator_GCJ \
20573 hardcode_automatic_GCJ \
20575 module_expsym_cmds_GCJ \
20576 lt_cv_prog_compiler_c_o_GCJ \
20577 fix_srcfile_path_GCJ \
20578 exclude_expsyms_GCJ \
20579 include_expsyms_GCJ; do
20582 old_archive_cmds_GCJ | \
20583 old_archive_from_new_cmds_GCJ | \
20584 archive_cmds_GCJ | \
20585 archive_expsym_cmds_GCJ | \
20586 module_cmds_GCJ | \
20587 module_expsym_cmds_GCJ | \
20588 old_archive_from_expsyms_cmds_GCJ | \
20589 export_symbols_cmds_GCJ | \
20590 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20591 postinstall_cmds | postuninstall_cmds | \
20592 old_postinstall_cmds | old_postuninstall_cmds | \
20593 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20594 # Double-quote double-evaled strings.
20595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20604 *'\$0 --fallback-echo"')
20605 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20611 cat <<__EOF__ >> "$cfgfile"
20612 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20616 # Shell to use when invoking shell scripts.
20619 # Whether or not to build shared libraries.
20620 build_libtool_libs=$enable_shared
20622 # Whether or not to build static libraries.
20623 build_old_libs=$enable_static
20625 # Whether or not to add -lc for building shared libraries.
20626 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20628 # Whether or not to disallow shared libs when runtime libs are static
20629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20631 # Whether or not to optimize for fast installation.
20632 fast_install=$enable_fast_install
20635 host_alias=$host_alias
20639 # The build system.
20640 build_alias=$build_alias
20644 # An echo program that does not interpret backslashes.
20649 AR_FLAGS=$lt_AR_FLAGS
20654 # LTCC compiler flags.
20655 LTCFLAGS=$lt_LTCFLAGS
20657 # A language-specific compiler.
20658 CC=$lt_compiler_GCJ
20660 # Is the compiler the GNU C compiler?
20666 # The linker used to build libraries.
20669 # Whether we need hard or soft links.
20672 # A BSD-compatible nm program.
20675 # A symbol stripping program
20678 # Used to examine libraries when file_magic_cmd begins "file"
20679 MAGIC_CMD=$MAGIC_CMD
20681 # Used on cygwin: DLL creation program.
20684 # Used on cygwin: object dumper.
20687 # Used on cygwin: assembler.
20690 # The name of the directory that contains temporary libtool files.
20693 # How to create reloadable object files.
20694 reload_flag=$lt_reload_flag
20695 reload_cmds=$lt_reload_cmds
20697 # How to pass a linker flag through the compiler.
20698 wl=$lt_lt_prog_compiler_wl_GCJ
20700 # Object file suffix (normally "o").
20701 objext="$ac_objext"
20703 # Old archive suffix (normally "a").
20706 # Shared library suffix (normally ".so").
20707 shrext_cmds='$shrext_cmds'
20709 # Executable file suffix (normally "").
20712 # Additional compiler flags for building library objects.
20713 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20716 # What is the maximum length of a command?
20717 max_cmd_len=$lt_cv_sys_max_cmd_len
20719 # Does compiler simultaneously support -c and -o options?
20720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20722 # Must we lock files when doing compilation?
20723 need_locks=$lt_need_locks
20725 # Do we need the lib prefix for modules?
20726 need_lib_prefix=$need_lib_prefix
20728 # Do we need a version for libraries?
20729 need_version=$need_version
20731 # Whether dlopen is supported.
20732 dlopen_support=$enable_dlopen
20734 # Whether dlopen of programs is supported.
20735 dlopen_self=$enable_dlopen_self
20737 # Whether dlopen of statically linked programs is supported.
20738 dlopen_self_static=$enable_dlopen_self_static
20740 # Compiler flag to prevent dynamic linking.
20741 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20743 # Compiler flag to turn off builtin functions.
20744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20746 # Compiler flag to allow reflexive dlopens.
20747 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20749 # Compiler flag to generate shared objects directly from archives.
20750 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20752 # Compiler flag to generate thread-safe objects.
20753 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20755 # Library versioning type.
20756 version_type=$version_type
20758 # Format of library name prefix.
20759 libname_spec=$lt_libname_spec
20761 # List of archive names. First name is the real one, the rest are links.
20762 # The last name is the one that the linker finds with -lNAME.
20763 library_names_spec=$lt_library_names_spec
20765 # The coded name of the library, if different from the real name.
20766 soname_spec=$lt_soname_spec
20768 # Commands used to build and install an old-style archive.
20770 old_archive_cmds=$lt_old_archive_cmds_GCJ
20771 old_postinstall_cmds=$lt_old_postinstall_cmds
20772 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20774 # Create an old-style archive from a shared archive.
20775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20777 # Create a temporary old-style archive to link instead of a shared archive.
20778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20780 # Commands used to build and install a shared archive.
20781 archive_cmds=$lt_archive_cmds_GCJ
20782 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20783 postinstall_cmds=$lt_postinstall_cmds
20784 postuninstall_cmds=$lt_postuninstall_cmds
20786 # Commands used to build a loadable module (assumed same as above if empty)
20787 module_cmds=$lt_module_cmds_GCJ
20788 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20790 # Commands to strip libraries.
20791 old_striplib=$lt_old_striplib
20792 striplib=$lt_striplib
20794 # Dependencies to place before the objects being linked to create a
20796 predep_objects=$lt_predep_objects_GCJ
20798 # Dependencies to place after the objects being linked to create a
20800 postdep_objects=$lt_postdep_objects_GCJ
20802 # Dependencies to place before the objects being linked to create a
20804 predeps=$lt_predeps_GCJ
20806 # Dependencies to place after the objects being linked to create a
20808 postdeps=$lt_postdeps_GCJ
20810 # The directories searched by this compiler when creating a shared
20812 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20814 # The library search path used internally by the compiler when linking
20815 # a shared library.
20816 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20818 # Method to check whether dependent libraries are shared objects.
20819 deplibs_check_method=$lt_deplibs_check_method
20821 # Command to use when deplibs_check_method == file_magic.
20822 file_magic_cmd=$lt_file_magic_cmd
20824 # Flag that allows shared libraries with undefined symbols to be built.
20825 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20827 # Flag that forces no undefined symbols.
20828 no_undefined_flag=$lt_no_undefined_flag_GCJ
20830 # Commands used to finish a libtool library installation in a directory.
20831 finish_cmds=$lt_finish_cmds
20833 # Same as above, but a single script fragment to be evaled but not shown.
20834 finish_eval=$lt_finish_eval
20836 # Take the output of nm and produce a listing of raw symbols and C names.
20837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20839 # Transform the output of nm in a proper C declaration
20840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20842 # Transform the output of nm in a C name address pair
20843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20845 # This is the shared library runtime path variable.
20846 runpath_var=$runpath_var
20848 # This is the shared library path variable.
20849 shlibpath_var=$shlibpath_var
20851 # Is shlibpath searched before the hard-coded library search path?
20852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20854 # How to hardcode a shared library path into an executable.
20855 hardcode_action=$hardcode_action_GCJ
20857 # Whether we should hardcode library paths into libraries.
20858 hardcode_into_libs=$hardcode_into_libs
20860 # Flag to hardcode \$libdir into a binary during linking.
20861 # This must work even if \$libdir does not exist.
20862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20864 # If ld is used when linking, flag to hardcode \$libdir into
20865 # a binary during linking. This must work even if \$libdir does
20867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20869 # Whether we need a single -rpath flag with a separated argument.
20870 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20873 # resulting binary.
20874 hardcode_direct=$hardcode_direct_GCJ
20876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20877 # resulting binary.
20878 hardcode_minus_L=$hardcode_minus_L_GCJ
20880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20881 # the resulting binary.
20882 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20884 # Set to yes if building a shared library automatically hardcodes DIR into the library
20885 # and all subsequent libraries and executables linked against it.
20886 hardcode_automatic=$hardcode_automatic_GCJ
20888 # Variables whose values should be saved in libtool wrapper scripts and
20889 # restored at relink time.
20890 variables_saved_for_relink="$variables_saved_for_relink"
20892 # Whether libtool must link a program against all its dependency libraries.
20893 link_all_deplibs=$link_all_deplibs_GCJ
20895 # Compile-time system search path for libraries
20896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20898 # Run-time system search path for libraries
20899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20901 # Fix the shell variable \$srcfile for the compiler.
20902 fix_srcfile_path=$lt_fix_srcfile_path
20904 # Set to yes if exported symbols are required.
20905 always_export_symbols=$always_export_symbols_GCJ
20907 # The commands to list exported symbols.
20908 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20910 # The commands to extract the exported symbol list from a shared archive.
20911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20913 # Symbols that should not be listed in the preloaded symbols.
20914 exclude_expsyms=$lt_exclude_expsyms_GCJ
20916 # Symbols that must always be exported.
20917 include_expsyms=$lt_include_expsyms_GCJ
20919 # ### END LIBTOOL TAG CONFIG: $tagname
20925 # If there is no Makefile yet, we rely on a make rule to execute
20926 # `config.status --recheck' to rerun these tests and create the
20927 # libtool script then.
20928 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20929 if test -f "$ltmain_in"; then
20930 test -f Makefile && make "$ltmain"
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20951 # Source file extension for RC test sources.
20954 # Object file extension for compiled RC test sources.
20958 # Code to be used in simple compile tests
20959 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20961 # Code to be used in simple link tests
20962 lt_simple_link_test_code="$lt_simple_compile_test_code"
20964 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20966 # If no C compiler was specified, use CC.
20969 # If no C compiler flags were specified, use CFLAGS.
20970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20972 # Allow CC to be a program name with arguments.
20976 # save warnings/boilerplate of simple test code
20977 ac_outfile=conftest.$ac_objext
20978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20980 _lt_compiler_boilerplate=`cat conftest.err`
20983 ac_outfile=conftest.$ac_objext
20984 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20986 _lt_linker_boilerplate=`cat conftest.err`
20990 # Allow CC to be a program name with arguments.
20995 for cc_temp in $compiler""; do
20997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21005 lt_cv_prog_compiler_c_o_RC=yes
21007 # The else clause should only fire when bootstrapping the
21008 # libtool distribution, otherwise you forgot to ship ltmain.sh
21009 # with your package, and you will get complaints that there are
21010 # no rules to generate ltmain.sh.
21011 if test -f "$ltmain"; then
21012 # See if we are running on zsh, and set the options which allow our commands through
21013 # without removal of \ escapes.
21014 if test -n "${ZSH_VERSION+set}" ; then
21015 setopt NO_GLOB_SUBST
21017 # Now quote all the things that may contain metacharacters while being
21018 # careful not to overquote the AC_SUBSTed values. We take copies of the
21019 # variables and quote the copies for generation of the libtool script.
21020 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21022 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21023 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21024 deplibs_check_method reload_flag reload_cmds need_locks \
21025 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21026 lt_cv_sys_global_symbol_to_c_name_address \
21027 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21028 old_postinstall_cmds old_postuninstall_cmds \
21032 lt_prog_compiler_wl_RC \
21033 lt_prog_compiler_pic_RC \
21034 lt_prog_compiler_static_RC \
21035 lt_prog_compiler_no_builtin_flag_RC \
21036 export_dynamic_flag_spec_RC \
21037 thread_safe_flag_spec_RC \
21038 whole_archive_flag_spec_RC \
21039 enable_shared_with_static_runtimes_RC \
21040 old_archive_cmds_RC \
21041 old_archive_from_new_cmds_RC \
21042 predep_objects_RC \
21043 postdep_objects_RC \
21046 compiler_lib_search_path_RC \
21047 compiler_lib_search_dirs_RC \
21049 archive_expsym_cmds_RC \
21050 postinstall_cmds_RC \
21051 postuninstall_cmds_RC \
21052 old_archive_from_expsyms_cmds_RC \
21053 allow_undefined_flag_RC \
21054 no_undefined_flag_RC \
21055 export_symbols_cmds_RC \
21056 hardcode_libdir_flag_spec_RC \
21057 hardcode_libdir_flag_spec_ld_RC \
21058 hardcode_libdir_separator_RC \
21059 hardcode_automatic_RC \
21061 module_expsym_cmds_RC \
21062 lt_cv_prog_compiler_c_o_RC \
21063 fix_srcfile_path_RC \
21064 exclude_expsyms_RC \
21065 include_expsyms_RC; do
21068 old_archive_cmds_RC | \
21069 old_archive_from_new_cmds_RC | \
21070 archive_cmds_RC | \
21071 archive_expsym_cmds_RC | \
21073 module_expsym_cmds_RC | \
21074 old_archive_from_expsyms_cmds_RC | \
21075 export_symbols_cmds_RC | \
21076 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21077 postinstall_cmds | postuninstall_cmds | \
21078 old_postinstall_cmds | old_postuninstall_cmds | \
21079 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21080 # Double-quote double-evaled strings.
21081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21090 *'\$0 --fallback-echo"')
21091 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21097 cat <<__EOF__ >> "$cfgfile"
21098 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21102 # Shell to use when invoking shell scripts.
21105 # Whether or not to build shared libraries.
21106 build_libtool_libs=$enable_shared
21108 # Whether or not to build static libraries.
21109 build_old_libs=$enable_static
21111 # Whether or not to add -lc for building shared libraries.
21112 build_libtool_need_lc=$archive_cmds_need_lc_RC
21114 # Whether or not to disallow shared libs when runtime libs are static
21115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21117 # Whether or not to optimize for fast installation.
21118 fast_install=$enable_fast_install
21121 host_alias=$host_alias
21125 # The build system.
21126 build_alias=$build_alias
21130 # An echo program that does not interpret backslashes.
21135 AR_FLAGS=$lt_AR_FLAGS
21140 # LTCC compiler flags.
21141 LTCFLAGS=$lt_LTCFLAGS
21143 # A language-specific compiler.
21146 # Is the compiler the GNU C compiler?
21152 # The linker used to build libraries.
21155 # Whether we need hard or soft links.
21158 # A BSD-compatible nm program.
21161 # A symbol stripping program
21164 # Used to examine libraries when file_magic_cmd begins "file"
21165 MAGIC_CMD=$MAGIC_CMD
21167 # Used on cygwin: DLL creation program.
21170 # Used on cygwin: object dumper.
21173 # Used on cygwin: assembler.
21176 # The name of the directory that contains temporary libtool files.
21179 # How to create reloadable object files.
21180 reload_flag=$lt_reload_flag
21181 reload_cmds=$lt_reload_cmds
21183 # How to pass a linker flag through the compiler.
21184 wl=$lt_lt_prog_compiler_wl_RC
21186 # Object file suffix (normally "o").
21187 objext="$ac_objext"
21189 # Old archive suffix (normally "a").
21192 # Shared library suffix (normally ".so").
21193 shrext_cmds='$shrext_cmds'
21195 # Executable file suffix (normally "").
21198 # Additional compiler flags for building library objects.
21199 pic_flag=$lt_lt_prog_compiler_pic_RC
21202 # What is the maximum length of a command?
21203 max_cmd_len=$lt_cv_sys_max_cmd_len
21205 # Does compiler simultaneously support -c and -o options?
21206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21208 # Must we lock files when doing compilation?
21209 need_locks=$lt_need_locks
21211 # Do we need the lib prefix for modules?
21212 need_lib_prefix=$need_lib_prefix
21214 # Do we need a version for libraries?
21215 need_version=$need_version
21217 # Whether dlopen is supported.
21218 dlopen_support=$enable_dlopen
21220 # Whether dlopen of programs is supported.
21221 dlopen_self=$enable_dlopen_self
21223 # Whether dlopen of statically linked programs is supported.
21224 dlopen_self_static=$enable_dlopen_self_static
21226 # Compiler flag to prevent dynamic linking.
21227 link_static_flag=$lt_lt_prog_compiler_static_RC
21229 # Compiler flag to turn off builtin functions.
21230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21232 # Compiler flag to allow reflexive dlopens.
21233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21235 # Compiler flag to generate shared objects directly from archives.
21236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21238 # Compiler flag to generate thread-safe objects.
21239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21241 # Library versioning type.
21242 version_type=$version_type
21244 # Format of library name prefix.
21245 libname_spec=$lt_libname_spec
21247 # List of archive names. First name is the real one, the rest are links.
21248 # The last name is the one that the linker finds with -lNAME.
21249 library_names_spec=$lt_library_names_spec
21251 # The coded name of the library, if different from the real name.
21252 soname_spec=$lt_soname_spec
21254 # Commands used to build and install an old-style archive.
21256 old_archive_cmds=$lt_old_archive_cmds_RC
21257 old_postinstall_cmds=$lt_old_postinstall_cmds
21258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21260 # Create an old-style archive from a shared archive.
21261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21263 # Create a temporary old-style archive to link instead of a shared archive.
21264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21266 # Commands used to build and install a shared archive.
21267 archive_cmds=$lt_archive_cmds_RC
21268 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21269 postinstall_cmds=$lt_postinstall_cmds
21270 postuninstall_cmds=$lt_postuninstall_cmds
21272 # Commands used to build a loadable module (assumed same as above if empty)
21273 module_cmds=$lt_module_cmds_RC
21274 module_expsym_cmds=$lt_module_expsym_cmds_RC
21276 # Commands to strip libraries.
21277 old_striplib=$lt_old_striplib
21278 striplib=$lt_striplib
21280 # Dependencies to place before the objects being linked to create a
21282 predep_objects=$lt_predep_objects_RC
21284 # Dependencies to place after the objects being linked to create a
21286 postdep_objects=$lt_postdep_objects_RC
21288 # Dependencies to place before the objects being linked to create a
21290 predeps=$lt_predeps_RC
21292 # Dependencies to place after the objects being linked to create a
21294 postdeps=$lt_postdeps_RC
21296 # The directories searched by this compiler when creating a shared
21298 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21300 # The library search path used internally by the compiler when linking
21301 # a shared library.
21302 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21304 # Method to check whether dependent libraries are shared objects.
21305 deplibs_check_method=$lt_deplibs_check_method
21307 # Command to use when deplibs_check_method == file_magic.
21308 file_magic_cmd=$lt_file_magic_cmd
21310 # Flag that allows shared libraries with undefined symbols to be built.
21311 allow_undefined_flag=$lt_allow_undefined_flag_RC
21313 # Flag that forces no undefined symbols.
21314 no_undefined_flag=$lt_no_undefined_flag_RC
21316 # Commands used to finish a libtool library installation in a directory.
21317 finish_cmds=$lt_finish_cmds
21319 # Same as above, but a single script fragment to be evaled but not shown.
21320 finish_eval=$lt_finish_eval
21322 # Take the output of nm and produce a listing of raw symbols and C names.
21323 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21325 # Transform the output of nm in a proper C declaration
21326 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21328 # Transform the output of nm in a C name address pair
21329 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21331 # This is the shared library runtime path variable.
21332 runpath_var=$runpath_var
21334 # This is the shared library path variable.
21335 shlibpath_var=$shlibpath_var
21337 # Is shlibpath searched before the hard-coded library search path?
21338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21340 # How to hardcode a shared library path into an executable.
21341 hardcode_action=$hardcode_action_RC
21343 # Whether we should hardcode library paths into libraries.
21344 hardcode_into_libs=$hardcode_into_libs
21346 # Flag to hardcode \$libdir into a binary during linking.
21347 # This must work even if \$libdir does not exist.
21348 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21350 # If ld is used when linking, flag to hardcode \$libdir into
21351 # a binary during linking. This must work even if \$libdir does
21353 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21355 # Whether we need a single -rpath flag with a separated argument.
21356 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21358 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21359 # resulting binary.
21360 hardcode_direct=$hardcode_direct_RC
21362 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21363 # resulting binary.
21364 hardcode_minus_L=$hardcode_minus_L_RC
21366 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21367 # the resulting binary.
21368 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21370 # Set to yes if building a shared library automatically hardcodes DIR into the library
21371 # and all subsequent libraries and executables linked against it.
21372 hardcode_automatic=$hardcode_automatic_RC
21374 # Variables whose values should be saved in libtool wrapper scripts and
21375 # restored at relink time.
21376 variables_saved_for_relink="$variables_saved_for_relink"
21378 # Whether libtool must link a program against all its dependency libraries.
21379 link_all_deplibs=$link_all_deplibs_RC
21381 # Compile-time system search path for libraries
21382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21384 # Run-time system search path for libraries
21385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21387 # Fix the shell variable \$srcfile for the compiler.
21388 fix_srcfile_path=$lt_fix_srcfile_path
21390 # Set to yes if exported symbols are required.
21391 always_export_symbols=$always_export_symbols_RC
21393 # The commands to list exported symbols.
21394 export_symbols_cmds=$lt_export_symbols_cmds_RC
21396 # The commands to extract the exported symbol list from a shared archive.
21397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21399 # Symbols that should not be listed in the preloaded symbols.
21400 exclude_expsyms=$lt_exclude_expsyms_RC
21402 # Symbols that must always be exported.
21403 include_expsyms=$lt_include_expsyms_RC
21405 # ### END LIBTOOL TAG CONFIG: $tagname
21411 # If there is no Makefile yet, we rely on a make rule to execute
21412 # `config.status --recheck' to rerun these tests and create the
21413 # libtool script then.
21414 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21415 if test -f "$ltmain_in"; then
21416 test -f Makefile && make "$ltmain"
21422 ac_cpp='$CPP $CPPFLAGS'
21423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21432 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21433 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21434 { (exit 1); exit 1; }; }
21438 # Append the new tag name to the list of available tags.
21439 if test -n "$tagname" ; then
21440 available_tags="$available_tags $tagname"
21446 # Now substitute the updated list of available tags.
21447 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21448 mv "${ofile}T" "$ofile"
21452 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21453 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21454 { (exit 1); exit 1; }; }
21460 # This can be used to rebuild libtool when needed
21461 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21463 # Always use our own libtool.
21464 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21466 # Prevent multiple expansion
21490 # -Wunreachable-code can't be used with library
21491 CFLAGS="$CFLAGS -pedantic-errors -Wall -Wmissing-prototypes -Wcast-align -std=c99"
21493 # set -fgnu89-inline for GCC4 compilers
21494 if test -z "$ac_cv_prog_CC"; then
21495 configure_gcc="$CC"
21497 configure_gcc="$ac_cv_prog_CC"
21499 if $configure_gcc --version | sed -e 's,\..*,.,' -e q | grep -q 4.$ ; then
21500 CFLAGS="$CFLAGS -fgnu89-inline"
21507 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21508 if test -n "$ac_tool_prefix"; then
21509 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21510 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21513 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 case $PKG_CONFIG in
21518 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21522 for as_dir in $PATH
21525 test -z "$as_dir" && as_dir=.
21526 for ac_exec_ext in '' $ac_executable_extensions; do
21527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21528 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21539 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21540 if test -n "$PKG_CONFIG"; then
21541 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21542 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21544 { echo "$as_me:$LINENO: result: no" >&5
21545 echo "${ECHO_T}no" >&6; }
21550 if test -z "$ac_cv_path_PKG_CONFIG"; then
21551 ac_pt_PKG_CONFIG=$PKG_CONFIG
21552 # Extract the first word of "pkg-config", so it can be a program name with args.
21553 set dummy pkg-config; ac_word=$2
21554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21556 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 case $ac_pt_PKG_CONFIG in
21561 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21565 for as_dir in $PATH
21568 test -z "$as_dir" && as_dir=.
21569 for ac_exec_ext in '' $ac_executable_extensions; do
21570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21571 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21582 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21583 if test -n "$ac_pt_PKG_CONFIG"; then
21584 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21585 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21587 { echo "$as_me:$LINENO: result: no" >&5
21588 echo "${ECHO_T}no" >&6; }
21591 if test "x$ac_pt_PKG_CONFIG" = x; then
21594 case $cross_compiling:$ac_tool_warned in
21596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21597 whose name does not start with the host triplet. If you think this
21598 configuration is useful to you, please write to autoconf@gnu.org." >&5
21599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21600 whose name does not start with the host triplet. If you think this
21601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21602 ac_tool_warned=yes ;;
21604 PKG_CONFIG=$ac_pt_PKG_CONFIG
21607 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21611 if test -n "$PKG_CONFIG"; then
21612 _pkg_min_version=0.9.0
21613 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21614 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21615 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21616 { echo "$as_me:$LINENO: result: yes" >&5
21617 echo "${ECHO_T}yes" >&6; }
21619 { echo "$as_me:$LINENO: result: no" >&5
21620 echo "${ECHO_T}no" >&6; }
21627 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
21628 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
21630 if test -n "$PKG_CONFIG"; then
21631 if test -n "$PACKAGE_CFLAGS"; then
21632 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
21634 if test -n "$PKG_CONFIG" && \
21635 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic\"") >&5
21636 ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic") 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; then
21640 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gtk+-2.0 libsharing conic" 2>/dev/null`
21648 if test -n "$PKG_CONFIG"; then
21649 if test -n "$PACKAGE_LIBS"; then
21650 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
21652 if test -n "$PKG_CONFIG" && \
21653 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic\"") >&5
21654 ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic") 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; then
21658 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "glib-2.0 gtk+-2.0 libsharing conic" 2>/dev/null`
21669 if test $pkg_failed = yes; then
21671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21672 _pkg_short_errors_supported=yes
21674 _pkg_short_errors_supported=no
21676 if test $_pkg_short_errors_supported = yes; then
21677 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic"`
21679 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic"`
21681 # Put the nasty error message in config.log where it belongs
21682 echo "$PACKAGE_PKG_ERRORS" >&5
21684 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic) were not met:
21686 $PACKAGE_PKG_ERRORS
21688 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21689 installed software in a non-standard prefix.
21691 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21692 and PACKAGE_LIBS to avoid the need to call pkg-config.
21693 See the pkg-config man page for more details.
21695 echo "$as_me: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic) were not met:
21697 $PACKAGE_PKG_ERRORS
21699 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21700 installed software in a non-standard prefix.
21702 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21703 and PACKAGE_LIBS to avoid the need to call pkg-config.
21704 See the pkg-config man page for more details.
21706 { (exit 1); exit 1; }; }
21707 elif test $pkg_failed = untried; then
21708 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21709 is in your PATH or set the PKG_CONFIG environment variable to the full
21710 path to pkg-config.
21712 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21713 and PACKAGE_LIBS to avoid the need to call pkg-config.
21714 See the pkg-config man page for more details.
21716 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21717 See \`config.log' for more details." >&5
21718 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21719 is in your PATH or set the PKG_CONFIG environment variable to the full
21720 path to pkg-config.
21722 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21723 and PACKAGE_LIBS to avoid the need to call pkg-config.
21724 See the pkg-config man page for more details.
21726 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21727 See \`config.log' for more details." >&2;}
21728 { (exit 1); exit 1; }; }
21730 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
21731 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
21732 { echo "$as_me:$LINENO: result: yes" >&5
21733 echo "${ECHO_T}yes" >&6; }
21741 { echo "$as_me:$LINENO: checking for SHARING" >&5
21742 echo $ECHO_N "checking for SHARING... $ECHO_C" >&6; }
21744 if test -n "$PKG_CONFIG"; then
21745 if test -n "$SHARING_CFLAGS"; then
21746 pkg_cv_SHARING_CFLAGS="$SHARING_CFLAGS"
21748 if test -n "$PKG_CONFIG" && \
21749 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21750 ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; then
21754 pkg_cv_SHARING_CFLAGS=`$PKG_CONFIG --cflags "libsharing" 2>/dev/null`
21762 if test -n "$PKG_CONFIG"; then
21763 if test -n "$SHARING_LIBS"; then
21764 pkg_cv_SHARING_LIBS="$SHARING_LIBS"
21766 if test -n "$PKG_CONFIG" && \
21767 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21768 ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; then
21772 pkg_cv_SHARING_LIBS=`$PKG_CONFIG --libs "libsharing" 2>/dev/null`
21783 if test $pkg_failed = yes; then
21785 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21786 _pkg_short_errors_supported=yes
21788 _pkg_short_errors_supported=no
21790 if test $_pkg_short_errors_supported = yes; then
21791 SHARING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsharing"`
21793 SHARING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsharing"`
21795 # Put the nasty error message in config.log where it belongs
21796 echo "$SHARING_PKG_ERRORS" >&5
21798 { { echo "$as_me:$LINENO: error: Package requirements (libsharing) were not met:
21800 $SHARING_PKG_ERRORS
21802 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21803 installed software in a non-standard prefix.
21805 Alternatively, you may set the environment variables SHARING_CFLAGS
21806 and SHARING_LIBS to avoid the need to call pkg-config.
21807 See the pkg-config man page for more details.
21809 echo "$as_me: error: Package requirements (libsharing) were not met:
21811 $SHARING_PKG_ERRORS
21813 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21814 installed software in a non-standard prefix.
21816 Alternatively, you may set the environment variables SHARING_CFLAGS
21817 and SHARING_LIBS to avoid the need to call pkg-config.
21818 See the pkg-config man page for more details.
21820 { (exit 1); exit 1; }; }
21821 elif test $pkg_failed = untried; then
21822 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21823 is in your PATH or set the PKG_CONFIG environment variable to the full
21824 path to pkg-config.
21826 Alternatively, you may set the environment variables SHARING_CFLAGS
21827 and SHARING_LIBS to avoid the need to call pkg-config.
21828 See the pkg-config man page for more details.
21830 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21831 See \`config.log' for more details." >&5
21832 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21833 is in your PATH or set the PKG_CONFIG environment variable to the full
21834 path to pkg-config.
21836 Alternatively, you may set the environment variables SHARING_CFLAGS
21837 and SHARING_LIBS to avoid the need to call pkg-config.
21838 See the pkg-config man page for more details.
21840 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21841 See \`config.log' for more details." >&2;}
21842 { (exit 1); exit 1; }; }
21844 SHARING_CFLAGS=$pkg_cv_SHARING_CFLAGS
21845 SHARING_LIBS=$pkg_cv_SHARING_LIBS
21846 { echo "$as_me:$LINENO: result: yes" >&5
21847 echo "${ECHO_T}yes" >&6; }
21855 pluginsdir=`$PKG_CONFIG libsharing --variable=pluginsdir`
21859 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21860 if test -n "$ac_tool_prefix"; then
21861 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21862 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21865 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 case $PKG_CONFIG in
21870 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21874 for as_dir in $PATH
21877 test -z "$as_dir" && as_dir=.
21878 for ac_exec_ext in '' $ac_executable_extensions; do
21879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21880 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21892 if test -n "$PKG_CONFIG"; then
21893 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21894 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21896 { echo "$as_me:$LINENO: result: no" >&5
21897 echo "${ECHO_T}no" >&6; }
21902 if test -z "$ac_cv_path_PKG_CONFIG"; then
21903 ac_pt_PKG_CONFIG=$PKG_CONFIG
21904 # Extract the first word of "pkg-config", so it can be a program name with args.
21905 set dummy pkg-config; ac_word=$2
21906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21908 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 case $ac_pt_PKG_CONFIG in
21913 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21917 for as_dir in $PATH
21920 test -z "$as_dir" && as_dir=.
21921 for ac_exec_ext in '' $ac_executable_extensions; do
21922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21923 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21934 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21935 if test -n "$ac_pt_PKG_CONFIG"; then
21936 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21937 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21939 { echo "$as_me:$LINENO: result: no" >&5
21940 echo "${ECHO_T}no" >&6; }
21943 if test "x$ac_pt_PKG_CONFIG" = x; then
21946 case $cross_compiling:$ac_tool_warned in
21948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21949 whose name does not start with the host triplet. If you think this
21950 configuration is useful to you, please write to autoconf@gnu.org." >&5
21951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21952 whose name does not start with the host triplet. If you think this
21953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21954 ac_tool_warned=yes ;;
21956 PKG_CONFIG=$ac_pt_PKG_CONFIG
21959 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21963 if test -n "$PKG_CONFIG"; then
21964 _pkg_min_version=0.9.0
21965 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21966 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21967 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21968 { echo "$as_me:$LINENO: result: yes" >&5
21969 echo "${ECHO_T}yes" >&6; }
21971 { echo "$as_me:$LINENO: result: no" >&5
21972 echo "${ECHO_T}no" >&6; }
21977 servicesdir=`$PKG_CONFIG libsharing --variable=servicesdir`
21982 # Check whether --enable-debug was given.
21983 if test "${enable_debug+set}" = set; then
21984 enableval=$enable_debug; enable_debug=yes
21990 if test x$enable_debug = xyes; then
21991 DEBUG_CFLAGS="-DOSSOLOG_COMPILE"
21997 DATADIRNAME="share"
21998 if test "x${prefix}" = "xNONE"; then
22000 cat >>confdefs.h <<_ACEOF
22001 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
22006 cat >>confdefs.h <<_ACEOF
22007 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
22015 ac_config_files="$ac_config_files Makefile data/Makefile data/template.service.xml src/Makefile"
22017 cat >confcache <<\_ACEOF
22018 # This file is a shell script that caches the results of configure
22019 # tests run on this system so they can be shared between configure
22020 # scripts and configure runs, see configure's option --config-cache.
22021 # It is not useful on other systems. If it contains results you don't
22022 # want to keep, you may remove or edit it.
22024 # config.status only pays attention to the cache file if you give it
22025 # the --recheck option to rerun configure.
22027 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22028 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22029 # following values.
22033 # The following way of writing the cache mishandles newlines in values,
22034 # but we know of no workaround that is simple, portable, and efficient.
22035 # So, we kill variables containing newlines.
22036 # Ultrix sh set writes to stderr and can't be redirected directly,
22037 # and sets the high bit in the cache file unless we assign to the vars.
22039 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22040 eval ac_val=\$$ac_var
22044 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22045 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22048 _ | IFS | as_nl) ;; #(
22049 *) $as_unset $ac_var ;;
22055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22056 *${as_nl}ac_space=\ *)
22057 # `set' does not quote correctly, so add quotes (double-quote
22058 # substitution turns \\\\ into \\, and sed turns \\ into \).
22061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22064 # `set' quotes correctly as required by POSIX, so do not add quotes.
22065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22078 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22079 if test -w "$cache_file"; then
22080 test "x$cache_file" != "x/dev/null" &&
22081 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22082 echo "$as_me: updating cache $cache_file" >&6;}
22083 cat confcache >$cache_file
22085 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22086 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22092 # Let make expand exec_prefix.
22093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22095 DEFS=-DHAVE_CONFIG_H
22099 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22100 # 1. Remove the extension, and $U if already installed.
22101 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22102 ac_i=`echo "$ac_i" | sed "$ac_script"`
22103 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22104 # will be set to the directory where LIBOBJS objects are built.
22105 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22106 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22108 LIBOBJS=$ac_libobjs
22110 LTLIBOBJS=$ac_ltlibobjs
22113 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22114 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22115 Usually this means the macro was only invoked conditionally." >&5
22116 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22117 Usually this means the macro was only invoked conditionally." >&2;}
22118 { (exit 1); exit 1; }; }
22120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22121 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22122 Usually this means the macro was only invoked conditionally." >&5
22123 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22124 Usually this means the macro was only invoked conditionally." >&2;}
22125 { (exit 1); exit 1; }; }
22127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22129 Usually this means the macro was only invoked conditionally." >&5
22130 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22131 Usually this means the macro was only invoked conditionally." >&2;}
22132 { (exit 1); exit 1; }; }
22134 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22135 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22136 Usually this means the macro was only invoked conditionally." >&5
22137 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22138 Usually this means the macro was only invoked conditionally." >&2;}
22139 { (exit 1); exit 1; }; }
22141 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22142 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22143 Usually this means the macro was only invoked conditionally." >&5
22144 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22145 Usually this means the macro was only invoked conditionally." >&2;}
22146 { (exit 1); exit 1; }; }
22148 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22149 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22150 Usually this means the macro was only invoked conditionally." >&5
22151 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22152 Usually this means the macro was only invoked conditionally." >&2;}
22153 { (exit 1); exit 1; }; }
22156 : ${CONFIG_STATUS=./config.status}
22157 ac_clean_files_save=$ac_clean_files
22158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22161 cat >$CONFIG_STATUS <<_ACEOF
22163 # Generated by $as_me.
22164 # Run this file to recreate the current configuration.
22165 # Compiler output produced by configure, useful for debugging
22166 # configure, is in config.log if it exists.
22169 ac_cs_recheck=false
22171 SHELL=\${CONFIG_SHELL-$SHELL}
22174 cat >>$CONFIG_STATUS <<\_ACEOF
22175 ## --------------------- ##
22176 ## M4sh Initialization. ##
22177 ## --------------------- ##
22179 # Be more Bourne compatible
22180 DUALCASE=1; export DUALCASE # for MKS sh
22181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22185 # is contrary to our usage. Disable this feature.
22186 alias -g '${1+"$@"}'='"$@"'
22187 setopt NO_GLOB_SUBST
22189 case `(set -o) 2>/dev/null` in
22190 *posix*) set -o posix ;;
22199 # Avoid depending upon Character Ranges.
22200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22203 as_cr_digits='0123456789'
22204 as_cr_alnum=$as_cr_Letters$as_cr_digits
22206 # The user is always right.
22207 if test "${PATH_SEPARATOR+set}" != set; then
22208 echo "#! /bin/sh" >conf$$.sh
22209 echo "exit 0" >>conf$$.sh
22211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22219 # Support unset when possible.
22220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22228 # We need space, tab and new line, in precisely that order. Quoting is
22229 # there to prevent editors from complaining about space-tab.
22230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22231 # splitting by setting IFS to empty value.)
22236 # Find who we are. Look in the path if we contain no directory separator.
22238 *[\\/]* ) as_myself=$0 ;;
22239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22240 for as_dir in $PATH
22243 test -z "$as_dir" && as_dir=.
22244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22250 # We did not find ourselves, most probably we were run as `sh COMMAND'
22251 # in which case we are not to be found in the path.
22252 if test "x$as_myself" = x; then
22255 if test ! -f "$as_myself"; then
22256 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22257 { (exit 1); exit 1; }
22260 # Work around bugs in pre-3.0 UWIN ksh.
22261 for as_var in ENV MAIL MAILPATH
22262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22272 LC_TELEPHONE LC_TIME
22274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22275 eval $as_var=C; export $as_var
22277 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22281 # Required to use basename.
22282 if expr a : '\(a\)' >/dev/null 2>&1 &&
22283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22290 as_basename=basename
22296 # Name of the executable.
22297 as_me=`$as_basename -- "$0" ||
22298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22299 X"$0" : 'X\(//\)$' \| \
22300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22302 sed '/^.*\/\([^/][^/]*\)\/*$/{
22321 as_lineno_1=$LINENO
22322 as_lineno_2=$LINENO
22323 test "x$as_lineno_1" != "x$as_lineno_2" &&
22324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22327 # uniformly replaced by the line number. The first 'sed' inserts a
22328 # line-number line after each line using $LINENO; the second 'sed'
22329 # does the real work. The second script uses 'N' to pair each
22330 # line-number line with the line containing $LINENO, and appends
22331 # trailing '-' during substitution so that $LINENO is not a special
22332 # case at line end.
22333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22334 # scripts with optimization help from Paolo Bonzini. Blame Lee
22335 # E. McMahon (1931-1989) for sed's syntax. :-)
22347 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22350 ' >$as_me.lineno &&
22351 chmod +x "$as_me.lineno" ||
22352 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22353 { (exit 1); exit 1; }; }
22355 # Don't try to exec as it changes $[0], causing all sort of problems
22356 # (the dirname of $[0] is not the place where we might find the
22357 # original and so on. Autoconf is especially sensitive to this).
22358 . "./$as_me.lineno"
22359 # Exit status is that of the last command.
22364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22370 ECHO_C= ECHO_N= ECHO_T=
22371 case `echo -n x` in
22373 case `echo 'x\c'` in
22374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22381 if expr a : '\(a\)' >/dev/null 2>&1 &&
22382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22388 rm -f conf$$ conf$$.exe conf$$.file
22389 if test -d conf$$.dir; then
22390 rm -f conf$$.dir/conf$$.file
22396 if ln -s conf$$.file conf$$ 2>/dev/null; then
22398 # ... but there are two gotchas:
22399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22401 # In both cases, we have to default to `cp -p'.
22402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22404 elif ln conf$$.file conf$$ 2>/dev/null; then
22409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22410 rmdir conf$$.dir 2>/dev/null
22412 if mkdir -p . 2>/dev/null; then
22415 test -d ./-p && rmdir ./-p
22419 if test -x / >/dev/null 2>&1; then
22420 as_test_x='test -x'
22422 if ls -dL / >/dev/null 2>&1; then
22429 if test -d "$1"; then
22435 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22436 ???[sx]*):;;*)false;;esac;fi
22440 as_executable_p=$as_test_x
22442 # Sed expression to map a string onto a valid CPP name.
22443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22445 # Sed expression to map a string onto a valid variable name.
22446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22451 # Save the log message, to keep $[0] and so on meaningful, and to
22452 # report actual input values of CONFIG_FILES etc. instead of their
22453 # values after options handling.
22455 This file was extended by sharing-plugin-template $as_me 0.1, which was
22456 generated by GNU Autoconf 2.61. Invocation command line was
22458 CONFIG_FILES = $CONFIG_FILES
22459 CONFIG_HEADERS = $CONFIG_HEADERS
22460 CONFIG_LINKS = $CONFIG_LINKS
22461 CONFIG_COMMANDS = $CONFIG_COMMANDS
22464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22469 cat >>$CONFIG_STATUS <<_ACEOF
22470 # Files that config.status was made for.
22471 config_files="$ac_config_files"
22472 config_headers="$ac_config_headers"
22473 config_commands="$ac_config_commands"
22477 cat >>$CONFIG_STATUS <<\_ACEOF
22479 \`$as_me' instantiates files from templates according to the
22480 current configuration.
22482 Usage: $0 [OPTIONS] [FILE]...
22484 -h, --help print this help, then exit
22485 -V, --version print version number and configuration settings, then exit
22486 -q, --quiet do not print progress messages
22487 -d, --debug don't remove temporary files
22488 --recheck update $as_me by reconfiguring in the same conditions
22489 --file=FILE[:TEMPLATE]
22490 instantiate the configuration file FILE
22491 --header=FILE[:TEMPLATE]
22492 instantiate the configuration header FILE
22494 Configuration files:
22497 Configuration headers:
22500 Configuration commands:
22503 Report bugs to <bug-autoconf@gnu.org>."
22506 cat >>$CONFIG_STATUS <<_ACEOF
22508 sharing-plugin-template config.status 0.1
22509 configured by $0, generated by GNU Autoconf 2.61,
22510 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22512 Copyright (C) 2006 Free Software Foundation, Inc.
22513 This config.status script is free software; the Free Software Foundation
22514 gives unlimited permission to copy, distribute and modify it."
22521 cat >>$CONFIG_STATUS <<\_ACEOF
22522 # If no file are specified by the user, then we need to provide default
22523 # value. By we need to know if files were specified by the user.
22529 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22530 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22541 # Handling of the options.
22542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22544 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22545 echo "$ac_cs_version"; exit ;;
22546 --debug | --debu | --deb | --de | --d | -d )
22548 --file | --fil | --fi | --f )
22550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22551 ac_need_defaults=false;;
22552 --header | --heade | --head | --hea )
22554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22555 ac_need_defaults=false;;
22557 # Conflict between --help and --header
22558 { echo "$as_me: error: ambiguous option: $1
22559 Try \`$0 --help' for more information." >&2
22560 { (exit 1); exit 1; }; };;
22561 --help | --hel | -h )
22562 echo "$ac_cs_usage"; exit ;;
22563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22567 # This is an error.
22568 -*) { echo "$as_me: error: unrecognized option: $1
22569 Try \`$0 --help' for more information." >&2
22570 { (exit 1); exit 1; }; } ;;
22572 *) ac_config_targets="$ac_config_targets $1"
22573 ac_need_defaults=false ;;
22579 ac_configure_extra_args=
22581 if $ac_cs_silent; then
22583 ac_configure_extra_args="$ac_configure_extra_args --silent"
22587 cat >>$CONFIG_STATUS <<_ACEOF
22588 if \$ac_cs_recheck; then
22589 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22590 CONFIG_SHELL=$SHELL
22591 export CONFIG_SHELL
22592 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22601 ## Running $as_me. ##
22607 cat >>$CONFIG_STATUS <<_ACEOF
22611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22615 cat >>$CONFIG_STATUS <<\_ACEOF
22617 # Handling of arguments.
22618 for ac_config_target in $ac_config_targets
22620 case $ac_config_target in
22621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22623 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22624 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22625 "data/template.service.xml") CONFIG_FILES="$CONFIG_FILES data/template.service.xml" ;;
22626 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22628 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22630 { (exit 1); exit 1; }; };;
22635 # If the user did not use the arguments to specify the items to instantiate,
22636 # then the envvar interface is used. Set only those that are not.
22637 # We use the long form for the default assignment because of an extremely
22638 # bizarre bug on SunOS 4.1.3.
22639 if $ac_need_defaults; then
22640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22645 # Have a temporary directory for convenience. Make it in the build tree
22646 # simply because there is no reason against having it here, and in addition,
22647 # creating and moving files from /tmp can sometimes cause problems.
22648 # Hook for its removal unless debugging.
22649 # Note that there is a small window in which the directory will not be cleaned:
22650 # after its creation but before its name has been assigned to `$tmp'.
22654 trap 'exit_status=$?
22655 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22657 trap '{ (exit 1); exit 1; }' 1 2 13 15
22659 # Create a (secure) tmp directory for tmp files.
22662 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22663 test -n "$tmp" && test -d "$tmp"
22666 tmp=./conf$$-$RANDOM
22667 (umask 077 && mkdir "$tmp")
22670 echo "$me: cannot create a temporary directory in ." >&2
22671 { (exit 1); exit 1; }
22675 # Set up the sed scripts for CONFIG_FILES section.
22678 # No need to generate the scripts if there are no CONFIG_FILES.
22679 # This happens for instance when ./config.status config.h
22680 if test -n "$CONFIG_FILES"; then
22687 for ac_last_try in false false false false false :; do
22688 cat >conf$$subs.sed <<_ACEOF
22689 SHELL!$SHELL$ac_delim
22690 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22691 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22692 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22693 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22694 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22695 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22696 exec_prefix!$exec_prefix$ac_delim
22697 prefix!$prefix$ac_delim
22698 program_transform_name!$program_transform_name$ac_delim
22699 bindir!$bindir$ac_delim
22700 sbindir!$sbindir$ac_delim
22701 libexecdir!$libexecdir$ac_delim
22702 datarootdir!$datarootdir$ac_delim
22703 datadir!$datadir$ac_delim
22704 sysconfdir!$sysconfdir$ac_delim
22705 sharedstatedir!$sharedstatedir$ac_delim
22706 localstatedir!$localstatedir$ac_delim
22707 includedir!$includedir$ac_delim
22708 oldincludedir!$oldincludedir$ac_delim
22709 docdir!$docdir$ac_delim
22710 infodir!$infodir$ac_delim
22711 htmldir!$htmldir$ac_delim
22712 dvidir!$dvidir$ac_delim
22713 pdfdir!$pdfdir$ac_delim
22714 psdir!$psdir$ac_delim
22715 libdir!$libdir$ac_delim
22716 localedir!$localedir$ac_delim
22717 mandir!$mandir$ac_delim
22718 DEFS!$DEFS$ac_delim
22719 ECHO_C!$ECHO_C$ac_delim
22720 ECHO_N!$ECHO_N$ac_delim
22721 ECHO_T!$ECHO_T$ac_delim
22722 LIBS!$LIBS$ac_delim
22723 build_alias!$build_alias$ac_delim
22724 host_alias!$host_alias$ac_delim
22725 target_alias!$target_alias$ac_delim
22726 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22727 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22728 INSTALL_DATA!$INSTALL_DATA$ac_delim
22729 CYGPATH_W!$CYGPATH_W$ac_delim
22730 PACKAGE!$PACKAGE$ac_delim
22731 VERSION!$VERSION$ac_delim
22732 ACLOCAL!$ACLOCAL$ac_delim
22733 AUTOCONF!$AUTOCONF$ac_delim
22734 AUTOMAKE!$AUTOMAKE$ac_delim
22735 AUTOHEADER!$AUTOHEADER$ac_delim
22736 MAKEINFO!$MAKEINFO$ac_delim
22737 AMTAR!$AMTAR$ac_delim
22738 install_sh!$install_sh$ac_delim
22739 STRIP!$STRIP$ac_delim
22740 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22741 mkdir_p!$mkdir_p$ac_delim
22743 SET_MAKE!$SET_MAKE$ac_delim
22744 am__leading_dot!$am__leading_dot$ac_delim
22745 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22746 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22747 MAINT!$MAINT$ac_delim
22749 CFLAGS!$CFLAGS$ac_delim
22750 LDFLAGS!$LDFLAGS$ac_delim
22751 CPPFLAGS!$CPPFLAGS$ac_delim
22752 ac_ct_CC!$ac_ct_CC$ac_delim
22753 EXEEXT!$EXEEXT$ac_delim
22754 OBJEXT!$OBJEXT$ac_delim
22755 DEPDIR!$DEPDIR$ac_delim
22756 am__include!$am__include$ac_delim
22757 am__quote!$am__quote$ac_delim
22758 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22759 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22760 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22761 CCDEPMODE!$CCDEPMODE$ac_delim
22762 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22763 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22765 CXXFLAGS!$CXXFLAGS$ac_delim
22766 ac_ct_CXX!$ac_ct_CXX$ac_delim
22767 CXXDEPMODE!$CXXDEPMODE$ac_delim
22768 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22769 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22771 GREP!$GREP$ac_delim
22772 EGREP!$EGREP$ac_delim
22773 LN_S!$LN_S$ac_delim
22774 build!$build$ac_delim
22775 build_cpu!$build_cpu$ac_delim
22776 build_vendor!$build_vendor$ac_delim
22777 build_os!$build_os$ac_delim
22778 host!$host$ac_delim
22779 host_cpu!$host_cpu$ac_delim
22780 host_vendor!$host_vendor$ac_delim
22781 host_os!$host_os$ac_delim
22783 ECHO!$ECHO$ac_delim
22785 RANLIB!$RANLIB$ac_delim
22788 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22790 elif $ac_last_try; then
22791 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22793 { (exit 1); exit 1; }; }
22795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22799 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22800 if test -n "$ac_eof"; then
22801 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22802 ac_eof=`expr $ac_eof + 1`
22805 cat >>$CONFIG_STATUS <<_ACEOF
22806 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22811 s/^/s,@/; s/!/@,|#_!!_#|/
22814 s/'"$ac_delim"'$/,g/; t
22816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22817 ' >>$CONFIG_STATUS <conf$$subs.sed
22818 rm -f conf$$subs.sed
22819 cat >>$CONFIG_STATUS <<_ACEOF
22825 for ac_last_try in false false false false false :; do
22826 cat >conf$$subs.sed <<_ACEOF
22827 DSYMUTIL!$DSYMUTIL$ac_delim
22828 NMEDIT!$NMEDIT$ac_delim
22829 CXXCPP!$CXXCPP$ac_delim
22831 FFLAGS!$FFLAGS$ac_delim
22832 ac_ct_F77!$ac_ct_F77$ac_delim
22833 LIBTOOL!$LIBTOOL$ac_delim
22834 PKG_CONFIG!$PKG_CONFIG$ac_delim
22835 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
22836 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
22837 SHARING_CFLAGS!$SHARING_CFLAGS$ac_delim
22838 SHARING_LIBS!$SHARING_LIBS$ac_delim
22839 currentdir!$currentdir$ac_delim
22840 pluginsdir!$pluginsdir$ac_delim
22841 servicesdir!$servicesdir$ac_delim
22842 DEBUG_CFLAGS!$DEBUG_CFLAGS$ac_delim
22843 PACKAGE_LOCALE_DIR!$PACKAGE_LOCALE_DIR$ac_delim
22844 LIBOBJS!$LIBOBJS$ac_delim
22845 LTLIBOBJS!$LTLIBOBJS$ac_delim
22848 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
22850 elif $ac_last_try; then
22851 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22852 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22853 { (exit 1); exit 1; }; }
22855 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22859 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22860 if test -n "$ac_eof"; then
22861 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22862 ac_eof=`expr $ac_eof + 1`
22865 cat >>$CONFIG_STATUS <<_ACEOF
22866 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22870 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22871 s/^/s,@/; s/!/@,|#_!!_#|/
22874 s/'"$ac_delim"'$/,g/; t
22876 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22877 ' >>$CONFIG_STATUS <conf$$subs.sed
22878 rm -f conf$$subs.sed
22879 cat >>$CONFIG_STATUS <<_ACEOF
22886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22888 # trailing colons and then remove the whole line if VPATH becomes empty
22889 # (actually we leave an empty line to preserve line numbers).
22890 if test "x$srcdir" = x.; then
22891 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22892 s/:*\$(srcdir):*/:/
22893 s/:*\${srcdir}:*/:/
22895 s/^\([^=]*=[ ]*\):*/\1/
22901 cat >>$CONFIG_STATUS <<\_ACEOF
22902 fi # test -n "$CONFIG_FILES"
22905 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22908 :[FHLC]) ac_mode=$ac_tag; continue;;
22910 case $ac_mode$ac_tag in
22912 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22913 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22914 { (exit 1); exit 1; }; };;
22915 :[FH]-) ac_tag=-:-;;
22916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22933 -) ac_f="$tmp/stdin";;
22934 *) # Look for the file first in the build tree, then in the source tree
22935 # (if the path is not absolute). The absolute path cannot be DOS-style,
22936 # because $ac_f cannot contain `:'.
22940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22942 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22943 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22944 { (exit 1); exit 1; }; };;
22946 ac_file_inputs="$ac_file_inputs $ac_f"
22949 # Let's still pretend it is `configure' which instantiates (i.e., don't
22950 # use $as_me), people would be surprised to read:
22951 # /* config.h. Generated by config.status. */
22952 configure_input="Generated from "`IFS=:
22953 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22954 if test x"$ac_file" != x-; then
22955 configure_input="$ac_file. $configure_input"
22956 { echo "$as_me:$LINENO: creating $ac_file" >&5
22957 echo "$as_me: creating $ac_file" >&6;}
22961 *:-:* | *:-) cat >"$tmp/stdin";;
22966 ac_dir=`$as_dirname -- "$ac_file" ||
22967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22968 X"$ac_file" : 'X\(//\)[^/]' \| \
22969 X"$ac_file" : 'X\(//\)$' \| \
22970 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22976 /^X\(\/\/\)[^/].*/{
22991 -*) as_dir=./$as_dir;;
22993 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22997 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22998 *) as_qdir=$as_dir;;
23000 as_dirs="'$as_qdir' $as_dirs"
23001 as_dir=`$as_dirname -- "$as_dir" ||
23002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23003 X"$as_dir" : 'X\(//\)[^/]' \| \
23004 X"$as_dir" : 'X\(//\)$' \| \
23005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23011 /^X\(\/\/\)[^/].*/{
23024 test -d "$as_dir" && break
23026 test -z "$as_dirs" || eval "mkdir $as_dirs"
23027 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23028 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23029 { (exit 1); exit 1; }; }; }
23033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23036 # A ".." for each directory in $ac_dir_suffix.
23037 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23038 case $ac_top_builddir_sub in
23039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23043 ac_abs_top_builddir=$ac_pwd
23044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23045 # for backward compatibility:
23046 ac_top_builddir=$ac_top_build_prefix
23049 .) # We are building in place.
23051 ac_top_srcdir=$ac_top_builddir_sub
23052 ac_abs_top_srcdir=$ac_pwd ;;
23053 [\\/]* | ?:[\\/]* ) # Absolute name.
23054 ac_srcdir=$srcdir$ac_dir_suffix;
23055 ac_top_srcdir=$srcdir
23056 ac_abs_top_srcdir=$srcdir ;;
23057 *) # Relative name.
23058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23059 ac_top_srcdir=$ac_top_build_prefix$srcdir
23060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23073 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23077 cat >>$CONFIG_STATUS <<\_ACEOF
23078 # If the template does not know about datarootdir, expand it.
23079 # FIXME: This hack should be removed a few years after 2.60.
23080 ac_datarootdir_hack=; ac_datarootdir_seen=
23082 case `sed -n '/datarootdir/ {
23091 ' $ac_file_inputs` in
23092 *datarootdir*) ac_datarootdir_seen=yes;;
23093 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23094 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23095 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23097 cat >>$CONFIG_STATUS <<_ACEOF
23098 ac_datarootdir_hack='
23099 s&@datadir@&$datadir&g
23100 s&@docdir@&$docdir&g
23101 s&@infodir@&$infodir&g
23102 s&@localedir@&$localedir&g
23103 s&@mandir@&$mandir&g
23104 s&\\\${datarootdir}&$datarootdir&g' ;;
23108 # Neutralize VPATH when `$srcdir' = `.'.
23109 # Shell code in configure.ac might set extrasub.
23110 # FIXME: do we really want to maintain this feature?
23111 cat >>$CONFIG_STATUS <<_ACEOF
23115 cat >>$CONFIG_STATUS <<\_ACEOF
23117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23118 s&@configure_input@&$configure_input&;t t
23119 s&@top_builddir@&$ac_top_builddir_sub&;t t
23120 s&@srcdir@&$ac_srcdir&;t t
23121 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23122 s&@top_srcdir@&$ac_top_srcdir&;t t
23123 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23124 s&@builddir@&$ac_builddir&;t t
23125 s&@abs_builddir@&$ac_abs_builddir&;t t
23126 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23127 s&@INSTALL@&$ac_INSTALL&;t t
23128 $ac_datarootdir_hack
23129 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23132 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23134 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23135 which seems to be undefined. Please make sure it is defined." >&5
23136 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23137 which seems to be undefined. Please make sure it is defined." >&2;}
23141 -) cat "$tmp/out"; rm -f "$tmp/out";;
23142 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23151 # Transform confdefs.h into a sed script `conftest.defines', that
23152 # substitutes the proper values into config.h.in to produce config.h.
23153 rm -f conftest.defines conftest.tail
23154 # First, append a space to every undef/define line, to ease matching.
23155 echo 's/$/ /' >conftest.defines
23156 # Then, protect against being on the right side of a sed subst, or in
23157 # an unquoted here document, in config.status. If some macros were
23158 # called several times there might be several #defines for the same
23159 # symbol, which is useless. But do not sort them, since the last
23160 # AC_DEFINE must be honored.
23161 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23162 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23163 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23164 # PARAMS is the parameter list in the macro definition--in most cases, it's
23165 # just an empty string.
23166 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23167 ac_dB='\\)[ (].*,\\1define\\2'
23175 s/^[ ]*#[ ]*define[ ][ ]*//
23180 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23181 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23182 ' >>conftest.defines
23184 # Remove the space that was appended to ease matching.
23185 # Then replace #undef with comments. This is necessary, for
23186 # example, in the case of _POSIX_SOURCE, which is predefined and required
23187 # on some systems where configure will not decide to define it.
23188 # (The regexp can be short, since the line contains either #define or #undef.)
23190 s,^[ #]*u.*,/* & */,' >>conftest.defines
23192 # Break up conftest.defines:
23193 ac_max_sed_lines=50
23195 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23196 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23197 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23199 ac_in='$ac_file_inputs'
23200 ac_out='"$tmp/out1"'
23201 ac_nxt='"$tmp/out2"'
23205 # Write a here document:
23206 cat >>$CONFIG_STATUS <<_ACEOF
23207 # First, check the format of the line:
23208 cat >"\$tmp/defines.sed" <<\\CEOF
23209 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23210 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23214 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23216 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23217 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23218 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23219 grep . conftest.tail >/dev/null || break
23220 rm -f conftest.defines
23221 mv conftest.tail conftest.defines
23223 rm -f conftest.defines conftest.tail
23225 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23226 cat >>$CONFIG_STATUS <<\_ACEOF
23227 if test x"$ac_file" != x-; then
23228 echo "/* $configure_input */" >"$tmp/config.h"
23229 cat "$ac_result" >>"$tmp/config.h"
23230 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23231 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23232 echo "$as_me: $ac_file is unchanged" >&6;}
23235 mv "$tmp/config.h" $ac_file
23238 echo "/* $configure_input */"
23242 # Compute $ac_file's index in $config_headers.
23244 for _am_header in $config_headers :; do
23245 case $_am_header in
23246 $ac_file | $ac_file:* )
23249 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23252 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23253 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23254 X$ac_file : 'X\(//\)[^/]' \| \
23255 X$ac_file : 'X\(//\)$' \| \
23256 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23262 /^X\(\/\/\)[^/].*/{
23274 s/.*/./; q'`/stamp-h$_am_stamp_count
23277 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23278 echo "$as_me: executing $ac_file commands" >&6;}
23283 case $ac_file$ac_mode in
23284 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23285 # Strip MF so we end up with the name of the file.
23286 mf=`echo "$mf" | sed -e 's/:.*$//'`
23287 # Check whether this is an Automake generated Makefile or not.
23288 # We used to match only the files named `Makefile.in', but
23289 # some people rename them; so instead we look at the file content.
23290 # Grep'ing the first line is not enough: some people post-process
23291 # each Makefile.in and add a new line on top of each file to say so.
23292 # So let's grep whole file.
23293 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23294 dirpart=`$as_dirname -- "$mf" ||
23295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23296 X"$mf" : 'X\(//\)[^/]' \| \
23297 X"$mf" : 'X\(//\)$' \| \
23298 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23304 /^X\(\/\/\)[^/].*/{
23320 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23321 # Extract the definition of DEP_FILES from the Makefile without
23323 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23324 test -z "$DEPDIR" && continue
23325 # When using ansi2knr, U may be empty or an underscore; expand it
23326 U=`sed -n 's/^U = //p' < "$mf"`
23327 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23328 # We invoke sed twice because it is the simplest approach to
23329 # changing $(DEPDIR) to its actual value in the expansion.
23330 for file in `sed -n '
23331 /^DEP_FILES = .*\\\\$/ {
23340 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23341 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23342 # Make sure the directory exists.
23343 test -f "$dirpart/$file" && continue
23344 fdir=`$as_dirname -- "$file" ||
23345 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23346 X"$file" : 'X\(//\)[^/]' \| \
23347 X"$file" : 'X\(//\)$' \| \
23348 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23354 /^X\(\/\/\)[^/].*/{
23367 { as_dir=$dirpart/$fdir
23369 -*) as_dir=./$as_dir;;
23371 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23375 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23376 *) as_qdir=$as_dir;;
23378 as_dirs="'$as_qdir' $as_dirs"
23379 as_dir=`$as_dirname -- "$as_dir" ||
23380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381 X"$as_dir" : 'X\(//\)[^/]' \| \
23382 X"$as_dir" : 'X\(//\)$' \| \
23383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23389 /^X\(\/\/\)[^/].*/{
23402 test -d "$as_dir" && break
23404 test -z "$as_dirs" || eval "mkdir $as_dirs"
23405 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23406 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23407 { (exit 1); exit 1; }; }; }
23408 # echo "creating $dirpart/$file"
23409 echo '# dummy' > "$dirpart/$file"
23418 { (exit 0); exit 0; }
23420 chmod +x $CONFIG_STATUS
23421 ac_clean_files=$ac_clean_files_save
23424 # configure is writing to config.log, and then calls config.status.
23425 # config.status does its own redirection, appending to config.log.
23426 # Unfortunately, on DOS this fails, as config.log is still kept open
23427 # by configure, so config.status won't be able to write to it; its
23428 # output is simply discarded. So we exec the FD to /dev/null,
23429 # effectively closing config.log, so it can be properly (re)opened and
23430 # appended to by config.status. When coming back to configure, we
23431 # need to make the FD available again.
23432 if test "$no_create" != yes; then
23434 ac_config_status_args=
23435 test "$silent" = yes &&
23436 ac_config_status_args="$ac_config_status_args --quiet"
23438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23441 # would make configure fail if this is the last instruction.
23442 $ac_cs_success || { (exit 1); exit 1; }
23449 echo " $PACKAGE $VERSION"
23450 echo " ==================="
23452 echo " Debug messages: ${enable_debug}"
23453 echo " Plug-ins directory: ${pluginsdir}"
23454 echo " Services directory: ${servicesdir}"