2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="configure.ac"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
821 INSTALL_STRIP_PROGRAM
878 ac_precious_vars='build_alias
902 # Initialize some variables set by options.
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name=s,x,x,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1192 -site=* | --site=* | --sit=*)
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures this package to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 if test -n "$ac_init_help"; then
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-dependency-tracking speeds up one-time build
1478 --enable-dependency-tracking do not reject slow dependency extractors
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1491 --with-tags[=TAGS] include additional configurations [automatic]
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1502 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1504 CXXCPP C++ preprocessor
1505 F77 Fortran 77 compiler command
1506 FFLAGS Fortran 77 compiler flags
1507 PKG_CONFIG path to pkg-config utility
1508 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1509 GTK_LIBS linker flags for GTK, overriding pkg-config
1510 HIM_CFLAGS C compiler flags for HIM, overriding pkg-config
1511 HIM_LIBS linker flags for HIM, overriding pkg-config
1512 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1513 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" || continue
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1545 .) # We are building in place.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1569 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1579 generated by GNU Autoconf 2.61
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61. Invocation command line was
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1615 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1618 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1619 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1620 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 echo "PATH: $as_dir"
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_must_keep_next=false
1659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1664 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670 if test $ac_must_keep_next = true; then
1671 ac_must_keep_next=false # Got value, back to normal.
1674 *=* | --config-cache | -C | -disable-* | --disable-* \
1675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677 | -with-* | --with-* | -without-* | --without-* | --x)
1678 case "$ac_configure_args0 " in
1679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682 -* ) ac_must_keep_next=true ;;
1685 ac_configure_args="$ac_configure_args '$ac_arg'"
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log. We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699 # Save into config.log some information that might help in debugging.
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1709 # The following way of writing the cache mishandles newlines in values,
1711 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712 eval ac_val=\$$ac_var
1716 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720 _ | IFS | as_nl) ;; #(
1721 *) $as_unset $ac_var ;;
1726 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727 *${as_nl}ac_space=\ *)
1729 "s/'\''/'\''\\\\'\'''\''/g;
1730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741 ## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##
1746 for ac_var in $ac_subst_vars
1748 eval ac_val=\$$ac_var
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 echo "$ac_var='\''$ac_val'\''"
1756 if test -n "$ac_subst_files"; then
1758 ## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##
1763 for ac_var in $ac_subst_files
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 echo "$ac_var='\''$ac_val'\''"
1774 if test -s confdefs.h; then
1784 test "$ac_signal" != 0 &&
1785 echo "$as_me: caught signal $ac_signal"
1786 echo "$as_me: exit $exit_status"
1788 rm -f core *.core core.conftest.* &&
1789 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792 for ac_signal in 1 2 13 15; do
1793 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1800 # Predefined preprocessor variables.
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830 set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 set x "$ac_default_prefix/share/config.site" \
1835 "$ac_default_prefix/etc/config.site"
1840 if test -r "$ac_site_file"; then
1841 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843 sed 's/^/| /' "$ac_site_file" >&5
1848 if test -r "$cache_file"; then
1849 # Some versions of bash will fail to source /dev/null (special
1850 # files actually), so we avoid doing that.
1851 if test -f "$cache_file"; then
1852 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1855 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856 *) . "./$cache_file";;
1860 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1865 # Check that the precious variables saved in the cache have kept the same
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870 eval ac_new_set=\$ac_env_${ac_var}_set
1871 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872 eval ac_new_val=\$ac_env_${ac_var}_value
1873 case $ac_old_set,$ac_new_set in
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1884 if test "x$ac_old_val" != "x$ac_new_val"; then
1885 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1888 echo "$as_me: former value: $ac_old_val" >&2;}
1889 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1890 echo "$as_me: current value: $ac_new_val" >&2;}
1891 ac_cache_corrupted=:
1894 # Pass precious variables to config.status.
1895 if test "$ac_new_set" = set; then
1897 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 *) ac_arg=$ac_var=$ac_new_val ;;
1900 case " $ac_configure_args " in
1901 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1902 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 if $ac_cache_corrupted; then
1907 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 am__api_version="1.8"
1939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1940 if test -f "$ac_dir/install-sh"; then
1942 ac_install_sh="$ac_aux_dir/install-sh -c"
1944 elif test -f "$ac_dir/install.sh"; then
1946 ac_install_sh="$ac_aux_dir/install.sh -c"
1948 elif test -f "$ac_dir/shtool"; then
1950 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 if test -z "$ac_aux_dir"; then
1955 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1956 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1957 { (exit 1); exit 1; }; }
1960 # These three variables are undocumented and unsupported,
1961 # and are intended to be withdrawn in a future Autoconf release.
1962 # They can cause serious problems if a builder's source tree is in a directory
1963 # whose full name contains unusual characters.
1964 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1965 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1966 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1969 # Find a good install program. We prefer a C program (faster),
1970 # so one script is as good as another. But avoid the broken or
1971 # incompatible versions:
1972 # SysV /etc/install, /usr/sbin/install
1973 # SunOS /usr/etc/install
1974 # IRIX /sbin/install
1976 # AmigaOS /C/install, which installs bootblocks on floppy discs
1977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980 # OS/2's system install, which has a completely different semantic
1981 # ./install, which can be erroneously created by make from ./install.sh.
1982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1984 if test -z "$INSTALL"; then
1985 if test "${ac_cv_path_install+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 # Account for people who put trailing slashes in PATH elements.
1995 ./ | .// | /cC/* | \
1996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2000 # OSF1 and SCO ODT 3.0 have their own names for install.
2001 # Don't use installbsd from OSF since it installs stuff as root
2003 for ac_prog in ginstall scoinst install; do
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006 if test $ac_prog = install &&
2007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008 # AIX install. It has an incompatible calling convention.
2010 elif test $ac_prog = install &&
2011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # program-specific install script used by HP pwplus--don't use.
2015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2028 if test "${ac_cv_path_install+set}" = set; then
2029 INSTALL=$ac_cv_path_install
2031 # As a last resort, use the slow shell script. Don't cache a
2032 # value for INSTALL within a source directory, because that will
2033 # break other packages using the cache if that directory is
2034 # removed, or if the value is a relative name.
2035 INSTALL=$ac_install_sh
2038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2039 echo "${ECHO_T}$INSTALL" >&6; }
2041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042 # It thinks the first close brace ends the variable substitution.
2043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2049 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2053 echo timestamp > conftest.file
2054 # Do `set' in a subshell so we don't clobber the current shell's
2055 # arguments. Must try -L first in case configure is actually a
2056 # symlink; some systems play weird games with the mod time of symlinks
2057 # (eg FreeBSD returns the mod time of the symlink's containing
2060 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061 if test "$*" = "X"; then
2063 set X `ls -t $srcdir/configure conftest.file`
2066 if test "$*" != "X $srcdir/configure conftest.file" \
2067 && test "$*" != "X conftest.file $srcdir/configure"; then
2069 # If neither matched, then we have a broken ls. This can happen
2070 # if, for instance, CONFIG_SHELL is bash and it inherits a
2071 # broken ls alias from the environment. This has actually
2072 # happened. Such a system could not be considered "sane".
2073 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2074 alias in your environment" >&5
2075 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2076 alias in your environment" >&2;}
2077 { (exit 1); exit 1; }; }
2080 test "$2" = conftest.file
2086 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087 Check your system clock" >&5
2088 echo "$as_me: error: newly created file is older than distributed files!
2089 Check your system clock" >&2;}
2090 { (exit 1); exit 1; }; }
2092 { echo "$as_me:$LINENO: result: yes" >&5
2093 echo "${ECHO_T}yes" >&6; }
2094 test "$program_prefix" != NONE &&
2095 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2096 # Use a double $ so make ignores it.
2097 test "$program_suffix" != NONE &&
2098 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2099 # Double any \ or $. echo might interpret backslashes.
2100 # By default was `s,x,x', remove it if useless.
2101 cat <<\_ACEOF >conftest.sed
2102 s/[\\$]/&&/g;s/;s,x,x,$//
2104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2107 # expand $ac_aux_dir to an absolute path
2108 am_aux_dir=`cd $ac_aux_dir && pwd`
2110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111 # Use eval to expand $SHELL
2112 if eval "$MISSING --run true"; then
2113 am_missing_run="$MISSING --run "
2116 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2120 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2121 # Keeping the `.' argument allows $(mkdir_p) to be used without
2122 # argument. Indeed, we sometimes output rules like
2123 # $(mkdir_p) $(somedir)
2124 # where $(somedir) is conditionally defined.
2125 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2126 # expensive solution, as it forces Make to start a sub-shell.)
2127 mkdir_p='mkdir -p -- .'
2129 # On NextStep and OpenStep, the `mkdir' command does not
2130 # recognize any option. It will interpret all options as
2131 # directories to create, and then abort because `.' already
2133 for d in ./-p ./--version;
2135 test -d $d && rmdir $d
2137 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2138 if test -f "$ac_aux_dir/mkinstalldirs"; then
2139 mkdir_p='$(mkinstalldirs)'
2141 mkdir_p='$(install_sh) -d'
2145 for ac_prog in gawk mawk nawk awk
2147 # Extract the first word of "$ac_prog", so it can be a program name with args.
2148 set dummy $ac_prog; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_AWK+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 if test -n "$AWK"; then
2155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_AWK="$ac_prog"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 if test -n "$AWK"; then
2176 { echo "$as_me:$LINENO: result: $AWK" >&5
2177 echo "${ECHO_T}$AWK" >&6; }
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2184 test -n "$AWK" && break
2187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 cat >conftest.make <<\_ACEOF
2196 @echo '@@@%%%=$(MAKE)=@@@%%%'
2198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2201 eval ac_cv_prog_make_${ac_make}_set=yes;;
2203 eval ac_cv_prog_make_${ac_make}_set=no;;
2207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2208 { echo "$as_me:$LINENO: result: yes" >&5
2209 echo "${ECHO_T}yes" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 SET_MAKE="MAKE=${MAKE-make}"
2217 rm -rf .tst 2>/dev/null
2218 mkdir .tst 2>/dev/null
2219 if test -d .tst; then
2224 rmdir .tst 2>/dev/null
2226 # test to see if srcdir already configured
2227 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2228 test -f $srcdir/config.status; then
2229 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2230 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2231 { (exit 1); exit 1; }; }
2234 # test whether we have cygpath
2235 if test -z "$CYGPATH_W"; then
2236 if (cygpath --version) >/dev/null 2>/dev/null; then
2237 CYGPATH_W='cygpath -w'
2244 # Define the identity of the package.
2245 PACKAGE=hildon-im-vkb-korean
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE "$PACKAGE"
2254 cat >>confdefs.h <<_ACEOF
2255 #define VERSION "$VERSION"
2258 # Some tools Automake needs.
2260 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2263 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2266 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2269 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2272 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2275 AMTAR=${AMTAR-"${am_missing_run}tar"}
2277 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2279 # Installed binaries are usually stripped using `strip' when the user
2280 # run `make install-strip'. However `strip' might not be the right
2281 # tool to use in cross-compilation environments, therefore Automake
2282 # will honor the `STRIP' environment variable to overrule this program.
2283 if test "$cross_compiling" != no; then
2284 if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}strip; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_STRIP+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$STRIP"; then
2293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 STRIP=$ac_cv_prog_STRIP
2313 if test -n "$STRIP"; then
2314 { echo "$as_me:$LINENO: result: $STRIP" >&5
2315 echo "${ECHO_T}$STRIP" >&6; }
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2323 if test -z "$ac_cv_prog_STRIP"; then
2325 # Extract the first word of "strip", so it can be a program name with args.
2326 set dummy strip; ac_word=$2
2327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 if test -n "$ac_ct_STRIP"; then
2333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342 ac_cv_prog_ac_ct_STRIP="strip"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2353 if test -n "$ac_ct_STRIP"; then
2354 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2355 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2357 { echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6; }
2361 if test "x$ac_ct_STRIP" = x; then
2364 case $cross_compiling:$ac_tool_warned in
2366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet. If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&5
2369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2370 whose name does not start with the host triplet. If you think this
2371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2372 ac_tool_warned=yes ;;
2377 STRIP="$ac_cv_prog_STRIP"
2381 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2383 # We need awk for the "check" target. The system "awk" is bad on
2389 DEPDIR="${am__leading_dot}deps"
2391 ac_config_commands="$ac_config_commands depfiles"
2394 am_make=${MAKE-make}
2395 cat > confinc << 'END'
2400 # If we don't find an include directive, just comment out the code.
2401 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2402 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2406 # First try GNU make style include.
2407 echo "include confinc" > confmf
2408 # We grep out `Entering directory' and `Leaving directory'
2409 # messages which can occur if `w' ends up in MAKEFLAGS.
2410 # In particular we don't look at `^make:' because GNU make might
2411 # be invoked under some other name (usually "gmake"), in which
2412 # case it prints its new name instead of `make'.
2413 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2418 # Now try BSD make style include.
2419 if test "$am__include" = "#"; then
2420 echo '.include "confinc"' > confmf
2421 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2422 am__include=.include
2429 { echo "$as_me:$LINENO: result: $_am_result" >&5
2430 echo "${ECHO_T}$_am_result" >&6; }
2431 rm -f confinc confmf
2433 # Check whether --enable-dependency-tracking was given.
2434 if test "${enable_dependency_tracking+set}" = set; then
2435 enableval=$enable_dependency_tracking;
2438 if test "x$enable_dependency_tracking" != xno; then
2439 am_depcomp="$ac_aux_dir/depcomp"
2444 if test "x$enable_dependency_tracking" != xno; then
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CC"; then
2489 { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2498 if test -z "$ac_cv_prog_CC"; then
2500 # Extract the first word of "gcc", so it can be a program name with args.
2501 set dummy gcc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$ac_ct_CC"; then
2508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_ac_ct_CC="gcc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2528 if test -n "$ac_ct_CC"; then
2529 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2530 echo "${ECHO_T}$ac_ct_CC" >&6; }
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2536 if test "x$ac_ct_CC" = x; then
2539 case $cross_compiling:$ac_tool_warned in
2541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet. If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&5
2544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547 ac_tool_warned=yes ;;
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}cc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC="${ac_tool_prefix}cc"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2596 if test -z "$CC"; then
2597 # Extract the first word of "cc", so it can be a program name with args.
2598 set dummy cc; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2616 ac_prog_rejected=yes
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test $ac_prog_rejected = yes; then
2628 # We found a bogon in the path, so make sure we never use it.
2629 set dummy $ac_cv_prog_CC
2631 if test $# != 0; then
2632 # We chose a different compiler from the bogus one.
2633 # However, it has the same basename, so the bogon will be chosen
2634 # first if we set CC to just the basename; use the full file name.
2636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2642 if test -n "$CC"; then
2643 { echo "$as_me:$LINENO: result: $CC" >&5
2644 echo "${ECHO_T}$CC" >&6; }
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 for ac_prog in cl.exe
2656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 if test -n "$CC"; then
2685 { echo "$as_me:$LINENO: result: $CC" >&5
2686 echo "${ECHO_T}$CC" >&6; }
2688 { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2693 test -n "$CC" && break
2696 if test -z "$CC"; then
2698 for ac_prog in cl.exe
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$ac_ct_CC"; then
2708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_ac_ct_CC="$ac_prog"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730 echo "${ECHO_T}$ac_ct_CC" >&6; }
2732 { echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6; }
2737 test -n "$ac_ct_CC" && break
2740 if test "x$ac_ct_CC" = x; then
2743 case $cross_compiling:$ac_tool_warned in
2745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2746 whose name does not start with the host triplet. If you think this
2747 configuration is useful to you, please write to autoconf@gnu.org." >&5
2748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet. If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2751 ac_tool_warned=yes ;;
2760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&5
2762 echo "$as_me: error: no acceptable C compiler found in \$PATH
2763 See \`config.log' for more details." >&2;}
2764 { (exit 1); exit 1; }; }
2766 # Provide some information about the compiler.
2767 echo "$as_me:$LINENO: checking for C compiler version" >&5
2768 ac_compiler=`set X $ac_compile; echo $2`
2769 { (ac_try="$ac_compiler --version >&5"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler --version >&5") 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2779 { (ac_try="$ac_compiler -v >&5"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compiler -v >&5") 2>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }
2789 { (ac_try="$ac_compiler -V >&5"
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compiler -V >&5") 2>&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2815 ac_clean_files_save=$ac_clean_files
2816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2817 # Try to create an executable without -o first, disregard a.out.
2818 # It will help us diagnose broken compilers, and finding out an intuition
2820 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2821 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2824 # List of possible output files, starting from the most likely.
2825 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2826 # only as a last resort. b.out is created by i960 compilers.
2827 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2829 # The IRIX 6 linker writes into existing files which may not be
2830 # executable, retaining their permissions. Remove them first so a
2831 # subsequent execution test works.
2833 for ac_file in $ac_files
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2837 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2842 if { (ac_try="$ac_link_default"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_link_default") 2>&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
2852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2853 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2854 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2855 # so that the user can short-circuit this test for compilers unknown to
2857 for ac_file in $ac_files ''
2859 test -f "$ac_file" || continue
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2864 # We found the default executable, but exeext='' is most
2868 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 # We set ac_cv_exeext here because the later test for it is not
2873 # safe: cross compilers may not add the suffix if given an `-o'
2874 # argument, so we may need to know it at that point already.
2875 # Even if this section looks crufty: it has the advantage of
2882 test "$ac_cv_exeext" = no && ac_cv_exeext=
2888 { echo "$as_me:$LINENO: result: $ac_file" >&5
2889 echo "${ECHO_T}$ac_file" >&6; }
2890 if test -z "$ac_file"; then
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: C compiler cannot create executables
2897 See \`config.log' for more details." >&2;}
2898 { (exit 77); exit 77; }; }
2901 ac_exeext=$ac_cv_exeext
2903 # Check that the compiler produces executables we can run. If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2906 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2907 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2908 # If not cross compiling, check that we can run a simple program.
2909 if test "$cross_compiling" != yes; then
2910 if { ac_try='./$ac_file'
2911 { (case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_try") 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2922 if test "$cross_compiling" = maybe; then
2925 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2926 If you meant to cross compile, use \`--host'.
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot run C compiled programs.
2929 If you meant to cross compile, use \`--host'.
2930 See \`config.log' for more details." >&2;}
2931 { (exit 1); exit 1; }; }
2935 { echo "$as_me:$LINENO: result: yes" >&5
2936 echo "${ECHO_T}yes" >&6; }
2938 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2939 ac_clean_files=$ac_clean_files_save
2940 # Check that the compiler produces executables we can run. If not, either
2941 # the compiler is broken, or we cross compile.
2942 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2943 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2944 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2945 echo "${ECHO_T}$cross_compiling" >&6; }
2947 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2948 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2949 if { (ac_try="$ac_link"
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_link") 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; then
2959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2961 # work properly (i.e., refer to `conftest.exe'), while it won't with
2963 for ac_file in conftest.exe conftest conftest.*; do
2964 test -f "$ac_file" || continue
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2974 See \`config.log' for more details." >&5
2975 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2976 See \`config.log' for more details." >&2;}
2977 { (exit 1); exit 1; }; }
2980 rm -f conftest$ac_cv_exeext
2981 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2982 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2984 rm -f conftest.$ac_ext
2985 EXEEXT=$ac_cv_exeext
2987 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2988 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2989 if test "${ac_cv_objext+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3007 rm -f conftest.o conftest.obj
3008 if { (ac_try="$ac_compile"
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_compile") 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; then
3018 for ac_file in conftest.o conftest.obj conftest.*; do
3019 test -f "$ac_file" || continue;
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3033 See \`config.log' for more details." >&2;}
3034 { (exit 1); exit 1; }; }
3037 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3040 echo "${ECHO_T}$ac_cv_objext" >&6; }
3041 OBJEXT=$ac_cv_objext
3043 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3044 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3045 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } && {
3080 test -z "$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3082 } && test -s conftest.$ac_objext; then
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3095 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3096 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3097 GCC=`test $ac_compiler_gnu = yes && echo yes`
3098 ac_test_CFLAGS=${CFLAGS+set}
3099 ac_save_CFLAGS=$CFLAGS
3100 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_cc_g+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 ac_save_c_werror_flag=$ac_c_werror_flag
3106 ac_c_werror_flag=yes
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } && {
3176 test -z "$ac_c_werror_flag" ||
3177 test ! -s conftest.err
3178 } && test -s conftest.$ac_objext; then
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_c_werror_flag=$ac_save_c_werror_flag
3235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3237 if test "$ac_test_CFLAGS" = set; then
3238 CFLAGS=$ac_save_CFLAGS
3239 elif test $ac_cv_prog_cc_g = yes; then
3240 if test "$GCC" = yes; then
3246 if test "$GCC" = yes; then
3252 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3253 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_cc_c89+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 ac_cv_prog_cc_c89=no
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3267 #include <sys/types.h>
3268 #include <sys/stat.h>
3269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3270 struct buf { int x; };
3271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272 static char *e (p, i)
3278 static char *f (char * (*g) (char **, int), char **p, ...)
3283 s = g (p, va_arg (v,int));
3288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3289 function prototypes and stuff, but not '\xHH' hex character constants.
3290 These don't provoke an error unfortunately, instead are silently treated
3291 as 'x'. The following induces an error, until -std is added to get
3292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3293 array size at least. It's necessary to write '\x00'==0 to get something
3294 that's true only with -std. */
3295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3298 inside strings and character constants. */
3300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302 int test (int i, double x);
3303 struct s1 {int (*f) (int a);};
3304 struct s2 {int (*f) (double a);};
3305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3311 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 CC="$ac_save_CC $ac_arg"
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
3337 ac_cv_prog_cc_c89=$ac_arg
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3345 rm -f core conftest.err conftest.$ac_objext
3346 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348 rm -f conftest.$ac_ext
3353 case "x$ac_cv_prog_cc_c89" in
3355 { echo "$as_me:$LINENO: result: none needed" >&5
3356 echo "${ECHO_T}none needed" >&6; } ;;
3358 { echo "$as_me:$LINENO: result: unsupported" >&5
3359 echo "${ECHO_T}unsupported" >&6; } ;;
3361 CC="$CC $ac_cv_prog_cc_c89"
3362 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 depcc="$CC" am_compiler_list=
3375 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3376 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3377 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3381 # We make a subdir and do the tests there. Otherwise we can end up
3382 # making bogus files that we don't know about and never remove. For
3383 # instance it was reported that on HP-UX the gcc test will end up
3384 # making a dummy file named `D' -- because `-MD' means `put the output
3387 # Copy depcomp to subdir because otherwise we won't find it if we're
3388 # using a relative directory.
3389 cp "$am_depcomp" conftest.dir
3391 # We will build objects and dependencies in a subdirectory because
3392 # it helps to detect inapplicable dependency modes. For instance
3393 # both Tru64's cc and ICC support -MD to output dependencies as a
3394 # side effect of compilation, but ICC will put the dependencies in
3395 # the current directory while Tru64 will put them in the object
3399 am_cv_CC_dependencies_compiler_type=none
3400 if test "$am_compiler_list" = ""; then
3401 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3403 for depmode in $am_compiler_list; do
3404 # Setup a source with many dependencies, because some compilers
3405 # like to wrap large dependency lists on column 80 (with \), and
3406 # we should not choose a depcomp mode which is confused by this.
3408 # We need to recreate these files for each test, as the compiler may
3409 # overwrite some of them when testing with obscure command lines.
3410 # This happens at least with the AIX C compiler.
3412 for i in 1 2 3 4 5 6; do
3413 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3414 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3415 # Solaris 8's {/usr,}/bin/sh.
3416 touch sub/conftst$i.h
3418 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3422 # after this tag, mechanisms are not by side-effect, so they'll
3423 # only be used when explicitly requested
3424 if test "x$enable_dependency_tracking" = xyes; then
3432 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3433 # mode. It turns out that the SunPro C++ compiler does not properly
3434 # handle `-M -o', and we need to detect this.
3435 if depmode=$depmode \
3436 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3438 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3439 >/dev/null 2>conftest.err &&
3440 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3441 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3442 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3443 # icc doesn't choke on unknown options, it will just issue warnings
3444 # or remarks (even with -Werror). So we grep stderr for any message
3445 # that says an option was ignored or not supported.
3446 # When given -MP, icc 7.0 and 7.1 complain thusly:
3447 # icc: Command line warning: ignoring option '-M'; no argument required
3448 # The diagnosis changed in icc 8.0:
3449 # icc: Command line remark: option '-MP' not supported
3450 if (grep 'ignoring option' conftest.err ||
3451 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3452 am_cv_CC_dependencies_compiler_type=$depmode
3461 am_cv_CC_dependencies_compiler_type=none
3465 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3466 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3467 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3472 test "x$enable_dependency_tracking" != xno \
3473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3475 am__fastdepCC_FALSE='#'
3477 am__fastdepCC_TRUE='#'
3478 am__fastdepCC_FALSE=
3483 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3484 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3485 if test "${ac_cv_search_strerror+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 ac_func_search_save_LIBS=$LIBS
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3496 /* Override any GCC internal prototype to avoid an error.
3497 Use char because int might match the return type of a GCC
3498 builtin and then its argument prototype would still apply. */
3511 for ac_lib in '' cposix; do
3512 if test -z "$ac_lib"; then
3513 ac_res="none required"
3516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (ac_try="$ac_link"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_link") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest$ac_exeext &&
3535 $as_test_x conftest$ac_exeext; then
3536 ac_cv_search_strerror=$ac_res
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3546 if test "${ac_cv_search_strerror+set}" = set; then
3550 if test "${ac_cv_search_strerror+set}" = set; then
3553 ac_cv_search_strerror=no
3556 LIBS=$ac_func_search_save_LIBS
3558 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3559 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3560 ac_res=$ac_cv_search_strerror
3561 if test "$ac_res" != no; then
3562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3573 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 if test -n "$CC"; then
3601 { echo "$as_me:$LINENO: result: $CC" >&5
3602 echo "${ECHO_T}$CC" >&6; }
3604 { echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6; }
3610 if test -z "$ac_cv_prog_CC"; then
3612 # Extract the first word of "gcc", so it can be a program name with args.
3613 set dummy gcc; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_ac_ct_CC="gcc"
3630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3642 echo "${ECHO_T}$ac_ct_CC" >&6; }
3644 { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3648 if test "x$ac_ct_CC" = x; then
3651 case $cross_compiling:$ac_tool_warned in
3653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3654 whose name does not start with the host triplet. If you think this
3655 configuration is useful to you, please write to autoconf@gnu.org." >&5
3656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3657 whose name does not start with the host triplet. If you think this
3658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3659 ac_tool_warned=yes ;;
3667 if test -z "$CC"; then
3668 if test -n "$ac_tool_prefix"; then
3669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3670 set dummy ${ac_tool_prefix}cc; ac_word=$2
3671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3673 if test "${ac_cv_prog_CC+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 if test -n "$CC"; then
3677 ac_cv_prog_CC="$CC" # Let the user override the test.
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 ac_cv_prog_CC="${ac_tool_prefix}cc"
3687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 if test -n "$CC"; then
3698 { echo "$as_me:$LINENO: result: $CC" >&5
3699 echo "${ECHO_T}$CC" >&6; }
3701 { echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6; }
3708 if test -z "$CC"; then
3709 # Extract the first word of "cc", so it can be a program name with args.
3710 set dummy cc; ac_word=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_CC+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 if test -n "$CC"; then
3717 ac_cv_prog_CC="$CC" # Let the user override the test.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3728 ac_prog_rejected=yes
3732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 if test $ac_prog_rejected = yes; then
3740 # We found a bogon in the path, so make sure we never use it.
3741 set dummy $ac_cv_prog_CC
3743 if test $# != 0; then
3744 # We chose a different compiler from the bogus one.
3745 # However, it has the same basename, so the bogon will be chosen
3746 # first if we set CC to just the basename; use the full file name.
3748 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3754 if test -n "$CC"; then
3755 { echo "$as_me:$LINENO: result: $CC" >&5
3756 echo "${ECHO_T}$CC" >&6; }
3758 { echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6; }
3764 if test -z "$CC"; then
3765 if test -n "$ac_tool_prefix"; then
3766 for ac_prog in cl.exe
3768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3772 if test "${ac_cv_prog_CC+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if test -n "$CC"; then
3776 ac_cv_prog_CC="$CC" # Let the user override the test.
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 if test -n "$CC"; then
3797 { echo "$as_me:$LINENO: result: $CC" >&5
3798 echo "${ECHO_T}$CC" >&6; }
3800 { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3805 test -n "$CC" && break
3808 if test -z "$CC"; then
3810 for ac_prog in cl.exe
3812 # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 if test -n "$ac_ct_CC"; then
3820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_ac_ct_CC="$ac_prog"
3830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3842 echo "${ECHO_T}$ac_ct_CC" >&6; }
3844 { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3849 test -n "$ac_ct_CC" && break
3852 if test "x$ac_ct_CC" = x; then
3855 case $cross_compiling:$ac_tool_warned in
3857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3858 whose name does not start with the host triplet. If you think this
3859 configuration is useful to you, please write to autoconf@gnu.org." >&5
3860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3861 whose name does not start with the host triplet. If you think this
3862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3863 ac_tool_warned=yes ;;
3872 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3873 See \`config.log' for more details." >&5
3874 echo "$as_me: error: no acceptable C compiler found in \$PATH
3875 See \`config.log' for more details." >&2;}
3876 { (exit 1); exit 1; }; }
3878 # Provide some information about the compiler.
3879 echo "$as_me:$LINENO: checking for C compiler version" >&5
3880 ac_compiler=`set X $ac_compile; echo $2`
3881 { (ac_try="$ac_compiler --version >&5"
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compiler --version >&5") 2>&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }
3891 { (ac_try="$ac_compiler -v >&5"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_compiler -v >&5") 2>&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }
3901 { (ac_try="$ac_compiler -V >&5"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907 (eval "$ac_compiler -V >&5") 2>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }
3912 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3913 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3914 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3942 (eval "$ac_compile") 2>conftest.er1
3944 grep -v '^ *+' conftest.er1 >conftest.err
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && {
3949 test -z "$ac_c_werror_flag" ||
3950 test ! -s conftest.err
3951 } && test -s conftest.$ac_objext; then
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3964 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3965 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3966 GCC=`test $ac_compiler_gnu = yes && echo yes`
3967 ac_test_CFLAGS=${CFLAGS+set}
3968 ac_save_CFLAGS=$CFLAGS
3969 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3970 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_g+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 ac_save_c_werror_flag=$ac_c_werror_flag
3975 ac_c_werror_flag=yes
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3993 rm -f conftest.$ac_objext
3994 if { (ac_try="$ac_compile"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_compile") 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && {
4007 test -z "$ac_c_werror_flag" ||
4008 test ! -s conftest.err
4009 } && test -s conftest.$ac_objext; then
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && {
4045 test -z "$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 } && test -s conftest.$ac_objext; then
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4070 rm -f conftest.$ac_objext
4071 if { (ac_try="$ac_compile"
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_compile") 2>conftest.er1
4079 grep -v '^ *+' conftest.er1 >conftest.err
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && {
4084 test -z "$ac_c_werror_flag" ||
4085 test ! -s conftest.err
4086 } && test -s conftest.$ac_objext; then
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_c_werror_flag=$ac_save_c_werror_flag
4104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4106 if test "$ac_test_CFLAGS" = set; then
4107 CFLAGS=$ac_save_CFLAGS
4108 elif test $ac_cv_prog_cc_g = yes; then
4109 if test "$GCC" = yes; then
4115 if test "$GCC" = yes; then
4121 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4122 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_cc_c89+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 ac_cv_prog_cc_c89=no
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4136 #include <sys/types.h>
4137 #include <sys/stat.h>
4138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4139 struct buf { int x; };
4140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4141 static char *e (p, i)
4147 static char *f (char * (*g) (char **, int), char **p, ...)
4152 s = g (p, va_arg (v,int));
4157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4158 function prototypes and stuff, but not '\xHH' hex character constants.
4159 These don't provoke an error unfortunately, instead are silently treated
4160 as 'x'. The following induces an error, until -std is added to get
4161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4162 array size at least. It's necessary to write '\x00'==0 to get something
4163 that's true only with -std. */
4164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4167 inside strings and character constants. */
4169 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4171 int test (int i, double x);
4172 struct s1 {int (*f) (int a);};
4173 struct s2 {int (*f) (double a);};
4174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4188 CC="$ac_save_CC $ac_arg"
4189 rm -f conftest.$ac_objext
4190 if { (ac_try="$ac_compile"
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_compile") 2>conftest.er1
4198 grep -v '^ *+' conftest.er1 >conftest.err
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && {
4203 test -z "$ac_c_werror_flag" ||
4204 test ! -s conftest.err
4205 } && test -s conftest.$ac_objext; then
4206 ac_cv_prog_cc_c89=$ac_arg
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4214 rm -f core conftest.err conftest.$ac_objext
4215 test "x$ac_cv_prog_cc_c89" != "xno" && break
4217 rm -f conftest.$ac_ext
4222 case "x$ac_cv_prog_cc_c89" in
4224 { echo "$as_me:$LINENO: result: none needed" >&5
4225 echo "${ECHO_T}none needed" >&6; } ;;
4227 { echo "$as_me:$LINENO: result: unsupported" >&5
4228 echo "${ECHO_T}unsupported" >&6; } ;;
4230 CC="$CC $ac_cv_prog_cc_c89"
4231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4232 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 depcc="$CC" am_compiler_list=
4244 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4245 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4246 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4250 # We make a subdir and do the tests there. Otherwise we can end up
4251 # making bogus files that we don't know about and never remove. For
4252 # instance it was reported that on HP-UX the gcc test will end up
4253 # making a dummy file named `D' -- because `-MD' means `put the output
4256 # Copy depcomp to subdir because otherwise we won't find it if we're
4257 # using a relative directory.
4258 cp "$am_depcomp" conftest.dir
4260 # We will build objects and dependencies in a subdirectory because
4261 # it helps to detect inapplicable dependency modes. For instance
4262 # both Tru64's cc and ICC support -MD to output dependencies as a
4263 # side effect of compilation, but ICC will put the dependencies in
4264 # the current directory while Tru64 will put them in the object
4268 am_cv_CC_dependencies_compiler_type=none
4269 if test "$am_compiler_list" = ""; then
4270 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4272 for depmode in $am_compiler_list; do
4273 # Setup a source with many dependencies, because some compilers
4274 # like to wrap large dependency lists on column 80 (with \), and
4275 # we should not choose a depcomp mode which is confused by this.
4277 # We need to recreate these files for each test, as the compiler may
4278 # overwrite some of them when testing with obscure command lines.
4279 # This happens at least with the AIX C compiler.
4281 for i in 1 2 3 4 5 6; do
4282 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4283 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4284 # Solaris 8's {/usr,}/bin/sh.
4285 touch sub/conftst$i.h
4287 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291 # after this tag, mechanisms are not by side-effect, so they'll
4292 # only be used when explicitly requested
4293 if test "x$enable_dependency_tracking" = xyes; then
4301 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4302 # mode. It turns out that the SunPro C++ compiler does not properly
4303 # handle `-M -o', and we need to detect this.
4304 if depmode=$depmode \
4305 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4307 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4308 >/dev/null 2>conftest.err &&
4309 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4310 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4311 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4312 # icc doesn't choke on unknown options, it will just issue warnings
4313 # or remarks (even with -Werror). So we grep stderr for any message
4314 # that says an option was ignored or not supported.
4315 # When given -MP, icc 7.0 and 7.1 complain thusly:
4316 # icc: Command line warning: ignoring option '-M'; no argument required
4317 # The diagnosis changed in icc 8.0:
4318 # icc: Command line remark: option '-MP' not supported
4319 if (grep 'ignoring option' conftest.err ||
4320 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4321 am_cv_CC_dependencies_compiler_type=$depmode
4330 am_cv_CC_dependencies_compiler_type=none
4334 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4335 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4336 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4341 test "x$enable_dependency_tracking" != xno \
4342 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4344 am__fastdepCC_FALSE='#'
4346 am__fastdepCC_TRUE='#'
4347 am__fastdepCC_FALSE=
4351 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4352 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4353 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4354 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 cat >conftest.make <<\_ACEOF
4360 @echo '@@@%%%=$(MAKE)=@@@%%%'
4362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4365 eval ac_cv_prog_make_${ac_make}_set=yes;;
4367 eval ac_cv_prog_make_${ac_make}_set=no;;
4371 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4372 { echo "$as_me:$LINENO: result: yes" >&5
4373 echo "${ECHO_T}yes" >&6; }
4376 { echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6; }
4378 SET_MAKE="MAKE=${MAKE-make}"
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 if test -n "$ac_tool_prefix"; then
4387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC="$CC" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 if test -n "$CC"; then
4416 { echo "$as_me:$LINENO: result: $CC" >&5
4417 echo "${ECHO_T}$CC" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4425 if test -z "$ac_cv_prog_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$ac_ct_CC"; then
4435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_ac_ct_CC="gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4455 if test -n "$ac_ct_CC"; then
4456 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4457 echo "${ECHO_T}$ac_ct_CC" >&6; }
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4463 if test "x$ac_ct_CC" = x; then
4466 case $cross_compiling:$ac_tool_warned in
4468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4469 whose name does not start with the host triplet. If you think this
4470 configuration is useful to you, please write to autoconf@gnu.org." >&5
4471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4472 whose name does not start with the host triplet. If you think this
4473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4474 ac_tool_warned=yes ;;
4482 if test -z "$CC"; then
4483 if test -n "$ac_tool_prefix"; then
4484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4485 set dummy ${ac_tool_prefix}cc; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_CC+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 if test -n "$CC"; then
4492 ac_cv_prog_CC="$CC" # Let the user override the test.
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_CC="${ac_tool_prefix}cc"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 if test -n "$CC"; then
4513 { echo "$as_me:$LINENO: result: $CC" >&5
4514 echo "${ECHO_T}$CC" >&6; }
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4523 if test -z "$CC"; then
4524 # Extract the first word of "cc", so it can be a program name with args.
4525 set dummy cc; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_CC+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 if test -n "$CC"; then
4532 ac_cv_prog_CC="$CC" # Let the user override the test.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4543 ac_prog_rejected=yes
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 if test $ac_prog_rejected = yes; then
4555 # We found a bogon in the path, so make sure we never use it.
4556 set dummy $ac_cv_prog_CC
4558 if test $# != 0; then
4559 # We chose a different compiler from the bogus one.
4560 # However, it has the same basename, so the bogon will be chosen
4561 # first if we set CC to just the basename; use the full file name.
4563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4569 if test -n "$CC"; then
4570 { echo "$as_me:$LINENO: result: $CC" >&5
4571 echo "${ECHO_T}$CC" >&6; }
4573 { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4579 if test -z "$CC"; then
4580 if test -n "$ac_tool_prefix"; then
4581 for ac_prog in cl.exe
4583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_CC+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 if test -n "$CC"; then
4591 ac_cv_prog_CC="$CC" # Let the user override the test.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 if test -n "$CC"; then
4612 { echo "$as_me:$LINENO: result: $CC" >&5
4613 echo "${ECHO_T}$CC" >&6; }
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4620 test -n "$CC" && break
4623 if test -z "$CC"; then
4625 for ac_prog in cl.exe
4627 # Extract the first word of "$ac_prog", so it can be a program name with args.
4628 set dummy $ac_prog; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -n "$ac_ct_CC"; then
4635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_ac_ct_CC="$ac_prog"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4655 if test -n "$ac_ct_CC"; then
4656 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4657 echo "${ECHO_T}$ac_ct_CC" >&6; }
4659 { echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6; }
4664 test -n "$ac_ct_CC" && break
4667 if test "x$ac_ct_CC" = x; then
4670 case $cross_compiling:$ac_tool_warned in
4672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4673 whose name does not start with the host triplet. If you think this
4674 configuration is useful to you, please write to autoconf@gnu.org." >&5
4675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4676 whose name does not start with the host triplet. If you think this
4677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4678 ac_tool_warned=yes ;;
4687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4688 See \`config.log' for more details." >&5
4689 echo "$as_me: error: no acceptable C compiler found in \$PATH
4690 See \`config.log' for more details." >&2;}
4691 { (exit 1); exit 1; }; }
4693 # Provide some information about the compiler.
4694 echo "$as_me:$LINENO: checking for C compiler version" >&5
4695 ac_compiler=`set X $ac_compile; echo $2`
4696 { (ac_try="$ac_compiler --version >&5"
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702 (eval "$ac_compiler --version >&5") 2>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }
4706 { (ac_try="$ac_compiler -v >&5"
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712 (eval "$ac_compiler -v >&5") 2>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }
4716 { (ac_try="$ac_compiler -V >&5"
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722 (eval "$ac_compiler -V >&5") 2>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }
4727 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4779 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4780 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4781 GCC=`test $ac_compiler_gnu = yes && echo yes`
4782 ac_test_CFLAGS=${CFLAGS+set}
4783 ac_save_CFLAGS=$CFLAGS
4784 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4786 if test "${ac_cv_prog_cc_g+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 ac_save_c_werror_flag=$ac_c_werror_flag
4790 ac_c_werror_flag=yes
4793 cat >conftest.$ac_ext <<_ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4808 rm -f conftest.$ac_objext
4809 if { (ac_try="$ac_compile"
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_compile") 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } && {
4822 test -z "$ac_c_werror_flag" ||
4823 test ! -s conftest.err
4824 } && test -s conftest.$ac_objext; then
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_compile") 2>conftest.er1
4855 grep -v '^ *+' conftest.er1 >conftest.err
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest.$ac_objext; then
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 ac_c_werror_flag=$ac_save_c_werror_flag
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 ac_c_werror_flag=$ac_save_c_werror_flag
4919 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4920 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4921 if test "$ac_test_CFLAGS" = set; then
4922 CFLAGS=$ac_save_CFLAGS
4923 elif test $ac_cv_prog_cc_g = yes; then
4924 if test "$GCC" = yes; then
4930 if test "$GCC" = yes; then
4936 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4937 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4938 if test "${ac_cv_prog_cc_c89+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 ac_cv_prog_cc_c89=no
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4951 #include <sys/types.h>
4952 #include <sys/stat.h>
4953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4954 struct buf { int x; };
4955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4956 static char *e (p, i)
4962 static char *f (char * (*g) (char **, int), char **p, ...)
4967 s = g (p, va_arg (v,int));
4972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4973 function prototypes and stuff, but not '\xHH' hex character constants.
4974 These don't provoke an error unfortunately, instead are silently treated
4975 as 'x'. The following induces an error, until -std is added to get
4976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4977 array size at least. It's necessary to write '\x00'==0 to get something
4978 that's true only with -std. */
4979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4982 inside strings and character constants. */
4984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4986 int test (int i, double x);
4987 struct s1 {int (*f) (int a);};
4988 struct s2 {int (*f) (double a);};
4989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5003 CC="$ac_save_CC $ac_arg"
5004 rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_compile") 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && {
5018 test -z "$ac_c_werror_flag" ||
5019 test ! -s conftest.err
5020 } && test -s conftest.$ac_objext; then
5021 ac_cv_prog_cc_c89=$ac_arg
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5029 rm -f core conftest.err conftest.$ac_objext
5030 test "x$ac_cv_prog_cc_c89" != "xno" && break
5032 rm -f conftest.$ac_ext
5037 case "x$ac_cv_prog_cc_c89" in
5039 { echo "$as_me:$LINENO: result: none needed" >&5
5040 echo "${ECHO_T}none needed" >&6; } ;;
5042 { echo "$as_me:$LINENO: result: unsupported" >&5
5043 echo "${ECHO_T}unsupported" >&6; } ;;
5045 CC="$CC $ac_cv_prog_cc_c89"
5046 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5047 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057 depcc="$CC" am_compiler_list=
5059 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5060 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5061 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5065 # We make a subdir and do the tests there. Otherwise we can end up
5066 # making bogus files that we don't know about and never remove. For
5067 # instance it was reported that on HP-UX the gcc test will end up
5068 # making a dummy file named `D' -- because `-MD' means `put the output
5071 # Copy depcomp to subdir because otherwise we won't find it if we're
5072 # using a relative directory.
5073 cp "$am_depcomp" conftest.dir
5075 # We will build objects and dependencies in a subdirectory because
5076 # it helps to detect inapplicable dependency modes. For instance
5077 # both Tru64's cc and ICC support -MD to output dependencies as a
5078 # side effect of compilation, but ICC will put the dependencies in
5079 # the current directory while Tru64 will put them in the object
5083 am_cv_CC_dependencies_compiler_type=none
5084 if test "$am_compiler_list" = ""; then
5085 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5087 for depmode in $am_compiler_list; do
5088 # Setup a source with many dependencies, because some compilers
5089 # like to wrap large dependency lists on column 80 (with \), and
5090 # we should not choose a depcomp mode which is confused by this.
5092 # We need to recreate these files for each test, as the compiler may
5093 # overwrite some of them when testing with obscure command lines.
5094 # This happens at least with the AIX C compiler.
5096 for i in 1 2 3 4 5 6; do
5097 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5098 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5099 # Solaris 8's {/usr,}/bin/sh.
5100 touch sub/conftst$i.h
5102 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5106 # after this tag, mechanisms are not by side-effect, so they'll
5107 # only be used when explicitly requested
5108 if test "x$enable_dependency_tracking" = xyes; then
5116 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5117 # mode. It turns out that the SunPro C++ compiler does not properly
5118 # handle `-M -o', and we need to detect this.
5119 if depmode=$depmode \
5120 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5122 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5123 >/dev/null 2>conftest.err &&
5124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5125 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5127 # icc doesn't choke on unknown options, it will just issue warnings
5128 # or remarks (even with -Werror). So we grep stderr for any message
5129 # that says an option was ignored or not supported.
5130 # When given -MP, icc 7.0 and 7.1 complain thusly:
5131 # icc: Command line warning: ignoring option '-M'; no argument required
5132 # The diagnosis changed in icc 8.0:
5133 # icc: Command line remark: option '-MP' not supported
5134 if (grep 'ignoring option' conftest.err ||
5135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5136 am_cv_CC_dependencies_compiler_type=$depmode
5145 am_cv_CC_dependencies_compiler_type=none
5149 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5150 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5156 test "x$enable_dependency_tracking" != xno \
5157 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5159 am__fastdepCC_FALSE='#'
5161 am__fastdepCC_TRUE='#'
5162 am__fastdepCC_FALSE=
5167 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5169 # Check whether --enable-shared was given.
5170 if test "${enable_shared+set}" = set; then
5171 enableval=$enable_shared; p=${PACKAGE-default}
5173 yes) enable_shared=yes ;;
5174 no) enable_shared=no ;;
5177 # Look at the argument we got. We use all the common list separators.
5178 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5179 for pkg in $enableval; do
5181 if test "X$pkg" = "X$p"; then
5193 # Check whether --enable-static was given.
5194 if test "${enable_static+set}" = set; then
5195 enableval=$enable_static; p=${PACKAGE-default}
5197 yes) enable_static=yes ;;
5198 no) enable_static=no ;;
5201 # Look at the argument we got. We use all the common list separators.
5202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5203 for pkg in $enableval; do
5205 if test "X$pkg" = "X$p"; then
5217 # Check whether --enable-fast-install was given.
5218 if test "${enable_fast_install+set}" = set; then
5219 enableval=$enable_fast_install; p=${PACKAGE-default}
5221 yes) enable_fast_install=yes ;;
5222 no) enable_fast_install=no ;;
5224 enable_fast_install=no
5225 # Look at the argument we got. We use all the common list separators.
5226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5227 for pkg in $enableval; do
5229 if test "X$pkg" = "X$p"; then
5230 enable_fast_install=yes
5237 enable_fast_install=yes
5241 # Make sure we can run config.sub.
5242 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5243 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5244 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5245 { (exit 1); exit 1; }; }
5247 { echo "$as_me:$LINENO: checking build system type" >&5
5248 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5249 if test "${ac_cv_build+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 ac_build_alias=$build_alias
5253 test "x$ac_build_alias" = x &&
5254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5255 test "x$ac_build_alias" = x &&
5256 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5258 { (exit 1); exit 1; }; }
5259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5260 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5262 { (exit 1); exit 1; }; }
5265 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5266 echo "${ECHO_T}$ac_cv_build" >&6; }
5267 case $ac_cv_build in
5269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5270 echo "$as_me: error: invalid value of canonical build" >&2;}
5271 { (exit 1); exit 1; }; };;
5274 ac_save_IFS=$IFS; IFS='-'
5280 # Remember, the first character of IFS is used to create $*,
5281 # except with old shells:
5284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5287 { echo "$as_me:$LINENO: checking host system type" >&5
5288 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5289 if test "${ac_cv_host+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 if test "x$host_alias" = x; then
5293 ac_cv_host=$ac_cv_build
5295 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5298 { (exit 1); exit 1; }; }
5302 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5303 echo "${ECHO_T}$ac_cv_host" >&6; }
5306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5307 echo "$as_me: error: invalid value of canonical host" >&2;}
5308 { (exit 1); exit 1; }; };;
5311 ac_save_IFS=$IFS; IFS='-'
5317 # Remember, the first character of IFS is used to create $*,
5318 # except with old shells:
5321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5324 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5325 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5326 if test "${lt_cv_path_SED+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 # Loop through the user's path and test for sed and gsed.
5330 # Then use that list of sed's as ones to test for truncation.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir=.
5336 for lt_ac_prog in sed gsed; do
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5339 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5346 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5347 # along with /bin/sed that truncates output.
5348 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5349 test ! -f $lt_ac_sed && continue
5350 cat /dev/null > conftest.in
5352 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5353 # Check for GNU sed and select it if it is found.
5354 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5355 lt_cv_path_SED=$lt_ac_sed
5359 cat conftest.in conftest.in >conftest.tmp
5360 mv conftest.tmp conftest.in
5361 cp conftest.in conftest.nl
5363 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5364 cmp -s conftest.out conftest.nl || break
5365 # 10000 chars as input seems more than enough
5366 test $lt_ac_count -gt 10 && break
5367 lt_ac_count=`expr $lt_ac_count + 1`
5368 if test $lt_ac_count -gt $lt_ac_max; then
5369 lt_ac_max=$lt_ac_count
5370 lt_cv_path_SED=$lt_ac_sed
5378 { echo "$as_me:$LINENO: result: $SED" >&5
5379 echo "${ECHO_T}$SED" >&6; }
5381 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5382 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5383 if test "${ac_cv_path_GREP+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 # Extract the first word of "grep ggrep" to use in msg output
5387 if test -z "$GREP"; then
5388 set dummy grep ggrep; ac_prog_name=$2
5389 if test "${ac_cv_path_GREP+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 ac_path_GREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5398 test -z "$as_dir" && as_dir=.
5399 for ac_prog in grep ggrep; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5402 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5403 # Check for GNU ac_path_GREP and select it if it is found.
5404 # Check for GNU $ac_path_GREP
5405 case `"$ac_path_GREP" --version 2>&1` in
5407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5410 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 echo 'GREP' >> "conftest.nl"
5417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 ac_count=`expr $ac_count + 1`
5420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_GREP="$ac_path_GREP"
5423 ac_path_GREP_max=$ac_count
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5432 $ac_path_GREP_found && break 3
5442 GREP="$ac_cv_path_GREP"
5443 if test -z "$GREP"; then
5444 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5446 { (exit 1); exit 1; }; }
5450 ac_cv_path_GREP=$GREP
5455 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5456 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5457 GREP="$ac_cv_path_GREP"
5460 { echo "$as_me:$LINENO: checking for egrep" >&5
5461 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_EGREP+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5466 then ac_cv_path_EGREP="$GREP -E"
5468 # Extract the first word of "egrep" to use in msg output
5469 if test -z "$EGREP"; then
5470 set dummy egrep; ac_prog_name=$2
5471 if test "${ac_cv_path_EGREP+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 ac_path_EGREP_found=false
5475 # Loop through the user's path and test for each of PROGNAME-LIST
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5480 test -z "$as_dir" && as_dir=.
5481 for ac_prog in egrep; do
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5484 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5485 # Check for GNU ac_path_EGREP and select it if it is found.
5486 # Check for GNU $ac_path_EGREP
5487 case `"$ac_path_EGREP" --version 2>&1` in
5489 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5492 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5495 cat "conftest.in" "conftest.in" >"conftest.tmp"
5496 mv "conftest.tmp" "conftest.in"
5497 cp "conftest.in" "conftest.nl"
5498 echo 'EGREP' >> "conftest.nl"
5499 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5501 ac_count=`expr $ac_count + 1`
5502 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5503 # Best one so far, save it but keep looking for a better one
5504 ac_cv_path_EGREP="$ac_path_EGREP"
5505 ac_path_EGREP_max=$ac_count
5507 # 10*(2^10) chars as input seems more than enough
5508 test $ac_count -gt 10 && break
5510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514 $ac_path_EGREP_found && break 3
5524 EGREP="$ac_cv_path_EGREP"
5525 if test -z "$EGREP"; then
5526 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5527 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5528 { (exit 1); exit 1; }; }
5532 ac_cv_path_EGREP=$EGREP
5538 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5539 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5540 EGREP="$ac_cv_path_EGREP"
5544 # Check whether --with-gnu-ld was given.
5545 if test "${with_gnu_ld+set}" = set; then
5546 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5552 if test "$GCC" = yes; then
5553 # Check if gcc -print-prog-name=ld gives a path.
5554 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5555 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5558 # gcc leaves a trailing carriage return which upsets mingw
5559 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5561 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5564 # Accept absolute paths.
5566 re_direlt='/[^/][^/]*/\.\./'
5567 # Canonicalize the pathname of ld
5568 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5569 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5570 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5572 test -z "$LD" && LD="$ac_prog"
5575 # If it fails, then pretend we aren't using GCC.
5579 # If it is relative, then search for the first ld in PATH.
5583 elif test "$with_gnu_ld" = yes; then
5584 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5585 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5587 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5588 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5590 if test "${lt_cv_path_LD+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 if test -z "$LD"; then
5594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5595 for ac_dir in $PATH; do
5597 test -z "$ac_dir" && ac_dir=.
5598 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5599 lt_cv_path_LD="$ac_dir/$ac_prog"
5600 # Check to see if the program is GNU ld. I'd rather use --version,
5601 # but apparently some variants of GNU ld only accept -v.
5602 # Break only if it was the GNU/non-GNU ld that we prefer.
5603 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5604 *GNU* | *'with BFD'*)
5605 test "$with_gnu_ld" != no && break
5608 test "$with_gnu_ld" != yes && break
5615 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5620 if test -n "$LD"; then
5621 { echo "$as_me:$LINENO: result: $LD" >&5
5622 echo "${ECHO_T}$LD" >&6; }
5624 { echo "$as_me:$LINENO: result: no" >&5
5625 echo "${ECHO_T}no" >&6; }
5627 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5628 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5629 { (exit 1); exit 1; }; }
5630 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5631 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5632 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5636 case `$LD -v 2>&1 </dev/null` in
5637 *GNU* | *'with BFD'*)
5638 lt_cv_prog_gnu_ld=yes
5641 lt_cv_prog_gnu_ld=no
5645 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5646 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5647 with_gnu_ld=$lt_cv_prog_gnu_ld
5650 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5651 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5652 if test "${lt_cv_ld_reload_flag+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 lt_cv_ld_reload_flag='-r'
5657 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5658 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5659 reload_flag=$lt_cv_ld_reload_flag
5660 case $reload_flag in
5662 *) reload_flag=" $reload_flag" ;;
5664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5667 if test "$GCC" = yes; then
5668 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5670 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5675 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5676 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5677 if test "${lt_cv_path_NM+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 if test -n "$NM"; then
5681 # Let the user override the test.
5684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5685 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5687 test -z "$ac_dir" && ac_dir=.
5688 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5690 # Check to see if the nm accepts a BSD-compat flag.
5691 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5692 # nm: unknown option "B" ignored
5693 # Tru64's nm complains that /dev/null is an invalid object file
5694 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5695 */dev/null* | *'Invalid file or object type'*)
5696 lt_cv_path_NM="$tmp_nm -B"
5700 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5702 lt_cv_path_NM="$tmp_nm -p"
5706 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5707 continue # so that we can try to find one that supports BSD flags
5714 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5717 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5718 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5721 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5722 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5724 if test "$LN_S" = "ln -s"; then
5725 { echo "$as_me:$LINENO: result: yes" >&5
5726 echo "${ECHO_T}yes" >&6; }
5728 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5729 echo "${ECHO_T}no, using $LN_S" >&6; }
5732 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5733 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5734 if test "${lt_cv_deplibs_check_method+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 lt_cv_file_magic_cmd='$MAGIC_CMD'
5738 lt_cv_file_magic_test_file=
5739 lt_cv_deplibs_check_method='unknown'
5740 # Need to set the preceding variable on all platforms that support
5741 # interlibrary dependencies.
5742 # 'none' -- dependencies not supported.
5743 # `unknown' -- same as none, but documents that we really don't know.
5744 # 'pass_all' -- all dependencies passed with no checks.
5745 # 'test_compile' -- check by making test program.
5746 # 'file_magic [[regex]]' -- check by looking for files in library path
5747 # which responds to the $file_magic_cmd with a given extended regex.
5748 # If you have `file' or equivalent on your system and you're not sure
5749 # whether `pass_all' will *always* work, you probably want this one.
5753 lt_cv_deplibs_check_method=pass_all
5757 lt_cv_deplibs_check_method=pass_all
5761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5762 lt_cv_file_magic_cmd='/usr/bin/file -L'
5763 lt_cv_file_magic_test_file=/shlib/libc.so
5767 # func_win32_libid is a shell function defined in ltmain.sh
5768 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5769 lt_cv_file_magic_cmd='func_win32_libid'
5773 # Base MSYS/MinGW do not provide the 'file' command needed by
5774 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5775 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5776 lt_cv_file_magic_cmd='$OBJDUMP -f'
5779 darwin* | rhapsody*)
5780 lt_cv_deplibs_check_method=pass_all
5783 freebsd* | kfreebsd*-gnu | dragonfly*)
5784 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5787 # Not sure whether the presence of OpenBSD here was a mistake.
5788 # Let's accept both of them until this is cleared up.
5789 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5790 lt_cv_file_magic_cmd=/usr/bin/file
5791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5795 lt_cv_deplibs_check_method=pass_all
5800 lt_cv_deplibs_check_method=pass_all
5803 hpux10.20* | hpux11*)
5804 lt_cv_file_magic_cmd=/usr/bin/file
5807 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5808 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5811 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]'
5812 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5815 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5816 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5821 irix5* | irix6* | nonstopux*)
5823 *-32|*"-32 ") libmagic=32-bit;;
5824 *-n32|*"-n32 ") libmagic=N32;;
5825 *-64|*"-64 ") libmagic=64-bit;;
5826 *) libmagic=never-match;;
5828 lt_cv_deplibs_check_method=pass_all
5831 # This must be Linux ELF.
5833 lt_cv_deplibs_check_method=pass_all
5837 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5846 lt_cv_file_magic_cmd=/usr/bin/file
5847 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5851 lt_cv_deplibs_check_method=unknown
5855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5862 osf3* | osf4* | osf5*)
5863 lt_cv_deplibs_check_method=pass_all
5867 lt_cv_deplibs_check_method=pass_all
5871 lt_cv_deplibs_check_method=pass_all
5874 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5875 case $host_vendor in
5877 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]'
5878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5881 lt_cv_deplibs_check_method=pass_all
5884 lt_cv_file_magic_cmd='/bin/file'
5885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5888 lt_cv_file_magic_cmd='/bin/file'
5889 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5890 lt_cv_file_magic_test_file=/lib/libc.so
5893 lt_cv_deplibs_check_method=pass_all
5898 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5899 lt_cv_deplibs_check_method=pass_all
5904 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5905 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5906 file_magic_cmd=$lt_cv_file_magic_cmd
5907 deplibs_check_method=$lt_cv_deplibs_check_method
5908 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5913 # If no C compiler was specified, use CC.
5916 # Allow CC to be a program name with arguments.
5919 # Check whether --enable-libtool-lock was given.
5920 if test "${enable_libtool_lock+set}" = set; then
5921 enableval=$enable_libtool_lock;
5924 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5926 # Some flags need to be propagated to the compiler or linker for good
5930 # Find out which ABI we are using.
5931 echo 'int i;' > conftest.$ac_ext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; then
5937 case `/usr/bin/file conftest.$ac_objext` in
5949 # Find out which ABI we are using.
5950 echo '#line 5950 "configure"' > conftest.$ac_ext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; then
5956 if test "$lt_cv_prog_gnu_ld" = yes; then
5957 case `/usr/bin/file conftest.$ac_objext` in
5959 LD="${LD-ld} -melf32bsmip"
5962 LD="${LD-ld} -melf32bmipn32"
5965 LD="${LD-ld} -melf64bmip"
5969 case `/usr/bin/file conftest.$ac_objext` in
5985 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5986 # Find out which ABI we are using.
5987 echo 'int i;' > conftest.$ac_ext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; then
5993 case `/usr/bin/file conftest.o` in
5997 LD="${LD-ld} -m elf_i386"
5999 ppc64-*linux*|powerpc64-*linux*)
6000 LD="${LD-ld} -m elf32ppclinux"
6003 LD="${LD-ld} -m elf_s390"
6006 LD="${LD-ld} -m elf32_sparc"
6013 LD="${LD-ld} -m elf_x86_64"
6015 ppc*-*linux*|powerpc*-*linux*)
6016 LD="${LD-ld} -m elf64ppc"
6019 LD="${LD-ld} -m elf64_s390"
6022 LD="${LD-ld} -m elf64_sparc"
6032 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6033 SAVE_CFLAGS="$CFLAGS"
6034 CFLAGS="$CFLAGS -belf"
6035 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6036 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6037 if test "${lt_cv_cc_needs_belf+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 ac_cpp='$CPP $CPPFLAGS'
6042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6061 rm -f conftest.$ac_objext conftest$ac_exeext
6062 if { (ac_try="$ac_link"
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_link") 2>conftest.er1
6070 grep -v '^ *+' conftest.er1 >conftest.err
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } && {
6075 test -z "$ac_c_werror_flag" ||
6076 test ! -s conftest.err
6077 } && test -s conftest$ac_exeext &&
6078 $as_test_x conftest$ac_exeext; then
6079 lt_cv_cc_needs_belf=yes
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 lt_cv_cc_needs_belf=no
6087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6088 conftest$ac_exeext conftest.$ac_ext
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6096 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6097 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6098 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6099 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6100 CFLAGS="$SAVE_CFLAGS"
6106 need_locks="$enable_libtool_lock"
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6115 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6116 # On Suns, sometimes $CPP names a directory.
6117 if test -n "$CPP" && test -d "$CPP"; then
6120 if test -z "$CPP"; then
6121 if test "${ac_cv_prog_CPP+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 # Double quotes because CPP needs to be expanded
6125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6128 for ac_c_preproc_warn_flag in '' yes
6130 # Use a header file that comes with gcc, so configuring glibc
6131 # with a fresh cross-compiler works.
6132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6133 # <limits.h> exists even on freestanding compilers.
6134 # On the NeXT, cc -E runs the code through the compiler's parser,
6135 # not just through cpp. "Syntax error" is here to catch this case.
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6143 # include <limits.h>
6145 # include <assert.h>
6149 if { (ac_try="$ac_cpp conftest.$ac_ext"
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } >/dev/null && {
6162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6163 test ! -s conftest.err
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 # Broken: fails on valid input.
6174 rm -f conftest.err conftest.$ac_ext
6176 # OK, works on sane cases. Now check whether nonexistent headers
6177 # can be detected and how.
6178 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <ac_nonexistent.h>
6186 if { (ac_try="$ac_cpp conftest.$ac_ext"
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } >/dev/null && {
6199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6202 # Broken: success on invalid input.
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 # Passes both tests.
6213 rm -f conftest.err conftest.$ac_ext
6216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6217 rm -f conftest.err conftest.$ac_ext
6218 if $ac_preproc_ok; then
6230 { echo "$as_me:$LINENO: result: $CPP" >&5
6231 echo "${ECHO_T}$CPP" >&6; }
6233 for ac_c_preproc_warn_flag in '' yes
6235 # Use a header file that comes with gcc, so configuring glibc
6236 # with a fresh cross-compiler works.
6237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6238 # <limits.h> exists even on freestanding compilers.
6239 # On the NeXT, cc -E runs the code through the compiler's parser,
6240 # not just through cpp. "Syntax error" is here to catch this case.
6241 cat >conftest.$ac_ext <<_ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6248 # include <limits.h>
6250 # include <assert.h>
6254 if { (ac_try="$ac_cpp conftest.$ac_ext"
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6262 grep -v '^ *+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } >/dev/null && {
6267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6268 test ! -s conftest.err
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 # Broken: fails on valid input.
6279 rm -f conftest.err conftest.$ac_ext
6281 # OK, works on sane cases. Now check whether nonexistent headers
6282 # can be detected and how.
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 #include <ac_nonexistent.h>
6291 if { (ac_try="$ac_cpp conftest.$ac_ext"
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6299 grep -v '^ *+' conftest.er1 >conftest.err
6301 cat conftest.err >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } >/dev/null && {
6304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6305 test ! -s conftest.err
6307 # Broken: success on invalid input.
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 # Passes both tests.
6318 rm -f conftest.err conftest.$ac_ext
6321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6322 rm -f conftest.err conftest.$ac_ext
6323 if $ac_preproc_ok; then
6326 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6327 See \`config.log' for more details." >&5
6328 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6329 See \`config.log' for more details." >&2;}
6330 { (exit 1); exit 1; }; }
6334 ac_cpp='$CPP $CPPFLAGS'
6335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6342 if test "${ac_cv_header_stdc+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 ac_cv_header_stdc=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_cv_header_stdc=no
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 if test $ac_cv_header_stdc = yes; then
6392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6393 cat >conftest.$ac_ext <<_ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403 $EGREP "memchr" >/dev/null 2>&1; then
6406 ac_cv_header_stdc=no
6412 if test $ac_cv_header_stdc = yes; then
6413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6414 cat >conftest.$ac_ext <<_ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424 $EGREP "free" >/dev/null 2>&1; then
6427 ac_cv_header_stdc=no
6433 if test $ac_cv_header_stdc = yes; then
6434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6435 if test "$cross_compiling" = yes; then
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6446 #if ((' ' & 0x0FF) == 0x020)
6447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6450 # define ISLOWER(c) \
6451 (('a' <= (c) && (c) <= 'i') \
6452 || ('j' <= (c) && (c) <= 'r') \
6453 || ('s' <= (c) && (c) <= 'z'))
6454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6462 for (i = 0; i < 256; i++)
6463 if (XOR (islower (i), ISLOWER (i))
6464 || toupper (i) != TOUPPER (i))
6469 rm -f conftest$ac_exeext
6470 if { (ac_try="$ac_link"
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_link") 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6480 { (case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_try") 2>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6491 echo "$as_me: program exited with status $ac_status" >&5
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_cv_header_stdc=no
6498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6504 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6505 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6506 if test $ac_cv_header_stdc = yes; then
6508 cat >>confdefs.h <<\_ACEOF
6509 #define STDC_HEADERS 1
6514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6525 inttypes.h stdint.h unistd.h
6527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 cat >conftest.$ac_ext <<_ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 $ac_includes_default
6541 #include <$ac_header>
6543 rm -f conftest.$ac_objext
6544 if { (ac_try="$ac_compile"
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_compile") 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } && {
6557 test -z "$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 } && test -s conftest.$ac_objext; then
6560 eval "$as_ac_Header=yes"
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 eval "$as_ac_Header=no"
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 ac_res=`eval echo '${'$as_ac_Header'}'`
6571 { echo "$as_me:$LINENO: result: $ac_res" >&5
6572 echo "${ECHO_T}$ac_res" >&6; }
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574 cat >>confdefs.h <<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584 for ac_header in dlfcn.h
6586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 ac_res=`eval echo '${'$as_ac_Header'}'`
6594 { echo "$as_me:$LINENO: result: $ac_res" >&5
6595 echo "${ECHO_T}$ac_res" >&6; }
6597 # Is the header compilable?
6598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6600 cat >conftest.$ac_ext <<_ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 $ac_includes_default
6607 #include <$ac_header>
6609 rm -f conftest.$ac_objext
6610 if { (ac_try="$ac_compile"
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_compile") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest.$ac_objext; then
6626 ac_header_compiler=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_header_compiler=no
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6636 echo "${ECHO_T}$ac_header_compiler" >&6; }
6638 # Is the header present?
6639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6641 cat >conftest.$ac_ext <<_ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 #include <$ac_header>
6649 if { (ac_try="$ac_cpp conftest.$ac_ext"
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6657 grep -v '^ *+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } >/dev/null && {
6662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6663 test ! -s conftest.err
6665 ac_header_preproc=yes
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 ac_header_preproc=no
6673 rm -f conftest.err conftest.$ac_ext
6674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6675 echo "${ECHO_T}$ac_header_preproc" >&6; }
6677 # So? What about this header?
6678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6684 ac_header_preproc=yes
6687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 eval "$as_ac_Header=\$ac_header_preproc"
6709 ac_res=`eval echo '${'$as_ac_Header'}'`
6710 { echo "$as_me:$LINENO: result: $ac_res" >&5
6711 echo "${ECHO_T}$ac_res" >&6; }
6714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6715 cat >>confdefs.h <<_ACEOF
6716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6724 ac_cpp='$CXXCPP $CPPFLAGS'
6725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6728 if test -z "$CXX"; then
6729 if test -n "$CCC"; then
6732 if test -n "$ac_tool_prefix"; then
6733 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_prog_CXX+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 if test -n "$CXX"; then
6743 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 if test -n "$CXX"; then
6764 { echo "$as_me:$LINENO: result: $CXX" >&5
6765 echo "${ECHO_T}$CXX" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 test -n "$CXX" && break
6775 if test -z "$CXX"; then
6777 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6779 # Extract the first word of "$ac_prog", so it can be a program name with args.
6780 set dummy $ac_prog; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 if test -n "$ac_ct_CXX"; then
6787 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_ac_ct_CXX="$ac_prog"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6807 if test -n "$ac_ct_CXX"; then
6808 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6809 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6816 test -n "$ac_ct_CXX" && break
6819 if test "x$ac_ct_CXX" = x; then
6822 case $cross_compiling:$ac_tool_warned in
6824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6825 whose name does not start with the host triplet. If you think this
6826 configuration is useful to you, please write to autoconf@gnu.org." >&5
6827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6828 whose name does not start with the host triplet. If you think this
6829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6830 ac_tool_warned=yes ;;
6838 # Provide some information about the compiler.
6839 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6840 ac_compiler=`set X $ac_compile; echo $2`
6841 { (ac_try="$ac_compiler --version >&5"
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_compiler --version >&5") 2>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }
6851 { (ac_try="$ac_compiler -v >&5"
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_compiler -v >&5") 2>&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }
6861 { (ac_try="$ac_compiler -V >&5"
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_compiler -V >&5") 2>&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }
6872 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6873 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6874 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_compile") 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_cxx_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest.$ac_objext; then
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6924 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6925 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6926 GXX=`test $ac_compiler_gnu = yes && echo yes`
6927 ac_test_CXXFLAGS=${CXXFLAGS+set}
6928 ac_save_CXXFLAGS=$CXXFLAGS
6929 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6930 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6931 if test "${ac_cv_prog_cxx_g+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6935 ac_cxx_werror_flag=yes
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6953 rm -f conftest.$ac_objext
6954 if { (ac_try="$ac_compile"
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_compile") 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && {
6967 test -z "$ac_cxx_werror_flag" ||
6968 test ! -s conftest.err
6969 } && test -s conftest.$ac_objext; then
6970 ac_cv_prog_cxx_g=yes
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6976 cat >conftest.$ac_ext <<_ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6991 rm -f conftest.$ac_objext
6992 if { (ac_try="$ac_compile"
6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6998 (eval "$ac_compile") 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && {
7005 test -z "$ac_cxx_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037 (eval "$ac_compile") 2>conftest.er1
7039 grep -v '^ *+' conftest.er1 >conftest.err
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && {
7044 test -z "$ac_cxx_werror_flag" ||
7045 test ! -s conftest.err
7046 } && test -s conftest.$ac_objext; then
7047 ac_cv_prog_cxx_g=yes
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7064 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7065 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7066 if test "$ac_test_CXXFLAGS" = set; then
7067 CXXFLAGS=$ac_save_CXXFLAGS
7068 elif test $ac_cv_prog_cxx_g = yes; then
7069 if test "$GXX" = yes; then
7075 if test "$GXX" = yes; then
7082 ac_cpp='$CXXCPP $CPPFLAGS'
7083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7087 depcc="$CXX" am_compiler_list=
7089 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7090 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7091 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7095 # We make a subdir and do the tests there. Otherwise we can end up
7096 # making bogus files that we don't know about and never remove. For
7097 # instance it was reported that on HP-UX the gcc test will end up
7098 # making a dummy file named `D' -- because `-MD' means `put the output
7101 # Copy depcomp to subdir because otherwise we won't find it if we're
7102 # using a relative directory.
7103 cp "$am_depcomp" conftest.dir
7105 # We will build objects and dependencies in a subdirectory because
7106 # it helps to detect inapplicable dependency modes. For instance
7107 # both Tru64's cc and ICC support -MD to output dependencies as a
7108 # side effect of compilation, but ICC will put the dependencies in
7109 # the current directory while Tru64 will put them in the object
7113 am_cv_CXX_dependencies_compiler_type=none
7114 if test "$am_compiler_list" = ""; then
7115 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7117 for depmode in $am_compiler_list; do
7118 # Setup a source with many dependencies, because some compilers
7119 # like to wrap large dependency lists on column 80 (with \), and
7120 # we should not choose a depcomp mode which is confused by this.
7122 # We need to recreate these files for each test, as the compiler may
7123 # overwrite some of them when testing with obscure command lines.
7124 # This happens at least with the AIX C compiler.
7126 for i in 1 2 3 4 5 6; do
7127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7128 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7129 # Solaris 8's {/usr,}/bin/sh.
7130 touch sub/conftst$i.h
7132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7136 # after this tag, mechanisms are not by side-effect, so they'll
7137 # only be used when explicitly requested
7138 if test "x$enable_dependency_tracking" = xyes; then
7146 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7147 # mode. It turns out that the SunPro C++ compiler does not properly
7148 # handle `-M -o', and we need to detect this.
7149 if depmode=$depmode \
7150 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7152 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7153 >/dev/null 2>conftest.err &&
7154 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7155 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7157 # icc doesn't choke on unknown options, it will just issue warnings
7158 # or remarks (even with -Werror). So we grep stderr for any message
7159 # that says an option was ignored or not supported.
7160 # When given -MP, icc 7.0 and 7.1 complain thusly:
7161 # icc: Command line warning: ignoring option '-M'; no argument required
7162 # The diagnosis changed in icc 8.0:
7163 # icc: Command line remark: option '-MP' not supported
7164 if (grep 'ignoring option' conftest.err ||
7165 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7166 am_cv_CXX_dependencies_compiler_type=$depmode
7175 am_cv_CXX_dependencies_compiler_type=none
7179 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7180 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7181 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7186 test "x$enable_dependency_tracking" != xno \
7187 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7188 am__fastdepCXX_TRUE=
7189 am__fastdepCXX_FALSE='#'
7191 am__fastdepCXX_TRUE='#'
7192 am__fastdepCXX_FALSE=
7198 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7199 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7200 (test "X$CXX" != "Xg++"))) ; then
7202 ac_cpp='$CXXCPP $CPPFLAGS'
7203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7206 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7207 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7208 if test -z "$CXXCPP"; then
7209 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 # Double quotes because CXXCPP needs to be expanded
7213 for CXXCPP in "$CXX -E" "/lib/cpp"
7216 for ac_cxx_preproc_warn_flag in '' yes
7218 # Use a header file that comes with gcc, so configuring glibc
7219 # with a fresh cross-compiler works.
7220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7221 # <limits.h> exists even on freestanding compilers.
7222 # On the NeXT, cc -E runs the code through the compiler's parser,
7223 # not just through cpp. "Syntax error" is here to catch this case.
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7231 # include <limits.h>
7233 # include <assert.h>
7237 if { (ac_try="$ac_cpp conftest.$ac_ext"
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } >/dev/null && {
7250 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7251 test ! -s conftest.err
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 # Broken: fails on valid input.
7262 rm -f conftest.err conftest.$ac_ext
7264 # OK, works on sane cases. Now check whether nonexistent headers
7265 # can be detected and how.
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 #include <ac_nonexistent.h>
7274 if { (ac_try="$ac_cpp conftest.$ac_ext"
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7282 grep -v '^ *+' conftest.er1 >conftest.err
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } >/dev/null && {
7287 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7288 test ! -s conftest.err
7290 # Broken: success on invalid input.
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 # Passes both tests.
7301 rm -f conftest.err conftest.$ac_ext
7304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7305 rm -f conftest.err conftest.$ac_ext
7306 if $ac_preproc_ok; then
7311 ac_cv_prog_CXXCPP=$CXXCPP
7314 CXXCPP=$ac_cv_prog_CXXCPP
7316 ac_cv_prog_CXXCPP=$CXXCPP
7318 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7319 echo "${ECHO_T}$CXXCPP" >&6; }
7321 for ac_cxx_preproc_warn_flag in '' yes
7323 # Use a header file that comes with gcc, so configuring glibc
7324 # with a fresh cross-compiler works.
7325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326 # <limits.h> exists even on freestanding compilers.
7327 # On the NeXT, cc -E runs the code through the compiler's parser,
7328 # not just through cpp. "Syntax error" is here to catch this case.
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7336 # include <limits.h>
7338 # include <assert.h>
7342 if { (ac_try="$ac_cpp conftest.$ac_ext"
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7350 grep -v '^ *+' conftest.er1 >conftest.err
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } >/dev/null && {
7355 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7356 test ! -s conftest.err
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 # Broken: fails on valid input.
7367 rm -f conftest.err conftest.$ac_ext
7369 # OK, works on sane cases. Now check whether nonexistent headers
7370 # can be detected and how.
7371 cat >conftest.$ac_ext <<_ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 #include <ac_nonexistent.h>
7379 if { (ac_try="$ac_cpp conftest.$ac_ext"
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7387 grep -v '^ *+' conftest.er1 >conftest.err
7389 cat conftest.err >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); } >/dev/null && {
7392 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7393 test ! -s conftest.err
7395 # Broken: success on invalid input.
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 # Passes both tests.
7406 rm -f conftest.err conftest.$ac_ext
7409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7410 rm -f conftest.err conftest.$ac_ext
7411 if $ac_preproc_ok; then
7414 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7415 See \`config.log' for more details." >&5
7416 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7417 See \`config.log' for more details." >&2;}
7418 { (exit 1); exit 1; }; }
7422 ac_cpp='$CXXCPP $CPPFLAGS'
7423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7431 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7432 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7434 if test -n "$ac_tool_prefix"; then
7435 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
7437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_prog_F77+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 if test -n "$F77"; then
7445 ac_cv_prog_F77="$F77" # Let the user override the test.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 if test -n "$F77"; then
7466 { echo "$as_me:$LINENO: result: $F77" >&5
7467 echo "${ECHO_T}$F77" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7474 test -n "$F77" && break
7477 if test -z "$F77"; then
7479 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
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 if test -n "$ac_ct_F77"; then
7489 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_ac_ct_F77="$ac_prog"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7509 if test -n "$ac_ct_F77"; then
7510 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7511 echo "${ECHO_T}$ac_ct_F77" >&6; }
7513 { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7518 test -n "$ac_ct_F77" && break
7521 if test "x$ac_ct_F77" = x; then
7524 case $cross_compiling:$ac_tool_warned in
7526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7527 whose name does not start with the host triplet. If you think this
7528 configuration is useful to you, please write to autoconf@gnu.org." >&5
7529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7530 whose name does not start with the host triplet. If you think this
7531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7532 ac_tool_warned=yes ;;
7539 # Provide some information about the compiler.
7540 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7541 ac_compiler=`set X $ac_compile; echo $2`
7542 { (ac_try="$ac_compiler --version >&5"
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_compiler --version >&5") 2>&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }
7552 { (ac_try="$ac_compiler -v >&5"
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_compiler -v >&5") 2>&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }
7562 { (ac_try="$ac_compiler -V >&5"
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_compiler -V >&5") 2>&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }
7574 # If we don't use `.F' as extension, the preprocessor is not run on the
7575 # input file. (Note that this only needs to work for GNU compilers.)
7578 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7579 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7580 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 cat >conftest.$ac_ext <<_ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_compile") 2>conftest.er1
7600 grep -v '^ *+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_f77_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest.$ac_objext; then
7610 echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7620 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7621 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7623 ac_test_FFLAGS=${FFLAGS+set}
7624 ac_save_FFLAGS=$FFLAGS
7626 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7627 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7628 if test "${ac_cv_prog_f77_g+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (ac_try="$ac_compile"
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_compile") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && {
7651 test -z "$ac_f77_werror_flag" ||
7652 test ! -s conftest.err
7653 } && test -s conftest.$ac_objext; then
7654 ac_cv_prog_f77_g=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7666 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7667 if test "$ac_test_FFLAGS" = set; then
7668 FFLAGS=$ac_save_FFLAGS
7669 elif test $ac_cv_prog_f77_g = yes; then
7670 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7676 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7683 G77=`test $ac_compiler_gnu = yes && echo yes`
7685 ac_cpp='$CPP $CPPFLAGS'
7686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7694 # find the maximum length of command line arguments
7695 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7696 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7697 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 # On DJGPP, this test can blow up pretty badly due to problems in libc
7706 # (any single argument exceeding 2000 bytes causes a buffer overrun
7707 # during glob expansion). Even if it were fixed, the result of this
7708 # check would be larger than it should be.
7709 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7713 # Under GNU Hurd, this test is not required because there is
7714 # no limit to the length of command line arguments.
7715 # Libtool will interpret -1 as no limit whatsoever
7716 lt_cv_sys_max_cmd_len=-1;
7720 # On Win9x/ME, this test blows up -- it succeeds, but takes
7721 # about 5 minutes as the teststring grows exponentially.
7722 # Worse, since 9x/ME are not pre-emptively multitasking,
7723 # you end up with a "frozen" computer, even though with patience
7724 # the test eventually succeeds (with a max line length of 256k).
7725 # Instead, let's just punt: use the minimum linelength reported by
7726 # all of the supported platforms: 8192 (on NT/2K/XP).
7727 lt_cv_sys_max_cmd_len=8192;
7731 # On AmigaOS with pdksh, this test takes hours, literally.
7732 # So we just punt and use a minimum line length of 8192.
7733 lt_cv_sys_max_cmd_len=8192;
7736 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7737 # This has been around since 386BSD, at least. Likely further.
7738 if test -x /sbin/sysctl; then
7739 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7740 elif test -x /usr/sbin/sysctl; then
7741 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7743 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7745 # And add a safety zone
7746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7752 # nice to cause kernel panics so lets avoid the loop below.
7753 # First set a reasonable default.
7754 lt_cv_sys_max_cmd_len=16384
7756 if test -x /sbin/sysconfig; then
7757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7763 # If test is not a shell built-in, we'll probably end up computing a
7764 # maximum length that is only half of the actual maximum length, but
7766 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7767 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7768 = "XX$teststring") >/dev/null 2>&1 &&
7769 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7770 lt_cv_sys_max_cmd_len=$new_result &&
7771 test $i != 17 # 1/2 MB should be enough
7774 teststring=$teststring$teststring
7777 # Add a significant safety factor because C++ compilers can tack on massive
7778 # amounts of additional arguments before passing them to the linker.
7779 # It appears as though 1/2 is a usable value.
7780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7786 if test -n $lt_cv_sys_max_cmd_len ; then
7787 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7788 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7790 { echo "$as_me:$LINENO: result: none" >&5
7791 echo "${ECHO_T}none" >&6; }
7797 # Check for command to grab the raw symbol name followed by C symbol from nm.
7798 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7799 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7800 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 # These are sane defaults that work on at least a few old systems.
7805 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7807 # Character class describing NM global symbol codes.
7808 symcode='[BCDEGRST]'
7810 # Regexp to match symbols that can be accessed directly from C.
7811 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7813 # Transform an extracted symbol line into a proper C declaration
7814 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7816 # Transform an extracted symbol line into symbol name and symbol address
7817 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'"
7819 # Define system-specific variables.
7824 cygwin* | mingw* | pw32*)
7825 symcode='[ABCDGISTW]'
7827 hpux*) # Its linker distinguishes data from code symbols
7828 if test "$host_cpu" = ia64; then
7829 symcode='[ABCDEGRST]'
7831 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7832 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'"
7835 if test "$host_cpu" = ia64; then
7836 symcode='[ABCDGIRSTW]'
7837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7838 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'"
7842 symcode='[BCDEGRST]'
7845 symcode='[BCDEGQRST]'
7855 # Handle CRLF in mingw tool chain
7859 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7863 # If we're using GNU nm, then use its standard symbol codes.
7864 case `$NM -V 2>&1` in
7865 *GNU* | *'with BFD'*)
7866 symcode='[ABCDGIRSTW]' ;;
7869 # Try without a prefix undercore, then with it.
7870 for ac_symprfx in "" "_"; do
7872 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7873 symxfrm="\\1 $ac_symprfx\\2 \\2"
7875 # Write the raw and C identifiers.
7876 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7878 # Check to see that the pipe works correctly.
7882 cat > conftest.$ac_ext <<EOF
7887 void nm_test_func(){}
7891 int main(){nm_test_var='a';nm_test_func();return(0);}
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; then
7899 # Now try to grab the symbols.
7901 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7902 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && test -s "$nlist"; then
7906 # Try sorting and uniquifying the output.
7907 if sort "$nlist" | uniq > "$nlist"T; then
7908 mv -f "$nlist"T "$nlist"
7913 # Make sure that we snagged all the symbols we need.
7914 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7915 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7916 cat <<EOF > conftest.$ac_ext
7922 # Now generate the symbol file.
7923 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7925 cat <<EOF >> conftest.$ac_ext
7926 #if defined (__STDC__) && __STDC__
7927 # define lt_ptr_t void *
7929 # define lt_ptr_t char *
7933 /* The mapping between symbol names and symbols. */
7938 lt_preloaded_symbols[] =
7941 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7942 cat <<\EOF >> conftest.$ac_ext
7950 # Now try linking the two files.
7951 mv conftest.$ac_objext conftstm.$ac_objext
7952 lt_save_LIBS="$LIBS"
7953 lt_save_CFLAGS="$CFLAGS"
7954 LIBS="conftstm.$ac_objext"
7955 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957 (eval $ac_link) 2>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7963 LIBS="$lt_save_LIBS"
7964 CFLAGS="$lt_save_CFLAGS"
7966 echo "cannot find nm_test_func in $nlist" >&5
7969 echo "cannot find nm_test_var in $nlist" >&5
7972 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7975 echo "$progname: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7978 rm -f conftest* conftst*
7980 # Do not use the global_symbol_pipe unless it works.
7981 if test "$pipe_works" = yes; then
7984 lt_cv_sys_global_symbol_pipe=
7990 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7991 lt_cv_sys_global_symbol_to_cdecl=
7993 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7994 { echo "$as_me:$LINENO: result: failed" >&5
7995 echo "${ECHO_T}failed" >&6; }
7997 { echo "$as_me:$LINENO: result: ok" >&5
7998 echo "${ECHO_T}ok" >&6; }
8001 { echo "$as_me:$LINENO: checking for objdir" >&5
8002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8003 if test "${lt_cv_objdir+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 rm -f .libs 2>/dev/null
8007 mkdir .libs 2>/dev/null
8008 if test -d .libs; then
8011 # MS-DOS does not allow filenames that begin with a dot.
8014 rmdir .libs 2>/dev/null
8016 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8017 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8018 objdir=$lt_cv_objdir
8026 # AIX sometimes has problems with the GCC collect2 program. For some
8027 # reason, if we set the COLLECT_NAMES environment variable, the problems
8028 # vanish in a puff of smoke.
8029 if test "X${COLLECT_NAMES+set}" != Xset; then
8031 export COLLECT_NAMES
8036 # Sed substitution that helps us do robust quoting. It backslashifies
8037 # metacharacters that are still active within double-quoted strings.
8038 Xsed='sed -e 1s/^X//'
8039 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8041 # Same as above, but do not quote variable references.
8042 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8044 # Sed substitution to delay expansion of an escaped shell variable in a
8045 # double_quote_subst'ed string.
8046 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8048 # Sed substitution to avoid accidental globbing in evaled expressions
8049 no_glob_subst='s/\*/\\\*/g'
8055 default_ofile=libtool
8056 can_build_shared=yes
8058 # All known linkers require a `.a' archive for static linking (except MSVC,
8059 # which needs '.lib').
8061 ltmain="$ac_aux_dir/ltmain.sh"
8062 ofile="$default_ofile"
8063 with_gnu_ld="$lt_cv_prog_gnu_ld"
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}ar; ac_word=$2
8068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8070 if test "${ac_cv_prog_AR+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 if test -n "$AR"; then
8074 ac_cv_prog_AR="$AR" # Let the user override the test.
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8083 ac_cv_prog_AR="${ac_tool_prefix}ar"
8084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 if test -n "$AR"; then
8095 { echo "$as_me:$LINENO: result: $AR" >&5
8096 echo "${ECHO_T}$AR" >&6; }
8098 { echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6; }
8104 if test -z "$ac_cv_prog_AR"; then
8106 # Extract the first word of "ar", so it can be a program name with args.
8107 set dummy ar; ac_word=$2
8108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 if test -n "$ac_ct_AR"; then
8114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_ac_ct_AR="ar"
8124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8134 if test -n "$ac_ct_AR"; then
8135 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8136 echo "${ECHO_T}$ac_ct_AR" >&6; }
8138 { echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6; }
8142 if test "x$ac_ct_AR" = x; then
8145 case $cross_compiling:$ac_tool_warned in
8147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8148 whose name does not start with the host triplet. If you think this
8149 configuration is useful to you, please write to autoconf@gnu.org." >&5
8150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8151 whose name does not start with the host triplet. If you think this
8152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8153 ac_tool_warned=yes ;;
8161 if test -n "$ac_tool_prefix"; then
8162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166 if test "${ac_cv_prog_RANLIB+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 if test -n "$RANLIB"; then
8170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 RANLIB=$ac_cv_prog_RANLIB
8190 if test -n "$RANLIB"; then
8191 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8192 echo "${ECHO_T}$RANLIB" >&6; }
8194 { echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6; }
8200 if test -z "$ac_cv_prog_RANLIB"; then
8201 ac_ct_RANLIB=$RANLIB
8202 # Extract the first word of "ranlib", so it can be a program name with args.
8203 set dummy ranlib; ac_word=$2
8204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8206 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 if test -n "$ac_ct_RANLIB"; then
8210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_ac_ct_RANLIB="ranlib"
8220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8230 if test -n "$ac_ct_RANLIB"; then
8231 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8232 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8234 { echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6; }
8238 if test "x$ac_ct_RANLIB" = x; then
8241 case $cross_compiling:$ac_tool_warned in
8243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8244 whose name does not start with the host triplet. If you think this
8245 configuration is useful to you, please write to autoconf@gnu.org." >&5
8246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8247 whose name does not start with the host triplet. If you think this
8248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8249 ac_tool_warned=yes ;;
8251 RANLIB=$ac_ct_RANLIB
8254 RANLIB="$ac_cv_prog_RANLIB"
8257 if test -n "$ac_tool_prefix"; then
8258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8259 set dummy ${ac_tool_prefix}strip; ac_word=$2
8260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8262 if test "${ac_cv_prog_STRIP+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 if test -n "$STRIP"; then
8266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 STRIP=$ac_cv_prog_STRIP
8286 if test -n "$STRIP"; then
8287 { echo "$as_me:$LINENO: result: $STRIP" >&5
8288 echo "${ECHO_T}$STRIP" >&6; }
8290 { echo "$as_me:$LINENO: result: no" >&5
8291 echo "${ECHO_T}no" >&6; }
8296 if test -z "$ac_cv_prog_STRIP"; then
8298 # Extract the first word of "strip", so it can be a program name with args.
8299 set dummy strip; ac_word=$2
8300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8302 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 if test -n "$ac_ct_STRIP"; then
8306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_prog_ac_ct_STRIP="strip"
8316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8326 if test -n "$ac_ct_STRIP"; then
8327 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8328 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8330 { echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6; }
8334 if test "x$ac_ct_STRIP" = x; then
8337 case $cross_compiling:$ac_tool_warned in
8339 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8340 whose name does not start with the host triplet. If you think this
8341 configuration is useful to you, please write to autoconf@gnu.org." >&5
8342 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8343 whose name does not start with the host triplet. If you think this
8344 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8345 ac_tool_warned=yes ;;
8350 STRIP="$ac_cv_prog_STRIP"
8355 old_CFLAGS="$CFLAGS"
8357 # Set sane defaults for various variables
8358 test -z "$AR" && AR=ar
8359 test -z "$AR_FLAGS" && AR_FLAGS=cru
8360 test -z "$AS" && AS=as
8361 test -z "$CC" && CC=cc
8362 test -z "$LTCC" && LTCC=$CC
8363 test -z "$DLLTOOL" && DLLTOOL=dlltool
8364 test -z "$LD" && LD=ld
8365 test -z "$LN_S" && LN_S="ln -s"
8366 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8367 test -z "$NM" && NM=nm
8368 test -z "$SED" && SED=sed
8369 test -z "$OBJDUMP" && OBJDUMP=objdump
8370 test -z "$RANLIB" && RANLIB=:
8371 test -z "$STRIP" && STRIP=:
8372 test -z "$ac_objext" && ac_objext=o
8374 # Determine commands to create old-style static archives.
8375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8376 old_postinstall_cmds='chmod 644 $oldlib'
8377 old_postuninstall_cmds=
8379 if test -n "$RANLIB"; then
8382 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8385 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8391 for cc_temp in $compiler""; do
8393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8402 # Only perform the check for file, if the check method requires it
8403 case $deplibs_check_method in
8405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8406 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8407 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8408 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8416 lt_save_MAGIC_CMD="$MAGIC_CMD"
8417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8418 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8419 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/${ac_tool_prefix}file; then
8423 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8424 if test -n "$file_magic_test_file"; then
8425 case $deplibs_check_method in
8427 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8430 $EGREP "$file_magic_regex" > /dev/null; then
8435 *** Warning: the command libtool uses to detect shared libraries,
8436 *** $file_magic_cmd, produces output that libtool cannot recognize.
8437 *** The result is that libtool may fail to recognize shared libraries
8438 *** as such. This will affect the creation of libtool libraries that
8439 *** depend on shared libraries, but programs linked with such libtool
8440 *** libraries will work regardless of this problem. Nevertheless, you
8441 *** may want to report the problem to your system manager and/or to
8442 *** bug-libtool@gnu.org
8452 MAGIC_CMD="$lt_save_MAGIC_CMD"
8457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458 if test -n "$MAGIC_CMD"; then
8459 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8460 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8462 { echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6; }
8466 if test -z "$lt_cv_path_MAGIC_CMD"; then
8467 if test -n "$ac_tool_prefix"; then
8468 { echo "$as_me:$LINENO: checking for file" >&5
8469 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8470 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8478 lt_save_MAGIC_CMD="$MAGIC_CMD"
8479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481 for ac_dir in $ac_dummy; do
8483 test -z "$ac_dir" && ac_dir=.
8484 if test -f $ac_dir/file; then
8485 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8486 if test -n "$file_magic_test_file"; then
8487 case $deplibs_check_method in
8489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492 $EGREP "$file_magic_regex" > /dev/null; then
8497 *** Warning: the command libtool uses to detect shared libraries,
8498 *** $file_magic_cmd, produces output that libtool cannot recognize.
8499 *** The result is that libtool may fail to recognize shared libraries
8500 *** as such. This will affect the creation of libtool libraries that
8501 *** depend on shared libraries, but programs linked with such libtool
8502 *** libraries will work regardless of this problem. Nevertheless, you
8503 *** may want to report the problem to your system manager and/or to
8504 *** bug-libtool@gnu.org
8514 MAGIC_CMD="$lt_save_MAGIC_CMD"
8519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520 if test -n "$MAGIC_CMD"; then
8521 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8522 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8524 { echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6; }
8540 # Check whether --enable-libtool-lock was given.
8541 if test "${enable_libtool_lock+set}" = set; then
8542 enableval=$enable_libtool_lock;
8545 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8548 # Check whether --with-pic was given.
8549 if test "${with_pic+set}" = set; then
8550 withval=$with_pic; pic_mode="$withval"
8555 test -z "$pic_mode" && pic_mode=default
8557 # Use C for the default configuration in the libtool script
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8567 # Source file extension for C test sources.
8570 # Object file extension for compiled C test sources.
8574 # Code to be used in simple compile tests
8575 lt_simple_compile_test_code="int some_variable = 0;\n"
8577 # Code to be used in simple link tests
8578 lt_simple_link_test_code='int main(){return(0);}\n'
8581 # If no C compiler was specified, use CC.
8584 # Allow CC to be a program name with arguments.
8588 # save warnings/boilerplate of simple test code
8589 ac_outfile=conftest.$ac_objext
8590 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8591 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8592 _lt_compiler_boilerplate=`cat conftest.err`
8595 ac_outfile=conftest.$ac_objext
8596 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8597 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8598 _lt_linker_boilerplate=`cat conftest.err`
8603 # Check for any special shared library compilation flags.
8606 if test "$GCC" = no; then
8609 lt_prog_cc_shlib='-belf'
8613 if test -n "$lt_prog_cc_shlib"; then
8614 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8615 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8616 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8618 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8619 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8620 lt_cv_prog_cc_can_build_shared=no
8626 # Check to make sure the static flag actually works.
8628 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8629 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8630 if test "${lt_prog_compiler_static_works+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 lt_prog_compiler_static_works=no
8634 save_LDFLAGS="$LDFLAGS"
8635 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8636 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8638 # The linker can only warn and ignore the option if not recognized
8639 # So say no if there are warnings
8640 if test -s conftest.err; then
8641 # Append any errors to the config.log.
8642 cat conftest.err 1>&5
8643 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8644 $SED '/^$/d' conftest.err >conftest.er2
8645 if diff conftest.exp conftest.er2 >/dev/null; then
8646 lt_prog_compiler_static_works=yes
8649 lt_prog_compiler_static_works=yes
8653 LDFLAGS="$save_LDFLAGS"
8656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8657 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8659 if test x"$lt_prog_compiler_static_works" = xyes; then
8662 lt_prog_compiler_static=
8668 lt_prog_compiler_no_builtin_flag=
8670 if test "$GCC" = yes; then
8671 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8674 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8675 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8676 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 lt_cv_prog_compiler_rtti_exceptions=no
8680 ac_outfile=conftest.$ac_objext
8681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8682 lt_compiler_flag="-fno-rtti -fno-exceptions"
8683 # Insert the option either (1) after the last *FLAGS variable, or
8684 # (2) before a word containing "conftest.", or (3) at the end.
8685 # Note that $ac_compile itself does not contain backslashes and begins
8686 # with a dollar sign (not a hyphen), so the echo should work correctly.
8687 # The option is referenced via a variable to avoid confusing sed.
8688 lt_compile=`echo "$ac_compile" | $SED \
8689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691 -e 's:$: $lt_compiler_flag:'`
8692 (eval echo "\"\$as_me:8692: $lt_compile\"" >&5)
8693 (eval "$lt_compile" 2>conftest.err)
8695 cat conftest.err >&5
8696 echo "$as_me:8696: \$? = $ac_status" >&5
8697 if (exit $ac_status) && test -s "$ac_outfile"; then
8698 # The compiler can only warn and ignore the option if not recognized
8699 # So say no if there are warnings other than the usual output.
8700 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8701 $SED '/^$/d' conftest.err >conftest.er2
8702 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8703 lt_cv_prog_compiler_rtti_exceptions=yes
8709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8710 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8712 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8713 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8720 lt_prog_compiler_wl=
8721 lt_prog_compiler_pic=
8722 lt_prog_compiler_static=
8724 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8725 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8727 if test "$GCC" = yes; then
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_static='-static'
8733 # All AIX code is PIC.
8734 if test "$host_cpu" = ia64; then
8735 # AIX 5 now supports IA64 processor
8736 lt_prog_compiler_static='-Bstatic'
8741 # FIXME: we need at least 68020 code to build shared libraries, but
8742 # adding the `-m68020' flag to GCC prevents building anything better,
8744 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8747 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8748 # PIC is the default for these OSes.
8751 mingw* | pw32* | os2*)
8752 # This hack is so that the source file can tell whether it is being
8753 # built for inclusion in a dll (and should export symbols for example).
8754 lt_prog_compiler_pic='-DDLL_EXPORT'
8757 darwin* | rhapsody*)
8758 # PIC is the default on this platform
8759 # Common symbols not allowed in MH_DYLIB files
8760 lt_prog_compiler_pic='-fno-common'
8764 # Just because we use GCC doesn't mean we suddenly get shared libraries
8765 # on systems that don't support them.
8766 lt_prog_compiler_can_build_shared=no
8771 if test -d /usr/nec; then
8772 lt_prog_compiler_pic=-Kconform_pic
8777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8784 lt_prog_compiler_pic='-fPIC'
8790 lt_prog_compiler_pic='-fPIC'
8794 # PORTME Check for flag to pass linker flags through the system compiler.
8797 lt_prog_compiler_wl='-Wl,'
8798 if test "$host_cpu" = ia64; then
8799 # AIX 5 now supports IA64 processor
8800 lt_prog_compiler_static='-Bstatic'
8802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8806 # PIC is the default on this platform
8807 # Common symbols not allowed in MH_DYLIB files
8808 case $cc_basename in
8810 lt_prog_compiler_pic='-qnocommon'
8811 lt_prog_compiler_wl='-Wl,'
8816 mingw* | pw32* | os2*)
8817 # This hack is so that the source file can tell whether it is being
8818 # built for inclusion in a dll (and should export symbols for example).
8819 lt_prog_compiler_pic='-DDLL_EXPORT'
8822 hpux9* | hpux10* | hpux11*)
8823 lt_prog_compiler_wl='-Wl,'
8824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8831 lt_prog_compiler_pic='+Z'
8834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8835 lt_prog_compiler_static='${wl}-a ${wl}archive'
8838 irix5* | irix6* | nonstopux*)
8839 lt_prog_compiler_wl='-Wl,'
8840 # PIC (with -KPIC) is the default.
8841 lt_prog_compiler_static='-non_shared'
8845 lt_prog_compiler_pic='-KPIC'
8846 lt_prog_compiler_static='-Bstatic'
8850 case $cc_basename in
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-static'
8856 pgcc* | pgf77* | pgf90* | pgf95*)
8857 # Portland Group compilers (*not* the Pentium gcc compiler,
8858 # which looks to be a dead project)
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-fpic'
8861 lt_prog_compiler_static='-Bstatic'
8864 lt_prog_compiler_wl='-Wl,'
8865 # All Alpha code is PIC.
8866 lt_prog_compiler_static='-non_shared'
8871 osf3* | osf4* | osf5*)
8872 lt_prog_compiler_wl='-Wl,'
8873 # All OSF/1 code is PIC.
8874 lt_prog_compiler_static='-non_shared'
8878 lt_prog_compiler_pic='-Kpic'
8879 lt_prog_compiler_static='-dn'
8883 lt_prog_compiler_pic='-KPIC'
8884 lt_prog_compiler_static='-Bstatic'
8885 case $cc_basename in
8887 lt_prog_compiler_wl='-Qoption ld ';;
8889 lt_prog_compiler_wl='-Wl,';;
8894 lt_prog_compiler_wl='-Qoption ld '
8895 lt_prog_compiler_pic='-PIC'
8896 lt_prog_compiler_static='-Bstatic'
8899 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8906 if test -d /usr/nec ;then
8907 lt_prog_compiler_pic='-Kconform_pic'
8908 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_wl='-Wl,'
8914 lt_prog_compiler_can_build_shared=no
8918 lt_prog_compiler_pic='-pic'
8919 lt_prog_compiler_static='-Bstatic'
8923 lt_prog_compiler_can_build_shared=no
8928 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8929 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8932 # Check to make sure the PIC flag actually works.
8934 if test -n "$lt_prog_compiler_pic"; then
8936 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8937 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8938 if test "${lt_prog_compiler_pic_works+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 lt_prog_compiler_pic_works=no
8942 ac_outfile=conftest.$ac_objext
8943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8944 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8945 # Insert the option either (1) after the last *FLAGS variable, or
8946 # (2) before a word containing "conftest.", or (3) at the end.
8947 # Note that $ac_compile itself does not contain backslashes and begins
8948 # with a dollar sign (not a hyphen), so the echo should work correctly.
8949 # The option is referenced via a variable to avoid confusing sed.
8950 lt_compile=`echo "$ac_compile" | $SED \
8951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8953 -e 's:$: $lt_compiler_flag:'`
8954 (eval echo "\"\$as_me:8954: $lt_compile\"" >&5)
8955 (eval "$lt_compile" 2>conftest.err)
8957 cat conftest.err >&5
8958 echo "$as_me:8958: \$? = $ac_status" >&5
8959 if (exit $ac_status) && test -s "$ac_outfile"; then
8960 # The compiler can only warn and ignore the option if not recognized
8961 # So say no if there are warnings other than the usual output.
8962 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8963 $SED '/^$/d' conftest.err >conftest.er2
8964 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8965 lt_prog_compiler_pic_works=yes
8971 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8972 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8974 if test x"$lt_prog_compiler_pic_works" = xyes; then
8975 case $lt_prog_compiler_pic in
8977 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8980 lt_prog_compiler_pic=
8981 lt_prog_compiler_can_build_shared=no
8986 # For platforms which do not support PIC, -DPIC is meaningless:
8988 lt_prog_compiler_pic=
8991 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8995 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8996 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8997 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 lt_cv_prog_compiler_c_o=no
9001 $rm -r conftest 2>/dev/null
9005 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9007 lt_compiler_flag="-o out/conftest2.$ac_objext"
9008 # Insert the option either (1) after the last *FLAGS variable, or
9009 # (2) before a word containing "conftest.", or (3) at the end.
9010 # Note that $ac_compile itself does not contain backslashes and begins
9011 # with a dollar sign (not a hyphen), so the echo should work correctly.
9012 lt_compile=`echo "$ac_compile" | $SED \
9013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9015 -e 's:$: $lt_compiler_flag:'`
9016 (eval echo "\"\$as_me:9016: $lt_compile\"" >&5)
9017 (eval "$lt_compile" 2>out/conftest.err)
9019 cat out/conftest.err >&5
9020 echo "$as_me:9020: \$? = $ac_status" >&5
9021 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9023 # The compiler can only warn and ignore the option if not recognized
9024 # So say no if there are warnings
9025 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
9026 $SED '/^$/d' out/conftest.err >out/conftest.er2
9027 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9028 lt_cv_prog_compiler_c_o=yes
9033 # SGI C++ compiler will create directory out/ii_files/ for
9034 # template instantiation
9035 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9036 $rm out/* && rmdir out
9042 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9043 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9046 hard_links="nottested"
9047 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9048 # do not overwrite the value of need_locks provided by the user
9049 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9050 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9055 ln conftest.a conftest.b 2>&5 || hard_links=no
9056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057 { echo "$as_me:$LINENO: result: $hard_links" >&5
9058 echo "${ECHO_T}$hard_links" >&6; }
9059 if test "$hard_links" = no; then
9060 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9061 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9068 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9069 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9072 allow_undefined_flag=
9073 enable_shared_with_static_runtimes=no
9075 archive_expsym_cmds=
9076 old_archive_From_new_cmds=
9077 old_archive_from_expsyms_cmds=
9078 export_dynamic_flag_spec=
9079 whole_archive_flag_spec=
9080 thread_safe_flag_spec=
9081 hardcode_libdir_flag_spec=
9082 hardcode_libdir_flag_spec_ld=
9083 hardcode_libdir_separator=
9086 hardcode_shlibpath_var=unsupported
9087 link_all_deplibs=unknown
9088 hardcode_automatic=no
9091 always_export_symbols=no
9092 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9093 # include_expsyms should be a list of space-separated symbols to be *always*
9094 # included in the symbol list
9096 # exclude_expsyms can be an extended regexp of symbols to exclude
9097 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9098 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9099 # as well as any symbol that contains `d'.
9100 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9101 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9102 # platforms (ab)use it in PIC code, but their linkers get confused if
9103 # the symbol is explicitly referenced. Since portable code cannot
9104 # rely on this symbol name, it's probably fine to never include it in
9105 # preloaded symbol tables.
9106 extract_expsyms_cmds=
9107 # Just being paranoid about ensuring that cc_basename is set.
9108 for cc_temp in $compiler""; do
9110 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9111 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9116 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9119 cygwin* | mingw* | pw32*)
9120 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9121 # When not using gcc, we currently assume that we are using
9122 # Microsoft Visual C++.
9123 if test "$GCC" != yes; then
9133 if test "$with_gnu_ld" = yes; then
9134 # If archive_cmds runs LD, not CC, wlarc should be empty
9137 # Set some defaults for GNU ld with shared library support. These
9138 # are reset later if shared libraries are not supported. Putting them
9139 # here allows them to be overridden if necessary.
9140 runpath_var=LD_RUN_PATH
9141 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9142 export_dynamic_flag_spec='${wl}--export-dynamic'
9143 # ancient GNU ld didn't support --whole-archive et. al.
9144 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9145 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9147 whole_archive_flag_spec=
9149 supports_anon_versioning=no
9150 case `$LD -v 2>/dev/null` in
9151 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9152 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9153 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9154 *\ 2.11.*) ;; # other 2.11 versions
9155 *) supports_anon_versioning=yes ;;
9158 # See if GNU ld supports shared libraries.
9160 aix3* | aix4* | aix5*)
9161 # On AIX/PPC, the GNU linker is very broken
9162 if test "$host_cpu" != ia64; then
9166 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9167 *** to be unable to reliably create shared libraries on AIX.
9168 *** Therefore, libtool is disabling shared libraries support. If you
9169 *** really care for shared libraries, you may want to modify your PATH
9170 *** so that a non-GNU linker is found, and then restart.
9177 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)'
9178 hardcode_libdir_flag_spec='-L$libdir'
9179 hardcode_minus_L=yes
9181 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9182 # that the semantics of dynamic libraries on AmigaOS, at least up
9183 # to version 4, is to share data among multiple programs linked
9184 # with the same dynamic library. Since this doesn't match the
9185 # behavior of shared libraries on other platforms, we can't use
9191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9192 allow_undefined_flag=unsupported
9193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9194 # support --undefined. This deserves some investigation. FIXME
9195 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 cygwin* | mingw* | pw32*)
9202 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9203 # as there is no search path for DLLs.
9204 hardcode_libdir_flag_spec='-L$libdir'
9205 allow_undefined_flag=unsupported
9206 always_export_symbols=no
9207 enable_shared_with_static_runtimes=yes
9208 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9210 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9212 # If the export-symbols file already is a .def file (1st line
9213 # is EXPORTS), use it as is; otherwise, prepend...
9214 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9215 cp $export_symbols $output_objdir/$soname.def;
9217 echo EXPORTS > $output_objdir/$soname.def;
9218 cat $export_symbols >> $output_objdir/$soname.def;
9220 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9229 case $cc_basename,$host_cpu in
9230 pgcc*) # Portland Group C compiler
9231 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'
9232 tmp_addflag=' $pic_flag'
9234 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9235 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'
9236 tmp_addflag=' $pic_flag -Mnomain' ;;
9237 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9238 tmp_addflag=' -i_dynamic' ;;
9239 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9240 tmp_addflag=' -i_dynamic -nofor_main' ;;
9241 ifc* | ifort*) # Intel Fortran compiler
9242 tmp_addflag=' -nofor_main' ;;
9244 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 if test $supports_anon_versioning = yes; then
9247 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9249 $echo "local: *; };" >> $output_objdir/$libname.ver~
9250 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9259 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9268 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9272 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9273 *** create shared libraries on Solaris systems. Therefore, libtool
9274 *** is disabling shared libraries support. We urge you to upgrade GNU
9275 *** binutils to release 2.9.1 or newer. Another option is to modify
9276 *** your PATH or compiler configuration so that the native linker is
9277 *** used, and then restart.
9280 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9289 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_shlibpath_var=no
9296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9305 if test "$ld_shlibs" = no; then
9307 hardcode_libdir_flag_spec=
9308 export_dynamic_flag_spec=
9309 whole_archive_flag_spec=
9312 # PORTME fill in a description of your system's linker (not GNU ld)
9315 allow_undefined_flag=unsupported
9316 always_export_symbols=yes
9317 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'
9318 # Note: this linker hardcodes the directories in LIBPATH if there
9319 # are no directories specified by -L.
9320 hardcode_minus_L=yes
9321 if test "$GCC" = yes && test -z "$link_static_flag"; then
9322 # Neither direct hardcoding nor static linking is supported with a
9324 hardcode_direct=unsupported
9329 if test "$host_cpu" = ia64; then
9330 # On IA64, the linker does run time linking by default, so we don't
9331 # have to do anything special.
9332 aix_use_runtimelinking=no
9333 exp_sym_flag='-Bexport'
9336 # If we're using GNU nm, then we don't want the "-C" option.
9337 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9338 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9339 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'
9341 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'
9343 aix_use_runtimelinking=no
9345 # Test if we are trying to use run time linking or normal
9346 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9347 # need to do runtime linking.
9348 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9349 for ld_flag in $LDFLAGS; do
9350 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9351 aix_use_runtimelinking=yes
9357 exp_sym_flag='-bexport'
9358 no_entry_flag='-bnoentry'
9361 # When large executables or shared objects are built, AIX ld can
9362 # have problems creating the table of contents. If linking a library
9363 # or program results in "error TOC overflow" add -mminimal-toc to
9364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9369 hardcode_libdir_separator=':'
9370 link_all_deplibs=yes
9372 if test "$GCC" = yes; then
9373 case $host_os in aix4.[012]|aix4.[012].*)
9374 # We only want to do this on AIX 4.2 and lower, the check
9375 # below for broken collect2 doesn't work under 4.3+
9376 collect2name=`${CC} -print-prog-name=collect2`
9377 if test -f "$collect2name" && \
9378 strings "$collect2name" | grep resolve_lib_name >/dev/null
9380 # We have reworked collect2
9383 # We have old collect2
9384 hardcode_direct=unsupported
9385 # It fails to find uninstalled libraries when the uninstalled
9386 # path is not listed in the libpath. Setting hardcode_minus_L
9387 # to unsupported forces relinking
9388 hardcode_minus_L=yes
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_libdir_separator=
9393 shared_flag='-shared'
9394 if test "$aix_use_runtimelinking" = yes; then
9395 shared_flag="$shared_flag "'${wl}-G'
9399 if test "$host_cpu" = ia64; then
9400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9401 # chokes on -Wl,-G. The following line is correct:
9404 if test "$aix_use_runtimelinking" = yes; then
9405 shared_flag='${wl}-G'
9407 shared_flag='${wl}-bM:SRE'
9412 # It seems that -bexpall does not export symbols beginning with
9413 # underscore (_), so it is better to generate a list of symbols to export.
9414 always_export_symbols=yes
9415 if test "$aix_use_runtimelinking" = yes; then
9416 # Warning - without using the other runtime loading flags (-brtl),
9417 # -berok will link without error, but may produce a broken library.
9418 allow_undefined_flag='-berok'
9419 # Determine the default libpath from the value encoded in an empty executable.
9420 cat >conftest.$ac_ext <<_ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_link") 2>conftest.er1
9444 grep -v '^ *+' conftest.er1 >conftest.err
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && {
9449 test -z "$ac_c_werror_flag" ||
9450 test ! -s conftest.err
9451 } && test -s conftest$ac_exeext &&
9452 $as_test_x conftest$ac_exeext; then
9454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9456 # Check for a 64-bit object if we didn't find anything.
9457 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9467 conftest$ac_exeext conftest.$ac_ext
9468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9471 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9473 if test "$host_cpu" = ia64; then
9474 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9475 allow_undefined_flag="-z nodefs"
9476 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9478 # Determine the default libpath from the value encoded in an empty executable.
9479 cat >conftest.$ac_ext <<_ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_link") 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest$ac_exeext &&
9511 $as_test_x conftest$ac_exeext; then
9513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9515 # Check for a 64-bit object if we didn't find anything.
9516 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9530 # Warning - without using the other run time loading flags,
9531 # -berok will link without error, but may produce a broken library.
9532 no_undefined_flag=' ${wl}-bernotok'
9533 allow_undefined_flag=' ${wl}-berok'
9534 # -bexpall does not export symbols beginning with underscore (_)
9535 always_export_symbols=yes
9536 # Exported symbols can be pulled into shared objects from archives
9537 whole_archive_flag_spec=' '
9538 archive_cmds_need_lc=yes
9539 # This is similar to how AIX traditionally builds its shared libraries.
9540 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9546 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)'
9547 hardcode_libdir_flag_spec='-L$libdir'
9548 hardcode_minus_L=yes
9549 # see comment about different semantics on the GNU ld section
9554 export_dynamic_flag_spec=-rdynamic
9557 cygwin* | mingw* | pw32*)
9558 # When not using gcc, we currently assume that we are using
9559 # Microsoft Visual C++.
9560 # hardcode_libdir_flag_spec is actually meaningless, as there is
9561 # no search path for DLLs.
9562 hardcode_libdir_flag_spec=' '
9563 allow_undefined_flag=unsupported
9564 # Tell ltmain to make .lib files, not .a files.
9566 # Tell ltmain to make .dll files, not .so files.
9568 # FIXME: Setting linknames here is a bad hack.
9569 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9570 # The linker will automatically build a .lib file if we build a DLL.
9571 old_archive_From_new_cmds='true'
9572 # FIXME: Should let the user specify the lib program.
9573 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9574 fix_srcfile_path='`cygpath -w "$srcfile"`'
9575 enable_shared_with_static_runtimes=yes
9578 darwin* | rhapsody*)
9580 rhapsody* | darwin1.[012])
9581 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9584 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9585 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9587 case ${MACOSX_DEPLOYMENT_TARGET} in
9589 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9592 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9598 archive_cmds_need_lc=no
9600 hardcode_automatic=yes
9601 hardcode_shlibpath_var=unsupported
9602 whole_archive_flag_spec=''
9603 link_all_deplibs=yes
9604 if test "$GCC" = yes ; then
9605 output_verbose_link_cmd='echo'
9606 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9607 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9608 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9609 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9610 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}'
9612 case $cc_basename in
9614 output_verbose_link_cmd='echo'
9615 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9616 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9618 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9619 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}'
9629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_libdir_flag_spec='-L$libdir'
9631 hardcode_shlibpath_var=no
9638 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9639 # support. Future versions do this automatically, but an explicit c++rt0.o
9640 # does not break anything, and helps significantly (at the cost of a little
9643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9644 hardcode_libdir_flag_spec='-R$libdir'
9646 hardcode_shlibpath_var=no
9649 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_minus_L=yes
9654 hardcode_shlibpath_var=no
9657 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9658 freebsd* | kfreebsd*-gnu | dragonfly*)
9659 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9660 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_shlibpath_var=no
9666 if test "$GCC" = yes; then
9667 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'
9669 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'
9671 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9672 hardcode_libdir_separator=:
9675 # hardcode_minus_L: Not really in the search PATH,
9676 # but as the default location of the library.
9677 hardcode_minus_L=yes
9678 export_dynamic_flag_spec='${wl}-E'
9682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9685 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 if test "$with_gnu_ld" = no; then
9704 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9705 hardcode_libdir_flag_spec_ld='+b $libdir'
9706 hardcode_libdir_separator=:
9708 hardcode_shlibpath_var=no
9711 hardcode_libdir_flag_spec='-L$libdir'
9713 hardcode_shlibpath_var=no
9715 # hardcode_minus_L: Not really in the search PATH,
9716 # but as the default location of the library.
9717 hardcode_minus_L=yes
9720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9721 hardcode_libdir_separator=:
9723 export_dynamic_flag_spec='${wl}-E'
9725 # hardcode_minus_L: Not really in the search PATH,
9726 # but as the default location of the library.
9727 hardcode_minus_L=yes
9733 irix5* | irix6* | nonstopux*)
9734 if test "$GCC" = yes; then
9735 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'
9737 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'
9738 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741 hardcode_libdir_separator=:
9742 link_all_deplibs=yes
9746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9749 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9751 hardcode_libdir_flag_spec='-R$libdir'
9753 hardcode_shlibpath_var=no
9757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760 hardcode_libdir_separator=:
9761 hardcode_shlibpath_var=no
9766 hardcode_shlibpath_var=no
9767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9771 export_dynamic_flag_spec='${wl}-E'
9774 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_libdir_flag_spec='-R$libdir'
9779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9787 hardcode_libdir_flag_spec='-L$libdir'
9788 hardcode_minus_L=yes
9789 allow_undefined_flag=unsupported
9790 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'
9791 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9795 if test "$GCC" = yes; then
9796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9797 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'
9799 allow_undefined_flag=' -expect_unresolved \*'
9800 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'
9802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803 hardcode_libdir_separator=:
9806 osf4* | osf5*) # as osf3* with the addition of -msym flag
9807 if test "$GCC" = yes; then
9808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9809 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'
9810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812 allow_undefined_flag=' -expect_unresolved \*'
9813 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'
9814 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9815 $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'
9817 # Both c and cxx compiler support -rpath directly
9818 hardcode_libdir_flag_spec='-rpath $libdir'
9820 hardcode_libdir_separator=:
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_shlibpath_var=no
9826 export_dynamic_flag_spec='${wl}-Bexport'
9827 runpath_var=LD_RUN_PATH
9828 hardcode_runpath_var=yes
9832 no_undefined_flag=' -z text'
9833 if test "$GCC" = yes; then
9835 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9837 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9840 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9844 hardcode_libdir_flag_spec='-R$libdir'
9845 hardcode_shlibpath_var=no
9847 solaris2.[0-5] | solaris2.[0-5].*) ;;
9849 # The compiler driver will combine linker options so we
9850 # cannot just pass the convience library names through
9851 # without $wl, iff we do not link with $LD.
9852 # Luckily, gcc supports the same syntax we need for Sun Studio.
9853 # Supported since Solaris 2.6 (maybe 2.5.1?)
9856 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9858 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9861 link_all_deplibs=yes
9865 if test "x$host_vendor" = xsequent; then
9866 # Use $CC to link under sequent, because it throws in some extra .o
9867 # files that make .init and .fini sections work.
9868 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9872 hardcode_libdir_flag_spec='-L$libdir'
9874 hardcode_minus_L=yes
9875 hardcode_shlibpath_var=no
9879 case $host_vendor in
9881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9882 hardcode_direct=yes # is this really true???
9885 ## LD is ld it makes a PLAMLIB
9886 ## CC just makes a GrossModule.
9887 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9888 reload_cmds='$CC -r -o $output$reload_objs'
9892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9896 runpath_var='LD_RUN_PATH'
9897 hardcode_shlibpath_var=no
9901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902 hardcode_shlibpath_var=no
9903 export_dynamic_flag_spec='-Bexport'
9907 if test -d /usr/nec; then
9908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909 hardcode_shlibpath_var=no
9910 runpath_var=LD_RUN_PATH
9911 hardcode_runpath_var=yes
9917 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9920 hardcode_shlibpath_var=no
9921 hardcode_runpath_var=yes
9922 runpath_var=LD_RUN_PATH
9925 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9926 no_undefined_flag='${wl}-z ${wl}text'
9927 if test "$GCC" = yes; then
9928 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 runpath_var='LD_RUN_PATH'
9933 hardcode_shlibpath_var=no
9937 no_undefined_flag=' -z text'
9938 # $CC -shared without GNU ld will not create a library from C++
9939 # object files and a static libstdc++, better avoid it by now
9940 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9942 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9943 hardcode_libdir_flag_spec=
9944 hardcode_shlibpath_var=no
9945 runpath_var='LD_RUN_PATH'
9949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950 hardcode_libdir_flag_spec='-L$libdir'
9951 hardcode_shlibpath_var=no
9960 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9961 echo "${ECHO_T}$ld_shlibs" >&6; }
9962 test "$ld_shlibs" = no && can_build_shared=no
9964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9965 if test "$GCC" = yes; then
9966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9970 # Do we need to explicitly link libc?
9972 case "x$archive_cmds_need_lc" in
9974 # Assume -lc should be added
9975 archive_cmds_need_lc=yes
9977 if test "$enable_shared" = yes && test "$GCC" = yes; then
9978 case $archive_cmds in
9980 # FIXME: we may have to deal with multi-command sequences.
9983 # Test whether the compiler implicitly links with -lc since on some
9984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9985 # to ld, don't add -lc before -lgcc.
9986 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9987 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9989 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9992 (eval $ac_compile) 2>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } 2>conftest.err; then
9998 libobjs=conftest.$ac_objext
10000 wl=$lt_prog_compiler_wl
10006 lt_save_allow_undefined_flag=$allow_undefined_flag
10007 allow_undefined_flag=
10008 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10009 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }
10014 archive_cmds_need_lc=no
10016 archive_cmds_need_lc=yes
10018 allow_undefined_flag=$lt_save_allow_undefined_flag
10020 cat conftest.err 1>&5
10023 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10024 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10031 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10032 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10033 library_names_spec=
10034 libname_spec='lib$name'
10038 postuninstall_cmds=
10042 shlibpath_overrides_runpath=unknown
10044 dynamic_linker="$host_os ld.so"
10045 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10046 if test "$GCC" = yes; then
10047 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10048 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10049 # if the path contains ";" then we assume it to be the separator
10050 # otherwise default to the standard path separator (i.e. ":") - it is
10051 # assumed that no part of a normal pathname contains ";" but that should
10052 # okay in the real world where ";" in dirpaths is itself problematic.
10053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10058 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10060 need_lib_prefix=unknown
10061 hardcode_into_libs=no
10063 # when you set need_version to no, make sure it does not cause -set_version
10064 # flags to be left without arguments
10065 need_version=unknown
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10071 shlibpath_var=LIBPATH
10073 # AIX 3 has no versioning support, so we append a major version to the name.
10074 soname_spec='${libname}${release}${shared_ext}$major'
10081 hardcode_into_libs=yes
10082 if test "$host_cpu" = ia64; then
10083 # AIX 5 supports IA64
10084 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10085 shlibpath_var=LD_LIBRARY_PATH
10087 # With GCC up to 2.95.x, collect2 would create an import file
10088 # for dependence libraries. The import file would start with
10089 # the line `#! .'. This would cause the generated library to
10090 # depend on `.', always an invalid library. This was fixed in
10091 # development snapshots of GCC prior to 3.0.
10093 aix4 | aix4.[01] | aix4.[01].*)
10094 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10096 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10099 can_build_shared=no
10103 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10104 # soname into executable. Probably we can add versioning support to
10105 # collect2, so additional links can be useful in future.
10106 if test "$aix_use_runtimelinking" = yes; then
10107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10108 # instead of lib<name>.a to let people know that these are not
10109 # typical AIX shared libraries.
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 # We preserve .a as extension for shared libraries through AIX4.2
10113 # and later when we are not doing run time linking.
10114 library_names_spec='${libname}${release}.a $libname.a'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10117 shlibpath_var=LIBPATH
10122 library_names_spec='$libname.ixlibrary $libname.a'
10123 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10124 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'
10128 library_names_spec='${libname}${shared_ext}'
10129 dynamic_linker="$host_os ld.so"
10130 shlibpath_var=LIBRARY_PATH
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10141 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10142 # the default ld.so.conf also contains /usr/contrib/lib and
10143 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10144 # libtool to hard-code these into programs
10147 cygwin* | mingw* | pw32*)
10148 version_type=windows
10153 case $GCC,$host_os in
10154 yes,cygwin* | yes,mingw* | yes,pw32*)
10155 library_names_spec='$libname.dll.a'
10156 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10157 postinstall_cmds='base_file=`basename \${file}`~
10158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10159 dldir=$destdir/`dirname \$dlpath`~
10160 test -d \$dldir || mkdir -p \$dldir~
10161 $install_prog $dir/$dlname \$dldir/$dlname~
10162 chmod a+x \$dldir/$dlname'
10163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10164 dlpath=$dir/\$dldll~
10166 shlibpath_overrides_runpath=yes
10170 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10171 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10175 # MinGW DLLs use traditional 'lib' prefix
10176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10178 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10179 # It is most probably a Windows format PATH printed by
10180 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10181 # path with ; separators, and with drive letters. We can handle the
10182 # drive letters (cygwin fileutils understands them), so leave them,
10183 # especially as we might pass files found there to a mingw objdump,
10184 # which wouldn't understand a cygwinified path. Ahh.
10185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10191 # pw32 DLLs use 'pw' prefix rather than 'lib'
10192 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10198 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10201 dynamic_linker='Win32 ld.exe'
10202 # FIXME: first we should search . and the directory the executable is in
10206 darwin* | rhapsody*)
10207 dynamic_linker="$host_os dyld"
10208 version_type=darwin
10211 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10212 soname_spec='${libname}${release}${major}$shared_ext'
10213 shlibpath_overrides_runpath=yes
10214 shlibpath_var=DYLD_LIBRARY_PATH
10215 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10216 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10217 if test "$GCC" = yes; then
10218 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10220 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10222 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 shlibpath_var=LD_LIBRARY_PATH
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 dynamic_linker='GNU ld.so'
10250 freebsd* | dragonfly*)
10251 # DragonFly does not have aout. When/if they implement a new
10252 # versioning mechanism, adjust this.
10253 if test -x /usr/bin/objformat; then
10254 objformat=`/usr/bin/objformat`
10257 freebsd[123]*) objformat=aout ;;
10258 *) objformat=elf ;;
10261 version_type=freebsd-$objformat
10262 case $version_type in
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10273 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10278 freebsd3.[01]* | freebsdelf3.[01]*)
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10283 shlibpath_overrides_runpath=no
10284 hardcode_into_libs=yes
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 hardcode_into_libs=yes
10299 hpux9* | hpux10* | hpux11*)
10300 # Give a soname corresponding to the major version so that dld.sl refuses to
10301 # link against other versions.
10308 hardcode_into_libs=yes
10309 dynamic_linker="$host_os dld.so"
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 if test "X$HPUX_IA64_MODE" = X32; then
10315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10323 hardcode_into_libs=yes
10324 dynamic_linker="$host_os dld.sl"
10325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10334 dynamic_linker="$host_os dld.sl"
10335 shlibpath_var=SHLIB_PATH
10336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10342 postinstall_cmds='chmod 555 $lib'
10345 irix5* | irix6* | nonstopux*)
10347 nonstopux*) version_type=nonstopux ;;
10349 if test "$lt_cv_prog_gnu_ld" = yes; then
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10360 irix5* | nonstopux*)
10361 libsuff= shlibsuff=
10364 case $LD in # libtool.m4 will add one of these switches to LD
10365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10366 libsuff= shlibsuff= libmagic=32-bit;;
10367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10368 libsuff=32 shlibsuff=N32 libmagic=N32;;
10369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10371 *) libsuff= shlibsuff= libmagic=never-match;;
10375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10376 shlibpath_overrides_runpath=no
10377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10379 hardcode_into_libs=yes
10382 # No shared lib support for Linux oldld, aout, or coff.
10383 linux*oldld* | linux*aout* | linux*coff*)
10387 # This must be Linux ELF.
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=no
10397 # This implies no fast_install, which is unacceptable.
10398 # Some rework will be needed to allow for fast_install
10399 # before this can be enabled.
10400 hardcode_into_libs=yes
10402 # Append ld.so.conf contents to the search path
10403 if test -f /etc/ld.so.conf; then
10404 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10408 # We used to test for /lib/ld.so.1 and disable shared libraries on
10409 # powerpc, because MkLinux only supported shared libraries with the
10410 # GNU dynamic linker. Since this was broken with cross compilers,
10411 # most powerpc-linux boxes support dynamic linking these days and
10412 # people can always --disable-shared, the test was removed, and we
10413 # assume the GNU/Linux dynamic linker is in use.
10414 dynamic_linker='GNU/Linux ld.so'
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=no
10425 hardcode_into_libs=yes
10426 dynamic_linker='GNU ld.so'
10433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10436 dynamic_linker='NetBSD (a.out) ld.so'
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 dynamic_linker='NetBSD ld.elf_so'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 hardcode_into_libs=yes
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10470 *) need_version=no ;;
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10474 shlibpath_var=LD_LIBRARY_PATH
10475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10477 openbsd2.[89] | openbsd2.[89].*)
10478 shlibpath_overrides_runpath=no
10481 shlibpath_overrides_runpath=yes
10485 shlibpath_overrides_runpath=yes
10490 libname_spec='$name'
10493 library_names_spec='$libname${shared_ext} $libname.a'
10494 dynamic_linker='OS/2 ld.exe'
10495 shlibpath_var=LIBPATH
10498 osf3* | osf4* | osf5*)
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 shlibpath_var=LD_LIBRARY_PATH
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 shlibpath_overrides_runpath=yes
10524 hardcode_into_libs=yes
10525 # ldd complains unless libraries are executable
10526 postinstall_cmds='chmod +x $lib'
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 if test "$with_gnu_ld" = yes; then
10541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 case $host_vendor in
10548 shlibpath_overrides_runpath=no
10550 export_dynamic_flag_spec='${wl}-Blargedynsym'
10551 runpath_var=LD_RUN_PATH
10559 shlibpath_overrides_runpath=no
10560 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10566 if test -d /usr/nec ;then
10568 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10569 soname_spec='$libname${shared_ext}.$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 shlibpath_var=LD_LIBRARY_PATH
10585 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10586 echo "${ECHO_T}$dynamic_linker" >&6; }
10587 test "$dynamic_linker" = no && can_build_shared=no
10589 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10590 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10592 if test -n "$hardcode_libdir_flag_spec" || \
10593 test -n "$runpath_var" || \
10594 test "X$hardcode_automatic" = "Xyes" ; then
10596 # We can hardcode non-existant directories.
10597 if test "$hardcode_direct" != no &&
10598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10599 # have to relink, otherwise we might link with an installed library
10600 # when we should be linking with a yet-to-be-installed one
10601 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10602 test "$hardcode_minus_L" != no; then
10603 # Linking always hardcodes the temporary library directory.
10604 hardcode_action=relink
10606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10607 hardcode_action=immediate
10610 # We cannot hardcode anything, or else we can only hardcode existing
10612 hardcode_action=unsupported
10614 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10615 echo "${ECHO_T}$hardcode_action" >&6; }
10617 if test "$hardcode_action" = relink; then
10618 # Fast installation is not supported
10619 enable_fast_install=no
10620 elif test "$shlibpath_overrides_runpath" = yes ||
10621 test "$enable_shared" = no; then
10622 # Fast installation is not necessary
10623 enable_fast_install=needless
10628 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10629 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10630 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10631 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10632 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10633 { echo "$as_me:$LINENO: result: yes" >&5
10634 echo "${ECHO_T}yes" >&6; }
10636 # FIXME - insert some real tests, host_os isn't really good enough
10639 if test -n "$STRIP" ; then
10640 striplib="$STRIP -x"
10641 { echo "$as_me:$LINENO: result: yes" >&5
10642 echo "${ECHO_T}yes" >&6; }
10644 { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10649 { echo "$as_me:$LINENO: result: no" >&5
10650 echo "${ECHO_T}no" >&6; }
10655 if test "x$enable_dlopen" != xyes; then
10656 enable_dlopen=unknown
10657 enable_dlopen_self=unknown
10658 enable_dlopen_self_static=unknown
10665 lt_cv_dlopen="load_add_on"
10667 lt_cv_dlopen_self=yes
10671 lt_cv_dlopen="LoadLibrary"
10676 lt_cv_dlopen="dlopen"
10681 # if libdl is installed we need to link against it
10682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10683 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10684 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 ac_check_lib_save_LIBS=$LIBS
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_link") 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest$ac_exeext &&
10728 $as_test_x conftest$ac_exeext; then
10729 ac_cv_lib_dl_dlopen=yes
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_lib_dl_dlopen=no
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738 conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10743 if test $ac_cv_lib_dl_dlopen = yes; then
10744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10747 lt_cv_dlopen="dyld"
10749 lt_cv_dlopen_self=yes
10756 { echo "$as_me:$LINENO: checking for shl_load" >&5
10757 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10758 if test "${ac_cv_func_shl_load+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10769 #define shl_load innocuous_shl_load
10771 /* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char shl_load (); below.
10773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10774 <limits.h> exists even on freestanding compilers. */
10777 # include <limits.h>
10779 # include <assert.h>
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined __stub_shl_load || defined __stub___shl_load
10801 return shl_load ();
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_link") 2>conftest.er1
10815 grep -v '^ *+' conftest.er1 >conftest.err
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && {
10820 test -z "$ac_c_werror_flag" ||
10821 test ! -s conftest.err
10822 } && test -s conftest$ac_exeext &&
10823 $as_test_x conftest$ac_exeext; then
10824 ac_cv_func_shl_load=yes
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 ac_cv_func_shl_load=no
10832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10833 conftest$ac_exeext conftest.$ac_ext
10835 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10836 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10837 if test $ac_cv_func_shl_load = yes; then
10838 lt_cv_dlopen="shl_load"
10840 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10841 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10842 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 ac_check_lib_save_LIBS=$LIBS
10847 cat >conftest.$ac_ext <<_ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10864 return shl_load ();
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (ac_try="$ac_link"
10871 case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_link") 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && {
10883 test -z "$ac_c_werror_flag" ||
10884 test ! -s conftest.err
10885 } && test -s conftest$ac_exeext &&
10886 $as_test_x conftest$ac_exeext; then
10887 ac_cv_lib_dld_shl_load=yes
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_cv_lib_dld_shl_load=no
10895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10900 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10901 if test $ac_cv_lib_dld_shl_load = yes; then
10902 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10904 { echo "$as_me:$LINENO: checking for dlopen" >&5
10905 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10906 if test "${ac_cv_func_dlopen+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 cat >conftest.$ac_ext <<_ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10917 #define dlopen innocuous_dlopen
10919 /* System header to define __stub macros and hopefully few prototypes,
10920 which can conflict with char dlopen (); below.
10921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10922 <limits.h> exists even on freestanding compilers. */
10925 # include <limits.h>
10927 # include <assert.h>
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10939 /* The GNU C library defines this for functions which it implements
10940 to always fail with ENOSYS. Some functions are actually named
10941 something starting with __ and the normal name is an alias. */
10942 #if defined __stub_dlopen || defined __stub___dlopen
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (ac_try="$ac_link"
10956 case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_link") 2>conftest.er1
10963 grep -v '^ *+' conftest.er1 >conftest.err
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest$ac_exeext &&
10971 $as_test_x conftest$ac_exeext; then
10972 ac_cv_func_dlopen=yes
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ac_cv_func_dlopen=no
10980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10981 conftest$ac_exeext conftest.$ac_ext
10983 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10984 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10985 if test $ac_cv_func_dlopen = yes; then
10986 lt_cv_dlopen="dlopen"
10988 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10989 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10990 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 ac_check_lib_save_LIBS=$LIBS
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (ac_try="$ac_link"
11019 case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_link") 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } && {
11031 test -z "$ac_c_werror_flag" ||
11032 test ! -s conftest.err
11033 } && test -s conftest$ac_exeext &&
11034 $as_test_x conftest$ac_exeext; then
11035 ac_cv_lib_dl_dlopen=yes
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_cv_lib_dl_dlopen=no
11043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11044 conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11047 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11049 if test $ac_cv_lib_dl_dlopen = yes; then
11050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11052 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11053 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11054 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 ac_check_lib_save_LIBS=$LIBS
11058 LIBS="-lsvld $LIBS"
11059 cat >conftest.$ac_ext <<_ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11066 /* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11081 rm -f conftest.$ac_objext conftest$ac_exeext
11082 if { (ac_try="$ac_link"
11083 case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_link") 2>conftest.er1
11090 grep -v '^ *+' conftest.er1 >conftest.err
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && {
11095 test -z "$ac_c_werror_flag" ||
11096 test ! -s conftest.err
11097 } && test -s conftest$ac_exeext &&
11098 $as_test_x conftest$ac_exeext; then
11099 ac_cv_lib_svld_dlopen=yes
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11104 ac_cv_lib_svld_dlopen=no
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11111 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11112 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11113 if test $ac_cv_lib_svld_dlopen = yes; then
11114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11116 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11117 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11118 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 ac_check_lib_save_LIBS=$LIBS
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11130 /* Override any GCC internal prototype to avoid an error.
11131 Use char because int might match the return type of a GCC
11132 builtin and then its argument prototype would still apply. */
11140 return dld_link ();
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && {
11159 test -z "$ac_c_werror_flag" ||
11160 test ! -s conftest.err
11161 } && test -s conftest$ac_exeext &&
11162 $as_test_x conftest$ac_exeext; then
11163 ac_cv_lib_dld_dld_link=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_cv_lib_dld_dld_link=no
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11176 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11177 if test $ac_cv_lib_dld_dld_link = yes; then
11178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11199 if test "x$lt_cv_dlopen" != xno; then
11205 case $lt_cv_dlopen in
11207 save_CPPFLAGS="$CPPFLAGS"
11208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11210 save_LDFLAGS="$LDFLAGS"
11211 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11214 LIBS="$lt_cv_dlopen_libs $LIBS"
11216 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11217 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11218 if test "${lt_cv_dlopen_self+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self=cross
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11242 # define LT_DLGLOBAL 0
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11261 # define LT_DLLAZY_OR_NOW 0
11269 extern "C" void exit (int);
11272 void fnord() { int i=42;}
11275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11276 int status = $lt_dlunknown;
11280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11281 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11282 /* dlclose (self); */
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11293 (./conftest; exit; ) >&5 2>/dev/null
11295 case x$lt_status in
11296 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11297 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11298 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11301 # compilation failed
11302 lt_cv_dlopen_self=no
11309 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11310 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11312 if test "x$lt_cv_dlopen_self" = xyes; then
11313 LDFLAGS="$LDFLAGS $link_static_flag"
11314 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11315 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11316 if test "${lt_cv_dlopen_self_static+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 if test "$cross_compiling" = yes; then :
11320 lt_cv_dlopen_self_static=cross
11322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11323 lt_status=$lt_dlunknown
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11325 "configure"
11326 #include "confdefs.h"
11335 # define LT_DLGLOBAL RTLD_GLOBAL
11338 # define LT_DLGLOBAL DL_GLOBAL
11340 # define LT_DLGLOBAL 0
11344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345 find out it does not work in some platform. */
11346 #ifndef LT_DLLAZY_OR_NOW
11348 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11351 # define LT_DLLAZY_OR_NOW DL_LAZY
11354 # define LT_DLLAZY_OR_NOW RTLD_NOW
11357 # define LT_DLLAZY_OR_NOW DL_NOW
11359 # define LT_DLLAZY_OR_NOW 0
11367 extern "C" void exit (int);
11370 void fnord() { int i=42;}
11373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11374 int status = $lt_dlunknown;
11378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11379 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11380 /* dlclose (self); */
11386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387 (eval $ac_link) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11391 (./conftest; exit; ) >&5 2>/dev/null
11393 case x$lt_status in
11394 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11395 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11396 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11399 # compilation failed
11400 lt_cv_dlopen_self_static=no
11407 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11408 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11411 CPPFLAGS="$save_CPPFLAGS"
11412 LDFLAGS="$save_LDFLAGS"
11417 case $lt_cv_dlopen_self in
11418 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11419 *) enable_dlopen_self=unknown ;;
11422 case $lt_cv_dlopen_self_static in
11423 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11424 *) enable_dlopen_self_static=unknown ;;
11429 # Report which librarie types wil actually be built
11430 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11431 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11432 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11433 echo "${ECHO_T}$can_build_shared" >&6; }
11435 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11436 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11437 test "$can_build_shared" = "no" && enable_shared=no
11439 # On AIX, shared libraries and static libraries use the same namespace, and
11440 # are all built from PIC.
11443 test "$enable_shared" = yes && enable_static=no
11444 if test -n "$RANLIB"; then
11445 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11446 postinstall_cmds='$RANLIB $lib'
11451 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11452 test "$enable_shared" = yes && enable_static=no
11456 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11457 echo "${ECHO_T}$enable_shared" >&6; }
11459 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11460 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11461 # Make sure either enable_shared or enable_static is yes.
11462 test "$enable_shared" = yes || enable_static=yes
11463 { echo "$as_me:$LINENO: result: $enable_static" >&5
11464 echo "${ECHO_T}$enable_static" >&6; }
11466 # The else clause should only fire when bootstrapping the
11467 # libtool distribution, otherwise you forgot to ship ltmain.sh
11468 # with your package, and you will get complaints that there are
11469 # no rules to generate ltmain.sh.
11470 if test -f "$ltmain"; then
11471 # See if we are running on zsh, and set the options which allow our commands through
11472 # without removal of \ escapes.
11473 if test -n "${ZSH_VERSION+set}" ; then
11474 setopt NO_GLOB_SUBST
11476 # Now quote all the things that may contain metacharacters while being
11477 # careful not to overquote the AC_SUBSTed values. We take copies of the
11478 # variables and quote the copies for generation of the libtool script.
11479 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11481 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11482 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11483 deplibs_check_method reload_flag reload_cmds need_locks \
11484 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11485 lt_cv_sys_global_symbol_to_c_name_address \
11486 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11487 old_postinstall_cmds old_postuninstall_cmds \
11491 lt_prog_compiler_wl \
11492 lt_prog_compiler_pic \
11493 lt_prog_compiler_static \
11494 lt_prog_compiler_no_builtin_flag \
11495 export_dynamic_flag_spec \
11496 thread_safe_flag_spec \
11497 whole_archive_flag_spec \
11498 enable_shared_with_static_runtimes \
11500 old_archive_from_new_cmds \
11505 compiler_lib_search_path \
11507 archive_expsym_cmds \
11509 postuninstall_cmds \
11510 old_archive_from_expsyms_cmds \
11511 allow_undefined_flag \
11512 no_undefined_flag \
11513 export_symbols_cmds \
11514 hardcode_libdir_flag_spec \
11515 hardcode_libdir_flag_spec_ld \
11516 hardcode_libdir_separator \
11517 hardcode_automatic \
11519 module_expsym_cmds \
11520 lt_cv_prog_compiler_c_o \
11522 include_expsyms; do
11525 old_archive_cmds | \
11526 old_archive_from_new_cmds | \
11528 archive_expsym_cmds | \
11530 module_expsym_cmds | \
11531 old_archive_from_expsyms_cmds | \
11532 export_symbols_cmds | \
11533 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11534 postinstall_cmds | postuninstall_cmds | \
11535 old_postinstall_cmds | old_postuninstall_cmds | \
11536 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11537 # Double-quote double-evaled strings.
11538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11541 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11547 *'\$0 --fallback-echo"')
11548 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11552 cfgfile="${ofile}T"
11553 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11555 { echo "$as_me:$LINENO: creating $ofile" >&5
11556 echo "$as_me: creating $ofile" >&6;}
11558 cat <<__EOF__ >> "$cfgfile"
11561 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11562 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11566 # Free Software Foundation, Inc.
11568 # This file is part of GNU Libtool:
11569 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11571 # This program is free software; you can redistribute it and/or modify
11572 # it under the terms of the GNU General Public License as published by
11573 # the Free Software Foundation; either version 2 of the License, or
11574 # (at your option) any later version.
11576 # This program is distributed in the hope that it will be useful, but
11577 # WITHOUT ANY WARRANTY; without even the implied warranty of
11578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11579 # General Public License for more details.
11581 # You should have received a copy of the GNU General Public License
11582 # along with this program; if not, write to the Free Software
11583 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11585 # As a special exception to the GNU General Public License, if you
11586 # distribute this file as part of a program that contains a
11587 # configuration script generated by Autoconf, you may include it under
11588 # the same distribution terms that you use for the rest of that program.
11590 # A sed program that does not truncate output.
11593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11594 Xsed="$SED -e 1s/^X//"
11596 # The HP-UX ksh and POSIX shell print the target directory to stdout
11597 # if CDPATH is set.
11598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11600 # The names of the tagged configurations supported by this script.
11603 # ### BEGIN LIBTOOL CONFIG
11605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11607 # Shell to use when invoking shell scripts.
11610 # Whether or not to build shared libraries.
11611 build_libtool_libs=$enable_shared
11613 # Whether or not to build static libraries.
11614 build_old_libs=$enable_static
11616 # Whether or not to add -lc for building shared libraries.
11617 build_libtool_need_lc=$archive_cmds_need_lc
11619 # Whether or not to disallow shared libs when runtime libs are static
11620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11622 # Whether or not to optimize for fast installation.
11623 fast_install=$enable_fast_install
11626 host_alias=$host_alias
11630 # The build system.
11631 build_alias=$build_alias
11635 # An echo program that does not interpret backslashes.
11640 AR_FLAGS=$lt_AR_FLAGS
11645 # A language-specific compiler.
11648 # Is the compiler the GNU C compiler?
11654 # The linker used to build libraries.
11657 # Whether we need hard or soft links.
11660 # A BSD-compatible nm program.
11663 # A symbol stripping program
11666 # Used to examine libraries when file_magic_cmd begins "file"
11667 MAGIC_CMD=$MAGIC_CMD
11669 # Used on cygwin: DLL creation program.
11672 # Used on cygwin: object dumper.
11675 # Used on cygwin: assembler.
11678 # The name of the directory that contains temporary libtool files.
11681 # How to create reloadable object files.
11682 reload_flag=$lt_reload_flag
11683 reload_cmds=$lt_reload_cmds
11685 # How to pass a linker flag through the compiler.
11686 wl=$lt_lt_prog_compiler_wl
11688 # Object file suffix (normally "o").
11689 objext="$ac_objext"
11691 # Old archive suffix (normally "a").
11694 # Shared library suffix (normally ".so").
11695 shrext_cmds='$shrext_cmds'
11697 # Executable file suffix (normally "").
11700 # Additional compiler flags for building library objects.
11701 pic_flag=$lt_lt_prog_compiler_pic
11704 # What is the maximum length of a command?
11705 max_cmd_len=$lt_cv_sys_max_cmd_len
11707 # Does compiler simultaneously support -c and -o options?
11708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11710 # Must we lock files when doing compilation?
11711 need_locks=$lt_need_locks
11713 # Do we need the lib prefix for modules?
11714 need_lib_prefix=$need_lib_prefix
11716 # Do we need a version for libraries?
11717 need_version=$need_version
11719 # Whether dlopen is supported.
11720 dlopen_support=$enable_dlopen
11722 # Whether dlopen of programs is supported.
11723 dlopen_self=$enable_dlopen_self
11725 # Whether dlopen of statically linked programs is supported.
11726 dlopen_self_static=$enable_dlopen_self_static
11728 # Compiler flag to prevent dynamic linking.
11729 link_static_flag=$lt_lt_prog_compiler_static
11731 # Compiler flag to turn off builtin functions.
11732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11734 # Compiler flag to allow reflexive dlopens.
11735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11737 # Compiler flag to generate shared objects directly from archives.
11738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11740 # Compiler flag to generate thread-safe objects.
11741 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11743 # Library versioning type.
11744 version_type=$version_type
11746 # Format of library name prefix.
11747 libname_spec=$lt_libname_spec
11749 # List of archive names. First name is the real one, the rest are links.
11750 # The last name is the one that the linker finds with -lNAME.
11751 library_names_spec=$lt_library_names_spec
11753 # The coded name of the library, if different from the real name.
11754 soname_spec=$lt_soname_spec
11756 # Commands used to build and install an old-style archive.
11758 old_archive_cmds=$lt_old_archive_cmds
11759 old_postinstall_cmds=$lt_old_postinstall_cmds
11760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11762 # Create an old-style archive from a shared archive.
11763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11765 # Create a temporary old-style archive to link instead of a shared archive.
11766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11768 # Commands used to build and install a shared archive.
11769 archive_cmds=$lt_archive_cmds
11770 archive_expsym_cmds=$lt_archive_expsym_cmds
11771 postinstall_cmds=$lt_postinstall_cmds
11772 postuninstall_cmds=$lt_postuninstall_cmds
11774 # Commands used to build a loadable module (assumed same as above if empty)
11775 module_cmds=$lt_module_cmds
11776 module_expsym_cmds=$lt_module_expsym_cmds
11778 # Commands to strip libraries.
11779 old_striplib=$lt_old_striplib
11780 striplib=$lt_striplib
11782 # Dependencies to place before the objects being linked to create a
11784 predep_objects=$lt_predep_objects
11786 # Dependencies to place after the objects being linked to create a
11788 postdep_objects=$lt_postdep_objects
11790 # Dependencies to place before the objects being linked to create a
11792 predeps=$lt_predeps
11794 # Dependencies to place after the objects being linked to create a
11796 postdeps=$lt_postdeps
11798 # The library search path used internally by the compiler when linking
11799 # a shared library.
11800 compiler_lib_search_path=$lt_compiler_lib_search_path
11802 # Method to check whether dependent libraries are shared objects.
11803 deplibs_check_method=$lt_deplibs_check_method
11805 # Command to use when deplibs_check_method == file_magic.
11806 file_magic_cmd=$lt_file_magic_cmd
11808 # Flag that allows shared libraries with undefined symbols to be built.
11809 allow_undefined_flag=$lt_allow_undefined_flag
11811 # Flag that forces no undefined symbols.
11812 no_undefined_flag=$lt_no_undefined_flag
11814 # Commands used to finish a libtool library installation in a directory.
11815 finish_cmds=$lt_finish_cmds
11817 # Same as above, but a single script fragment to be evaled but not shown.
11818 finish_eval=$lt_finish_eval
11820 # Take the output of nm and produce a listing of raw symbols and C names.
11821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11823 # Transform the output of nm in a proper C declaration
11824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11826 # Transform the output of nm in a C name address pair
11827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11829 # This is the shared library runtime path variable.
11830 runpath_var=$runpath_var
11832 # This is the shared library path variable.
11833 shlibpath_var=$shlibpath_var
11835 # Is shlibpath searched before the hard-coded library search path?
11836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11838 # How to hardcode a shared library path into an executable.
11839 hardcode_action=$hardcode_action
11841 # Whether we should hardcode library paths into libraries.
11842 hardcode_into_libs=$hardcode_into_libs
11844 # Flag to hardcode \$libdir into a binary during linking.
11845 # This must work even if \$libdir does not exist.
11846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11848 # If ld is used when linking, flag to hardcode \$libdir into
11849 # a binary during linking. This must work even if \$libdir does
11851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11853 # Whether we need a single -rpath flag with a separated argument.
11854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11856 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11857 # resulting binary.
11858 hardcode_direct=$hardcode_direct
11860 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11861 # resulting binary.
11862 hardcode_minus_L=$hardcode_minus_L
11864 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11865 # the resulting binary.
11866 hardcode_shlibpath_var=$hardcode_shlibpath_var
11868 # Set to yes if building a shared library automatically hardcodes DIR into the library
11869 # and all subsequent libraries and executables linked against it.
11870 hardcode_automatic=$hardcode_automatic
11872 # Variables whose values should be saved in libtool wrapper scripts and
11873 # restored at relink time.
11874 variables_saved_for_relink="$variables_saved_for_relink"
11876 # Whether libtool must link a program against all its dependency libraries.
11877 link_all_deplibs=$link_all_deplibs
11879 # Compile-time system search path for libraries
11880 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11882 # Run-time system search path for libraries
11883 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11885 # Fix the shell variable \$srcfile for the compiler.
11886 fix_srcfile_path="$fix_srcfile_path"
11888 # Set to yes if exported symbols are required.
11889 always_export_symbols=$always_export_symbols
11891 # The commands to list exported symbols.
11892 export_symbols_cmds=$lt_export_symbols_cmds
11894 # The commands to extract the exported symbol list from a shared archive.
11895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11897 # Symbols that should not be listed in the preloaded symbols.
11898 exclude_expsyms=$lt_exclude_expsyms
11900 # Symbols that must always be exported.
11901 include_expsyms=$lt_include_expsyms
11903 # ### END LIBTOOL CONFIG
11910 cat <<\EOF >> "$cfgfile"
11912 # AIX sometimes has problems with the GCC collect2 program. For some
11913 # reason, if we set the COLLECT_NAMES environment variable, the problems
11914 # vanish in a puff of smoke.
11915 if test "X${COLLECT_NAMES+set}" != Xset; then
11917 export COLLECT_NAMES
11923 # We use sed instead of cat because bash on DJGPP gets confused if
11924 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11925 # text mode, it properly converts lines to CR/LF. This bash problem
11926 # is reportedly fixed, but why not run on old versions too?
11927 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11929 mv -f "$cfgfile" "$ofile" || \
11930 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11934 # If there is no Makefile yet, we rely on a make rule to execute
11935 # `config.status --recheck' to rerun these tests and create the
11936 # libtool script then.
11937 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11938 if test -f "$ltmain_in"; then
11939 test -f Makefile && make "$ltmain"
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11953 # Check whether --with-tags was given.
11954 if test "${with_tags+set}" = set; then
11955 withval=$with_tags; tagnames="$withval"
11959 if test -f "$ltmain" && test -n "$tagnames"; then
11960 if test ! -f "${ofile}"; then
11961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11962 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11965 if test -z "$LTCC"; then
11966 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11967 if test -z "$LTCC"; then
11968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11969 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11972 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11976 # Extract list of available tagged configurations in $ofile.
11977 # Note that this assumes the entire list is on one line.
11978 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11981 for tagname in $tagnames; do
11983 # Check whether tagname contains only valid characters
11984 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11986 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11987 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11988 { (exit 1); exit 1; }; }
11992 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11994 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11995 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11996 { (exit 1); exit 1; }; }
11999 # Update the list of available tags.
12000 if test -n "$tagname"; then
12001 echo appending configuration tag \"$tagname\" to $ofile
12005 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12006 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12007 (test "X$CXX" != "Xg++"))) ; then
12009 ac_cpp='$CXXCPP $CPPFLAGS'
12010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12017 archive_cmds_need_lc_CXX=no
12018 allow_undefined_flag_CXX=
12019 always_export_symbols_CXX=no
12020 archive_expsym_cmds_CXX=
12021 export_dynamic_flag_spec_CXX=
12022 hardcode_direct_CXX=no
12023 hardcode_libdir_flag_spec_CXX=
12024 hardcode_libdir_flag_spec_ld_CXX=
12025 hardcode_libdir_separator_CXX=
12026 hardcode_minus_L_CXX=no
12027 hardcode_automatic_CXX=no
12029 module_expsym_cmds_CXX=
12030 link_all_deplibs_CXX=unknown
12031 old_archive_cmds_CXX=$old_archive_cmds
12032 no_undefined_flag_CXX=
12033 whole_archive_flag_spec_CXX=
12034 enable_shared_with_static_runtimes_CXX=no
12036 # Dependencies to place before and after the object being linked:
12037 predep_objects_CXX=
12038 postdep_objects_CXX=
12041 compiler_lib_search_path_CXX=
12043 # Source file extension for C++ test sources.
12046 # Object file extension for compiled C++ test sources.
12050 # Code to be used in simple compile tests
12051 lt_simple_compile_test_code="int some_variable = 0;\n"
12053 # Code to be used in simple link tests
12054 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12058 # If no C compiler was specified, use CC.
12061 # Allow CC to be a program name with arguments.
12065 # save warnings/boilerplate of simple test code
12066 ac_outfile=conftest.$ac_objext
12067 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12069 _lt_compiler_boilerplate=`cat conftest.err`
12072 ac_outfile=conftest.$ac_objext
12073 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12075 _lt_linker_boilerplate=`cat conftest.err`
12079 # Allow CC to be a program name with arguments.
12084 lt_save_with_gnu_ld=$with_gnu_ld
12085 lt_save_path_LD=$lt_cv_path_LD
12086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12087 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12089 unset lt_cv_prog_gnu_ld
12091 if test -n "${lt_cv_path_LDCXX+set}"; then
12092 lt_cv_path_LD=$lt_cv_path_LDCXX
12094 unset lt_cv_path_LD
12096 test -z "${LDCXX+set}" || LD=$LDCXX
12100 for cc_temp in $compiler""; do
12102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12111 # We don't want -fno-exception wen compiling C++ code, so set the
12112 # no_builtin_flag separately
12113 if test "$GXX" = yes; then
12114 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12116 lt_prog_compiler_no_builtin_flag_CXX=
12119 if test "$GXX" = yes; then
12120 # Set up default GNU C++ configuration
12123 # Check whether --with-gnu-ld was given.
12124 if test "${with_gnu_ld+set}" = set; then
12125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12131 if test "$GCC" = yes; then
12132 # Check if gcc -print-prog-name=ld gives a path.
12133 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12137 # gcc leaves a trailing carriage return which upsets mingw
12138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12143 # Accept absolute paths.
12145 re_direlt='/[^/][^/]*/\.\./'
12146 # Canonicalize the pathname of ld
12147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12151 test -z "$LD" && LD="$ac_prog"
12154 # If it fails, then pretend we aren't using GCC.
12158 # If it is relative, then search for the first ld in PATH.
12159 with_gnu_ld=unknown
12162 elif test "$with_gnu_ld" = yes; then
12163 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12166 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12169 if test "${lt_cv_path_LD+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 if test -z "$LD"; then
12173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12174 for ac_dir in $PATH; do
12176 test -z "$ac_dir" && ac_dir=.
12177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12178 lt_cv_path_LD="$ac_dir/$ac_prog"
12179 # Check to see if the program is GNU ld. I'd rather use --version,
12180 # but apparently some variants of GNU ld only accept -v.
12181 # Break only if it was the GNU/non-GNU ld that we prefer.
12182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12183 *GNU* | *'with BFD'*)
12184 test "$with_gnu_ld" != no && break
12187 test "$with_gnu_ld" != yes && break
12194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12198 LD="$lt_cv_path_LD"
12199 if test -n "$LD"; then
12200 { echo "$as_me:$LINENO: result: $LD" >&5
12201 echo "${ECHO_T}$LD" >&6; }
12203 { echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6; }
12206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12208 { (exit 1); exit 1; }; }
12209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12215 case `$LD -v 2>&1 </dev/null` in
12216 *GNU* | *'with BFD'*)
12217 lt_cv_prog_gnu_ld=yes
12220 lt_cv_prog_gnu_ld=no
12224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12226 with_gnu_ld=$lt_cv_prog_gnu_ld
12230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12231 # archiving commands below assume that GNU ld is being used.
12232 if test "$with_gnu_ld" = yes; then
12233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12234 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'
12236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12239 # If archive_cmds runs LD, not CC, wlarc should be empty
12240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12241 # investigate it a little bit more. (MM)
12244 # ancient GNU ld didn't support --whole-archive et. al.
12245 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12246 grep 'no-whole-archive' > /dev/null; then
12247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12249 whole_archive_flag_spec_CXX=
12255 # A generic and very simple default shared library creation
12256 # command for GNU C++ for the case where it uses the native
12257 # linker, instead of GNU ld. If possible, this setting should
12258 # overridden to take advantage of the native linker features on
12259 # the platform it is being used on.
12260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12263 # Commands to make compiler produce verbose output that lists
12264 # what "hidden" libraries, object files and flags are used when
12265 # linking a shared library.
12266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12274 # PORTME: fill in a description of your system's C++ link characteristics
12275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12280 # FIXME: insert proper C++ library support
12284 if test "$host_cpu" = ia64; then
12285 # On IA64, the linker does run time linking by default, so we don't
12286 # have to do anything special.
12287 aix_use_runtimelinking=no
12288 exp_sym_flag='-Bexport'
12291 aix_use_runtimelinking=no
12293 # Test if we are trying to use run time linking or normal
12294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12295 # need to do runtime linking.
12296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12297 for ld_flag in $LDFLAGS; do
12300 aix_use_runtimelinking=yes
12307 exp_sym_flag='-bexport'
12308 no_entry_flag='-bnoentry'
12311 # When large executables or shared objects are built, AIX ld can
12312 # have problems creating the table of contents. If linking a library
12313 # or program results in "error TOC overflow" add -mminimal-toc to
12314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12317 archive_cmds_CXX=''
12318 hardcode_direct_CXX=yes
12319 hardcode_libdir_separator_CXX=':'
12320 link_all_deplibs_CXX=yes
12322 if test "$GXX" = yes; then
12323 case $host_os in aix4.[012]|aix4.[012].*)
12324 # We only want to do this on AIX 4.2 and lower, the check
12325 # below for broken collect2 doesn't work under 4.3+
12326 collect2name=`${CC} -print-prog-name=collect2`
12327 if test -f "$collect2name" && \
12328 strings "$collect2name" | grep resolve_lib_name >/dev/null
12330 # We have reworked collect2
12331 hardcode_direct_CXX=yes
12333 # We have old collect2
12334 hardcode_direct_CXX=unsupported
12335 # It fails to find uninstalled libraries when the uninstalled
12336 # path is not listed in the libpath. Setting hardcode_minus_L
12337 # to unsupported forces relinking
12338 hardcode_minus_L_CXX=yes
12339 hardcode_libdir_flag_spec_CXX='-L$libdir'
12340 hardcode_libdir_separator_CXX=
12343 shared_flag='-shared'
12344 if test "$aix_use_runtimelinking" = yes; then
12345 shared_flag="$shared_flag "'${wl}-G'
12349 if test "$host_cpu" = ia64; then
12350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12351 # chokes on -Wl,-G. The following line is correct:
12354 if test "$aix_use_runtimelinking" = yes; then
12355 shared_flag='${wl}-G'
12357 shared_flag='${wl}-bM:SRE'
12362 # It seems that -bexpall does not export symbols beginning with
12363 # underscore (_), so it is better to generate a list of symbols to export.
12364 always_export_symbols_CXX=yes
12365 if test "$aix_use_runtimelinking" = yes; then
12366 # Warning - without using the other runtime loading flags (-brtl),
12367 # -berok will link without error, but may produce a broken library.
12368 allow_undefined_flag_CXX='-berok'
12369 # Determine the default libpath from the value encoded in an empty executable.
12370 cat >conftest.$ac_ext <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_link") 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_cxx_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest$ac_exeext &&
12402 $as_test_x conftest$ac_exeext; then
12404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12406 # Check for a 64-bit object if we didn't find anything.
12407 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12417 conftest$ac_exeext conftest.$ac_ext
12418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12420 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12422 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12424 if test "$host_cpu" = ia64; then
12425 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12426 allow_undefined_flag_CXX="-z nodefs"
12427 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12429 # Determine the default libpath from the value encoded in an empty executable.
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12445 rm -f conftest.$ac_objext conftest$ac_exeext
12446 if { (ac_try="$ac_link"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_link") 2>conftest.er1
12454 grep -v '^ *+' conftest.er1 >conftest.err
12456 cat conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } && {
12459 test -z "$ac_cxx_werror_flag" ||
12460 test ! -s conftest.err
12461 } && test -s conftest$ac_exeext &&
12462 $as_test_x conftest$ac_exeext; then
12464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12466 # Check for a 64-bit object if we didn't find anything.
12467 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12477 conftest$ac_exeext conftest.$ac_ext
12478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12480 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12481 # Warning - without using the other run time loading flags,
12482 # -berok will link without error, but may produce a broken library.
12483 no_undefined_flag_CXX=' ${wl}-bernotok'
12484 allow_undefined_flag_CXX=' ${wl}-berok'
12485 # -bexpall does not export symbols beginning with underscore (_)
12486 always_export_symbols_CXX=yes
12487 # Exported symbols can be pulled into shared objects from archives
12488 whole_archive_flag_spec_CXX=' '
12489 archive_cmds_need_lc_CXX=yes
12490 # This is similar to how AIX traditionally builds its shared libraries.
12491 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12496 case $cc_basename in
12498 # FIXME: insert proper C++ library support
12505 cygwin* | mingw* | pw32*)
12506 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12507 # as there is no search path for DLLs.
12508 hardcode_libdir_flag_spec_CXX='-L$libdir'
12509 allow_undefined_flag_CXX=unsupported
12510 always_export_symbols_CXX=no
12511 enable_shared_with_static_runtimes_CXX=yes
12513 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12514 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12515 # If the export-symbols file already is a .def file (1st line
12516 # is EXPORTS), use it as is; otherwise, prepend...
12517 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12518 cp $export_symbols $output_objdir/$soname.def;
12520 echo EXPORTS > $output_objdir/$soname.def;
12521 cat $export_symbols >> $output_objdir/$soname.def;
12523 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12528 darwin* | rhapsody*)
12530 rhapsody* | darwin1.[012])
12531 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12534 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12535 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12537 case ${MACOSX_DEPLOYMENT_TARGET} in
12539 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12542 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12548 archive_cmds_need_lc_CXX=no
12549 hardcode_direct_CXX=no
12550 hardcode_automatic_CXX=yes
12551 hardcode_shlibpath_var_CXX=unsupported
12552 whole_archive_flag_spec_CXX=''
12553 link_all_deplibs_CXX=yes
12555 if test "$GXX" = yes ; then
12556 lt_int_apple_cc_single_mod=no
12557 output_verbose_link_cmd='echo'
12558 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12559 lt_int_apple_cc_single_mod=yes
12561 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12562 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12564 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'
12566 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12569 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12571 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12573 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}'
12575 case $cc_basename in
12577 output_verbose_link_cmd='echo'
12578 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12579 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12580 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12581 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12582 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}'
12592 case $cc_basename in
12594 # FIXME: insert proper C++ library support
12598 # Green Hills C++ Compiler
12599 # FIXME: insert proper C++ library support
12603 # FIXME: insert proper C++ library support
12609 # C++ shared libraries reported to be fairly broken before switch to ELF
12613 archive_cmds_need_lc_CXX=no
12615 freebsd* | kfreebsd*-gnu | dragonfly*)
12616 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12624 hardcode_libdir_separator_CXX=:
12625 export_dynamic_flag_spec_CXX='${wl}-E'
12626 hardcode_direct_CXX=yes
12627 hardcode_minus_L_CXX=yes # Not in the search PATH,
12628 # but as the default
12629 # location of the library.
12631 case $cc_basename in
12633 # FIXME: insert proper C++ library support
12637 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'
12638 # Commands to make compiler produce verbose output that lists
12639 # what "hidden" libraries, object files and flags are used when
12640 # linking a shared library.
12642 # There doesn't appear to be a way to prevent this compiler from
12643 # explicitly linking system object files so we need to strip them
12644 # from the output so that they don't get included in the library
12646 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'
12649 if test "$GXX" = yes; then
12650 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'
12652 # FIXME: insert proper C++ library support
12659 if test $with_gnu_ld = no; then
12662 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12663 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12664 hardcode_libdir_separator_CXX=:
12667 hardcode_libdir_flag_spec_CXX='-L$libdir'
12670 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12671 hardcode_libdir_separator_CXX=:
12672 export_dynamic_flag_spec_CXX='${wl}-E'
12678 hardcode_direct_CXX=no
12679 hardcode_shlibpath_var_CXX=no
12682 hardcode_direct_CXX=no
12683 hardcode_shlibpath_var_CXX=no
12684 hardcode_minus_L_CXX=yes # Not in the search PATH,
12685 # but as the default
12686 # location of the library.
12689 hardcode_direct_CXX=yes
12690 hardcode_minus_L_CXX=yes # Not in the search PATH,
12691 # but as the default
12692 # location of the library.
12696 case $cc_basename in
12698 # FIXME: insert proper C++ library support
12704 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12707 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12710 # Commands to make compiler produce verbose output that lists
12711 # what "hidden" libraries, object files and flags are used when
12712 # linking a shared library.
12714 # There doesn't appear to be a way to prevent this compiler from
12715 # explicitly linking system object files so we need to strip them
12716 # from the output so that they don't get included in the library
12718 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'
12721 if test "$GXX" = yes; then
12722 if test $with_gnu_ld = no; then
12725 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12728 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'
12733 # FIXME: insert proper C++ library support
12740 case $cc_basename in
12743 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'
12745 # Archives containing C++ object files must be created using
12746 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12747 # necessary to make sure instantiated templates are included
12749 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12752 if test "$GXX" = yes; then
12753 if test "$with_gnu_ld" = no; then
12754 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'
12756 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'
12759 link_all_deplibs_CXX=yes
12762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12763 hardcode_libdir_separator_CXX=:
12766 case $cc_basename in
12768 # Kuck and Associates, Inc. (KAI) C++ Compiler
12770 # KCC will only create a shared library if the output file
12771 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12772 # to its proper name (with version) after linking.
12773 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'
12774 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'
12775 # Commands to make compiler produce verbose output that lists
12776 # what "hidden" libraries, object files and flags are used when
12777 # linking a shared library.
12779 # There doesn't appear to be a way to prevent this compiler from
12780 # explicitly linking system object files so we need to strip them
12781 # from the output so that they don't get included in the library
12783 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'
12785 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12786 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12788 # Archives containing C++ object files must be created using
12789 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12790 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12795 # version 8.0 and above of icpc choke on multiply defined symbols
12796 # if we add $predep_objects and $postdep_objects, however 7.1 and
12797 # earlier do not add the objects themselves.
12798 case `$CC -V 2>&1` in
12800 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 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'
12803 *) # Version 8.0 or newer
12806 ia64*) tmp_idyn=' -i_dynamic';;
12808 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12809 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'
12812 archive_cmds_need_lc_CXX=no
12813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12815 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12818 # Portland Group C++ compiler
12819 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12820 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'
12822 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12824 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'
12828 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829 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'
12831 runpath_var=LD_RUN_PATH
12832 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12833 hardcode_libdir_separator_CXX=:
12835 # Commands to make compiler produce verbose output that lists
12836 # what "hidden" libraries, object files and flags are used when
12837 # linking a shared library.
12839 # There doesn't appear to be a way to prevent this compiler from
12840 # explicitly linking system object files so we need to strip them
12841 # from the output so that they don't get included in the library
12843 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'
12848 # FIXME: insert proper C++ library support
12852 # FIXME: insert proper C++ library support
12856 case $cc_basename in
12858 # FIXME: insert proper C++ library support
12862 # FIXME: insert proper C++ library support
12868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12869 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12871 hardcode_libdir_flag_spec_CXX='-R$libdir'
12872 hardcode_direct_CXX=yes
12873 hardcode_shlibpath_var_CXX=no
12875 # Workaround some broken pre-1.5 toolchains
12876 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12879 # C++ shared libraries are fairly broken
12883 hardcode_direct_CXX=yes
12884 hardcode_shlibpath_var_CXX=no
12885 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12888 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12889 export_dynamic_flag_spec_CXX='${wl}-E'
12890 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12892 output_verbose_link_cmd='echo'
12895 case $cc_basename in
12897 # Kuck and Associates, Inc. (KAI) C++ Compiler
12899 # KCC will only create a shared library if the output file
12900 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12901 # to its proper name (with version) after linking.
12902 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'
12904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12905 hardcode_libdir_separator_CXX=:
12907 # Archives containing C++ object files must be created using
12908 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12909 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12913 # Rational C++ 2.4.1
12914 # FIXME: insert proper C++ library support
12918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12919 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'
12921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12922 hardcode_libdir_separator_CXX=:
12924 # Commands to make compiler produce verbose output that lists
12925 # what "hidden" libraries, object files and flags are used when
12926 # linking a shared library.
12928 # There doesn't appear to be a way to prevent this compiler from
12929 # explicitly linking system object files so we need to strip them
12930 # from the output so that they don't get included in the library
12932 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'
12935 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12936 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12937 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'
12939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12940 hardcode_libdir_separator_CXX=:
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12945 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12948 # FIXME: insert proper C++ library support
12955 case $cc_basename in
12957 # Kuck and Associates, Inc. (KAI) C++ Compiler
12959 # KCC will only create a shared library if the output file
12960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12961 # to its proper name (with version) after linking.
12962 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'
12964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12965 hardcode_libdir_separator_CXX=:
12967 # Archives containing C++ object files must be created using
12968 # the KAI C++ compiler.
12969 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12972 # Rational C++ 2.4.1
12973 # FIXME: insert proper C++ library support
12977 allow_undefined_flag_CXX=' -expect_unresolved \*'
12978 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'
12979 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12980 echo "-hidden">> $lib.exp~
12981 $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~
12984 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12985 hardcode_libdir_separator_CXX=:
12987 # Commands to make compiler produce verbose output that lists
12988 # what "hidden" libraries, object files and flags are used when
12989 # linking a shared library.
12991 # There doesn't appear to be a way to prevent this compiler from
12992 # explicitly linking system object files so we need to strip them
12993 # from the output so that they don't get included in the library
12995 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'
12998 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12999 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13000 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'
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13003 hardcode_libdir_separator_CXX=:
13005 # Commands to make compiler produce verbose output that lists
13006 # what "hidden" libraries, object files and flags are used when
13007 # linking a shared library.
13008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13011 # FIXME: insert proper C++ library support
13018 # FIXME: insert proper C++ library support
13022 archive_cmds_need_lc_CXX=no
13023 case $cc_basename in
13025 # FIXME: insert proper C++ library support
13029 # FIXME: insert proper C++ library support
13035 case $cc_basename in
13038 # FIXME: insert proper C++ library support
13043 # FIXME: insert proper C++ library support
13047 # FIXME: insert proper C++ library support
13053 case $cc_basename in
13055 # Sun C++ 4.2, 5.x and Centerline C++
13056 archive_cmds_need_lc_CXX=yes
13057 no_undefined_flag_CXX=' -zdefs'
13058 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13059 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13060 $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'
13062 hardcode_libdir_flag_spec_CXX='-R$libdir'
13063 hardcode_shlibpath_var_CXX=no
13065 solaris2.[0-5] | solaris2.[0-5].*) ;;
13067 # The C++ compiler is used as linker so we must use $wl
13068 # flag to pass the commands to the underlying system
13069 # linker. We must also pass each convience library through
13070 # to the system linker between allextract/defaultextract.
13071 # The C++ compiler will combine linker options so we
13072 # cannot just pass the convience library names through
13074 # Supported since Solaris 2.6 (maybe 2.5.1?)
13075 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13078 link_all_deplibs_CXX=yes
13080 output_verbose_link_cmd='echo'
13082 # Archives containing C++ object files must be created using
13083 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13084 # necessary to make sure instantiated templates are included
13086 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13089 # Green Hills C++ Compiler
13090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13092 # The C++ compiler must be used to create the archive.
13093 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13096 # GNU C++ compiler with Solaris linker
13097 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13098 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13099 if $CC --version | grep -v '^2\.7' > /dev/null; then
13100 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13101 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13102 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13104 # Commands to make compiler produce verbose output that lists
13105 # what "hidden" libraries, object files and flags are used when
13106 # linking a shared library.
13107 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13109 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13111 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13112 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13113 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13115 # Commands to make compiler produce verbose output that lists
13116 # what "hidden" libraries, object files and flags are used when
13117 # linking a shared library.
13118 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13121 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13126 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13127 archive_cmds_need_lc_CXX=no
13130 case $cc_basename in
13132 # NonStop-UX NCC 3.20
13133 # FIXME: insert proper C++ library support
13137 # FIXME: insert proper C++ library support
13143 # FIXME: insert proper C++ library support
13147 # FIXME: insert proper C++ library support
13151 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13152 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13153 test "$ld_shlibs_CXX" = no && can_build_shared=no
13159 cat > conftest.$ac_ext <<EOF
13163 Foo (void) { a = 0; }
13169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13170 (eval $ac_compile) 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; then
13174 # Parse the compiler output and extract the necessary
13175 # objects, libraries and library flags.
13177 # Sentinel used to keep track of whether or not we are before
13178 # the conftest object file.
13179 pre_test_object_deps_done=no
13181 # The `*' in the case matches for architectures that use `case' in
13182 # $output_verbose_cmd can trigger glob expansion during the loop
13183 # eval without this substitution.
13184 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13186 for p in `eval $output_verbose_link_cmd`; do
13190 # Some compilers place space between "-{L,R}" and the path.
13191 # Remove the space.
13192 if test $p = "-L" \
13193 || test $p = "-R"; then
13200 if test "$pre_test_object_deps_done" = no; then
13203 # Internal compiler library paths should come after those
13204 # provided the user. The postdeps already come after the
13205 # user supplied libs so there is no need to process them.
13206 if test -z "$compiler_lib_search_path_CXX"; then
13207 compiler_lib_search_path_CXX="${prev}${p}"
13209 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13212 # The "-l" case would never come before the object being
13213 # linked, so don't bother handling this case.
13216 if test -z "$postdeps_CXX"; then
13217 postdeps_CXX="${prev}${p}"
13219 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13225 # This assumes that the test object file only shows up
13226 # once in the compiler output.
13227 if test "$p" = "conftest.$objext"; then
13228 pre_test_object_deps_done=yes
13232 if test "$pre_test_object_deps_done" = no; then
13233 if test -z "$predep_objects_CXX"; then
13234 predep_objects_CXX="$p"
13236 predep_objects_CXX="$predep_objects_CXX $p"
13239 if test -z "$postdep_objects_CXX"; then
13240 postdep_objects_CXX="$p"
13242 postdep_objects_CXX="$postdep_objects_CXX $p"
13247 *) ;; # Ignore the rest.
13255 echo "libtool.m4: error: problem compiling CXX test program"
13258 $rm -f confest.$objext
13260 # PORTME: override above test on systems where it is broken
13263 case $cc_basename in
13265 # Adding this requires a known-good setup of shared libraries for
13266 # Sun compiler versions before 5.6, else PIC objects from an old
13267 # archive will be linked into the output, leading to subtle bugs.
13268 postdeps_CXX='-lCstd -lCrun'
13274 case " $postdeps_CXX " in
13275 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13278 lt_prog_compiler_wl_CXX=
13279 lt_prog_compiler_pic_CXX=
13280 lt_prog_compiler_static_CXX=
13282 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13283 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13285 # C++ specific cases for pic, static, wl, etc.
13286 if test "$GXX" = yes; then
13287 lt_prog_compiler_wl_CXX='-Wl,'
13288 lt_prog_compiler_static_CXX='-static'
13292 # All AIX code is PIC.
13293 if test "$host_cpu" = ia64; then
13294 # AIX 5 now supports IA64 processor
13295 lt_prog_compiler_static_CXX='-Bstatic'
13299 # FIXME: we need at least 68020 code to build shared libraries, but
13300 # adding the `-m68020' flag to GCC prevents building anything better,
13302 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13304 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13305 # PIC is the default for these OSes.
13307 mingw* | os2* | pw32*)
13308 # This hack is so that the source file can tell whether it is being
13309 # built for inclusion in a dll (and should export symbols for example).
13310 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13312 darwin* | rhapsody*)
13313 # PIC is the default on this platform
13314 # Common symbols not allowed in MH_DYLIB files
13315 lt_prog_compiler_pic_CXX='-fno-common'
13318 # DJGPP does not support shared libraries at all
13319 lt_prog_compiler_pic_CXX=
13322 if test -d /usr/nec; then
13323 lt_prog_compiler_pic_CXX=-Kconform_pic
13327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13328 # not for PA HP-UX.
13333 lt_prog_compiler_pic_CXX='-fPIC'
13338 lt_prog_compiler_pic_CXX='-fPIC'
13344 # All AIX code is PIC.
13345 if test "$host_cpu" = ia64; then
13346 # AIX 5 now supports IA64 processor
13347 lt_prog_compiler_static_CXX='-Bstatic'
13349 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13353 case $cc_basename in
13355 # Green Hills C++ Compiler
13356 # _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"
13361 # PIC is the default on this platform
13362 # Common symbols not allowed in MH_DYLIB files
13363 case $cc_basename in
13365 lt_prog_compiler_pic_CXX='-qnocommon'
13366 lt_prog_compiler_wl_CXX='-Wl,'
13371 case $cc_basename in
13373 lt_prog_compiler_pic_CXX='-KPIC'
13376 # Green Hills C++ Compiler
13377 lt_prog_compiler_pic_CXX='-pic'
13383 freebsd* | kfreebsd*-gnu | dragonfly*)
13384 # FreeBSD uses GNU C++
13386 hpux9* | hpux10* | hpux11*)
13387 case $cc_basename in
13389 lt_prog_compiler_wl_CXX='-Wl,'
13390 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13391 if test "$host_cpu" != ia64; then
13392 lt_prog_compiler_pic_CXX='+Z'
13396 lt_prog_compiler_wl_CXX='-Wl,'
13397 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13403 lt_prog_compiler_pic_CXX='+Z'
13411 irix5* | irix6* | nonstopux*)
13412 case $cc_basename in
13414 lt_prog_compiler_wl_CXX='-Wl,'
13415 lt_prog_compiler_static_CXX='-non_shared'
13416 # CC pic flag -KPIC is the default.
13423 case $cc_basename in
13426 lt_prog_compiler_wl_CXX='--backend -Wl,'
13427 lt_prog_compiler_pic_CXX='-fPIC'
13431 lt_prog_compiler_wl_CXX='-Wl,'
13432 lt_prog_compiler_pic_CXX='-KPIC'
13433 lt_prog_compiler_static_CXX='-static'
13436 # Portland Group C++ compiler.
13437 lt_prog_compiler_wl_CXX='-Wl,'
13438 lt_prog_compiler_pic_CXX='-fpic'
13439 lt_prog_compiler_static_CXX='-Bstatic'
13443 # Make sure the PIC flag is empty. It appears that all Alpha
13444 # Linux and Compaq Tru64 Unix objects are PIC.
13445 lt_prog_compiler_pic_CXX=
13446 lt_prog_compiler_static_CXX='-non_shared'
13457 case $cc_basename in
13459 lt_prog_compiler_pic_CXX='-W c,exportall'
13467 osf3* | osf4* | osf5*)
13468 case $cc_basename in
13470 lt_prog_compiler_wl_CXX='--backend -Wl,'
13473 # Rational C++ 2.4.1
13474 lt_prog_compiler_pic_CXX='-pic'
13477 # Digital/Compaq C++
13478 lt_prog_compiler_wl_CXX='-Wl,'
13479 # Make sure the PIC flag is empty. It appears that all Alpha
13480 # Linux and Compaq Tru64 Unix objects are PIC.
13481 lt_prog_compiler_pic_CXX=
13482 lt_prog_compiler_static_CXX='-non_shared'
13491 case $cc_basename in
13493 lt_prog_compiler_pic_CXX='-fPIC'
13500 case $cc_basename in
13502 # Sun C++ 4.2, 5.x and Centerline C++
13503 lt_prog_compiler_pic_CXX='-KPIC'
13504 lt_prog_compiler_static_CXX='-Bstatic'
13505 lt_prog_compiler_wl_CXX='-Qoption ld '
13508 # Green Hills C++ Compiler
13509 lt_prog_compiler_pic_CXX='-PIC'
13516 case $cc_basename in
13519 lt_prog_compiler_pic_CXX='-pic'
13520 lt_prog_compiler_static_CXX='-Bstatic'
13524 lt_prog_compiler_pic_CXX='-pic'
13531 case $cc_basename in
13533 # NonStop-UX NCC 3.20
13534 lt_prog_compiler_pic_CXX='-KPIC'
13545 lt_prog_compiler_can_build_shared_CXX=no
13550 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13551 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13554 # Check to make sure the PIC flag actually works.
13556 if test -n "$lt_prog_compiler_pic_CXX"; then
13558 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13559 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13560 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 lt_prog_compiler_pic_works_CXX=no
13564 ac_outfile=conftest.$ac_objext
13565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13566 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13567 # Insert the option either (1) after the last *FLAGS variable, or
13568 # (2) before a word containing "conftest.", or (3) at the end.
13569 # Note that $ac_compile itself does not contain backslashes and begins
13570 # with a dollar sign (not a hyphen), so the echo should work correctly.
13571 # The option is referenced via a variable to avoid confusing sed.
13572 lt_compile=`echo "$ac_compile" | $SED \
13573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13575 -e 's:$: $lt_compiler_flag:'`
13576 (eval echo "\"\$as_me:13576: $lt_compile\"" >&5)
13577 (eval "$lt_compile" 2>conftest.err)
13579 cat conftest.err >&5
13580 echo "$as_me:13580: \$? = $ac_status" >&5
13581 if (exit $ac_status) && test -s "$ac_outfile"; then
13582 # The compiler can only warn and ignore the option if not recognized
13583 # So say no if there are warnings other than the usual output.
13584 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13585 $SED '/^$/d' conftest.err >conftest.er2
13586 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13587 lt_prog_compiler_pic_works_CXX=yes
13593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13594 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13596 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13597 case $lt_prog_compiler_pic_CXX in
13599 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13602 lt_prog_compiler_pic_CXX=
13603 lt_prog_compiler_can_build_shared_CXX=no
13608 # For platforms which do not support PIC, -DPIC is meaningless:
13610 lt_prog_compiler_pic_CXX=
13613 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13617 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13618 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13619 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 lt_cv_prog_compiler_c_o_CXX=no
13623 $rm -r conftest 2>/dev/null
13627 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13629 lt_compiler_flag="-o out/conftest2.$ac_objext"
13630 # Insert the option either (1) after the last *FLAGS variable, or
13631 # (2) before a word containing "conftest.", or (3) at the end.
13632 # Note that $ac_compile itself does not contain backslashes and begins
13633 # with a dollar sign (not a hyphen), so the echo should work correctly.
13634 lt_compile=`echo "$ac_compile" | $SED \
13635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13637 -e 's:$: $lt_compiler_flag:'`
13638 (eval echo "\"\$as_me:13638: $lt_compile\"" >&5)
13639 (eval "$lt_compile" 2>out/conftest.err)
13641 cat out/conftest.err >&5
13642 echo "$as_me:13642: \$? = $ac_status" >&5
13643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13645 # The compiler can only warn and ignore the option if not recognized
13646 # So say no if there are warnings
13647 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13648 $SED '/^$/d' out/conftest.err >out/conftest.er2
13649 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13650 lt_cv_prog_compiler_c_o_CXX=yes
13655 # SGI C++ compiler will create directory out/ii_files/ for
13656 # template instantiation
13657 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13658 $rm out/* && rmdir out
13664 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13665 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13668 hard_links="nottested"
13669 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13670 # do not overwrite the value of need_locks provided by the user
13671 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13672 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13677 ln conftest.a conftest.b 2>&5 || hard_links=no
13678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13679 { echo "$as_me:$LINENO: result: $hard_links" >&5
13680 echo "${ECHO_T}$hard_links" >&6; }
13681 if test "$hard_links" = no; then
13682 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13683 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13690 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13691 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13693 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13696 # If we're using GNU nm, then we don't want the "-C" option.
13697 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13698 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13699 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'
13701 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'
13705 export_symbols_cmds_CXX="$ltdll_cmds"
13708 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'
13711 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13715 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13716 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13717 test "$ld_shlibs_CXX" = no && can_build_shared=no
13719 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13720 if test "$GCC" = yes; then
13721 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13725 # Do we need to explicitly link libc?
13727 case "x$archive_cmds_need_lc_CXX" in
13729 # Assume -lc should be added
13730 archive_cmds_need_lc_CXX=yes
13732 if test "$enable_shared" = yes && test "$GCC" = yes; then
13733 case $archive_cmds_CXX in
13735 # FIXME: we may have to deal with multi-command sequences.
13738 # Test whether the compiler implicitly links with -lc since on some
13739 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13740 # to ld, don't add -lc before -lgcc.
13741 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13742 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } 2>conftest.err; then
13753 libobjs=conftest.$ac_objext
13755 wl=$lt_prog_compiler_wl_CXX
13761 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13762 allow_undefined_flag_CXX=
13763 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13764 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }
13769 archive_cmds_need_lc_CXX=no
13771 archive_cmds_need_lc_CXX=yes
13773 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13775 cat conftest.err 1>&5
13778 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13779 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13786 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13787 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13788 library_names_spec=
13789 libname_spec='lib$name'
13793 postuninstall_cmds=
13797 shlibpath_overrides_runpath=unknown
13799 dynamic_linker="$host_os ld.so"
13800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13801 if test "$GCC" = yes; then
13802 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13803 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13804 # if the path contains ";" then we assume it to be the separator
13805 # otherwise default to the standard path separator (i.e. ":") - it is
13806 # assumed that no part of a normal pathname contains ";" but that should
13807 # okay in the real world where ";" in dirpaths is itself problematic.
13808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13815 need_lib_prefix=unknown
13816 hardcode_into_libs=no
13818 # when you set need_version to no, make sure it does not cause -set_version
13819 # flags to be left without arguments
13820 need_version=unknown
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13826 shlibpath_var=LIBPATH
13828 # AIX 3 has no versioning support, so we append a major version to the name.
13829 soname_spec='${libname}${release}${shared_ext}$major'
13836 hardcode_into_libs=yes
13837 if test "$host_cpu" = ia64; then
13838 # AIX 5 supports IA64
13839 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13840 shlibpath_var=LD_LIBRARY_PATH
13842 # With GCC up to 2.95.x, collect2 would create an import file
13843 # for dependence libraries. The import file would start with
13844 # the line `#! .'. This would cause the generated library to
13845 # depend on `.', always an invalid library. This was fixed in
13846 # development snapshots of GCC prior to 3.0.
13848 aix4 | aix4.[01] | aix4.[01].*)
13849 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13851 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13854 can_build_shared=no
13858 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13859 # soname into executable. Probably we can add versioning support to
13860 # collect2, so additional links can be useful in future.
13861 if test "$aix_use_runtimelinking" = yes; then
13862 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13863 # instead of lib<name>.a to let people know that these are not
13864 # typical AIX shared libraries.
13865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13867 # We preserve .a as extension for shared libraries through AIX4.2
13868 # and later when we are not doing run time linking.
13869 library_names_spec='${libname}${release}.a $libname.a'
13870 soname_spec='${libname}${release}${shared_ext}$major'
13872 shlibpath_var=LIBPATH
13877 library_names_spec='$libname.ixlibrary $libname.a'
13878 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13879 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'
13883 library_names_spec='${libname}${shared_ext}'
13884 dynamic_linker="$host_os ld.so"
13885 shlibpath_var=LIBRARY_PATH
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13894 shlibpath_var=LD_LIBRARY_PATH
13895 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13896 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13897 # the default ld.so.conf also contains /usr/contrib/lib and
13898 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13899 # libtool to hard-code these into programs
13902 cygwin* | mingw* | pw32*)
13903 version_type=windows
13908 case $GCC,$host_os in
13909 yes,cygwin* | yes,mingw* | yes,pw32*)
13910 library_names_spec='$libname.dll.a'
13911 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13912 postinstall_cmds='base_file=`basename \${file}`~
13913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13914 dldir=$destdir/`dirname \$dlpath`~
13915 test -d \$dldir || mkdir -p \$dldir~
13916 $install_prog $dir/$dlname \$dldir/$dlname~
13917 chmod a+x \$dldir/$dlname'
13918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13919 dlpath=$dir/\$dldll~
13921 shlibpath_overrides_runpath=yes
13925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13927 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13930 # MinGW DLLs use traditional 'lib' prefix
13931 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13933 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13934 # It is most probably a Windows format PATH printed by
13935 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13936 # path with ; separators, and with drive letters. We can handle the
13937 # drive letters (cygwin fileutils understands them), so leave them,
13938 # especially as we might pass files found there to a mingw objdump,
13939 # which wouldn't understand a cygwinified path. Ahh.
13940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13946 # pw32 DLLs use 'pw' prefix rather than 'lib'
13947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13956 dynamic_linker='Win32 ld.exe'
13957 # FIXME: first we should search . and the directory the executable is in
13961 darwin* | rhapsody*)
13962 dynamic_linker="$host_os dyld"
13963 version_type=darwin
13966 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13967 soname_spec='${libname}${release}${major}$shared_ext'
13968 shlibpath_overrides_runpath=yes
13969 shlibpath_var=DYLD_LIBRARY_PATH
13970 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13971 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13972 if test "$GCC" = yes; then
13973 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13975 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 shlibpath_var=LD_LIBRARY_PATH
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 shlibpath_overrides_runpath=no
14001 hardcode_into_libs=yes
14002 dynamic_linker='GNU ld.so'
14005 freebsd* | dragonfly*)
14006 # DragonFly does not have aout. When/if they implement a new
14007 # versioning mechanism, adjust this.
14008 if test -x /usr/bin/objformat; then
14009 objformat=`/usr/bin/objformat`
14012 freebsd[123]*) objformat=aout ;;
14013 *) objformat=elf ;;
14016 version_type=freebsd-$objformat
14017 case $version_type in
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14028 shlibpath_var=LD_LIBRARY_PATH
14031 shlibpath_overrides_runpath=yes
14033 freebsd3.[01]* | freebsdelf3.[01]*)
14034 shlibpath_overrides_runpath=yes
14035 hardcode_into_libs=yes
14038 shlibpath_overrides_runpath=no
14039 hardcode_into_libs=yes
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14049 soname_spec='${libname}${release}${shared_ext}$major'
14050 shlibpath_var=LD_LIBRARY_PATH
14051 hardcode_into_libs=yes
14054 hpux9* | hpux10* | hpux11*)
14055 # Give a soname corresponding to the major version so that dld.sl refuses to
14056 # link against other versions.
14063 hardcode_into_libs=yes
14064 dynamic_linker="$host_os dld.so"
14065 shlibpath_var=LD_LIBRARY_PATH
14066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 if test "X$HPUX_IA64_MODE" = X32; then
14070 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14072 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14078 hardcode_into_libs=yes
14079 dynamic_linker="$host_os dld.sl"
14080 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14089 dynamic_linker="$host_os dld.sl"
14090 shlibpath_var=SHLIB_PATH
14091 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14096 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14097 postinstall_cmds='chmod 555 $lib'
14100 irix5* | irix6* | nonstopux*)
14102 nonstopux*) version_type=nonstopux ;;
14104 if test "$lt_cv_prog_gnu_ld" = yes; then
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14115 irix5* | nonstopux*)
14116 libsuff= shlibsuff=
14119 case $LD in # libtool.m4 will add one of these switches to LD
14120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14121 libsuff= shlibsuff= libmagic=32-bit;;
14122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14123 libsuff=32 shlibsuff=N32 libmagic=N32;;
14124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14125 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14126 *) libsuff= shlibsuff= libmagic=never-match;;
14130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14131 shlibpath_overrides_runpath=no
14132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14134 hardcode_into_libs=yes
14137 # No shared lib support for Linux oldld, aout, or coff.
14138 linux*oldld* | linux*aout* | linux*coff*)
14142 # This must be Linux ELF.
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148 soname_spec='${libname}${release}${shared_ext}$major'
14149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 shlibpath_overrides_runpath=no
14152 # This implies no fast_install, which is unacceptable.
14153 # Some rework will be needed to allow for fast_install
14154 # before this can be enabled.
14155 hardcode_into_libs=yes
14157 # Append ld.so.conf contents to the search path
14158 if test -f /etc/ld.so.conf; then
14159 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14160 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14163 # We used to test for /lib/ld.so.1 and disable shared libraries on
14164 # powerpc, because MkLinux only supported shared libraries with the
14165 # GNU dynamic linker. Since this was broken with cross compilers,
14166 # most powerpc-linux boxes support dynamic linking these days and
14167 # people can always --disable-shared, the test was removed, and we
14168 # assume the GNU/Linux dynamic linker is in use.
14169 dynamic_linker='GNU/Linux ld.so'
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 shlibpath_overrides_runpath=no
14180 hardcode_into_libs=yes
14181 dynamic_linker='GNU ld.so'
14188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14191 dynamic_linker='NetBSD (a.out) ld.so'
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14194 soname_spec='${libname}${release}${shared_ext}$major'
14195 dynamic_linker='NetBSD ld.elf_so'
14197 shlibpath_var=LD_LIBRARY_PATH
14198 shlibpath_overrides_runpath=yes
14199 hardcode_into_libs=yes
14204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14205 shlibpath_var=LD_LIBRARY_PATH
14206 shlibpath_overrides_runpath=yes
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14214 soname_spec='${libname}${release}${shared_ext}$major'
14215 shlibpath_var=LD_LIBRARY_PATH
14216 shlibpath_overrides_runpath=yes
14222 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14224 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14225 *) need_version=no ;;
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14232 openbsd2.[89] | openbsd2.[89].*)
14233 shlibpath_overrides_runpath=no
14236 shlibpath_overrides_runpath=yes
14240 shlibpath_overrides_runpath=yes
14245 libname_spec='$name'
14248 library_names_spec='$libname${shared_ext} $libname.a'
14249 dynamic_linker='OS/2 ld.exe'
14250 shlibpath_var=LIBPATH
14253 osf3* | osf4* | osf5*)
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14259 shlibpath_var=LD_LIBRARY_PATH
14260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14261 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14266 soname_spec='${libname}${release}${shared_ext}$major'
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 shlibpath_var=LD_LIBRARY_PATH
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276 soname_spec='${libname}${release}${shared_ext}$major'
14277 shlibpath_var=LD_LIBRARY_PATH
14278 shlibpath_overrides_runpath=yes
14279 hardcode_into_libs=yes
14280 # ldd complains unless libraries are executable
14281 postinstall_cmds='chmod +x $lib'
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14288 shlibpath_var=LD_LIBRARY_PATH
14289 shlibpath_overrides_runpath=yes
14290 if test "$with_gnu_ld" = yes; then
14296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299 soname_spec='${libname}${release}${shared_ext}$major'
14300 shlibpath_var=LD_LIBRARY_PATH
14301 case $host_vendor in
14303 shlibpath_overrides_runpath=no
14305 export_dynamic_flag_spec='${wl}-Blargedynsym'
14306 runpath_var=LD_RUN_PATH
14314 shlibpath_overrides_runpath=no
14315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14321 if test -d /usr/nec ;then
14323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14324 soname_spec='$libname${shared_ext}.$major'
14325 shlibpath_var=LD_LIBRARY_PATH
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332 soname_spec='${libname}${release}${shared_ext}$major'
14333 shlibpath_var=LD_LIBRARY_PATH
14340 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14341 echo "${ECHO_T}$dynamic_linker" >&6; }
14342 test "$dynamic_linker" = no && can_build_shared=no
14344 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14345 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14346 hardcode_action_CXX=
14347 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14348 test -n "$runpath_var_CXX" || \
14349 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14351 # We can hardcode non-existant directories.
14352 if test "$hardcode_direct_CXX" != no &&
14353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14354 # have to relink, otherwise we might link with an installed library
14355 # when we should be linking with a yet-to-be-installed one
14356 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14357 test "$hardcode_minus_L_CXX" != no; then
14358 # Linking always hardcodes the temporary library directory.
14359 hardcode_action_CXX=relink
14361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14362 hardcode_action_CXX=immediate
14365 # We cannot hardcode anything, or else we can only hardcode existing
14367 hardcode_action_CXX=unsupported
14369 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14370 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14372 if test "$hardcode_action_CXX" = relink; then
14373 # Fast installation is not supported
14374 enable_fast_install=no
14375 elif test "$shlibpath_overrides_runpath" = yes ||
14376 test "$enable_shared" = no; then
14377 # Fast installation is not necessary
14378 enable_fast_install=needless
14383 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14384 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
14385 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14387 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14388 { echo "$as_me:$LINENO: result: yes" >&5
14389 echo "${ECHO_T}yes" >&6; }
14391 # FIXME - insert some real tests, host_os isn't really good enough
14394 if test -n "$STRIP" ; then
14395 striplib="$STRIP -x"
14396 { echo "$as_me:$LINENO: result: yes" >&5
14397 echo "${ECHO_T}yes" >&6; }
14399 { echo "$as_me:$LINENO: result: no" >&5
14400 echo "${ECHO_T}no" >&6; }
14404 { echo "$as_me:$LINENO: result: no" >&5
14405 echo "${ECHO_T}no" >&6; }
14410 if test "x$enable_dlopen" != xyes; then
14411 enable_dlopen=unknown
14412 enable_dlopen_self=unknown
14413 enable_dlopen_self_static=unknown
14420 lt_cv_dlopen="load_add_on"
14422 lt_cv_dlopen_self=yes
14426 lt_cv_dlopen="LoadLibrary"
14431 lt_cv_dlopen="dlopen"
14436 # if libdl is installed we need to link against it
14437 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14438 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14439 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 ac_check_lib_save_LIBS=$LIBS
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14451 /* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (ac_try="$ac_link"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_link") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_cxx_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest$ac_exeext &&
14483 $as_test_x conftest$ac_exeext; then
14484 ac_cv_lib_dl_dlopen=yes
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ac_cv_lib_dl_dlopen=no
14492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14493 conftest$ac_exeext conftest.$ac_ext
14494 LIBS=$ac_check_lib_save_LIBS
14496 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14498 if test $ac_cv_lib_dl_dlopen = yes; then
14499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14502 lt_cv_dlopen="dyld"
14504 lt_cv_dlopen_self=yes
14511 { echo "$as_me:$LINENO: checking for shl_load" >&5
14512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
14513 if test "${ac_cv_func_shl_load+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14524 #define shl_load innocuous_shl_load
14526 /* System header to define __stub macros and hopefully few prototypes,
14527 which can conflict with char shl_load (); below.
14528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529 <limits.h> exists even on freestanding compilers. */
14532 # include <limits.h>
14534 # include <assert.h>
14539 /* Override any GCC internal prototype to avoid an error.
14540 Use char because int might match the return type of a GCC
14541 builtin and then its argument prototype would still apply. */
14546 /* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549 #if defined __stub_shl_load || defined __stub___shl_load
14556 return shl_load ();
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (ac_try="$ac_link"
14563 case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_link") 2>conftest.er1
14570 grep -v '^ *+' conftest.er1 >conftest.err
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_cxx_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest$ac_exeext &&
14578 $as_test_x conftest$ac_exeext; then
14579 ac_cv_func_shl_load=yes
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_cv_func_shl_load=no
14587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588 conftest$ac_exeext conftest.$ac_ext
14590 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14591 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
14592 if test $ac_cv_func_shl_load = yes; then
14593 lt_cv_dlopen="shl_load"
14595 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14596 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
14597 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 ac_check_lib_save_LIBS=$LIBS
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14609 /* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14619 return shl_load ();
14624 rm -f conftest.$ac_objext conftest$ac_exeext
14625 if { (ac_try="$ac_link"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_link") 2>conftest.er1
14633 grep -v '^ *+' conftest.er1 >conftest.err
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } && {
14638 test -z "$ac_cxx_werror_flag" ||
14639 test ! -s conftest.err
14640 } && test -s conftest$ac_exeext &&
14641 $as_test_x conftest$ac_exeext; then
14642 ac_cv_lib_dld_shl_load=yes
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_cv_lib_dld_shl_load=no
14650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14651 conftest$ac_exeext conftest.$ac_ext
14652 LIBS=$ac_check_lib_save_LIBS
14654 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14655 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
14656 if test $ac_cv_lib_dld_shl_load = yes; then
14657 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14659 { echo "$as_me:$LINENO: checking for dlopen" >&5
14660 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
14661 if test "${ac_cv_func_dlopen+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14672 #define dlopen innocuous_dlopen
14674 /* System header to define __stub macros and hopefully few prototypes,
14675 which can conflict with char dlopen (); below.
14676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14677 <limits.h> exists even on freestanding compilers. */
14680 # include <limits.h>
14682 # include <assert.h>
14687 /* Override any GCC internal prototype to avoid an error.
14688 Use char because int might match the return type of a GCC
14689 builtin and then its argument prototype would still apply. */
14694 /* The GNU C library defines this for functions which it implements
14695 to always fail with ENOSYS. Some functions are actually named
14696 something starting with __ and the normal name is an alias. */
14697 #if defined __stub_dlopen || defined __stub___dlopen
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (ac_try="$ac_link"
14711 case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_link") 2>conftest.er1
14718 grep -v '^ *+' conftest.er1 >conftest.err
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } && {
14723 test -z "$ac_cxx_werror_flag" ||
14724 test ! -s conftest.err
14725 } && test -s conftest$ac_exeext &&
14726 $as_test_x conftest$ac_exeext; then
14727 ac_cv_func_dlopen=yes
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_cv_func_dlopen=no
14735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14736 conftest$ac_exeext conftest.$ac_ext
14738 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14739 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
14740 if test $ac_cv_func_dlopen = yes; then
14741 lt_cv_dlopen="dlopen"
14743 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14744 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 ac_check_lib_save_LIBS=$LIBS
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14772 rm -f conftest.$ac_objext conftest$ac_exeext
14773 if { (ac_try="$ac_link"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_link") 2>conftest.er1
14781 grep -v '^ *+' conftest.er1 >conftest.err
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && {
14786 test -z "$ac_cxx_werror_flag" ||
14787 test ! -s conftest.err
14788 } && test -s conftest$ac_exeext &&
14789 $as_test_x conftest$ac_exeext; then
14790 ac_cv_lib_dl_dlopen=yes
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_cv_lib_dl_dlopen=no
14798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14799 conftest$ac_exeext conftest.$ac_ext
14800 LIBS=$ac_check_lib_save_LIBS
14802 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14803 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14804 if test $ac_cv_lib_dl_dlopen = yes; then
14805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14807 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14808 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
14809 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 ac_check_lib_save_LIBS=$LIBS
14813 LIBS="-lsvld $LIBS"
14814 cat >conftest.$ac_ext <<_ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14821 /* Override any GCC internal prototype to avoid an error.
14822 Use char because int might match the return type of a GCC
14823 builtin and then its argument prototype would still apply. */
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (ac_try="$ac_link"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_link") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } && {
14850 test -z "$ac_cxx_werror_flag" ||
14851 test ! -s conftest.err
14852 } && test -s conftest$ac_exeext &&
14853 $as_test_x conftest$ac_exeext; then
14854 ac_cv_lib_svld_dlopen=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_lib_svld_dlopen=no
14862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14866 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14867 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
14868 if test $ac_cv_lib_svld_dlopen = yes; then
14869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14871 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14872 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
14873 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 ac_check_lib_save_LIBS=$LIBS
14878 cat >conftest.$ac_ext <<_ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14885 /* Override any GCC internal prototype to avoid an error.
14886 Use char because int might match the return type of a GCC
14887 builtin and then its argument prototype would still apply. */
14895 return dld_link ();
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (ac_try="$ac_link"
14902 case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_link") 2>conftest.er1
14909 grep -v '^ *+' conftest.er1 >conftest.err
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } && {
14914 test -z "$ac_cxx_werror_flag" ||
14915 test ! -s conftest.err
14916 } && test -s conftest$ac_exeext &&
14917 $as_test_x conftest$ac_exeext; then
14918 ac_cv_lib_dld_dld_link=yes
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ac_cv_lib_dld_dld_link=no
14926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14927 conftest$ac_exeext conftest.$ac_ext
14928 LIBS=$ac_check_lib_save_LIBS
14930 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14931 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
14932 if test $ac_cv_lib_dld_dld_link = yes; then
14933 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14954 if test "x$lt_cv_dlopen" != xno; then
14960 case $lt_cv_dlopen in
14962 save_CPPFLAGS="$CPPFLAGS"
14963 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14965 save_LDFLAGS="$LDFLAGS"
14966 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14969 LIBS="$lt_cv_dlopen_libs $LIBS"
14971 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14972 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
14973 if test "${lt_cv_dlopen_self+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 if test "$cross_compiling" = yes; then :
14977 lt_cv_dlopen_self=cross
14979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14980 lt_status=$lt_dlunknown
14981 cat > conftest.$ac_ext <<EOF
14982 #line 14982 "configure"
14983 #include "confdefs.h"
14992 # define LT_DLGLOBAL RTLD_GLOBAL
14995 # define LT_DLGLOBAL DL_GLOBAL
14997 # define LT_DLGLOBAL 0
15001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15002 find out it does not work in some platform. */
15003 #ifndef LT_DLLAZY_OR_NOW
15005 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15008 # define LT_DLLAZY_OR_NOW DL_LAZY
15011 # define LT_DLLAZY_OR_NOW RTLD_NOW
15014 # define LT_DLLAZY_OR_NOW DL_NOW
15016 # define LT_DLLAZY_OR_NOW 0
15024 extern "C" void exit (int);
15027 void fnord() { int i=42;}
15030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15031 int status = $lt_dlunknown;
15035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15036 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15037 /* dlclose (self); */
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15048 (./conftest; exit; ) >&5 2>/dev/null
15050 case x$lt_status in
15051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15053 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15056 # compilation failed
15057 lt_cv_dlopen_self=no
15064 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15065 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
15067 if test "x$lt_cv_dlopen_self" = xyes; then
15068 LDFLAGS="$LDFLAGS $link_static_flag"
15069 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15070 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
15071 if test "${lt_cv_dlopen_self_static+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 if test "$cross_compiling" = yes; then :
15075 lt_cv_dlopen_self_static=cross
15077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15078 lt_status=$lt_dlunknown
15079 cat > conftest.$ac_ext <<EOF
15080 #line 15080 "configure"
15081 #include "confdefs.h"
15090 # define LT_DLGLOBAL RTLD_GLOBAL
15093 # define LT_DLGLOBAL DL_GLOBAL
15095 # define LT_DLGLOBAL 0
15099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15100 find out it does not work in some platform. */
15101 #ifndef LT_DLLAZY_OR_NOW
15103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15106 # define LT_DLLAZY_OR_NOW DL_LAZY
15109 # define LT_DLLAZY_OR_NOW RTLD_NOW
15112 # define LT_DLLAZY_OR_NOW DL_NOW
15114 # define LT_DLLAZY_OR_NOW 0
15122 extern "C" void exit (int);
15125 void fnord() { int i=42;}
15128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15129 int status = $lt_dlunknown;
15133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15134 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15135 /* dlclose (self); */
15141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142 (eval $ac_link) 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15146 (./conftest; exit; ) >&5 2>/dev/null
15148 case x$lt_status in
15149 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15150 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15151 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15154 # compilation failed
15155 lt_cv_dlopen_self_static=no
15162 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15163 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
15166 CPPFLAGS="$save_CPPFLAGS"
15167 LDFLAGS="$save_LDFLAGS"
15172 case $lt_cv_dlopen_self in
15173 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15174 *) enable_dlopen_self=unknown ;;
15177 case $lt_cv_dlopen_self_static in
15178 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15179 *) enable_dlopen_self_static=unknown ;;
15184 # The else clause should only fire when bootstrapping the
15185 # libtool distribution, otherwise you forgot to ship ltmain.sh
15186 # with your package, and you will get complaints that there are
15187 # no rules to generate ltmain.sh.
15188 if test -f "$ltmain"; then
15189 # See if we are running on zsh, and set the options which allow our commands through
15190 # without removal of \ escapes.
15191 if test -n "${ZSH_VERSION+set}" ; then
15192 setopt NO_GLOB_SUBST
15194 # Now quote all the things that may contain metacharacters while being
15195 # careful not to overquote the AC_SUBSTed values. We take copies of the
15196 # variables and quote the copies for generation of the libtool script.
15197 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15201 deplibs_check_method reload_flag reload_cmds need_locks \
15202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15203 lt_cv_sys_global_symbol_to_c_name_address \
15204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15205 old_postinstall_cmds old_postuninstall_cmds \
15209 lt_prog_compiler_wl_CXX \
15210 lt_prog_compiler_pic_CXX \
15211 lt_prog_compiler_static_CXX \
15212 lt_prog_compiler_no_builtin_flag_CXX \
15213 export_dynamic_flag_spec_CXX \
15214 thread_safe_flag_spec_CXX \
15215 whole_archive_flag_spec_CXX \
15216 enable_shared_with_static_runtimes_CXX \
15217 old_archive_cmds_CXX \
15218 old_archive_from_new_cmds_CXX \
15219 predep_objects_CXX \
15220 postdep_objects_CXX \
15223 compiler_lib_search_path_CXX \
15225 archive_expsym_cmds_CXX \
15226 postinstall_cmds_CXX \
15227 postuninstall_cmds_CXX \
15228 old_archive_from_expsyms_cmds_CXX \
15229 allow_undefined_flag_CXX \
15230 no_undefined_flag_CXX \
15231 export_symbols_cmds_CXX \
15232 hardcode_libdir_flag_spec_CXX \
15233 hardcode_libdir_flag_spec_ld_CXX \
15234 hardcode_libdir_separator_CXX \
15235 hardcode_automatic_CXX \
15237 module_expsym_cmds_CXX \
15238 lt_cv_prog_compiler_c_o_CXX \
15239 exclude_expsyms_CXX \
15240 include_expsyms_CXX; do
15243 old_archive_cmds_CXX | \
15244 old_archive_from_new_cmds_CXX | \
15245 archive_cmds_CXX | \
15246 archive_expsym_cmds_CXX | \
15247 module_cmds_CXX | \
15248 module_expsym_cmds_CXX | \
15249 old_archive_from_expsyms_cmds_CXX | \
15250 export_symbols_cmds_CXX | \
15251 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15252 postinstall_cmds | postuninstall_cmds | \
15253 old_postinstall_cmds | old_postuninstall_cmds | \
15254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15255 # Double-quote double-evaled strings.
15256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15265 *'\$0 --fallback-echo"')
15266 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15272 cat <<__EOF__ >> "$cfgfile"
15273 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15277 # Shell to use when invoking shell scripts.
15280 # Whether or not to build shared libraries.
15281 build_libtool_libs=$enable_shared
15283 # Whether or not to build static libraries.
15284 build_old_libs=$enable_static
15286 # Whether or not to add -lc for building shared libraries.
15287 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15289 # Whether or not to disallow shared libs when runtime libs are static
15290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15292 # Whether or not to optimize for fast installation.
15293 fast_install=$enable_fast_install
15296 host_alias=$host_alias
15300 # The build system.
15301 build_alias=$build_alias
15305 # An echo program that does not interpret backslashes.
15310 AR_FLAGS=$lt_AR_FLAGS
15315 # A language-specific compiler.
15316 CC=$lt_compiler_CXX
15318 # Is the compiler the GNU C compiler?
15324 # The linker used to build libraries.
15327 # Whether we need hard or soft links.
15330 # A BSD-compatible nm program.
15333 # A symbol stripping program
15336 # Used to examine libraries when file_magic_cmd begins "file"
15337 MAGIC_CMD=$MAGIC_CMD
15339 # Used on cygwin: DLL creation program.
15342 # Used on cygwin: object dumper.
15345 # Used on cygwin: assembler.
15348 # The name of the directory that contains temporary libtool files.
15351 # How to create reloadable object files.
15352 reload_flag=$lt_reload_flag
15353 reload_cmds=$lt_reload_cmds
15355 # How to pass a linker flag through the compiler.
15356 wl=$lt_lt_prog_compiler_wl_CXX
15358 # Object file suffix (normally "o").
15359 objext="$ac_objext"
15361 # Old archive suffix (normally "a").
15364 # Shared library suffix (normally ".so").
15365 shrext_cmds='$shrext_cmds'
15367 # Executable file suffix (normally "").
15370 # Additional compiler flags for building library objects.
15371 pic_flag=$lt_lt_prog_compiler_pic_CXX
15374 # What is the maximum length of a command?
15375 max_cmd_len=$lt_cv_sys_max_cmd_len
15377 # Does compiler simultaneously support -c and -o options?
15378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15380 # Must we lock files when doing compilation?
15381 need_locks=$lt_need_locks
15383 # Do we need the lib prefix for modules?
15384 need_lib_prefix=$need_lib_prefix
15386 # Do we need a version for libraries?
15387 need_version=$need_version
15389 # Whether dlopen is supported.
15390 dlopen_support=$enable_dlopen
15392 # Whether dlopen of programs is supported.
15393 dlopen_self=$enable_dlopen_self
15395 # Whether dlopen of statically linked programs is supported.
15396 dlopen_self_static=$enable_dlopen_self_static
15398 # Compiler flag to prevent dynamic linking.
15399 link_static_flag=$lt_lt_prog_compiler_static_CXX
15401 # Compiler flag to turn off builtin functions.
15402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15404 # Compiler flag to allow reflexive dlopens.
15405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15407 # Compiler flag to generate shared objects directly from archives.
15408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15410 # Compiler flag to generate thread-safe objects.
15411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15413 # Library versioning type.
15414 version_type=$version_type
15416 # Format of library name prefix.
15417 libname_spec=$lt_libname_spec
15419 # List of archive names. First name is the real one, the rest are links.
15420 # The last name is the one that the linker finds with -lNAME.
15421 library_names_spec=$lt_library_names_spec
15423 # The coded name of the library, if different from the real name.
15424 soname_spec=$lt_soname_spec
15426 # Commands used to build and install an old-style archive.
15428 old_archive_cmds=$lt_old_archive_cmds_CXX
15429 old_postinstall_cmds=$lt_old_postinstall_cmds
15430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15432 # Create an old-style archive from a shared archive.
15433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15435 # Create a temporary old-style archive to link instead of a shared archive.
15436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15438 # Commands used to build and install a shared archive.
15439 archive_cmds=$lt_archive_cmds_CXX
15440 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15441 postinstall_cmds=$lt_postinstall_cmds
15442 postuninstall_cmds=$lt_postuninstall_cmds
15444 # Commands used to build a loadable module (assumed same as above if empty)
15445 module_cmds=$lt_module_cmds_CXX
15446 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15448 # Commands to strip libraries.
15449 old_striplib=$lt_old_striplib
15450 striplib=$lt_striplib
15452 # Dependencies to place before the objects being linked to create a
15454 predep_objects=$lt_predep_objects_CXX
15456 # Dependencies to place after the objects being linked to create a
15458 postdep_objects=$lt_postdep_objects_CXX
15460 # Dependencies to place before the objects being linked to create a
15462 predeps=$lt_predeps_CXX
15464 # Dependencies to place after the objects being linked to create a
15466 postdeps=$lt_postdeps_CXX
15468 # The library search path used internally by the compiler when linking
15469 # a shared library.
15470 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15472 # Method to check whether dependent libraries are shared objects.
15473 deplibs_check_method=$lt_deplibs_check_method
15475 # Command to use when deplibs_check_method == file_magic.
15476 file_magic_cmd=$lt_file_magic_cmd
15478 # Flag that allows shared libraries with undefined symbols to be built.
15479 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15481 # Flag that forces no undefined symbols.
15482 no_undefined_flag=$lt_no_undefined_flag_CXX
15484 # Commands used to finish a libtool library installation in a directory.
15485 finish_cmds=$lt_finish_cmds
15487 # Same as above, but a single script fragment to be evaled but not shown.
15488 finish_eval=$lt_finish_eval
15490 # Take the output of nm and produce a listing of raw symbols and C names.
15491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15493 # Transform the output of nm in a proper C declaration
15494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15496 # Transform the output of nm in a C name address pair
15497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15499 # This is the shared library runtime path variable.
15500 runpath_var=$runpath_var
15502 # This is the shared library path variable.
15503 shlibpath_var=$shlibpath_var
15505 # Is shlibpath searched before the hard-coded library search path?
15506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15508 # How to hardcode a shared library path into an executable.
15509 hardcode_action=$hardcode_action_CXX
15511 # Whether we should hardcode library paths into libraries.
15512 hardcode_into_libs=$hardcode_into_libs
15514 # Flag to hardcode \$libdir into a binary during linking.
15515 # This must work even if \$libdir does not exist.
15516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15518 # If ld is used when linking, flag to hardcode \$libdir into
15519 # a binary during linking. This must work even if \$libdir does
15521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15523 # Whether we need a single -rpath flag with a separated argument.
15524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15527 # resulting binary.
15528 hardcode_direct=$hardcode_direct_CXX
15530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15531 # resulting binary.
15532 hardcode_minus_L=$hardcode_minus_L_CXX
15534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15535 # the resulting binary.
15536 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15538 # Set to yes if building a shared library automatically hardcodes DIR into the library
15539 # and all subsequent libraries and executables linked against it.
15540 hardcode_automatic=$hardcode_automatic_CXX
15542 # Variables whose values should be saved in libtool wrapper scripts and
15543 # restored at relink time.
15544 variables_saved_for_relink="$variables_saved_for_relink"
15546 # Whether libtool must link a program against all its dependency libraries.
15547 link_all_deplibs=$link_all_deplibs_CXX
15549 # Compile-time system search path for libraries
15550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15552 # Run-time system search path for libraries
15553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15555 # Fix the shell variable \$srcfile for the compiler.
15556 fix_srcfile_path="$fix_srcfile_path_CXX"
15558 # Set to yes if exported symbols are required.
15559 always_export_symbols=$always_export_symbols_CXX
15561 # The commands to list exported symbols.
15562 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15564 # The commands to extract the exported symbol list from a shared archive.
15565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15567 # Symbols that should not be listed in the preloaded symbols.
15568 exclude_expsyms=$lt_exclude_expsyms_CXX
15570 # Symbols that must always be exported.
15571 include_expsyms=$lt_include_expsyms_CXX
15573 # ### END LIBTOOL TAG CONFIG: $tagname
15579 # If there is no Makefile yet, we rely on a make rule to execute
15580 # `config.status --recheck' to rerun these tests and create the
15581 # libtool script then.
15582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15583 if test -f "$ltmain_in"; then
15584 test -f Makefile && make "$ltmain"
15590 ac_cpp='$CPP $CPPFLAGS'
15591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15599 with_gnu_ldcxx=$with_gnu_ld
15600 with_gnu_ld=$lt_save_with_gnu_ld
15601 lt_cv_path_LDCXX=$lt_cv_path_LD
15602 lt_cv_path_LD=$lt_save_path_LD
15603 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15604 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15612 if test -n "$F77" && test "X$F77" != "Xno"; then
15615 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15616 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15617 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15620 archive_cmds_need_lc_F77=no
15621 allow_undefined_flag_F77=
15622 always_export_symbols_F77=no
15623 archive_expsym_cmds_F77=
15624 export_dynamic_flag_spec_F77=
15625 hardcode_direct_F77=no
15626 hardcode_libdir_flag_spec_F77=
15627 hardcode_libdir_flag_spec_ld_F77=
15628 hardcode_libdir_separator_F77=
15629 hardcode_minus_L_F77=no
15630 hardcode_automatic_F77=no
15632 module_expsym_cmds_F77=
15633 link_all_deplibs_F77=unknown
15634 old_archive_cmds_F77=$old_archive_cmds
15635 no_undefined_flag_F77=
15636 whole_archive_flag_spec_F77=
15637 enable_shared_with_static_runtimes_F77=no
15639 # Source file extension for f77 test sources.
15642 # Object file extension for compiled f77 test sources.
15646 # Code to be used in simple compile tests
15647 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15649 # Code to be used in simple link tests
15650 lt_simple_link_test_code=" program t\n end\n"
15652 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15654 # If no C compiler was specified, use CC.
15657 # Allow CC to be a program name with arguments.
15661 # save warnings/boilerplate of simple test code
15662 ac_outfile=conftest.$ac_objext
15663 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15665 _lt_compiler_boilerplate=`cat conftest.err`
15668 ac_outfile=conftest.$ac_objext
15669 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15671 _lt_linker_boilerplate=`cat conftest.err`
15675 # Allow CC to be a program name with arguments.
15680 for cc_temp in $compiler""; do
15682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15688 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15691 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15692 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15693 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15694 echo "${ECHO_T}$can_build_shared" >&6; }
15696 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15697 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15698 test "$can_build_shared" = "no" && enable_shared=no
15700 # On AIX, shared libraries and static libraries use the same namespace, and
15701 # are all built from PIC.
15704 test "$enable_shared" = yes && enable_static=no
15705 if test -n "$RANLIB"; then
15706 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15707 postinstall_cmds='$RANLIB $lib'
15711 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15712 test "$enable_shared" = yes && enable_static=no
15716 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15717 echo "${ECHO_T}$enable_shared" >&6; }
15719 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15720 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15721 # Make sure either enable_shared or enable_static is yes.
15722 test "$enable_shared" = yes || enable_static=yes
15723 { echo "$as_me:$LINENO: result: $enable_static" >&5
15724 echo "${ECHO_T}$enable_static" >&6; }
15726 test "$ld_shlibs_F77" = no && can_build_shared=no
15731 lt_prog_compiler_wl_F77=
15732 lt_prog_compiler_pic_F77=
15733 lt_prog_compiler_static_F77=
15735 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15736 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15738 if test "$GCC" = yes; then
15739 lt_prog_compiler_wl_F77='-Wl,'
15740 lt_prog_compiler_static_F77='-static'
15744 # All AIX code is PIC.
15745 if test "$host_cpu" = ia64; then
15746 # AIX 5 now supports IA64 processor
15747 lt_prog_compiler_static_F77='-Bstatic'
15752 # FIXME: we need at least 68020 code to build shared libraries, but
15753 # adding the `-m68020' flag to GCC prevents building anything better,
15755 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15758 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15759 # PIC is the default for these OSes.
15762 mingw* | pw32* | os2*)
15763 # This hack is so that the source file can tell whether it is being
15764 # built for inclusion in a dll (and should export symbols for example).
15765 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15768 darwin* | rhapsody*)
15769 # PIC is the default on this platform
15770 # Common symbols not allowed in MH_DYLIB files
15771 lt_prog_compiler_pic_F77='-fno-common'
15775 # Just because we use GCC doesn't mean we suddenly get shared libraries
15776 # on systems that don't support them.
15777 lt_prog_compiler_can_build_shared_F77=no
15782 if test -d /usr/nec; then
15783 lt_prog_compiler_pic_F77=-Kconform_pic
15788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15789 # not for PA HP-UX.
15795 lt_prog_compiler_pic_F77='-fPIC'
15801 lt_prog_compiler_pic_F77='-fPIC'
15805 # PORTME Check for flag to pass linker flags through the system compiler.
15808 lt_prog_compiler_wl_F77='-Wl,'
15809 if test "$host_cpu" = ia64; then
15810 # AIX 5 now supports IA64 processor
15811 lt_prog_compiler_static_F77='-Bstatic'
15813 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15817 # PIC is the default on this platform
15818 # Common symbols not allowed in MH_DYLIB files
15819 case $cc_basename in
15821 lt_prog_compiler_pic_F77='-qnocommon'
15822 lt_prog_compiler_wl_F77='-Wl,'
15827 mingw* | pw32* | os2*)
15828 # This hack is so that the source file can tell whether it is being
15829 # built for inclusion in a dll (and should export symbols for example).
15830 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15833 hpux9* | hpux10* | hpux11*)
15834 lt_prog_compiler_wl_F77='-Wl,'
15835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15836 # not for PA HP-UX.
15842 lt_prog_compiler_pic_F77='+Z'
15845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15846 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15849 irix5* | irix6* | nonstopux*)
15850 lt_prog_compiler_wl_F77='-Wl,'
15851 # PIC (with -KPIC) is the default.
15852 lt_prog_compiler_static_F77='-non_shared'
15856 lt_prog_compiler_pic_F77='-KPIC'
15857 lt_prog_compiler_static_F77='-Bstatic'
15861 case $cc_basename in
15863 lt_prog_compiler_wl_F77='-Wl,'
15864 lt_prog_compiler_pic_F77='-KPIC'
15865 lt_prog_compiler_static_F77='-static'
15867 pgcc* | pgf77* | pgf90* | pgf95*)
15868 # Portland Group compilers (*not* the Pentium gcc compiler,
15869 # which looks to be a dead project)
15870 lt_prog_compiler_wl_F77='-Wl,'
15871 lt_prog_compiler_pic_F77='-fpic'
15872 lt_prog_compiler_static_F77='-Bstatic'
15875 lt_prog_compiler_wl_F77='-Wl,'
15876 # All Alpha code is PIC.
15877 lt_prog_compiler_static_F77='-non_shared'
15882 osf3* | osf4* | osf5*)
15883 lt_prog_compiler_wl_F77='-Wl,'
15884 # All OSF/1 code is PIC.
15885 lt_prog_compiler_static_F77='-non_shared'
15889 lt_prog_compiler_pic_F77='-Kpic'
15890 lt_prog_compiler_static_F77='-dn'
15894 lt_prog_compiler_pic_F77='-KPIC'
15895 lt_prog_compiler_static_F77='-Bstatic'
15896 case $cc_basename in
15897 f77* | f90* | f95*)
15898 lt_prog_compiler_wl_F77='-Qoption ld ';;
15900 lt_prog_compiler_wl_F77='-Wl,';;
15905 lt_prog_compiler_wl_F77='-Qoption ld '
15906 lt_prog_compiler_pic_F77='-PIC'
15907 lt_prog_compiler_static_F77='-Bstatic'
15910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15911 lt_prog_compiler_wl_F77='-Wl,'
15912 lt_prog_compiler_pic_F77='-KPIC'
15913 lt_prog_compiler_static_F77='-Bstatic'
15917 if test -d /usr/nec ;then
15918 lt_prog_compiler_pic_F77='-Kconform_pic'
15919 lt_prog_compiler_static_F77='-Bstatic'
15924 lt_prog_compiler_wl_F77='-Wl,'
15925 lt_prog_compiler_can_build_shared_F77=no
15929 lt_prog_compiler_pic_F77='-pic'
15930 lt_prog_compiler_static_F77='-Bstatic'
15934 lt_prog_compiler_can_build_shared_F77=no
15939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15940 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15943 # Check to make sure the PIC flag actually works.
15945 if test -n "$lt_prog_compiler_pic_F77"; then
15947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15949 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 lt_prog_compiler_pic_works_F77=no
15953 ac_outfile=conftest.$ac_objext
15954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15955 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15956 # Insert the option either (1) after the last *FLAGS variable, or
15957 # (2) before a word containing "conftest.", or (3) at the end.
15958 # Note that $ac_compile itself does not contain backslashes and begins
15959 # with a dollar sign (not a hyphen), so the echo should work correctly.
15960 # The option is referenced via a variable to avoid confusing sed.
15961 lt_compile=`echo "$ac_compile" | $SED \
15962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15964 -e 's:$: $lt_compiler_flag:'`
15965 (eval echo "\"\$as_me:15965: $lt_compile\"" >&5)
15966 (eval "$lt_compile" 2>conftest.err)
15968 cat conftest.err >&5
15969 echo "$as_me:15969: \$? = $ac_status" >&5
15970 if (exit $ac_status) && test -s "$ac_outfile"; then
15971 # The compiler can only warn and ignore the option if not recognized
15972 # So say no if there are warnings other than the usual output.
15973 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15974 $SED '/^$/d' conftest.err >conftest.er2
15975 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15976 lt_prog_compiler_pic_works_F77=yes
15982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15983 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15985 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15986 case $lt_prog_compiler_pic_F77 in
15988 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15991 lt_prog_compiler_pic_F77=
15992 lt_prog_compiler_can_build_shared_F77=no
15997 # For platforms which do not support PIC, -DPIC is meaningless:
15999 lt_prog_compiler_pic_F77=
16002 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16006 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16007 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16008 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 lt_cv_prog_compiler_c_o_F77=no
16012 $rm -r conftest 2>/dev/null
16016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16018 lt_compiler_flag="-o out/conftest2.$ac_objext"
16019 # Insert the option either (1) after the last *FLAGS variable, or
16020 # (2) before a word containing "conftest.", or (3) at the end.
16021 # Note that $ac_compile itself does not contain backslashes and begins
16022 # with a dollar sign (not a hyphen), so the echo should work correctly.
16023 lt_compile=`echo "$ac_compile" | $SED \
16024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16026 -e 's:$: $lt_compiler_flag:'`
16027 (eval echo "\"\$as_me:16027: $lt_compile\"" >&5)
16028 (eval "$lt_compile" 2>out/conftest.err)
16030 cat out/conftest.err >&5
16031 echo "$as_me:16031: \$? = $ac_status" >&5
16032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16034 # The compiler can only warn and ignore the option if not recognized
16035 # So say no if there are warnings
16036 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16037 $SED '/^$/d' out/conftest.err >out/conftest.er2
16038 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16039 lt_cv_prog_compiler_c_o_F77=yes
16044 # SGI C++ compiler will create directory out/ii_files/ for
16045 # template instantiation
16046 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16047 $rm out/* && rmdir out
16053 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16057 hard_links="nottested"
16058 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16059 # do not overwrite the value of need_locks provided by the user
16060 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16066 ln conftest.a conftest.b 2>&5 || hard_links=no
16067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16068 { echo "$as_me:$LINENO: result: $hard_links" >&5
16069 echo "${ECHO_T}$hard_links" >&6; }
16070 if test "$hard_links" = no; then
16071 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16079 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16083 allow_undefined_flag_F77=
16084 enable_shared_with_static_runtimes_F77=no
16086 archive_expsym_cmds_F77=
16087 old_archive_From_new_cmds_F77=
16088 old_archive_from_expsyms_cmds_F77=
16089 export_dynamic_flag_spec_F77=
16090 whole_archive_flag_spec_F77=
16091 thread_safe_flag_spec_F77=
16092 hardcode_libdir_flag_spec_F77=
16093 hardcode_libdir_flag_spec_ld_F77=
16094 hardcode_libdir_separator_F77=
16095 hardcode_direct_F77=no
16096 hardcode_minus_L_F77=no
16097 hardcode_shlibpath_var_F77=unsupported
16098 link_all_deplibs_F77=unknown
16099 hardcode_automatic_F77=no
16101 module_expsym_cmds_F77=
16102 always_export_symbols_F77=no
16103 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16104 # include_expsyms should be a list of space-separated symbols to be *always*
16105 # included in the symbol list
16106 include_expsyms_F77=
16107 # exclude_expsyms can be an extended regexp of symbols to exclude
16108 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16109 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16110 # as well as any symbol that contains `d'.
16111 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16112 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16113 # platforms (ab)use it in PIC code, but their linkers get confused if
16114 # the symbol is explicitly referenced. Since portable code cannot
16115 # rely on this symbol name, it's probably fine to never include it in
16116 # preloaded symbol tables.
16117 extract_expsyms_cmds=
16118 # Just being paranoid about ensuring that cc_basename is set.
16119 for cc_temp in $compiler""; do
16121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16130 cygwin* | mingw* | pw32*)
16131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16132 # When not using gcc, we currently assume that we are using
16133 # Microsoft Visual C++.
16134 if test "$GCC" != yes; then
16144 if test "$with_gnu_ld" = yes; then
16145 # If archive_cmds runs LD, not CC, wlarc should be empty
16148 # Set some defaults for GNU ld with shared library support. These
16149 # are reset later if shared libraries are not supported. Putting them
16150 # here allows them to be overridden if necessary.
16151 runpath_var=LD_RUN_PATH
16152 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16153 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16154 # ancient GNU ld didn't support --whole-archive et. al.
16155 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16156 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16158 whole_archive_flag_spec_F77=
16160 supports_anon_versioning=no
16161 case `$LD -v 2>/dev/null` in
16162 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16163 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16164 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16165 *\ 2.11.*) ;; # other 2.11 versions
16166 *) supports_anon_versioning=yes ;;
16169 # See if GNU ld supports shared libraries.
16171 aix3* | aix4* | aix5*)
16172 # On AIX/PPC, the GNU linker is very broken
16173 if test "$host_cpu" != ia64; then
16177 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16178 *** to be unable to reliably create shared libraries on AIX.
16179 *** Therefore, libtool is disabling shared libraries support. If you
16180 *** really care for shared libraries, you may want to modify your PATH
16181 *** so that a non-GNU linker is found, and then restart.
16188 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)'
16189 hardcode_libdir_flag_spec_F77='-L$libdir'
16190 hardcode_minus_L_F77=yes
16192 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16193 # that the semantics of dynamic libraries on AmigaOS, at least up
16194 # to version 4, is to share data among multiple programs linked
16195 # with the same dynamic library. Since this doesn't match the
16196 # behavior of shared libraries on other platforms, we can't use
16202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16203 allow_undefined_flag_F77=unsupported
16204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16205 # support --undefined. This deserves some investigation. FIXME
16206 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16212 cygwin* | mingw* | pw32*)
16213 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16214 # as there is no search path for DLLs.
16215 hardcode_libdir_flag_spec_F77='-L$libdir'
16216 allow_undefined_flag_F77=unsupported
16217 always_export_symbols_F77=no
16218 enable_shared_with_static_runtimes_F77=yes
16219 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16221 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16222 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16223 # If the export-symbols file already is a .def file (1st line
16224 # is EXPORTS), use it as is; otherwise, prepend...
16225 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16226 cp $export_symbols $output_objdir/$soname.def;
16228 echo EXPORTS > $output_objdir/$soname.def;
16229 cat $export_symbols >> $output_objdir/$soname.def;
16231 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16240 case $cc_basename,$host_cpu in
16241 pgcc*) # Portland Group C compiler
16242 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'
16243 tmp_addflag=' $pic_flag'
16245 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16246 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'
16247 tmp_addflag=' $pic_flag -Mnomain' ;;
16248 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16249 tmp_addflag=' -i_dynamic' ;;
16250 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16251 tmp_addflag=' -i_dynamic -nofor_main' ;;
16252 ifc* | ifort*) # Intel Fortran compiler
16253 tmp_addflag=' -nofor_main' ;;
16255 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16257 if test $supports_anon_versioning = yes; then
16258 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16260 $echo "local: *; };" >> $output_objdir/$libname.ver~
16261 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16270 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16273 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16274 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16279 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16284 *** create shared libraries on Solaris systems. Therefore, libtool
16285 *** is disabling shared libraries support. We urge you to upgrade GNU
16286 *** binutils to release 2.9.1 or newer. Another option is to modify
16287 *** your PATH or compiler configuration so that the native linker is
16288 *** used, and then restart.
16291 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16292 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16293 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16300 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_direct_F77=yes
16303 hardcode_shlibpath_var_F77=no
16307 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16309 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16316 if test "$ld_shlibs_F77" = no; then
16318 hardcode_libdir_flag_spec_F77=
16319 export_dynamic_flag_spec_F77=
16320 whole_archive_flag_spec_F77=
16323 # PORTME fill in a description of your system's linker (not GNU ld)
16326 allow_undefined_flag_F77=unsupported
16327 always_export_symbols_F77=yes
16328 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'
16329 # Note: this linker hardcodes the directories in LIBPATH if there
16330 # are no directories specified by -L.
16331 hardcode_minus_L_F77=yes
16332 if test "$GCC" = yes && test -z "$link_static_flag"; then
16333 # Neither direct hardcoding nor static linking is supported with a
16335 hardcode_direct_F77=unsupported
16340 if test "$host_cpu" = ia64; then
16341 # On IA64, the linker does run time linking by default, so we don't
16342 # have to do anything special.
16343 aix_use_runtimelinking=no
16344 exp_sym_flag='-Bexport'
16347 # If we're using GNU nm, then we don't want the "-C" option.
16348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16349 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16350 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'
16352 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'
16354 aix_use_runtimelinking=no
16356 # Test if we are trying to use run time linking or normal
16357 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16358 # need to do runtime linking.
16359 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16360 for ld_flag in $LDFLAGS; do
16361 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16362 aix_use_runtimelinking=yes
16368 exp_sym_flag='-bexport'
16369 no_entry_flag='-bnoentry'
16372 # When large executables or shared objects are built, AIX ld can
16373 # have problems creating the table of contents. If linking a library
16374 # or program results in "error TOC overflow" add -mminimal-toc to
16375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16378 archive_cmds_F77=''
16379 hardcode_direct_F77=yes
16380 hardcode_libdir_separator_F77=':'
16381 link_all_deplibs_F77=yes
16383 if test "$GCC" = yes; then
16384 case $host_os in aix4.[012]|aix4.[012].*)
16385 # We only want to do this on AIX 4.2 and lower, the check
16386 # below for broken collect2 doesn't work under 4.3+
16387 collect2name=`${CC} -print-prog-name=collect2`
16388 if test -f "$collect2name" && \
16389 strings "$collect2name" | grep resolve_lib_name >/dev/null
16391 # We have reworked collect2
16392 hardcode_direct_F77=yes
16394 # We have old collect2
16395 hardcode_direct_F77=unsupported
16396 # It fails to find uninstalled libraries when the uninstalled
16397 # path is not listed in the libpath. Setting hardcode_minus_L
16398 # to unsupported forces relinking
16399 hardcode_minus_L_F77=yes
16400 hardcode_libdir_flag_spec_F77='-L$libdir'
16401 hardcode_libdir_separator_F77=
16404 shared_flag='-shared'
16405 if test "$aix_use_runtimelinking" = yes; then
16406 shared_flag="$shared_flag "'${wl}-G'
16410 if test "$host_cpu" = ia64; then
16411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16412 # chokes on -Wl,-G. The following line is correct:
16415 if test "$aix_use_runtimelinking" = yes; then
16416 shared_flag='${wl}-G'
16418 shared_flag='${wl}-bM:SRE'
16423 # It seems that -bexpall does not export symbols beginning with
16424 # underscore (_), so it is better to generate a list of symbols to export.
16425 always_export_symbols_F77=yes
16426 if test "$aix_use_runtimelinking" = yes; then
16427 # Warning - without using the other runtime loading flags (-brtl),
16428 # -berok will link without error, but may produce a broken library.
16429 allow_undefined_flag_F77='-berok'
16430 # Determine the default libpath from the value encoded in an empty executable.
16431 cat >conftest.$ac_ext <<_ACEOF
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (ac_try="$ac_link"
16438 case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_link") 2>conftest.er1
16445 grep -v '^ *+' conftest.er1 >conftest.err
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_f77_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest$ac_exeext &&
16453 $as_test_x conftest$ac_exeext; then
16455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16457 # Check for a 64-bit object if we didn't find anything.
16458 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16468 conftest$ac_exeext conftest.$ac_ext
16469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16471 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16472 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16474 if test "$host_cpu" = ia64; then
16475 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16476 allow_undefined_flag_F77="-z nodefs"
16477 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16479 # Determine the default libpath from the value encoded in an empty executable.
16480 cat >conftest.$ac_ext <<_ACEOF
16485 rm -f conftest.$ac_objext conftest$ac_exeext
16486 if { (ac_try="$ac_link"
16487 case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_link") 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } && {
16499 test -z "$ac_f77_werror_flag" ||
16500 test ! -s conftest.err
16501 } && test -s conftest$ac_exeext &&
16502 $as_test_x conftest$ac_exeext; then
16504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16506 # Check for a 64-bit object if we didn't find anything.
16507 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16517 conftest$ac_exeext conftest.$ac_ext
16518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16520 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16521 # Warning - without using the other run time loading flags,
16522 # -berok will link without error, but may produce a broken library.
16523 no_undefined_flag_F77=' ${wl}-bernotok'
16524 allow_undefined_flag_F77=' ${wl}-berok'
16525 # -bexpall does not export symbols beginning with underscore (_)
16526 always_export_symbols_F77=yes
16527 # Exported symbols can be pulled into shared objects from archives
16528 whole_archive_flag_spec_F77=' '
16529 archive_cmds_need_lc_F77=yes
16530 # This is similar to how AIX traditionally builds its shared libraries.
16531 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16537 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)'
16538 hardcode_libdir_flag_spec_F77='-L$libdir'
16539 hardcode_minus_L_F77=yes
16540 # see comment about different semantics on the GNU ld section
16545 export_dynamic_flag_spec_F77=-rdynamic
16548 cygwin* | mingw* | pw32*)
16549 # When not using gcc, we currently assume that we are using
16550 # Microsoft Visual C++.
16551 # hardcode_libdir_flag_spec is actually meaningless, as there is
16552 # no search path for DLLs.
16553 hardcode_libdir_flag_spec_F77=' '
16554 allow_undefined_flag_F77=unsupported
16555 # Tell ltmain to make .lib files, not .a files.
16557 # Tell ltmain to make .dll files, not .so files.
16559 # FIXME: Setting linknames here is a bad hack.
16560 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16561 # The linker will automatically build a .lib file if we build a DLL.
16562 old_archive_From_new_cmds_F77='true'
16563 # FIXME: Should let the user specify the lib program.
16564 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16565 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16566 enable_shared_with_static_runtimes_F77=yes
16569 darwin* | rhapsody*)
16571 rhapsody* | darwin1.[012])
16572 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16575 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16576 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16578 case ${MACOSX_DEPLOYMENT_TARGET} in
16580 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16583 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16589 archive_cmds_need_lc_F77=no
16590 hardcode_direct_F77=no
16591 hardcode_automatic_F77=yes
16592 hardcode_shlibpath_var_F77=unsupported
16593 whole_archive_flag_spec_F77=''
16594 link_all_deplibs_F77=yes
16595 if test "$GCC" = yes ; then
16596 output_verbose_link_cmd='echo'
16597 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16598 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16599 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16600 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16601 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}'
16603 case $cc_basename in
16605 output_verbose_link_cmd='echo'
16606 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16607 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16608 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16609 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16610 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}'
16620 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16621 hardcode_libdir_flag_spec_F77='-L$libdir'
16622 hardcode_shlibpath_var_F77=no
16629 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16630 # support. Future versions do this automatically, but an explicit c++rt0.o
16631 # does not break anything, and helps significantly (at the cost of a little
16634 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16635 hardcode_libdir_flag_spec_F77='-R$libdir'
16636 hardcode_direct_F77=yes
16637 hardcode_shlibpath_var_F77=no
16640 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16642 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16643 hardcode_direct_F77=yes
16644 hardcode_minus_L_F77=yes
16645 hardcode_shlibpath_var_F77=no
16648 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16649 freebsd* | kfreebsd*-gnu | dragonfly*)
16650 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16651 hardcode_libdir_flag_spec_F77='-R$libdir'
16652 hardcode_direct_F77=yes
16653 hardcode_shlibpath_var_F77=no
16657 if test "$GCC" = yes; then
16658 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'
16660 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'
16662 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16663 hardcode_libdir_separator_F77=:
16664 hardcode_direct_F77=yes
16666 # hardcode_minus_L: Not really in the search PATH,
16667 # but as the default location of the library.
16668 hardcode_minus_L_F77=yes
16669 export_dynamic_flag_spec_F77='${wl}-E'
16673 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16676 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16685 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16688 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16692 if test "$with_gnu_ld" = no; then
16695 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16696 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16697 hardcode_libdir_separator_F77=:
16698 hardcode_direct_F77=no
16699 hardcode_shlibpath_var_F77=no
16702 hardcode_libdir_flag_spec_F77='-L$libdir'
16703 hardcode_direct_F77=no
16704 hardcode_shlibpath_var_F77=no
16706 # hardcode_minus_L: Not really in the search PATH,
16707 # but as the default location of the library.
16708 hardcode_minus_L_F77=yes
16711 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16712 hardcode_libdir_separator_F77=:
16713 hardcode_direct_F77=yes
16714 export_dynamic_flag_spec_F77='${wl}-E'
16716 # hardcode_minus_L: Not really in the search PATH,
16717 # but as the default location of the library.
16718 hardcode_minus_L_F77=yes
16724 irix5* | irix6* | nonstopux*)
16725 if test "$GCC" = yes; then
16726 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'
16728 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'
16729 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16731 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16732 hardcode_libdir_separator_F77=:
16733 link_all_deplibs_F77=yes
16737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16738 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16740 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16742 hardcode_libdir_flag_spec_F77='-R$libdir'
16743 hardcode_direct_F77=yes
16744 hardcode_shlibpath_var_F77=no
16748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16749 hardcode_direct_F77=yes
16750 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16751 hardcode_libdir_separator_F77=:
16752 hardcode_shlibpath_var_F77=no
16756 hardcode_direct_F77=yes
16757 hardcode_shlibpath_var_F77=no
16758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16759 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16760 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16761 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16762 export_dynamic_flag_spec_F77='${wl}-E'
16765 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16767 hardcode_libdir_flag_spec_F77='-R$libdir'
16770 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16771 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16778 hardcode_libdir_flag_spec_F77='-L$libdir'
16779 hardcode_minus_L_F77=yes
16780 allow_undefined_flag_F77=unsupported
16781 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'
16782 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16786 if test "$GCC" = yes; then
16787 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16788 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'
16790 allow_undefined_flag_F77=' -expect_unresolved \*'
16791 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'
16793 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16794 hardcode_libdir_separator_F77=:
16797 osf4* | osf5*) # as osf3* with the addition of -msym flag
16798 if test "$GCC" = yes; then
16799 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16800 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'
16801 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16803 allow_undefined_flag_F77=' -expect_unresolved \*'
16804 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'
16805 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~
16806 $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'
16808 # Both c and cxx compiler support -rpath directly
16809 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16811 hardcode_libdir_separator_F77=:
16815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816 hardcode_shlibpath_var_F77=no
16817 export_dynamic_flag_spec_F77='${wl}-Bexport'
16818 runpath_var=LD_RUN_PATH
16819 hardcode_runpath_var=yes
16823 no_undefined_flag_F77=' -z text'
16824 if test "$GCC" = yes; then
16826 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16827 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16828 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16831 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16835 hardcode_libdir_flag_spec_F77='-R$libdir'
16836 hardcode_shlibpath_var_F77=no
16838 solaris2.[0-5] | solaris2.[0-5].*) ;;
16840 # The compiler driver will combine linker options so we
16841 # cannot just pass the convience library names through
16842 # without $wl, iff we do not link with $LD.
16843 # Luckily, gcc supports the same syntax we need for Sun Studio.
16844 # Supported since Solaris 2.6 (maybe 2.5.1?)
16847 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16849 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16852 link_all_deplibs_F77=yes
16856 if test "x$host_vendor" = xsequent; then
16857 # Use $CC to link under sequent, because it throws in some extra .o
16858 # files that make .init and .fini sections work.
16859 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16861 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16863 hardcode_libdir_flag_spec_F77='-L$libdir'
16864 hardcode_direct_F77=yes
16865 hardcode_minus_L_F77=yes
16866 hardcode_shlibpath_var_F77=no
16870 case $host_vendor in
16872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873 hardcode_direct_F77=yes # is this really true???
16876 ## LD is ld it makes a PLAMLIB
16877 ## CC just makes a GrossModule.
16878 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16879 reload_cmds_F77='$CC -r -o $output$reload_objs'
16880 hardcode_direct_F77=no
16883 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16887 runpath_var='LD_RUN_PATH'
16888 hardcode_shlibpath_var_F77=no
16892 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16893 hardcode_shlibpath_var_F77=no
16894 export_dynamic_flag_spec_F77='-Bexport'
16898 if test -d /usr/nec; then
16899 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900 hardcode_shlibpath_var_F77=no
16901 runpath_var=LD_RUN_PATH
16902 hardcode_runpath_var=yes
16908 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16909 hardcode_direct_F77=yes
16910 hardcode_minus_L_F77=no
16911 hardcode_shlibpath_var_F77=no
16912 hardcode_runpath_var=yes
16913 runpath_var=LD_RUN_PATH
16916 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16917 no_undefined_flag_F77='${wl}-z ${wl}text'
16918 if test "$GCC" = yes; then
16919 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16921 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16923 runpath_var='LD_RUN_PATH'
16924 hardcode_shlibpath_var_F77=no
16928 no_undefined_flag_F77=' -z text'
16929 # $CC -shared without GNU ld will not create a library from C++
16930 # object files and a static libstdc++, better avoid it by now
16931 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16932 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16934 hardcode_libdir_flag_spec_F77=
16935 hardcode_shlibpath_var_F77=no
16936 runpath_var='LD_RUN_PATH'
16940 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16941 hardcode_libdir_flag_spec_F77='-L$libdir'
16942 hardcode_shlibpath_var_F77=no
16951 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16952 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16953 test "$ld_shlibs_F77" = no && can_build_shared=no
16955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16956 if test "$GCC" = yes; then
16957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16961 # Do we need to explicitly link libc?
16963 case "x$archive_cmds_need_lc_F77" in
16965 # Assume -lc should be added
16966 archive_cmds_need_lc_F77=yes
16968 if test "$enable_shared" = yes && test "$GCC" = yes; then
16969 case $archive_cmds_F77 in
16971 # FIXME: we may have to deal with multi-command sequences.
16974 # Test whether the compiler implicitly links with -lc since on some
16975 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16976 # to ld, don't add -lc before -lgcc.
16977 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16978 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16980 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } 2>conftest.err; then
16989 libobjs=conftest.$ac_objext
16991 wl=$lt_prog_compiler_wl_F77
16997 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16998 allow_undefined_flag_F77=
16999 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17000 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }
17005 archive_cmds_need_lc_F77=no
17007 archive_cmds_need_lc_F77=yes
17009 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17011 cat conftest.err 1>&5
17014 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17015 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17022 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17023 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17024 library_names_spec=
17025 libname_spec='lib$name'
17029 postuninstall_cmds=
17033 shlibpath_overrides_runpath=unknown
17035 dynamic_linker="$host_os ld.so"
17036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17037 if test "$GCC" = yes; then
17038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17039 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17040 # if the path contains ";" then we assume it to be the separator
17041 # otherwise default to the standard path separator (i.e. ":") - it is
17042 # assumed that no part of a normal pathname contains ";" but that should
17043 # okay in the real world where ";" in dirpaths is itself problematic.
17044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17051 need_lib_prefix=unknown
17052 hardcode_into_libs=no
17054 # when you set need_version to no, make sure it does not cause -set_version
17055 # flags to be left without arguments
17056 need_version=unknown
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17062 shlibpath_var=LIBPATH
17064 # AIX 3 has no versioning support, so we append a major version to the name.
17065 soname_spec='${libname}${release}${shared_ext}$major'
17072 hardcode_into_libs=yes
17073 if test "$host_cpu" = ia64; then
17074 # AIX 5 supports IA64
17075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17076 shlibpath_var=LD_LIBRARY_PATH
17078 # With GCC up to 2.95.x, collect2 would create an import file
17079 # for dependence libraries. The import file would start with
17080 # the line `#! .'. This would cause the generated library to
17081 # depend on `.', always an invalid library. This was fixed in
17082 # development snapshots of GCC prior to 3.0.
17084 aix4 | aix4.[01] | aix4.[01].*)
17085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17087 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17090 can_build_shared=no
17094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17095 # soname into executable. Probably we can add versioning support to
17096 # collect2, so additional links can be useful in future.
17097 if test "$aix_use_runtimelinking" = yes; then
17098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17099 # instead of lib<name>.a to let people know that these are not
17100 # typical AIX shared libraries.
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 # We preserve .a as extension for shared libraries through AIX4.2
17104 # and later when we are not doing run time linking.
17105 library_names_spec='${libname}${release}.a $libname.a'
17106 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LIBPATH
17113 library_names_spec='$libname.ixlibrary $libname.a'
17114 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17115 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'
17119 library_names_spec='${libname}${shared_ext}'
17120 dynamic_linker="$host_os ld.so"
17121 shlibpath_var=LIBRARY_PATH
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17130 shlibpath_var=LD_LIBRARY_PATH
17131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17133 # the default ld.so.conf also contains /usr/contrib/lib and
17134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17135 # libtool to hard-code these into programs
17138 cygwin* | mingw* | pw32*)
17139 version_type=windows
17144 case $GCC,$host_os in
17145 yes,cygwin* | yes,mingw* | yes,pw32*)
17146 library_names_spec='$libname.dll.a'
17147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17148 postinstall_cmds='base_file=`basename \${file}`~
17149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17150 dldir=$destdir/`dirname \$dlpath`~
17151 test -d \$dldir || mkdir -p \$dldir~
17152 $install_prog $dir/$dlname \$dldir/$dlname~
17153 chmod a+x \$dldir/$dlname'
17154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17155 dlpath=$dir/\$dldll~
17157 shlibpath_overrides_runpath=yes
17161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17163 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17166 # MinGW DLLs use traditional 'lib' prefix
17167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17169 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17170 # It is most probably a Windows format PATH printed by
17171 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17172 # path with ; separators, and with drive letters. We can handle the
17173 # drive letters (cygwin fileutils understands them), so leave them,
17174 # especially as we might pass files found there to a mingw objdump,
17175 # which wouldn't understand a cygwinified path. Ahh.
17176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17182 # pw32 DLLs use 'pw' prefix rather than 'lib'
17183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17192 dynamic_linker='Win32 ld.exe'
17193 # FIXME: first we should search . and the directory the executable is in
17197 darwin* | rhapsody*)
17198 dynamic_linker="$host_os dyld"
17199 version_type=darwin
17202 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17203 soname_spec='${libname}${release}${major}$shared_ext'
17204 shlibpath_overrides_runpath=yes
17205 shlibpath_var=DYLD_LIBRARY_PATH
17206 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17207 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17208 if test "$GCC" = yes; then
17209 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17211 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17213 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 shlibpath_var=LD_LIBRARY_PATH
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 shlibpath_var=LD_LIBRARY_PATH
17236 shlibpath_overrides_runpath=no
17237 hardcode_into_libs=yes
17238 dynamic_linker='GNU ld.so'
17241 freebsd* | dragonfly*)
17242 # DragonFly does not have aout. When/if they implement a new
17243 # versioning mechanism, adjust this.
17244 if test -x /usr/bin/objformat; then
17245 objformat=`/usr/bin/objformat`
17248 freebsd[123]*) objformat=aout ;;
17249 *) objformat=elf ;;
17252 version_type=freebsd-$objformat
17253 case $version_type in
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17264 shlibpath_var=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath=yes
17269 freebsd3.[01]* | freebsdelf3.[01]*)
17270 shlibpath_overrides_runpath=yes
17271 hardcode_into_libs=yes
17274 shlibpath_overrides_runpath=no
17275 hardcode_into_libs=yes
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 hardcode_into_libs=yes
17290 hpux9* | hpux10* | hpux11*)
17291 # Give a soname corresponding to the major version so that dld.sl refuses to
17292 # link against other versions.
17299 hardcode_into_libs=yes
17300 dynamic_linker="$host_os dld.so"
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304 soname_spec='${libname}${release}${shared_ext}$major'
17305 if test "X$HPUX_IA64_MODE" = X32; then
17306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17314 hardcode_into_libs=yes
17315 dynamic_linker="$host_os dld.sl"
17316 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319 soname_spec='${libname}${release}${shared_ext}$major'
17320 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17325 dynamic_linker="$host_os dld.sl"
17326 shlibpath_var=SHLIB_PATH
17327 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17332 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17333 postinstall_cmds='chmod 555 $lib'
17336 irix5* | irix6* | nonstopux*)
17338 nonstopux*) version_type=nonstopux ;;
17340 if test "$lt_cv_prog_gnu_ld" = yes; then
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17351 irix5* | nonstopux*)
17352 libsuff= shlibsuff=
17355 case $LD in # libtool.m4 will add one of these switches to LD
17356 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17357 libsuff= shlibsuff= libmagic=32-bit;;
17358 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17359 libsuff=32 shlibsuff=N32 libmagic=N32;;
17360 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17361 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17362 *) libsuff= shlibsuff= libmagic=never-match;;
17366 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17367 shlibpath_overrides_runpath=no
17368 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17369 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17370 hardcode_into_libs=yes
17373 # No shared lib support for Linux oldld, aout, or coff.
17374 linux*oldld* | linux*aout* | linux*coff*)
17378 # This must be Linux ELF.
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17386 shlibpath_var=LD_LIBRARY_PATH
17387 shlibpath_overrides_runpath=no
17388 # This implies no fast_install, which is unacceptable.
17389 # Some rework will be needed to allow for fast_install
17390 # before this can be enabled.
17391 hardcode_into_libs=yes
17393 # Append ld.so.conf contents to the search path
17394 if test -f /etc/ld.so.conf; then
17395 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17399 # We used to test for /lib/ld.so.1 and disable shared libraries on
17400 # powerpc, because MkLinux only supported shared libraries with the
17401 # GNU dynamic linker. Since this was broken with cross compilers,
17402 # most powerpc-linux boxes support dynamic linking these days and
17403 # people can always --disable-shared, the test was removed, and we
17404 # assume the GNU/Linux dynamic linker is in use.
17405 dynamic_linker='GNU/Linux ld.so'
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17413 soname_spec='${libname}${release}${shared_ext}$major'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath=no
17416 hardcode_into_libs=yes
17417 dynamic_linker='GNU ld.so'
17424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427 dynamic_linker='NetBSD (a.out) ld.so'
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 dynamic_linker='NetBSD ld.elf_so'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath=yes
17435 hardcode_into_libs=yes
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=yes
17458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17461 *) need_version=no ;;
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17468 openbsd2.[89] | openbsd2.[89].*)
17469 shlibpath_overrides_runpath=no
17472 shlibpath_overrides_runpath=yes
17476 shlibpath_overrides_runpath=yes
17481 libname_spec='$name'
17484 library_names_spec='$libname${shared_ext} $libname.a'
17485 dynamic_linker='OS/2 ld.exe'
17486 shlibpath_var=LIBPATH
17489 osf3* | osf4* | osf5*)
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17502 soname_spec='${libname}${release}${shared_ext}$major'
17503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17504 shlibpath_var=LD_LIBRARY_PATH
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 shlibpath_var=LD_LIBRARY_PATH
17514 shlibpath_overrides_runpath=yes
17515 hardcode_into_libs=yes
17516 # ldd complains unless libraries are executable
17517 postinstall_cmds='chmod +x $lib'
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 shlibpath_overrides_runpath=yes
17526 if test "$with_gnu_ld" = yes; then
17532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 shlibpath_var=LD_LIBRARY_PATH
17537 case $host_vendor in
17539 shlibpath_overrides_runpath=no
17541 export_dynamic_flag_spec='${wl}-Blargedynsym'
17542 runpath_var=LD_RUN_PATH
17550 shlibpath_overrides_runpath=no
17551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17557 if test -d /usr/nec ;then
17559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17560 soname_spec='$libname${shared_ext}.$major'
17561 shlibpath_var=LD_LIBRARY_PATH
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 soname_spec='${libname}${release}${shared_ext}$major'
17569 shlibpath_var=LD_LIBRARY_PATH
17576 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17577 echo "${ECHO_T}$dynamic_linker" >&6; }
17578 test "$dynamic_linker" = no && can_build_shared=no
17580 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17582 hardcode_action_F77=
17583 if test -n "$hardcode_libdir_flag_spec_F77" || \
17584 test -n "$runpath_var_F77" || \
17585 test "X$hardcode_automatic_F77" = "Xyes" ; then
17587 # We can hardcode non-existant directories.
17588 if test "$hardcode_direct_F77" != no &&
17589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17590 # have to relink, otherwise we might link with an installed library
17591 # when we should be linking with a yet-to-be-installed one
17592 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17593 test "$hardcode_minus_L_F77" != no; then
17594 # Linking always hardcodes the temporary library directory.
17595 hardcode_action_F77=relink
17597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17598 hardcode_action_F77=immediate
17601 # We cannot hardcode anything, or else we can only hardcode existing
17603 hardcode_action_F77=unsupported
17605 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17606 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17608 if test "$hardcode_action_F77" = relink; then
17609 # Fast installation is not supported
17610 enable_fast_install=no
17611 elif test "$shlibpath_overrides_runpath" = yes ||
17612 test "$enable_shared" = no; then
17613 # Fast installation is not necessary
17614 enable_fast_install=needless
17619 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17620 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17621 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17624 { echo "$as_me:$LINENO: result: yes" >&5
17625 echo "${ECHO_T}yes" >&6; }
17627 # FIXME - insert some real tests, host_os isn't really good enough
17630 if test -n "$STRIP" ; then
17631 striplib="$STRIP -x"
17632 { echo "$as_me:$LINENO: result: yes" >&5
17633 echo "${ECHO_T}yes" >&6; }
17635 { echo "$as_me:$LINENO: result: no" >&5
17636 echo "${ECHO_T}no" >&6; }
17640 { echo "$as_me:$LINENO: result: no" >&5
17641 echo "${ECHO_T}no" >&6; }
17648 # The else clause should only fire when bootstrapping the
17649 # libtool distribution, otherwise you forgot to ship ltmain.sh
17650 # with your package, and you will get complaints that there are
17651 # no rules to generate ltmain.sh.
17652 if test -f "$ltmain"; then
17653 # See if we are running on zsh, and set the options which allow our commands through
17654 # without removal of \ escapes.
17655 if test -n "${ZSH_VERSION+set}" ; then
17656 setopt NO_GLOB_SUBST
17658 # Now quote all the things that may contain metacharacters while being
17659 # careful not to overquote the AC_SUBSTed values. We take copies of the
17660 # variables and quote the copies for generation of the libtool script.
17661 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17663 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17664 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17665 deplibs_check_method reload_flag reload_cmds need_locks \
17666 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17667 lt_cv_sys_global_symbol_to_c_name_address \
17668 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17669 old_postinstall_cmds old_postuninstall_cmds \
17673 lt_prog_compiler_wl_F77 \
17674 lt_prog_compiler_pic_F77 \
17675 lt_prog_compiler_static_F77 \
17676 lt_prog_compiler_no_builtin_flag_F77 \
17677 export_dynamic_flag_spec_F77 \
17678 thread_safe_flag_spec_F77 \
17679 whole_archive_flag_spec_F77 \
17680 enable_shared_with_static_runtimes_F77 \
17681 old_archive_cmds_F77 \
17682 old_archive_from_new_cmds_F77 \
17683 predep_objects_F77 \
17684 postdep_objects_F77 \
17687 compiler_lib_search_path_F77 \
17689 archive_expsym_cmds_F77 \
17690 postinstall_cmds_F77 \
17691 postuninstall_cmds_F77 \
17692 old_archive_from_expsyms_cmds_F77 \
17693 allow_undefined_flag_F77 \
17694 no_undefined_flag_F77 \
17695 export_symbols_cmds_F77 \
17696 hardcode_libdir_flag_spec_F77 \
17697 hardcode_libdir_flag_spec_ld_F77 \
17698 hardcode_libdir_separator_F77 \
17699 hardcode_automatic_F77 \
17701 module_expsym_cmds_F77 \
17702 lt_cv_prog_compiler_c_o_F77 \
17703 exclude_expsyms_F77 \
17704 include_expsyms_F77; do
17707 old_archive_cmds_F77 | \
17708 old_archive_from_new_cmds_F77 | \
17709 archive_cmds_F77 | \
17710 archive_expsym_cmds_F77 | \
17711 module_cmds_F77 | \
17712 module_expsym_cmds_F77 | \
17713 old_archive_from_expsyms_cmds_F77 | \
17714 export_symbols_cmds_F77 | \
17715 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17716 postinstall_cmds | postuninstall_cmds | \
17717 old_postinstall_cmds | old_postuninstall_cmds | \
17718 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17719 # Double-quote double-evaled strings.
17720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17729 *'\$0 --fallback-echo"')
17730 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17736 cat <<__EOF__ >> "$cfgfile"
17737 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17739 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17741 # Shell to use when invoking shell scripts.
17744 # Whether or not to build shared libraries.
17745 build_libtool_libs=$enable_shared
17747 # Whether or not to build static libraries.
17748 build_old_libs=$enable_static
17750 # Whether or not to add -lc for building shared libraries.
17751 build_libtool_need_lc=$archive_cmds_need_lc_F77
17753 # Whether or not to disallow shared libs when runtime libs are static
17754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17756 # Whether or not to optimize for fast installation.
17757 fast_install=$enable_fast_install
17760 host_alias=$host_alias
17764 # The build system.
17765 build_alias=$build_alias
17769 # An echo program that does not interpret backslashes.
17774 AR_FLAGS=$lt_AR_FLAGS
17779 # A language-specific compiler.
17780 CC=$lt_compiler_F77
17782 # Is the compiler the GNU C compiler?
17788 # The linker used to build libraries.
17791 # Whether we need hard or soft links.
17794 # A BSD-compatible nm program.
17797 # A symbol stripping program
17800 # Used to examine libraries when file_magic_cmd begins "file"
17801 MAGIC_CMD=$MAGIC_CMD
17803 # Used on cygwin: DLL creation program.
17806 # Used on cygwin: object dumper.
17809 # Used on cygwin: assembler.
17812 # The name of the directory that contains temporary libtool files.
17815 # How to create reloadable object files.
17816 reload_flag=$lt_reload_flag
17817 reload_cmds=$lt_reload_cmds
17819 # How to pass a linker flag through the compiler.
17820 wl=$lt_lt_prog_compiler_wl_F77
17822 # Object file suffix (normally "o").
17823 objext="$ac_objext"
17825 # Old archive suffix (normally "a").
17828 # Shared library suffix (normally ".so").
17829 shrext_cmds='$shrext_cmds'
17831 # Executable file suffix (normally "").
17834 # Additional compiler flags for building library objects.
17835 pic_flag=$lt_lt_prog_compiler_pic_F77
17838 # What is the maximum length of a command?
17839 max_cmd_len=$lt_cv_sys_max_cmd_len
17841 # Does compiler simultaneously support -c and -o options?
17842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17844 # Must we lock files when doing compilation?
17845 need_locks=$lt_need_locks
17847 # Do we need the lib prefix for modules?
17848 need_lib_prefix=$need_lib_prefix
17850 # Do we need a version for libraries?
17851 need_version=$need_version
17853 # Whether dlopen is supported.
17854 dlopen_support=$enable_dlopen
17856 # Whether dlopen of programs is supported.
17857 dlopen_self=$enable_dlopen_self
17859 # Whether dlopen of statically linked programs is supported.
17860 dlopen_self_static=$enable_dlopen_self_static
17862 # Compiler flag to prevent dynamic linking.
17863 link_static_flag=$lt_lt_prog_compiler_static_F77
17865 # Compiler flag to turn off builtin functions.
17866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17868 # Compiler flag to allow reflexive dlopens.
17869 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17871 # Compiler flag to generate shared objects directly from archives.
17872 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17874 # Compiler flag to generate thread-safe objects.
17875 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17877 # Library versioning type.
17878 version_type=$version_type
17880 # Format of library name prefix.
17881 libname_spec=$lt_libname_spec
17883 # List of archive names. First name is the real one, the rest are links.
17884 # The last name is the one that the linker finds with -lNAME.
17885 library_names_spec=$lt_library_names_spec
17887 # The coded name of the library, if different from the real name.
17888 soname_spec=$lt_soname_spec
17890 # Commands used to build and install an old-style archive.
17892 old_archive_cmds=$lt_old_archive_cmds_F77
17893 old_postinstall_cmds=$lt_old_postinstall_cmds
17894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17896 # Create an old-style archive from a shared archive.
17897 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17899 # Create a temporary old-style archive to link instead of a shared archive.
17900 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17902 # Commands used to build and install a shared archive.
17903 archive_cmds=$lt_archive_cmds_F77
17904 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17905 postinstall_cmds=$lt_postinstall_cmds
17906 postuninstall_cmds=$lt_postuninstall_cmds
17908 # Commands used to build a loadable module (assumed same as above if empty)
17909 module_cmds=$lt_module_cmds_F77
17910 module_expsym_cmds=$lt_module_expsym_cmds_F77
17912 # Commands to strip libraries.
17913 old_striplib=$lt_old_striplib
17914 striplib=$lt_striplib
17916 # Dependencies to place before the objects being linked to create a
17918 predep_objects=$lt_predep_objects_F77
17920 # Dependencies to place after the objects being linked to create a
17922 postdep_objects=$lt_postdep_objects_F77
17924 # Dependencies to place before the objects being linked to create a
17926 predeps=$lt_predeps_F77
17928 # Dependencies to place after the objects being linked to create a
17930 postdeps=$lt_postdeps_F77
17932 # The library search path used internally by the compiler when linking
17933 # a shared library.
17934 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17936 # Method to check whether dependent libraries are shared objects.
17937 deplibs_check_method=$lt_deplibs_check_method
17939 # Command to use when deplibs_check_method == file_magic.
17940 file_magic_cmd=$lt_file_magic_cmd
17942 # Flag that allows shared libraries with undefined symbols to be built.
17943 allow_undefined_flag=$lt_allow_undefined_flag_F77
17945 # Flag that forces no undefined symbols.
17946 no_undefined_flag=$lt_no_undefined_flag_F77
17948 # Commands used to finish a libtool library installation in a directory.
17949 finish_cmds=$lt_finish_cmds
17951 # Same as above, but a single script fragment to be evaled but not shown.
17952 finish_eval=$lt_finish_eval
17954 # Take the output of nm and produce a listing of raw symbols and C names.
17955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17957 # Transform the output of nm in a proper C declaration
17958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17960 # Transform the output of nm in a C name address pair
17961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17963 # This is the shared library runtime path variable.
17964 runpath_var=$runpath_var
17966 # This is the shared library path variable.
17967 shlibpath_var=$shlibpath_var
17969 # Is shlibpath searched before the hard-coded library search path?
17970 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17972 # How to hardcode a shared library path into an executable.
17973 hardcode_action=$hardcode_action_F77
17975 # Whether we should hardcode library paths into libraries.
17976 hardcode_into_libs=$hardcode_into_libs
17978 # Flag to hardcode \$libdir into a binary during linking.
17979 # This must work even if \$libdir does not exist.
17980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17982 # If ld is used when linking, flag to hardcode \$libdir into
17983 # a binary during linking. This must work even if \$libdir does
17985 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17987 # Whether we need a single -rpath flag with a separated argument.
17988 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17990 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17991 # resulting binary.
17992 hardcode_direct=$hardcode_direct_F77
17994 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17995 # resulting binary.
17996 hardcode_minus_L=$hardcode_minus_L_F77
17998 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17999 # the resulting binary.
18000 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18002 # Set to yes if building a shared library automatically hardcodes DIR into the library
18003 # and all subsequent libraries and executables linked against it.
18004 hardcode_automatic=$hardcode_automatic_F77
18006 # Variables whose values should be saved in libtool wrapper scripts and
18007 # restored at relink time.
18008 variables_saved_for_relink="$variables_saved_for_relink"
18010 # Whether libtool must link a program against all its dependency libraries.
18011 link_all_deplibs=$link_all_deplibs_F77
18013 # Compile-time system search path for libraries
18014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18016 # Run-time system search path for libraries
18017 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18019 # Fix the shell variable \$srcfile for the compiler.
18020 fix_srcfile_path="$fix_srcfile_path_F77"
18022 # Set to yes if exported symbols are required.
18023 always_export_symbols=$always_export_symbols_F77
18025 # The commands to list exported symbols.
18026 export_symbols_cmds=$lt_export_symbols_cmds_F77
18028 # The commands to extract the exported symbol list from a shared archive.
18029 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18031 # Symbols that should not be listed in the preloaded symbols.
18032 exclude_expsyms=$lt_exclude_expsyms_F77
18034 # Symbols that must always be exported.
18035 include_expsyms=$lt_include_expsyms_F77
18037 # ### END LIBTOOL TAG CONFIG: $tagname
18043 # If there is no Makefile yet, we rely on a make rule to execute
18044 # `config.status --recheck' to rerun these tests and create the
18045 # libtool script then.
18046 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18047 if test -f "$ltmain_in"; then
18048 test -f Makefile && make "$ltmain"
18054 ac_cpp='$CPP $CPPFLAGS'
18055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18067 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18070 # Source file extension for Java test sources.
18073 # Object file extension for compiled Java test sources.
18077 # Code to be used in simple compile tests
18078 lt_simple_compile_test_code="class foo {}\n"
18080 # Code to be used in simple link tests
18081 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18085 # If no C compiler was specified, use CC.
18088 # Allow CC to be a program name with arguments.
18092 # save warnings/boilerplate of simple test code
18093 ac_outfile=conftest.$ac_objext
18094 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18096 _lt_compiler_boilerplate=`cat conftest.err`
18099 ac_outfile=conftest.$ac_objext
18100 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18102 _lt_linker_boilerplate=`cat conftest.err`
18106 # Allow CC to be a program name with arguments.
18111 for cc_temp in $compiler""; do
18113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18122 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18123 archive_cmds_need_lc_GCJ=no
18125 old_archive_cmds_GCJ=$old_archive_cmds
18128 lt_prog_compiler_no_builtin_flag_GCJ=
18130 if test "$GCC" = yes; then
18131 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18134 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18135 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 lt_cv_prog_compiler_rtti_exceptions=no
18140 ac_outfile=conftest.$ac_objext
18141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18142 lt_compiler_flag="-fno-rtti -fno-exceptions"
18143 # Insert the option either (1) after the last *FLAGS variable, or
18144 # (2) before a word containing "conftest.", or (3) at the end.
18145 # Note that $ac_compile itself does not contain backslashes and begins
18146 # with a dollar sign (not a hyphen), so the echo should work correctly.
18147 # The option is referenced via a variable to avoid confusing sed.
18148 lt_compile=`echo "$ac_compile" | $SED \
18149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18151 -e 's:$: $lt_compiler_flag:'`
18152 (eval echo "\"\$as_me:18152: $lt_compile\"" >&5)
18153 (eval "$lt_compile" 2>conftest.err)
18155 cat conftest.err >&5
18156 echo "$as_me:18156: \$? = $ac_status" >&5
18157 if (exit $ac_status) && test -s "$ac_outfile"; then
18158 # The compiler can only warn and ignore the option if not recognized
18159 # So say no if there are warnings other than the usual output.
18160 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18161 $SED '/^$/d' conftest.err >conftest.er2
18162 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18163 lt_cv_prog_compiler_rtti_exceptions=yes
18169 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18170 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18173 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18180 lt_prog_compiler_wl_GCJ=
18181 lt_prog_compiler_pic_GCJ=
18182 lt_prog_compiler_static_GCJ=
18184 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18187 if test "$GCC" = yes; then
18188 lt_prog_compiler_wl_GCJ='-Wl,'
18189 lt_prog_compiler_static_GCJ='-static'
18193 # All AIX code is PIC.
18194 if test "$host_cpu" = ia64; then
18195 # AIX 5 now supports IA64 processor
18196 lt_prog_compiler_static_GCJ='-Bstatic'
18201 # FIXME: we need at least 68020 code to build shared libraries, but
18202 # adding the `-m68020' flag to GCC prevents building anything better,
18204 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18207 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18208 # PIC is the default for these OSes.
18211 mingw* | pw32* | os2*)
18212 # This hack is so that the source file can tell whether it is being
18213 # built for inclusion in a dll (and should export symbols for example).
18214 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18217 darwin* | rhapsody*)
18218 # PIC is the default on this platform
18219 # Common symbols not allowed in MH_DYLIB files
18220 lt_prog_compiler_pic_GCJ='-fno-common'
18224 # Just because we use GCC doesn't mean we suddenly get shared libraries
18225 # on systems that don't support them.
18226 lt_prog_compiler_can_build_shared_GCJ=no
18231 if test -d /usr/nec; then
18232 lt_prog_compiler_pic_GCJ=-Kconform_pic
18237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18238 # not for PA HP-UX.
18244 lt_prog_compiler_pic_GCJ='-fPIC'
18250 lt_prog_compiler_pic_GCJ='-fPIC'
18254 # PORTME Check for flag to pass linker flags through the system compiler.
18257 lt_prog_compiler_wl_GCJ='-Wl,'
18258 if test "$host_cpu" = ia64; then
18259 # AIX 5 now supports IA64 processor
18260 lt_prog_compiler_static_GCJ='-Bstatic'
18262 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18266 # PIC is the default on this platform
18267 # Common symbols not allowed in MH_DYLIB files
18268 case $cc_basename in
18270 lt_prog_compiler_pic_GCJ='-qnocommon'
18271 lt_prog_compiler_wl_GCJ='-Wl,'
18276 mingw* | pw32* | os2*)
18277 # This hack is so that the source file can tell whether it is being
18278 # built for inclusion in a dll (and should export symbols for example).
18279 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18282 hpux9* | hpux10* | hpux11*)
18283 lt_prog_compiler_wl_GCJ='-Wl,'
18284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18285 # not for PA HP-UX.
18291 lt_prog_compiler_pic_GCJ='+Z'
18294 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18295 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18298 irix5* | irix6* | nonstopux*)
18299 lt_prog_compiler_wl_GCJ='-Wl,'
18300 # PIC (with -KPIC) is the default.
18301 lt_prog_compiler_static_GCJ='-non_shared'
18305 lt_prog_compiler_pic_GCJ='-KPIC'
18306 lt_prog_compiler_static_GCJ='-Bstatic'
18310 case $cc_basename in
18312 lt_prog_compiler_wl_GCJ='-Wl,'
18313 lt_prog_compiler_pic_GCJ='-KPIC'
18314 lt_prog_compiler_static_GCJ='-static'
18316 pgcc* | pgf77* | pgf90* | pgf95*)
18317 # Portland Group compilers (*not* the Pentium gcc compiler,
18318 # which looks to be a dead project)
18319 lt_prog_compiler_wl_GCJ='-Wl,'
18320 lt_prog_compiler_pic_GCJ='-fpic'
18321 lt_prog_compiler_static_GCJ='-Bstatic'
18324 lt_prog_compiler_wl_GCJ='-Wl,'
18325 # All Alpha code is PIC.
18326 lt_prog_compiler_static_GCJ='-non_shared'
18331 osf3* | osf4* | osf5*)
18332 lt_prog_compiler_wl_GCJ='-Wl,'
18333 # All OSF/1 code is PIC.
18334 lt_prog_compiler_static_GCJ='-non_shared'
18338 lt_prog_compiler_pic_GCJ='-Kpic'
18339 lt_prog_compiler_static_GCJ='-dn'
18343 lt_prog_compiler_pic_GCJ='-KPIC'
18344 lt_prog_compiler_static_GCJ='-Bstatic'
18345 case $cc_basename in
18346 f77* | f90* | f95*)
18347 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18349 lt_prog_compiler_wl_GCJ='-Wl,';;
18354 lt_prog_compiler_wl_GCJ='-Qoption ld '
18355 lt_prog_compiler_pic_GCJ='-PIC'
18356 lt_prog_compiler_static_GCJ='-Bstatic'
18359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18360 lt_prog_compiler_wl_GCJ='-Wl,'
18361 lt_prog_compiler_pic_GCJ='-KPIC'
18362 lt_prog_compiler_static_GCJ='-Bstatic'
18366 if test -d /usr/nec ;then
18367 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18368 lt_prog_compiler_static_GCJ='-Bstatic'
18373 lt_prog_compiler_wl_GCJ='-Wl,'
18374 lt_prog_compiler_can_build_shared_GCJ=no
18378 lt_prog_compiler_pic_GCJ='-pic'
18379 lt_prog_compiler_static_GCJ='-Bstatic'
18383 lt_prog_compiler_can_build_shared_GCJ=no
18388 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18389 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18392 # Check to make sure the PIC flag actually works.
18394 if test -n "$lt_prog_compiler_pic_GCJ"; then
18396 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18398 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 lt_prog_compiler_pic_works_GCJ=no
18402 ac_outfile=conftest.$ac_objext
18403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18404 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18405 # Insert the option either (1) after the last *FLAGS variable, or
18406 # (2) before a word containing "conftest.", or (3) at the end.
18407 # Note that $ac_compile itself does not contain backslashes and begins
18408 # with a dollar sign (not a hyphen), so the echo should work correctly.
18409 # The option is referenced via a variable to avoid confusing sed.
18410 lt_compile=`echo "$ac_compile" | $SED \
18411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18413 -e 's:$: $lt_compiler_flag:'`
18414 (eval echo "\"\$as_me:18414: $lt_compile\"" >&5)
18415 (eval "$lt_compile" 2>conftest.err)
18417 cat conftest.err >&5
18418 echo "$as_me:18418: \$? = $ac_status" >&5
18419 if (exit $ac_status) && test -s "$ac_outfile"; then
18420 # The compiler can only warn and ignore the option if not recognized
18421 # So say no if there are warnings other than the usual output.
18422 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18423 $SED '/^$/d' conftest.err >conftest.er2
18424 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18425 lt_prog_compiler_pic_works_GCJ=yes
18431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18432 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18434 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18435 case $lt_prog_compiler_pic_GCJ in
18437 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18440 lt_prog_compiler_pic_GCJ=
18441 lt_prog_compiler_can_build_shared_GCJ=no
18446 # For platforms which do not support PIC, -DPIC is meaningless:
18448 lt_prog_compiler_pic_GCJ=
18451 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18455 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18456 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18457 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 lt_cv_prog_compiler_c_o_GCJ=no
18461 $rm -r conftest 2>/dev/null
18465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18467 lt_compiler_flag="-o out/conftest2.$ac_objext"
18468 # Insert the option either (1) after the last *FLAGS variable, or
18469 # (2) before a word containing "conftest.", or (3) at the end.
18470 # Note that $ac_compile itself does not contain backslashes and begins
18471 # with a dollar sign (not a hyphen), so the echo should work correctly.
18472 lt_compile=`echo "$ac_compile" | $SED \
18473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18475 -e 's:$: $lt_compiler_flag:'`
18476 (eval echo "\"\$as_me:18476: $lt_compile\"" >&5)
18477 (eval "$lt_compile" 2>out/conftest.err)
18479 cat out/conftest.err >&5
18480 echo "$as_me:18480: \$? = $ac_status" >&5
18481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18483 # The compiler can only warn and ignore the option if not recognized
18484 # So say no if there are warnings
18485 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18486 $SED '/^$/d' out/conftest.err >out/conftest.er2
18487 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18488 lt_cv_prog_compiler_c_o_GCJ=yes
18493 # SGI C++ compiler will create directory out/ii_files/ for
18494 # template instantiation
18495 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18496 $rm out/* && rmdir out
18502 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18506 hard_links="nottested"
18507 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18508 # do not overwrite the value of need_locks provided by the user
18509 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18515 ln conftest.a conftest.b 2>&5 || hard_links=no
18516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18517 { echo "$as_me:$LINENO: result: $hard_links" >&5
18518 echo "${ECHO_T}$hard_links" >&6; }
18519 if test "$hard_links" = no; then
18520 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18528 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18532 allow_undefined_flag_GCJ=
18533 enable_shared_with_static_runtimes_GCJ=no
18535 archive_expsym_cmds_GCJ=
18536 old_archive_From_new_cmds_GCJ=
18537 old_archive_from_expsyms_cmds_GCJ=
18538 export_dynamic_flag_spec_GCJ=
18539 whole_archive_flag_spec_GCJ=
18540 thread_safe_flag_spec_GCJ=
18541 hardcode_libdir_flag_spec_GCJ=
18542 hardcode_libdir_flag_spec_ld_GCJ=
18543 hardcode_libdir_separator_GCJ=
18544 hardcode_direct_GCJ=no
18545 hardcode_minus_L_GCJ=no
18546 hardcode_shlibpath_var_GCJ=unsupported
18547 link_all_deplibs_GCJ=unknown
18548 hardcode_automatic_GCJ=no
18550 module_expsym_cmds_GCJ=
18551 always_export_symbols_GCJ=no
18552 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18553 # include_expsyms should be a list of space-separated symbols to be *always*
18554 # included in the symbol list
18555 include_expsyms_GCJ=
18556 # exclude_expsyms can be an extended regexp of symbols to exclude
18557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18559 # as well as any symbol that contains `d'.
18560 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18562 # platforms (ab)use it in PIC code, but their linkers get confused if
18563 # the symbol is explicitly referenced. Since portable code cannot
18564 # rely on this symbol name, it's probably fine to never include it in
18565 # preloaded symbol tables.
18566 extract_expsyms_cmds=
18567 # Just being paranoid about ensuring that cc_basename is set.
18568 for cc_temp in $compiler""; do
18570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18579 cygwin* | mingw* | pw32*)
18580 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18581 # When not using gcc, we currently assume that we are using
18582 # Microsoft Visual C++.
18583 if test "$GCC" != yes; then
18593 if test "$with_gnu_ld" = yes; then
18594 # If archive_cmds runs LD, not CC, wlarc should be empty
18597 # Set some defaults for GNU ld with shared library support. These
18598 # are reset later if shared libraries are not supported. Putting them
18599 # here allows them to be overridden if necessary.
18600 runpath_var=LD_RUN_PATH
18601 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18602 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18603 # ancient GNU ld didn't support --whole-archive et. al.
18604 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18605 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18607 whole_archive_flag_spec_GCJ=
18609 supports_anon_versioning=no
18610 case `$LD -v 2>/dev/null` in
18611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18614 *\ 2.11.*) ;; # other 2.11 versions
18615 *) supports_anon_versioning=yes ;;
18618 # See if GNU ld supports shared libraries.
18620 aix3* | aix4* | aix5*)
18621 # On AIX/PPC, the GNU linker is very broken
18622 if test "$host_cpu" != ia64; then
18626 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18627 *** to be unable to reliably create shared libraries on AIX.
18628 *** Therefore, libtool is disabling shared libraries support. If you
18629 *** really care for shared libraries, you may want to modify your PATH
18630 *** so that a non-GNU linker is found, and then restart.
18637 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)'
18638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18639 hardcode_minus_L_GCJ=yes
18641 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18642 # that the semantics of dynamic libraries on AmigaOS, at least up
18643 # to version 4, is to share data among multiple programs linked
18644 # with the same dynamic library. Since this doesn't match the
18645 # behavior of shared libraries on other platforms, we can't use
18651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18652 allow_undefined_flag_GCJ=unsupported
18653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18654 # support --undefined. This deserves some investigation. FIXME
18655 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18661 cygwin* | mingw* | pw32*)
18662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18663 # as there is no search path for DLLs.
18664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18665 allow_undefined_flag_GCJ=unsupported
18666 always_export_symbols_GCJ=no
18667 enable_shared_with_static_runtimes_GCJ=yes
18668 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18670 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18671 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18672 # If the export-symbols file already is a .def file (1st line
18673 # is EXPORTS), use it as is; otherwise, prepend...
18674 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18675 cp $export_symbols $output_objdir/$soname.def;
18677 echo EXPORTS > $output_objdir/$soname.def;
18678 cat $export_symbols >> $output_objdir/$soname.def;
18680 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18689 case $cc_basename,$host_cpu in
18690 pgcc*) # Portland Group C compiler
18691 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'
18692 tmp_addflag=' $pic_flag'
18694 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18695 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'
18696 tmp_addflag=' $pic_flag -Mnomain' ;;
18697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18698 tmp_addflag=' -i_dynamic' ;;
18699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18700 tmp_addflag=' -i_dynamic -nofor_main' ;;
18701 ifc* | ifort*) # Intel Fortran compiler
18702 tmp_addflag=' -nofor_main' ;;
18704 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18706 if test $supports_anon_versioning = yes; then
18707 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18709 $echo "local: *; };" >> $output_objdir/$libname.ver~
18710 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18719 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18722 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18733 *** create shared libraries on Solaris systems. Therefore, libtool
18734 *** is disabling shared libraries support. We urge you to upgrade GNU
18735 *** binutils to release 2.9.1 or newer. Another option is to modify
18736 *** your PATH or compiler configuration so that the native linker is
18737 *** used, and then restart.
18740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18741 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18742 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18749 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18751 hardcode_direct_GCJ=yes
18752 hardcode_shlibpath_var_GCJ=no
18756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18757 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18758 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18765 if test "$ld_shlibs_GCJ" = no; then
18767 hardcode_libdir_flag_spec_GCJ=
18768 export_dynamic_flag_spec_GCJ=
18769 whole_archive_flag_spec_GCJ=
18772 # PORTME fill in a description of your system's linker (not GNU ld)
18775 allow_undefined_flag_GCJ=unsupported
18776 always_export_symbols_GCJ=yes
18777 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'
18778 # Note: this linker hardcodes the directories in LIBPATH if there
18779 # are no directories specified by -L.
18780 hardcode_minus_L_GCJ=yes
18781 if test "$GCC" = yes && test -z "$link_static_flag"; then
18782 # Neither direct hardcoding nor static linking is supported with a
18784 hardcode_direct_GCJ=unsupported
18789 if test "$host_cpu" = ia64; then
18790 # On IA64, the linker does run time linking by default, so we don't
18791 # have to do anything special.
18792 aix_use_runtimelinking=no
18793 exp_sym_flag='-Bexport'
18796 # If we're using GNU nm, then we don't want the "-C" option.
18797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18798 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18799 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'
18801 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'
18803 aix_use_runtimelinking=no
18805 # Test if we are trying to use run time linking or normal
18806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18807 # need to do runtime linking.
18808 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18809 for ld_flag in $LDFLAGS; do
18810 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18811 aix_use_runtimelinking=yes
18817 exp_sym_flag='-bexport'
18818 no_entry_flag='-bnoentry'
18821 # When large executables or shared objects are built, AIX ld can
18822 # have problems creating the table of contents. If linking a library
18823 # or program results in "error TOC overflow" add -mminimal-toc to
18824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18827 archive_cmds_GCJ=''
18828 hardcode_direct_GCJ=yes
18829 hardcode_libdir_separator_GCJ=':'
18830 link_all_deplibs_GCJ=yes
18832 if test "$GCC" = yes; then
18833 case $host_os in aix4.[012]|aix4.[012].*)
18834 # We only want to do this on AIX 4.2 and lower, the check
18835 # below for broken collect2 doesn't work under 4.3+
18836 collect2name=`${CC} -print-prog-name=collect2`
18837 if test -f "$collect2name" && \
18838 strings "$collect2name" | grep resolve_lib_name >/dev/null
18840 # We have reworked collect2
18841 hardcode_direct_GCJ=yes
18843 # We have old collect2
18844 hardcode_direct_GCJ=unsupported
18845 # It fails to find uninstalled libraries when the uninstalled
18846 # path is not listed in the libpath. Setting hardcode_minus_L
18847 # to unsupported forces relinking
18848 hardcode_minus_L_GCJ=yes
18849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18850 hardcode_libdir_separator_GCJ=
18853 shared_flag='-shared'
18854 if test "$aix_use_runtimelinking" = yes; then
18855 shared_flag="$shared_flag "'${wl}-G'
18859 if test "$host_cpu" = ia64; then
18860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18861 # chokes on -Wl,-G. The following line is correct:
18864 if test "$aix_use_runtimelinking" = yes; then
18865 shared_flag='${wl}-G'
18867 shared_flag='${wl}-bM:SRE'
18872 # It seems that -bexpall does not export symbols beginning with
18873 # underscore (_), so it is better to generate a list of symbols to export.
18874 always_export_symbols_GCJ=yes
18875 if test "$aix_use_runtimelinking" = yes; then
18876 # Warning - without using the other runtime loading flags (-brtl),
18877 # -berok will link without error, but may produce a broken library.
18878 allow_undefined_flag_GCJ='-berok'
18879 # Determine the default libpath from the value encoded in an empty executable.
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>conftest.er1
18904 grep -v '^ *+' conftest.er1 >conftest.err
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && {
18909 test -z "$ac_c_werror_flag" ||
18910 test ! -s conftest.err
18911 } && test -s conftest$ac_exeext &&
18912 $as_test_x conftest$ac_exeext; then
18914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18916 # Check for a 64-bit object if we didn't find anything.
18917 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18927 conftest$ac_exeext conftest.$ac_ext
18928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18930 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18931 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18933 if test "$host_cpu" = ia64; then
18934 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18935 allow_undefined_flag_GCJ="-z nodefs"
18936 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18938 # Determine the default libpath from the value encoded in an empty executable.
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18954 rm -f conftest.$ac_objext conftest$ac_exeext
18955 if { (ac_try="$ac_link"
18956 case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_link") 2>conftest.er1
18963 grep -v '^ *+' conftest.er1 >conftest.err
18965 cat conftest.err >&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } && {
18968 test -z "$ac_c_werror_flag" ||
18969 test ! -s conftest.err
18970 } && test -s conftest$ac_exeext &&
18971 $as_test_x conftest$ac_exeext; then
18973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18975 # Check for a 64-bit object if we didn't find anything.
18976 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18986 conftest$ac_exeext conftest.$ac_ext
18987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18989 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18990 # Warning - without using the other run time loading flags,
18991 # -berok will link without error, but may produce a broken library.
18992 no_undefined_flag_GCJ=' ${wl}-bernotok'
18993 allow_undefined_flag_GCJ=' ${wl}-berok'
18994 # -bexpall does not export symbols beginning with underscore (_)
18995 always_export_symbols_GCJ=yes
18996 # Exported symbols can be pulled into shared objects from archives
18997 whole_archive_flag_spec_GCJ=' '
18998 archive_cmds_need_lc_GCJ=yes
18999 # This is similar to how AIX traditionally builds its shared libraries.
19000 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19006 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)'
19007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19008 hardcode_minus_L_GCJ=yes
19009 # see comment about different semantics on the GNU ld section
19014 export_dynamic_flag_spec_GCJ=-rdynamic
19017 cygwin* | mingw* | pw32*)
19018 # When not using gcc, we currently assume that we are using
19019 # Microsoft Visual C++.
19020 # hardcode_libdir_flag_spec is actually meaningless, as there is
19021 # no search path for DLLs.
19022 hardcode_libdir_flag_spec_GCJ=' '
19023 allow_undefined_flag_GCJ=unsupported
19024 # Tell ltmain to make .lib files, not .a files.
19026 # Tell ltmain to make .dll files, not .so files.
19028 # FIXME: Setting linknames here is a bad hack.
19029 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19030 # The linker will automatically build a .lib file if we build a DLL.
19031 old_archive_From_new_cmds_GCJ='true'
19032 # FIXME: Should let the user specify the lib program.
19033 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19034 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19035 enable_shared_with_static_runtimes_GCJ=yes
19038 darwin* | rhapsody*)
19040 rhapsody* | darwin1.[012])
19041 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19044 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19045 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19047 case ${MACOSX_DEPLOYMENT_TARGET} in
19049 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19052 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19058 archive_cmds_need_lc_GCJ=no
19059 hardcode_direct_GCJ=no
19060 hardcode_automatic_GCJ=yes
19061 hardcode_shlibpath_var_GCJ=unsupported
19062 whole_archive_flag_spec_GCJ=''
19063 link_all_deplibs_GCJ=yes
19064 if test "$GCC" = yes ; then
19065 output_verbose_link_cmd='echo'
19066 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19067 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19068 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19069 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19070 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}'
19072 case $cc_basename in
19074 output_verbose_link_cmd='echo'
19075 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19076 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19077 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19078 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19079 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}'
19089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19090 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19091 hardcode_shlibpath_var_GCJ=no
19098 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19099 # support. Future versions do this automatically, but an explicit c++rt0.o
19100 # does not break anything, and helps significantly (at the cost of a little
19103 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19104 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19105 hardcode_direct_GCJ=yes
19106 hardcode_shlibpath_var_GCJ=no
19109 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19111 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19112 hardcode_direct_GCJ=yes
19113 hardcode_minus_L_GCJ=yes
19114 hardcode_shlibpath_var_GCJ=no
19117 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19118 freebsd* | kfreebsd*-gnu | dragonfly*)
19119 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19120 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19121 hardcode_direct_GCJ=yes
19122 hardcode_shlibpath_var_GCJ=no
19126 if test "$GCC" = yes; then
19127 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'
19129 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'
19131 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19132 hardcode_libdir_separator_GCJ=:
19133 hardcode_direct_GCJ=yes
19135 # hardcode_minus_L: Not really in the search PATH,
19136 # but as the default location of the library.
19137 hardcode_minus_L_GCJ=yes
19138 export_dynamic_flag_spec_GCJ='${wl}-E'
19142 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19145 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19148 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19154 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19157 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19161 if test "$with_gnu_ld" = no; then
19164 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19165 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19166 hardcode_libdir_separator_GCJ=:
19167 hardcode_direct_GCJ=no
19168 hardcode_shlibpath_var_GCJ=no
19171 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19172 hardcode_direct_GCJ=no
19173 hardcode_shlibpath_var_GCJ=no
19175 # hardcode_minus_L: Not really in the search PATH,
19176 # but as the default location of the library.
19177 hardcode_minus_L_GCJ=yes
19180 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19181 hardcode_libdir_separator_GCJ=:
19182 hardcode_direct_GCJ=yes
19183 export_dynamic_flag_spec_GCJ='${wl}-E'
19185 # hardcode_minus_L: Not really in the search PATH,
19186 # but as the default location of the library.
19187 hardcode_minus_L_GCJ=yes
19193 irix5* | irix6* | nonstopux*)
19194 if test "$GCC" = yes; then
19195 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'
19197 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'
19198 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19200 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19201 hardcode_libdir_separator_GCJ=:
19202 link_all_deplibs_GCJ=yes
19206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19207 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19209 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19211 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19212 hardcode_direct_GCJ=yes
19213 hardcode_shlibpath_var_GCJ=no
19217 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19218 hardcode_direct_GCJ=yes
19219 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19220 hardcode_libdir_separator_GCJ=:
19221 hardcode_shlibpath_var_GCJ=no
19225 hardcode_direct_GCJ=yes
19226 hardcode_shlibpath_var_GCJ=no
19227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19228 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19229 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19230 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19231 export_dynamic_flag_spec_GCJ='${wl}-E'
19234 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19235 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19239 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19240 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19247 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19248 hardcode_minus_L_GCJ=yes
19249 allow_undefined_flag_GCJ=unsupported
19250 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'
19251 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19255 if test "$GCC" = yes; then
19256 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19257 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'
19259 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19260 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'
19262 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19263 hardcode_libdir_separator_GCJ=:
19266 osf4* | osf5*) # as osf3* with the addition of -msym flag
19267 if test "$GCC" = yes; then
19268 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19269 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'
19270 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19272 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19273 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'
19274 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~
19275 $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'
19277 # Both c and cxx compiler support -rpath directly
19278 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19280 hardcode_libdir_separator_GCJ=:
19284 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19285 hardcode_shlibpath_var_GCJ=no
19286 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19287 runpath_var=LD_RUN_PATH
19288 hardcode_runpath_var=yes
19292 no_undefined_flag_GCJ=' -z text'
19293 if test "$GCC" = yes; then
19295 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19296 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19297 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19300 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19301 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19302 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19304 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19305 hardcode_shlibpath_var_GCJ=no
19307 solaris2.[0-5] | solaris2.[0-5].*) ;;
19309 # The compiler driver will combine linker options so we
19310 # cannot just pass the convience library names through
19311 # without $wl, iff we do not link with $LD.
19312 # Luckily, gcc supports the same syntax we need for Sun Studio.
19313 # Supported since Solaris 2.6 (maybe 2.5.1?)
19316 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19318 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19321 link_all_deplibs_GCJ=yes
19325 if test "x$host_vendor" = xsequent; then
19326 # Use $CC to link under sequent, because it throws in some extra .o
19327 # files that make .init and .fini sections work.
19328 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19330 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19332 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19333 hardcode_direct_GCJ=yes
19334 hardcode_minus_L_GCJ=yes
19335 hardcode_shlibpath_var_GCJ=no
19339 case $host_vendor in
19341 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19342 hardcode_direct_GCJ=yes # is this really true???
19345 ## LD is ld it makes a PLAMLIB
19346 ## CC just makes a GrossModule.
19347 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19348 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19349 hardcode_direct_GCJ=no
19352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19353 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19356 runpath_var='LD_RUN_PATH'
19357 hardcode_shlibpath_var_GCJ=no
19361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19362 hardcode_shlibpath_var_GCJ=no
19363 export_dynamic_flag_spec_GCJ='-Bexport'
19367 if test -d /usr/nec; then
19368 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19369 hardcode_shlibpath_var_GCJ=no
19370 runpath_var=LD_RUN_PATH
19371 hardcode_runpath_var=yes
19377 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19378 hardcode_direct_GCJ=yes
19379 hardcode_minus_L_GCJ=no
19380 hardcode_shlibpath_var_GCJ=no
19381 hardcode_runpath_var=yes
19382 runpath_var=LD_RUN_PATH
19385 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19386 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19387 if test "$GCC" = yes; then
19388 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19390 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19392 runpath_var='LD_RUN_PATH'
19393 hardcode_shlibpath_var_GCJ=no
19397 no_undefined_flag_GCJ=' -z text'
19398 # $CC -shared without GNU ld will not create a library from C++
19399 # object files and a static libstdc++, better avoid it by now
19400 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19401 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19403 hardcode_libdir_flag_spec_GCJ=
19404 hardcode_shlibpath_var_GCJ=no
19405 runpath_var='LD_RUN_PATH'
19409 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19410 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19411 hardcode_shlibpath_var_GCJ=no
19420 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19421 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19422 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19425 if test "$GCC" = yes; then
19426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19430 # Do we need to explicitly link libc?
19432 case "x$archive_cmds_need_lc_GCJ" in
19434 # Assume -lc should be added
19435 archive_cmds_need_lc_GCJ=yes
19437 if test "$enable_shared" = yes && test "$GCC" = yes; then
19438 case $archive_cmds_GCJ in
19440 # FIXME: we may have to deal with multi-command sequences.
19443 # Test whether the compiler implicitly links with -lc since on some
19444 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19445 # to ld, don't add -lc before -lgcc.
19446 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19447 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19452 (eval $ac_compile) 2>&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } 2>conftest.err; then
19458 libobjs=conftest.$ac_objext
19460 wl=$lt_prog_compiler_wl_GCJ
19466 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19467 allow_undefined_flag_GCJ=
19468 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19469 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }
19474 archive_cmds_need_lc_GCJ=no
19476 archive_cmds_need_lc_GCJ=yes
19478 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19480 cat conftest.err 1>&5
19483 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19484 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19491 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19492 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19493 library_names_spec=
19494 libname_spec='lib$name'
19498 postuninstall_cmds=
19502 shlibpath_overrides_runpath=unknown
19504 dynamic_linker="$host_os ld.so"
19505 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19506 if test "$GCC" = yes; then
19507 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19508 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19509 # if the path contains ";" then we assume it to be the separator
19510 # otherwise default to the standard path separator (i.e. ":") - it is
19511 # assumed that no part of a normal pathname contains ";" but that should
19512 # okay in the real world where ";" in dirpaths is itself problematic.
19513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19518 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19520 need_lib_prefix=unknown
19521 hardcode_into_libs=no
19523 # when you set need_version to no, make sure it does not cause -set_version
19524 # flags to be left without arguments
19525 need_version=unknown
19530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19531 shlibpath_var=LIBPATH
19533 # AIX 3 has no versioning support, so we append a major version to the name.
19534 soname_spec='${libname}${release}${shared_ext}$major'
19541 hardcode_into_libs=yes
19542 if test "$host_cpu" = ia64; then
19543 # AIX 5 supports IA64
19544 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19545 shlibpath_var=LD_LIBRARY_PATH
19547 # With GCC up to 2.95.x, collect2 would create an import file
19548 # for dependence libraries. The import file would start with
19549 # the line `#! .'. This would cause the generated library to
19550 # depend on `.', always an invalid library. This was fixed in
19551 # development snapshots of GCC prior to 3.0.
19553 aix4 | aix4.[01] | aix4.[01].*)
19554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19556 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19559 can_build_shared=no
19563 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19564 # soname into executable. Probably we can add versioning support to
19565 # collect2, so additional links can be useful in future.
19566 if test "$aix_use_runtimelinking" = yes; then
19567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19568 # instead of lib<name>.a to let people know that these are not
19569 # typical AIX shared libraries.
19570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19572 # We preserve .a as extension for shared libraries through AIX4.2
19573 # and later when we are not doing run time linking.
19574 library_names_spec='${libname}${release}.a $libname.a'
19575 soname_spec='${libname}${release}${shared_ext}$major'
19577 shlibpath_var=LIBPATH
19582 library_names_spec='$libname.ixlibrary $libname.a'
19583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19584 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'
19588 library_names_spec='${libname}${shared_ext}'
19589 dynamic_linker="$host_os ld.so"
19590 shlibpath_var=LIBRARY_PATH
19596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19597 soname_spec='${libname}${release}${shared_ext}$major'
19598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19599 shlibpath_var=LD_LIBRARY_PATH
19600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19602 # the default ld.so.conf also contains /usr/contrib/lib and
19603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19604 # libtool to hard-code these into programs
19607 cygwin* | mingw* | pw32*)
19608 version_type=windows
19613 case $GCC,$host_os in
19614 yes,cygwin* | yes,mingw* | yes,pw32*)
19615 library_names_spec='$libname.dll.a'
19616 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19617 postinstall_cmds='base_file=`basename \${file}`~
19618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19619 dldir=$destdir/`dirname \$dlpath`~
19620 test -d \$dldir || mkdir -p \$dldir~
19621 $install_prog $dir/$dlname \$dldir/$dlname~
19622 chmod a+x \$dldir/$dlname'
19623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19624 dlpath=$dir/\$dldll~
19626 shlibpath_overrides_runpath=yes
19630 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19631 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19632 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19635 # MinGW DLLs use traditional 'lib' prefix
19636 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19638 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19639 # It is most probably a Windows format PATH printed by
19640 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19641 # path with ; separators, and with drive letters. We can handle the
19642 # drive letters (cygwin fileutils understands them), so leave them,
19643 # especially as we might pass files found there to a mingw objdump,
19644 # which wouldn't understand a cygwinified path. Ahh.
19645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19651 # pw32 DLLs use 'pw' prefix rather than 'lib'
19652 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19658 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19661 dynamic_linker='Win32 ld.exe'
19662 # FIXME: first we should search . and the directory the executable is in
19666 darwin* | rhapsody*)
19667 dynamic_linker="$host_os dyld"
19668 version_type=darwin
19671 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19672 soname_spec='${libname}${release}${major}$shared_ext'
19673 shlibpath_overrides_runpath=yes
19674 shlibpath_var=DYLD_LIBRARY_PATH
19675 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19676 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19677 if test "$GCC" = yes; then
19678 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19680 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19690 soname_spec='${libname}${release}${shared_ext}$major'
19691 shlibpath_var=LD_LIBRARY_PATH
19702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19703 soname_spec='${libname}${release}${shared_ext}$major'
19704 shlibpath_var=LD_LIBRARY_PATH
19705 shlibpath_overrides_runpath=no
19706 hardcode_into_libs=yes
19707 dynamic_linker='GNU ld.so'
19710 freebsd* | dragonfly*)
19711 # DragonFly does not have aout. When/if they implement a new
19712 # versioning mechanism, adjust this.
19713 if test -x /usr/bin/objformat; then
19714 objformat=`/usr/bin/objformat`
19717 freebsd[123]*) objformat=aout ;;
19718 *) objformat=elf ;;
19721 version_type=freebsd-$objformat
19722 case $version_type in
19724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19733 shlibpath_var=LD_LIBRARY_PATH
19736 shlibpath_overrides_runpath=yes
19738 freebsd3.[01]* | freebsdelf3.[01]*)
19739 shlibpath_overrides_runpath=yes
19740 hardcode_into_libs=yes
19743 shlibpath_overrides_runpath=no
19744 hardcode_into_libs=yes
19753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19754 soname_spec='${libname}${release}${shared_ext}$major'
19755 shlibpath_var=LD_LIBRARY_PATH
19756 hardcode_into_libs=yes
19759 hpux9* | hpux10* | hpux11*)
19760 # Give a soname corresponding to the major version so that dld.sl refuses to
19761 # link against other versions.
19768 hardcode_into_libs=yes
19769 dynamic_linker="$host_os dld.so"
19770 shlibpath_var=LD_LIBRARY_PATH
19771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19773 soname_spec='${libname}${release}${shared_ext}$major'
19774 if test "X$HPUX_IA64_MODE" = X32; then
19775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19783 hardcode_into_libs=yes
19784 dynamic_linker="$host_os dld.sl"
19785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19788 soname_spec='${libname}${release}${shared_ext}$major'
19789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19794 dynamic_linker="$host_os dld.sl"
19795 shlibpath_var=SHLIB_PATH
19796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19798 soname_spec='${libname}${release}${shared_ext}$major'
19801 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19802 postinstall_cmds='chmod 555 $lib'
19805 irix5* | irix6* | nonstopux*)
19807 nonstopux*) version_type=nonstopux ;;
19809 if test "$lt_cv_prog_gnu_ld" = yes; then
19817 soname_spec='${libname}${release}${shared_ext}$major'
19818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19820 irix5* | nonstopux*)
19821 libsuff= shlibsuff=
19824 case $LD in # libtool.m4 will add one of these switches to LD
19825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19826 libsuff= shlibsuff= libmagic=32-bit;;
19827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19828 libsuff=32 shlibsuff=N32 libmagic=N32;;
19829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19831 *) libsuff= shlibsuff= libmagic=never-match;;
19835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19836 shlibpath_overrides_runpath=no
19837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19839 hardcode_into_libs=yes
19842 # No shared lib support for Linux oldld, aout, or coff.
19843 linux*oldld* | linux*aout* | linux*coff*)
19847 # This must be Linux ELF.
19852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19853 soname_spec='${libname}${release}${shared_ext}$major'
19854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19855 shlibpath_var=LD_LIBRARY_PATH
19856 shlibpath_overrides_runpath=no
19857 # This implies no fast_install, which is unacceptable.
19858 # Some rework will be needed to allow for fast_install
19859 # before this can be enabled.
19860 hardcode_into_libs=yes
19862 # Append ld.so.conf contents to the search path
19863 if test -f /etc/ld.so.conf; then
19864 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19868 # We used to test for /lib/ld.so.1 and disable shared libraries on
19869 # powerpc, because MkLinux only supported shared libraries with the
19870 # GNU dynamic linker. Since this was broken with cross compilers,
19871 # most powerpc-linux boxes support dynamic linking these days and
19872 # people can always --disable-shared, the test was removed, and we
19873 # assume the GNU/Linux dynamic linker is in use.
19874 dynamic_linker='GNU/Linux ld.so'
19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19882 soname_spec='${libname}${release}${shared_ext}$major'
19883 shlibpath_var=LD_LIBRARY_PATH
19884 shlibpath_overrides_runpath=no
19885 hardcode_into_libs=yes
19886 dynamic_linker='GNU ld.so'
19893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19896 dynamic_linker='NetBSD (a.out) ld.so'
19898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19899 soname_spec='${libname}${release}${shared_ext}$major'
19900 dynamic_linker='NetBSD ld.elf_so'
19902 shlibpath_var=LD_LIBRARY_PATH
19903 shlibpath_overrides_runpath=yes
19904 hardcode_into_libs=yes
19909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19910 shlibpath_var=LD_LIBRARY_PATH
19911 shlibpath_overrides_runpath=yes
19918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19919 soname_spec='${libname}${release}${shared_ext}$major'
19920 shlibpath_var=LD_LIBRARY_PATH
19921 shlibpath_overrides_runpath=yes
19927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19929 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19930 *) need_version=no ;;
19932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19934 shlibpath_var=LD_LIBRARY_PATH
19935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19937 openbsd2.[89] | openbsd2.[89].*)
19938 shlibpath_overrides_runpath=no
19941 shlibpath_overrides_runpath=yes
19945 shlibpath_overrides_runpath=yes
19950 libname_spec='$name'
19953 library_names_spec='$libname${shared_ext} $libname.a'
19954 dynamic_linker='OS/2 ld.exe'
19955 shlibpath_var=LIBPATH
19958 osf3* | osf4* | osf5*)
19962 soname_spec='${libname}${release}${shared_ext}$major'
19963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19964 shlibpath_var=LD_LIBRARY_PATH
19965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19971 soname_spec='${libname}${release}${shared_ext}$major'
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973 shlibpath_var=LD_LIBRARY_PATH
19980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19981 soname_spec='${libname}${release}${shared_ext}$major'
19982 shlibpath_var=LD_LIBRARY_PATH
19983 shlibpath_overrides_runpath=yes
19984 hardcode_into_libs=yes
19985 # ldd complains unless libraries are executable
19986 postinstall_cmds='chmod +x $lib'
19991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19993 shlibpath_var=LD_LIBRARY_PATH
19994 shlibpath_overrides_runpath=yes
19995 if test "$with_gnu_ld" = yes; then
20001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004 soname_spec='${libname}${release}${shared_ext}$major'
20005 shlibpath_var=LD_LIBRARY_PATH
20006 case $host_vendor in
20008 shlibpath_overrides_runpath=no
20010 export_dynamic_flag_spec='${wl}-Blargedynsym'
20011 runpath_var=LD_RUN_PATH
20019 shlibpath_overrides_runpath=no
20020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20026 if test -d /usr/nec ;then
20028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20029 soname_spec='$libname${shared_ext}.$major'
20030 shlibpath_var=LD_LIBRARY_PATH
20036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20037 soname_spec='${libname}${release}${shared_ext}$major'
20038 shlibpath_var=LD_LIBRARY_PATH
20045 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20046 echo "${ECHO_T}$dynamic_linker" >&6; }
20047 test "$dynamic_linker" = no && can_build_shared=no
20049 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20050 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20051 hardcode_action_GCJ=
20052 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20053 test -n "$runpath_var_GCJ" || \
20054 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20056 # We can hardcode non-existant directories.
20057 if test "$hardcode_direct_GCJ" != no &&
20058 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20059 # have to relink, otherwise we might link with an installed library
20060 # when we should be linking with a yet-to-be-installed one
20061 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20062 test "$hardcode_minus_L_GCJ" != no; then
20063 # Linking always hardcodes the temporary library directory.
20064 hardcode_action_GCJ=relink
20066 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20067 hardcode_action_GCJ=immediate
20070 # We cannot hardcode anything, or else we can only hardcode existing
20072 hardcode_action_GCJ=unsupported
20074 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20075 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20077 if test "$hardcode_action_GCJ" = relink; then
20078 # Fast installation is not supported
20079 enable_fast_install=no
20080 elif test "$shlibpath_overrides_runpath" = yes ||
20081 test "$enable_shared" = no; then
20082 # Fast installation is not necessary
20083 enable_fast_install=needless
20088 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20089 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
20090 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20091 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20092 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20093 { echo "$as_me:$LINENO: result: yes" >&5
20094 echo "${ECHO_T}yes" >&6; }
20096 # FIXME - insert some real tests, host_os isn't really good enough
20099 if test -n "$STRIP" ; then
20100 striplib="$STRIP -x"
20101 { echo "$as_me:$LINENO: result: yes" >&5
20102 echo "${ECHO_T}yes" >&6; }
20104 { echo "$as_me:$LINENO: result: no" >&5
20105 echo "${ECHO_T}no" >&6; }
20109 { echo "$as_me:$LINENO: result: no" >&5
20110 echo "${ECHO_T}no" >&6; }
20115 if test "x$enable_dlopen" != xyes; then
20116 enable_dlopen=unknown
20117 enable_dlopen_self=unknown
20118 enable_dlopen_self_static=unknown
20125 lt_cv_dlopen="load_add_on"
20127 lt_cv_dlopen_self=yes
20131 lt_cv_dlopen="LoadLibrary"
20136 lt_cv_dlopen="dlopen"
20141 # if libdl is installed we need to link against it
20142 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20143 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20144 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 ac_check_lib_save_LIBS=$LIBS
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20156 /* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_link") 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } && {
20185 test -z "$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20187 } && test -s conftest$ac_exeext &&
20188 $as_test_x conftest$ac_exeext; then
20189 ac_cv_lib_dl_dlopen=yes
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_lib_dl_dlopen=no
20197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20201 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20202 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20203 if test $ac_cv_lib_dl_dlopen = yes; then
20204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20207 lt_cv_dlopen="dyld"
20209 lt_cv_dlopen_self=yes
20216 { echo "$as_me:$LINENO: checking for shl_load" >&5
20217 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20218 if test "${ac_cv_func_shl_load+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20229 #define shl_load innocuous_shl_load
20231 /* System header to define __stub macros and hopefully few prototypes,
20232 which can conflict with char shl_load (); below.
20233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20234 <limits.h> exists even on freestanding compilers. */
20237 # include <limits.h>
20239 # include <assert.h>
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20251 /* The GNU C library defines this for functions which it implements
20252 to always fail with ENOSYS. Some functions are actually named
20253 something starting with __ and the normal name is an alias. */
20254 #if defined __stub_shl_load || defined __stub___shl_load
20261 return shl_load ();
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_link") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest$ac_exeext &&
20283 $as_test_x conftest$ac_exeext; then
20284 ac_cv_func_shl_load=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_func_shl_load=no
20292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20293 conftest$ac_exeext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20296 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20297 if test $ac_cv_func_shl_load = yes; then
20298 lt_cv_dlopen="shl_load"
20300 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20301 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 ac_check_lib_save_LIBS=$LIBS
20307 cat >conftest.$ac_ext <<_ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20314 /* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20324 return shl_load ();
20329 rm -f conftest.$ac_objext conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_link") 2>conftest.er1
20338 grep -v '^ *+' conftest.er1 >conftest.err
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest$ac_exeext &&
20346 $as_test_x conftest$ac_exeext; then
20347 ac_cv_lib_dld_shl_load=yes
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_cv_lib_dld_shl_load=no
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20359 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20360 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20361 if test $ac_cv_lib_dld_shl_load = yes; then
20362 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20364 { echo "$as_me:$LINENO: checking for dlopen" >&5
20365 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
20366 if test "${ac_cv_func_dlopen+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20377 #define dlopen innocuous_dlopen
20379 /* System header to define __stub macros and hopefully few prototypes,
20380 which can conflict with char dlopen (); below.
20381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20382 <limits.h> exists even on freestanding compilers. */
20385 # include <limits.h>
20387 # include <assert.h>
20392 /* Override any GCC internal prototype to avoid an error.
20393 Use char because int might match the return type of a GCC
20394 builtin and then its argument prototype would still apply. */
20399 /* The GNU C library defines this for functions which it implements
20400 to always fail with ENOSYS. Some functions are actually named
20401 something starting with __ and the normal name is an alias. */
20402 #if defined __stub_dlopen || defined __stub___dlopen
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_link") 2>conftest.er1
20423 grep -v '^ *+' conftest.er1 >conftest.err
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest$ac_exeext &&
20431 $as_test_x conftest$ac_exeext; then
20432 ac_cv_func_dlopen=yes
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 ac_cv_func_dlopen=no
20440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20441 conftest$ac_exeext conftest.$ac_ext
20443 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20444 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
20445 if test $ac_cv_func_dlopen = yes; then
20446 lt_cv_dlopen="dlopen"
20448 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20449 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20450 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 ac_check_lib_save_LIBS=$LIBS
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20462 /* Override any GCC internal prototype to avoid an error.
20463 Use char because int might match the return type of a GCC
20464 builtin and then its argument prototype would still apply. */
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest$ac_exeext &&
20494 $as_test_x conftest$ac_exeext; then
20495 ac_cv_lib_dl_dlopen=yes
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_lib_dl_dlopen=no
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext conftest.$ac_ext
20505 LIBS=$ac_check_lib_save_LIBS
20507 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20508 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20509 if test $ac_cv_lib_dl_dlopen = yes; then
20510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20512 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20513 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20514 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 ac_check_lib_save_LIBS=$LIBS
20518 LIBS="-lsvld $LIBS"
20519 cat >conftest.$ac_ext <<_ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20526 /* Override any GCC internal prototype to avoid an error.
20527 Use char because int might match the return type of a GCC
20528 builtin and then its argument prototype would still apply. */
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_link") 2>conftest.er1
20550 grep -v '^ *+' conftest.er1 >conftest.err
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } && {
20555 test -z "$ac_c_werror_flag" ||
20556 test ! -s conftest.err
20557 } && test -s conftest$ac_exeext &&
20558 $as_test_x conftest$ac_exeext; then
20559 ac_cv_lib_svld_dlopen=yes
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ac_cv_lib_svld_dlopen=no
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568 conftest$ac_exeext conftest.$ac_ext
20569 LIBS=$ac_check_lib_save_LIBS
20571 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20572 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20573 if test $ac_cv_lib_svld_dlopen = yes; then
20574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20576 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20577 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20578 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 ac_check_lib_save_LIBS=$LIBS
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20590 /* Override any GCC internal prototype to avoid an error.
20591 Use char because int might match the return type of a GCC
20592 builtin and then its argument prototype would still apply. */
20600 return dld_link ();
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (ac_try="$ac_link"
20607 case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_link") 2>conftest.er1
20614 grep -v '^ *+' conftest.er1 >conftest.err
20616 cat conftest.err >&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && {
20619 test -z "$ac_c_werror_flag" ||
20620 test ! -s conftest.err
20621 } && test -s conftest$ac_exeext &&
20622 $as_test_x conftest$ac_exeext; then
20623 ac_cv_lib_dld_dld_link=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_cv_lib_dld_dld_link=no
20631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20632 conftest$ac_exeext conftest.$ac_ext
20633 LIBS=$ac_check_lib_save_LIBS
20635 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20636 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20637 if test $ac_cv_lib_dld_dld_link = yes; then
20638 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20659 if test "x$lt_cv_dlopen" != xno; then
20665 case $lt_cv_dlopen in
20667 save_CPPFLAGS="$CPPFLAGS"
20668 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20670 save_LDFLAGS="$LDFLAGS"
20671 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20674 LIBS="$lt_cv_dlopen_libs $LIBS"
20676 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20677 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
20678 if test "${lt_cv_dlopen_self+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 if test "$cross_compiling" = yes; then :
20682 lt_cv_dlopen_self=cross
20684 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20685 lt_status=$lt_dlunknown
20686 cat > conftest.$ac_ext <<EOF
20687 #line 20687 "configure"
20688 #include "confdefs.h"
20697 # define LT_DLGLOBAL RTLD_GLOBAL
20700 # define LT_DLGLOBAL DL_GLOBAL
20702 # define LT_DLGLOBAL 0
20706 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20707 find out it does not work in some platform. */
20708 #ifndef LT_DLLAZY_OR_NOW
20710 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20713 # define LT_DLLAZY_OR_NOW DL_LAZY
20716 # define LT_DLLAZY_OR_NOW RTLD_NOW
20719 # define LT_DLLAZY_OR_NOW DL_NOW
20721 # define LT_DLLAZY_OR_NOW 0
20729 extern "C" void exit (int);
20732 void fnord() { int i=42;}
20735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20736 int status = $lt_dlunknown;
20740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20741 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20742 /* dlclose (self); */
20748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20749 (eval $ac_link) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20753 (./conftest; exit; ) >&5 2>/dev/null
20755 case x$lt_status in
20756 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20757 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20758 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20761 # compilation failed
20762 lt_cv_dlopen_self=no
20769 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20770 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
20772 if test "x$lt_cv_dlopen_self" = xyes; then
20773 LDFLAGS="$LDFLAGS $link_static_flag"
20774 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20775 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
20776 if test "${lt_cv_dlopen_self_static+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 if test "$cross_compiling" = yes; then :
20780 lt_cv_dlopen_self_static=cross
20782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20783 lt_status=$lt_dlunknown
20784 cat > conftest.$ac_ext <<EOF
20785 #line 20785 "configure"
20786 #include "confdefs.h"
20795 # define LT_DLGLOBAL RTLD_GLOBAL
20798 # define LT_DLGLOBAL DL_GLOBAL
20800 # define LT_DLGLOBAL 0
20804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20805 find out it does not work in some platform. */
20806 #ifndef LT_DLLAZY_OR_NOW
20808 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20811 # define LT_DLLAZY_OR_NOW DL_LAZY
20814 # define LT_DLLAZY_OR_NOW RTLD_NOW
20817 # define LT_DLLAZY_OR_NOW DL_NOW
20819 # define LT_DLLAZY_OR_NOW 0
20827 extern "C" void exit (int);
20830 void fnord() { int i=42;}
20833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20834 int status = $lt_dlunknown;
20838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20839 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20840 /* dlclose (self); */
20846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20847 (eval $ac_link) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20851 (./conftest; exit; ) >&5 2>/dev/null
20853 case x$lt_status in
20854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20856 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20859 # compilation failed
20860 lt_cv_dlopen_self_static=no
20867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
20871 CPPFLAGS="$save_CPPFLAGS"
20872 LDFLAGS="$save_LDFLAGS"
20877 case $lt_cv_dlopen_self in
20878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20879 *) enable_dlopen_self=unknown ;;
20882 case $lt_cv_dlopen_self_static in
20883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20884 *) enable_dlopen_self_static=unknown ;;
20889 # The else clause should only fire when bootstrapping the
20890 # libtool distribution, otherwise you forgot to ship ltmain.sh
20891 # with your package, and you will get complaints that there are
20892 # no rules to generate ltmain.sh.
20893 if test -f "$ltmain"; then
20894 # See if we are running on zsh, and set the options which allow our commands through
20895 # without removal of \ escapes.
20896 if test -n "${ZSH_VERSION+set}" ; then
20897 setopt NO_GLOB_SUBST
20899 # Now quote all the things that may contain metacharacters while being
20900 # careful not to overquote the AC_SUBSTed values. We take copies of the
20901 # variables and quote the copies for generation of the libtool script.
20902 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20904 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20905 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20906 deplibs_check_method reload_flag reload_cmds need_locks \
20907 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20908 lt_cv_sys_global_symbol_to_c_name_address \
20909 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20910 old_postinstall_cmds old_postuninstall_cmds \
20914 lt_prog_compiler_wl_GCJ \
20915 lt_prog_compiler_pic_GCJ \
20916 lt_prog_compiler_static_GCJ \
20917 lt_prog_compiler_no_builtin_flag_GCJ \
20918 export_dynamic_flag_spec_GCJ \
20919 thread_safe_flag_spec_GCJ \
20920 whole_archive_flag_spec_GCJ \
20921 enable_shared_with_static_runtimes_GCJ \
20922 old_archive_cmds_GCJ \
20923 old_archive_from_new_cmds_GCJ \
20924 predep_objects_GCJ \
20925 postdep_objects_GCJ \
20928 compiler_lib_search_path_GCJ \
20930 archive_expsym_cmds_GCJ \
20931 postinstall_cmds_GCJ \
20932 postuninstall_cmds_GCJ \
20933 old_archive_from_expsyms_cmds_GCJ \
20934 allow_undefined_flag_GCJ \
20935 no_undefined_flag_GCJ \
20936 export_symbols_cmds_GCJ \
20937 hardcode_libdir_flag_spec_GCJ \
20938 hardcode_libdir_flag_spec_ld_GCJ \
20939 hardcode_libdir_separator_GCJ \
20940 hardcode_automatic_GCJ \
20942 module_expsym_cmds_GCJ \
20943 lt_cv_prog_compiler_c_o_GCJ \
20944 exclude_expsyms_GCJ \
20945 include_expsyms_GCJ; do
20948 old_archive_cmds_GCJ | \
20949 old_archive_from_new_cmds_GCJ | \
20950 archive_cmds_GCJ | \
20951 archive_expsym_cmds_GCJ | \
20952 module_cmds_GCJ | \
20953 module_expsym_cmds_GCJ | \
20954 old_archive_from_expsyms_cmds_GCJ | \
20955 export_symbols_cmds_GCJ | \
20956 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20957 postinstall_cmds | postuninstall_cmds | \
20958 old_postinstall_cmds | old_postuninstall_cmds | \
20959 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20960 # Double-quote double-evaled strings.
20961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20970 *'\$0 --fallback-echo"')
20971 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20977 cat <<__EOF__ >> "$cfgfile"
20978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20982 # Shell to use when invoking shell scripts.
20985 # Whether or not to build shared libraries.
20986 build_libtool_libs=$enable_shared
20988 # Whether or not to build static libraries.
20989 build_old_libs=$enable_static
20991 # Whether or not to add -lc for building shared libraries.
20992 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20994 # Whether or not to disallow shared libs when runtime libs are static
20995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20997 # Whether or not to optimize for fast installation.
20998 fast_install=$enable_fast_install
21001 host_alias=$host_alias
21005 # The build system.
21006 build_alias=$build_alias
21010 # An echo program that does not interpret backslashes.
21015 AR_FLAGS=$lt_AR_FLAGS
21020 # A language-specific compiler.
21021 CC=$lt_compiler_GCJ
21023 # Is the compiler the GNU C compiler?
21029 # The linker used to build libraries.
21032 # Whether we need hard or soft links.
21035 # A BSD-compatible nm program.
21038 # A symbol stripping program
21041 # Used to examine libraries when file_magic_cmd begins "file"
21042 MAGIC_CMD=$MAGIC_CMD
21044 # Used on cygwin: DLL creation program.
21047 # Used on cygwin: object dumper.
21050 # Used on cygwin: assembler.
21053 # The name of the directory that contains temporary libtool files.
21056 # How to create reloadable object files.
21057 reload_flag=$lt_reload_flag
21058 reload_cmds=$lt_reload_cmds
21060 # How to pass a linker flag through the compiler.
21061 wl=$lt_lt_prog_compiler_wl_GCJ
21063 # Object file suffix (normally "o").
21064 objext="$ac_objext"
21066 # Old archive suffix (normally "a").
21069 # Shared library suffix (normally ".so").
21070 shrext_cmds='$shrext_cmds'
21072 # Executable file suffix (normally "").
21075 # Additional compiler flags for building library objects.
21076 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21079 # What is the maximum length of a command?
21080 max_cmd_len=$lt_cv_sys_max_cmd_len
21082 # Does compiler simultaneously support -c and -o options?
21083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21085 # Must we lock files when doing compilation?
21086 need_locks=$lt_need_locks
21088 # Do we need the lib prefix for modules?
21089 need_lib_prefix=$need_lib_prefix
21091 # Do we need a version for libraries?
21092 need_version=$need_version
21094 # Whether dlopen is supported.
21095 dlopen_support=$enable_dlopen
21097 # Whether dlopen of programs is supported.
21098 dlopen_self=$enable_dlopen_self
21100 # Whether dlopen of statically linked programs is supported.
21101 dlopen_self_static=$enable_dlopen_self_static
21103 # Compiler flag to prevent dynamic linking.
21104 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21106 # Compiler flag to turn off builtin functions.
21107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21109 # Compiler flag to allow reflexive dlopens.
21110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21112 # Compiler flag to generate shared objects directly from archives.
21113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21115 # Compiler flag to generate thread-safe objects.
21116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21118 # Library versioning type.
21119 version_type=$version_type
21121 # Format of library name prefix.
21122 libname_spec=$lt_libname_spec
21124 # List of archive names. First name is the real one, the rest are links.
21125 # The last name is the one that the linker finds with -lNAME.
21126 library_names_spec=$lt_library_names_spec
21128 # The coded name of the library, if different from the real name.
21129 soname_spec=$lt_soname_spec
21131 # Commands used to build and install an old-style archive.
21133 old_archive_cmds=$lt_old_archive_cmds_GCJ
21134 old_postinstall_cmds=$lt_old_postinstall_cmds
21135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21137 # Create an old-style archive from a shared archive.
21138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21140 # Create a temporary old-style archive to link instead of a shared archive.
21141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21143 # Commands used to build and install a shared archive.
21144 archive_cmds=$lt_archive_cmds_GCJ
21145 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21146 postinstall_cmds=$lt_postinstall_cmds
21147 postuninstall_cmds=$lt_postuninstall_cmds
21149 # Commands used to build a loadable module (assumed same as above if empty)
21150 module_cmds=$lt_module_cmds_GCJ
21151 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21153 # Commands to strip libraries.
21154 old_striplib=$lt_old_striplib
21155 striplib=$lt_striplib
21157 # Dependencies to place before the objects being linked to create a
21159 predep_objects=$lt_predep_objects_GCJ
21161 # Dependencies to place after the objects being linked to create a
21163 postdep_objects=$lt_postdep_objects_GCJ
21165 # Dependencies to place before the objects being linked to create a
21167 predeps=$lt_predeps_GCJ
21169 # Dependencies to place after the objects being linked to create a
21171 postdeps=$lt_postdeps_GCJ
21173 # The library search path used internally by the compiler when linking
21174 # a shared library.
21175 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21177 # Method to check whether dependent libraries are shared objects.
21178 deplibs_check_method=$lt_deplibs_check_method
21180 # Command to use when deplibs_check_method == file_magic.
21181 file_magic_cmd=$lt_file_magic_cmd
21183 # Flag that allows shared libraries with undefined symbols to be built.
21184 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21186 # Flag that forces no undefined symbols.
21187 no_undefined_flag=$lt_no_undefined_flag_GCJ
21189 # Commands used to finish a libtool library installation in a directory.
21190 finish_cmds=$lt_finish_cmds
21192 # Same as above, but a single script fragment to be evaled but not shown.
21193 finish_eval=$lt_finish_eval
21195 # Take the output of nm and produce a listing of raw symbols and C names.
21196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21198 # Transform the output of nm in a proper C declaration
21199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21201 # Transform the output of nm in a C name address pair
21202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21204 # This is the shared library runtime path variable.
21205 runpath_var=$runpath_var
21207 # This is the shared library path variable.
21208 shlibpath_var=$shlibpath_var
21210 # Is shlibpath searched before the hard-coded library search path?
21211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21213 # How to hardcode a shared library path into an executable.
21214 hardcode_action=$hardcode_action_GCJ
21216 # Whether we should hardcode library paths into libraries.
21217 hardcode_into_libs=$hardcode_into_libs
21219 # Flag to hardcode \$libdir into a binary during linking.
21220 # This must work even if \$libdir does not exist.
21221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21223 # If ld is used when linking, flag to hardcode \$libdir into
21224 # a binary during linking. This must work even if \$libdir does
21226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21228 # Whether we need a single -rpath flag with a separated argument.
21229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21232 # resulting binary.
21233 hardcode_direct=$hardcode_direct_GCJ
21235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21236 # resulting binary.
21237 hardcode_minus_L=$hardcode_minus_L_GCJ
21239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21240 # the resulting binary.
21241 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21243 # Set to yes if building a shared library automatically hardcodes DIR into the library
21244 # and all subsequent libraries and executables linked against it.
21245 hardcode_automatic=$hardcode_automatic_GCJ
21247 # Variables whose values should be saved in libtool wrapper scripts and
21248 # restored at relink time.
21249 variables_saved_for_relink="$variables_saved_for_relink"
21251 # Whether libtool must link a program against all its dependency libraries.
21252 link_all_deplibs=$link_all_deplibs_GCJ
21254 # Compile-time system search path for libraries
21255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21257 # Run-time system search path for libraries
21258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21260 # Fix the shell variable \$srcfile for the compiler.
21261 fix_srcfile_path="$fix_srcfile_path_GCJ"
21263 # Set to yes if exported symbols are required.
21264 always_export_symbols=$always_export_symbols_GCJ
21266 # The commands to list exported symbols.
21267 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21269 # The commands to extract the exported symbol list from a shared archive.
21270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21272 # Symbols that should not be listed in the preloaded symbols.
21273 exclude_expsyms=$lt_exclude_expsyms_GCJ
21275 # Symbols that must always be exported.
21276 include_expsyms=$lt_include_expsyms_GCJ
21278 # ### END LIBTOOL TAG CONFIG: $tagname
21284 # If there is no Makefile yet, we rely on a make rule to execute
21285 # `config.status --recheck' to rerun these tests and create the
21286 # libtool script then.
21287 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21288 if test -f "$ltmain_in"; then
21289 test -f Makefile && make "$ltmain"
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21310 # Source file extension for RC test sources.
21313 # Object file extension for compiled RC test sources.
21317 # Code to be used in simple compile tests
21318 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21320 # Code to be used in simple link tests
21321 lt_simple_link_test_code="$lt_simple_compile_test_code"
21323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21325 # If no C compiler was specified, use CC.
21328 # Allow CC to be a program name with arguments.
21332 # save warnings/boilerplate of simple test code
21333 ac_outfile=conftest.$ac_objext
21334 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21336 _lt_compiler_boilerplate=`cat conftest.err`
21339 ac_outfile=conftest.$ac_objext
21340 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21342 _lt_linker_boilerplate=`cat conftest.err`
21346 # Allow CC to be a program name with arguments.
21351 for cc_temp in $compiler""; do
21353 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21354 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21359 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21361 lt_cv_prog_compiler_c_o_RC=yes
21363 # The else clause should only fire when bootstrapping the
21364 # libtool distribution, otherwise you forgot to ship ltmain.sh
21365 # with your package, and you will get complaints that there are
21366 # no rules to generate ltmain.sh.
21367 if test -f "$ltmain"; then
21368 # See if we are running on zsh, and set the options which allow our commands through
21369 # without removal of \ escapes.
21370 if test -n "${ZSH_VERSION+set}" ; then
21371 setopt NO_GLOB_SUBST
21373 # Now quote all the things that may contain metacharacters while being
21374 # careful not to overquote the AC_SUBSTed values. We take copies of the
21375 # variables and quote the copies for generation of the libtool script.
21376 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21380 deplibs_check_method reload_flag reload_cmds need_locks \
21381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21382 lt_cv_sys_global_symbol_to_c_name_address \
21383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21384 old_postinstall_cmds old_postuninstall_cmds \
21388 lt_prog_compiler_wl_RC \
21389 lt_prog_compiler_pic_RC \
21390 lt_prog_compiler_static_RC \
21391 lt_prog_compiler_no_builtin_flag_RC \
21392 export_dynamic_flag_spec_RC \
21393 thread_safe_flag_spec_RC \
21394 whole_archive_flag_spec_RC \
21395 enable_shared_with_static_runtimes_RC \
21396 old_archive_cmds_RC \
21397 old_archive_from_new_cmds_RC \
21398 predep_objects_RC \
21399 postdep_objects_RC \
21402 compiler_lib_search_path_RC \
21404 archive_expsym_cmds_RC \
21405 postinstall_cmds_RC \
21406 postuninstall_cmds_RC \
21407 old_archive_from_expsyms_cmds_RC \
21408 allow_undefined_flag_RC \
21409 no_undefined_flag_RC \
21410 export_symbols_cmds_RC \
21411 hardcode_libdir_flag_spec_RC \
21412 hardcode_libdir_flag_spec_ld_RC \
21413 hardcode_libdir_separator_RC \
21414 hardcode_automatic_RC \
21416 module_expsym_cmds_RC \
21417 lt_cv_prog_compiler_c_o_RC \
21418 exclude_expsyms_RC \
21419 include_expsyms_RC; do
21422 old_archive_cmds_RC | \
21423 old_archive_from_new_cmds_RC | \
21424 archive_cmds_RC | \
21425 archive_expsym_cmds_RC | \
21427 module_expsym_cmds_RC | \
21428 old_archive_from_expsyms_cmds_RC | \
21429 export_symbols_cmds_RC | \
21430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21431 postinstall_cmds | postuninstall_cmds | \
21432 old_postinstall_cmds | old_postuninstall_cmds | \
21433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21434 # Double-quote double-evaled strings.
21435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21444 *'\$0 --fallback-echo"')
21445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21451 cat <<__EOF__ >> "$cfgfile"
21452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21456 # Shell to use when invoking shell scripts.
21459 # Whether or not to build shared libraries.
21460 build_libtool_libs=$enable_shared
21462 # Whether or not to build static libraries.
21463 build_old_libs=$enable_static
21465 # Whether or not to add -lc for building shared libraries.
21466 build_libtool_need_lc=$archive_cmds_need_lc_RC
21468 # Whether or not to disallow shared libs when runtime libs are static
21469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21471 # Whether or not to optimize for fast installation.
21472 fast_install=$enable_fast_install
21475 host_alias=$host_alias
21479 # The build system.
21480 build_alias=$build_alias
21484 # An echo program that does not interpret backslashes.
21489 AR_FLAGS=$lt_AR_FLAGS
21494 # A language-specific compiler.
21497 # Is the compiler the GNU C compiler?
21503 # The linker used to build libraries.
21506 # Whether we need hard or soft links.
21509 # A BSD-compatible nm program.
21512 # A symbol stripping program
21515 # Used to examine libraries when file_magic_cmd begins "file"
21516 MAGIC_CMD=$MAGIC_CMD
21518 # Used on cygwin: DLL creation program.
21521 # Used on cygwin: object dumper.
21524 # Used on cygwin: assembler.
21527 # The name of the directory that contains temporary libtool files.
21530 # How to create reloadable object files.
21531 reload_flag=$lt_reload_flag
21532 reload_cmds=$lt_reload_cmds
21534 # How to pass a linker flag through the compiler.
21535 wl=$lt_lt_prog_compiler_wl_RC
21537 # Object file suffix (normally "o").
21538 objext="$ac_objext"
21540 # Old archive suffix (normally "a").
21543 # Shared library suffix (normally ".so").
21544 shrext_cmds='$shrext_cmds'
21546 # Executable file suffix (normally "").
21549 # Additional compiler flags for building library objects.
21550 pic_flag=$lt_lt_prog_compiler_pic_RC
21553 # What is the maximum length of a command?
21554 max_cmd_len=$lt_cv_sys_max_cmd_len
21556 # Does compiler simultaneously support -c and -o options?
21557 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21559 # Must we lock files when doing compilation?
21560 need_locks=$lt_need_locks
21562 # Do we need the lib prefix for modules?
21563 need_lib_prefix=$need_lib_prefix
21565 # Do we need a version for libraries?
21566 need_version=$need_version
21568 # Whether dlopen is supported.
21569 dlopen_support=$enable_dlopen
21571 # Whether dlopen of programs is supported.
21572 dlopen_self=$enable_dlopen_self
21574 # Whether dlopen of statically linked programs is supported.
21575 dlopen_self_static=$enable_dlopen_self_static
21577 # Compiler flag to prevent dynamic linking.
21578 link_static_flag=$lt_lt_prog_compiler_static_RC
21580 # Compiler flag to turn off builtin functions.
21581 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21583 # Compiler flag to allow reflexive dlopens.
21584 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21586 # Compiler flag to generate shared objects directly from archives.
21587 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21589 # Compiler flag to generate thread-safe objects.
21590 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21592 # Library versioning type.
21593 version_type=$version_type
21595 # Format of library name prefix.
21596 libname_spec=$lt_libname_spec
21598 # List of archive names. First name is the real one, the rest are links.
21599 # The last name is the one that the linker finds with -lNAME.
21600 library_names_spec=$lt_library_names_spec
21602 # The coded name of the library, if different from the real name.
21603 soname_spec=$lt_soname_spec
21605 # Commands used to build and install an old-style archive.
21607 old_archive_cmds=$lt_old_archive_cmds_RC
21608 old_postinstall_cmds=$lt_old_postinstall_cmds
21609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21611 # Create an old-style archive from a shared archive.
21612 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21614 # Create a temporary old-style archive to link instead of a shared archive.
21615 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21617 # Commands used to build and install a shared archive.
21618 archive_cmds=$lt_archive_cmds_RC
21619 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21620 postinstall_cmds=$lt_postinstall_cmds
21621 postuninstall_cmds=$lt_postuninstall_cmds
21623 # Commands used to build a loadable module (assumed same as above if empty)
21624 module_cmds=$lt_module_cmds_RC
21625 module_expsym_cmds=$lt_module_expsym_cmds_RC
21627 # Commands to strip libraries.
21628 old_striplib=$lt_old_striplib
21629 striplib=$lt_striplib
21631 # Dependencies to place before the objects being linked to create a
21633 predep_objects=$lt_predep_objects_RC
21635 # Dependencies to place after the objects being linked to create a
21637 postdep_objects=$lt_postdep_objects_RC
21639 # Dependencies to place before the objects being linked to create a
21641 predeps=$lt_predeps_RC
21643 # Dependencies to place after the objects being linked to create a
21645 postdeps=$lt_postdeps_RC
21647 # The library search path used internally by the compiler when linking
21648 # a shared library.
21649 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21651 # Method to check whether dependent libraries are shared objects.
21652 deplibs_check_method=$lt_deplibs_check_method
21654 # Command to use when deplibs_check_method == file_magic.
21655 file_magic_cmd=$lt_file_magic_cmd
21657 # Flag that allows shared libraries with undefined symbols to be built.
21658 allow_undefined_flag=$lt_allow_undefined_flag_RC
21660 # Flag that forces no undefined symbols.
21661 no_undefined_flag=$lt_no_undefined_flag_RC
21663 # Commands used to finish a libtool library installation in a directory.
21664 finish_cmds=$lt_finish_cmds
21666 # Same as above, but a single script fragment to be evaled but not shown.
21667 finish_eval=$lt_finish_eval
21669 # Take the output of nm and produce a listing of raw symbols and C names.
21670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21672 # Transform the output of nm in a proper C declaration
21673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21675 # Transform the output of nm in a C name address pair
21676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21678 # This is the shared library runtime path variable.
21679 runpath_var=$runpath_var
21681 # This is the shared library path variable.
21682 shlibpath_var=$shlibpath_var
21684 # Is shlibpath searched before the hard-coded library search path?
21685 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21687 # How to hardcode a shared library path into an executable.
21688 hardcode_action=$hardcode_action_RC
21690 # Whether we should hardcode library paths into libraries.
21691 hardcode_into_libs=$hardcode_into_libs
21693 # Flag to hardcode \$libdir into a binary during linking.
21694 # This must work even if \$libdir does not exist.
21695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21697 # If ld is used when linking, flag to hardcode \$libdir into
21698 # a binary during linking. This must work even if \$libdir does
21700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21702 # Whether we need a single -rpath flag with a separated argument.
21703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21705 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21706 # resulting binary.
21707 hardcode_direct=$hardcode_direct_RC
21709 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21710 # resulting binary.
21711 hardcode_minus_L=$hardcode_minus_L_RC
21713 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21714 # the resulting binary.
21715 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21717 # Set to yes if building a shared library automatically hardcodes DIR into the library
21718 # and all subsequent libraries and executables linked against it.
21719 hardcode_automatic=$hardcode_automatic_RC
21721 # Variables whose values should be saved in libtool wrapper scripts and
21722 # restored at relink time.
21723 variables_saved_for_relink="$variables_saved_for_relink"
21725 # Whether libtool must link a program against all its dependency libraries.
21726 link_all_deplibs=$link_all_deplibs_RC
21728 # Compile-time system search path for libraries
21729 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21731 # Run-time system search path for libraries
21732 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21734 # Fix the shell variable \$srcfile for the compiler.
21735 fix_srcfile_path="$fix_srcfile_path_RC"
21737 # Set to yes if exported symbols are required.
21738 always_export_symbols=$always_export_symbols_RC
21740 # The commands to list exported symbols.
21741 export_symbols_cmds=$lt_export_symbols_cmds_RC
21743 # The commands to extract the exported symbol list from a shared archive.
21744 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21746 # Symbols that should not be listed in the preloaded symbols.
21747 exclude_expsyms=$lt_exclude_expsyms_RC
21749 # Symbols that must always be exported.
21750 include_expsyms=$lt_include_expsyms_RC
21752 # ### END LIBTOOL TAG CONFIG: $tagname
21758 # If there is no Makefile yet, we rely on a make rule to execute
21759 # `config.status --recheck' to rerun these tests and create the
21760 # libtool script then.
21761 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21762 if test -f "$ltmain_in"; then
21763 test -f Makefile && make "$ltmain"
21769 ac_cpp='$CPP $CPPFLAGS'
21770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21779 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21780 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21781 { (exit 1); exit 1; }; }
21785 # Append the new tag name to the list of available tags.
21786 if test -n "$tagname" ; then
21787 available_tags="$available_tags $tagname"
21793 # Now substitute the updated list of available tags.
21794 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21795 mv "${ofile}T" "$ofile"
21799 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21800 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21801 { (exit 1); exit 1; }; }
21807 # This can be used to rebuild libtool when needed
21808 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21810 # Always use our own libtool.
21811 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21813 # Prevent multiple expansion
21834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21836 if test "${ac_cv_header_stdc+set}" = set; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #include <stdlib.h>
21846 #include <stdarg.h>
21847 #include <string.h>
21858 rm -f conftest.$ac_objext
21859 if { (ac_try="$ac_compile"
21860 case "(($ac_try" in
21861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862 *) ac_try_echo=$ac_try;;
21864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21865 (eval "$ac_compile") 2>conftest.er1
21867 grep -v '^ *+' conftest.er1 >conftest.err
21869 cat conftest.err >&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } && {
21872 test -z "$ac_c_werror_flag" ||
21873 test ! -s conftest.err
21874 } && test -s conftest.$ac_objext; then
21875 ac_cv_header_stdc=yes
21877 echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21880 ac_cv_header_stdc=no
21883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 if test $ac_cv_header_stdc = yes; then
21886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 #include <string.h>
21896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21897 $EGREP "memchr" >/dev/null 2>&1; then
21900 ac_cv_header_stdc=no
21906 if test $ac_cv_header_stdc = yes; then
21907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21908 cat >conftest.$ac_ext <<_ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 #include <stdlib.h>
21917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21918 $EGREP "free" >/dev/null 2>&1; then
21921 ac_cv_header_stdc=no
21927 if test $ac_cv_header_stdc = yes; then
21928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21929 if test "$cross_compiling" = yes; then
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21939 #include <stdlib.h>
21940 #if ((' ' & 0x0FF) == 0x020)
21941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21944 # define ISLOWER(c) \
21945 (('a' <= (c) && (c) <= 'i') \
21946 || ('j' <= (c) && (c) <= 'r') \
21947 || ('s' <= (c) && (c) <= 'z'))
21948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21956 for (i = 0; i < 256; i++)
21957 if (XOR (islower (i), ISLOWER (i))
21958 || toupper (i) != TOUPPER (i))
21963 rm -f conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_link") 2>&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21974 { (case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_try") 2>&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21985 echo "$as_me: program exited with status $ac_status" >&5
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21989 ( exit $ac_status )
21990 ac_cv_header_stdc=no
21992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21998 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21999 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22000 if test $ac_cv_header_stdc = yes; then
22002 cat >>confdefs.h <<\_ACEOF
22003 #define STDC_HEADERS 1
22011 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22012 if test -n "$ac_tool_prefix"; then
22013 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22014 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22017 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 case $PKG_CONFIG in
22022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22026 for as_dir in $PATH
22029 test -z "$as_dir" && as_dir=.
22030 for ac_exec_ext in '' $ac_executable_extensions; do
22031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22043 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22044 if test -n "$PKG_CONFIG"; then
22045 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22046 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22048 { echo "$as_me:$LINENO: result: no" >&5
22049 echo "${ECHO_T}no" >&6; }
22054 if test -z "$ac_cv_path_PKG_CONFIG"; then
22055 ac_pt_PKG_CONFIG=$PKG_CONFIG
22056 # Extract the first word of "pkg-config", so it can be a program name with args.
22057 set dummy pkg-config; ac_word=$2
22058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22060 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 case $ac_pt_PKG_CONFIG in
22065 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22069 for as_dir in $PATH
22072 test -z "$as_dir" && as_dir=.
22073 for ac_exec_ext in '' $ac_executable_extensions; do
22074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22075 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22086 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22087 if test -n "$ac_pt_PKG_CONFIG"; then
22088 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22089 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22091 { echo "$as_me:$LINENO: result: no" >&5
22092 echo "${ECHO_T}no" >&6; }
22095 if test "x$ac_pt_PKG_CONFIG" = x; then
22098 case $cross_compiling:$ac_tool_warned in
22100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22101 whose name does not start with the host triplet. If you think this
22102 configuration is useful to you, please write to autoconf@gnu.org." >&5
22103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22104 whose name does not start with the host triplet. If you think this
22105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22106 ac_tool_warned=yes ;;
22108 PKG_CONFIG=$ac_pt_PKG_CONFIG
22111 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22115 if test -n "$PKG_CONFIG"; then
22116 _pkg_min_version=0.9.0
22117 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22118 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22119 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22120 { echo "$as_me:$LINENO: result: yes" >&5
22121 echo "${ECHO_T}yes" >&6; }
22123 { echo "$as_me:$LINENO: result: no" >&5
22124 echo "${ECHO_T}no" >&6; }
22131 { echo "$as_me:$LINENO: checking for GTK" >&5
22132 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
22134 if test -n "$PKG_CONFIG"; then
22135 if test -n "$GTK_CFLAGS"; then
22136 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
22138 if test -n "$PKG_CONFIG" && \
22139 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0\"") >&5
22140 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0") 2>&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; then
22144 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0" 2>/dev/null`
22152 if test -n "$PKG_CONFIG"; then
22153 if test -n "$GTK_LIBS"; then
22154 pkg_cv_GTK_LIBS="$GTK_LIBS"
22156 if test -n "$PKG_CONFIG" && \
22157 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0\"") >&5
22158 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0") 2>&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; then
22162 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0" 2>/dev/null`
22173 if test $pkg_failed = yes; then
22175 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22176 _pkg_short_errors_supported=yes
22178 _pkg_short_errors_supported=no
22180 if test $_pkg_short_errors_supported = yes; then
22181 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0"`
22183 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0"`
22185 # Put the nasty error message in config.log where it belongs
22186 echo "$GTK_PKG_ERRORS" >&5
22188 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0) were not met:
22192 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22193 installed software in a non-standard prefix.
22195 Alternatively, you may set the environment variables GTK_CFLAGS
22196 and GTK_LIBS to avoid the need to call pkg-config.
22197 See the pkg-config man page for more details.
22199 echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.4.0 gconf-2.0 > 2.0) were not met:
22203 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22204 installed software in a non-standard prefix.
22206 Alternatively, you may set the environment variables GTK_CFLAGS
22207 and GTK_LIBS to avoid the need to call pkg-config.
22208 See the pkg-config man page for more details.
22210 { (exit 1); exit 1; }; }
22211 elif test $pkg_failed = untried; then
22212 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22213 is in your PATH or set the PKG_CONFIG environment variable to the full
22214 path to pkg-config.
22216 Alternatively, you may set the environment variables GTK_CFLAGS
22217 and GTK_LIBS to avoid the need to call pkg-config.
22218 See the pkg-config man page for more details.
22220 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22221 See \`config.log' for more details." >&5
22222 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22223 is in your PATH or set the PKG_CONFIG environment variable to the full
22224 path to pkg-config.
22226 Alternatively, you may set the environment variables GTK_CFLAGS
22227 and GTK_LIBS to avoid the need to call pkg-config.
22228 See the pkg-config man page for more details.
22230 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22231 See \`config.log' for more details." >&2;}
22232 { (exit 1); exit 1; }; }
22234 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
22235 GTK_LIBS=$pkg_cv_GTK_LIBS
22236 { echo "$as_me:$LINENO: result: yes" >&5
22237 echo "${ECHO_T}yes" >&6; }
22245 { echo "$as_me:$LINENO: checking for HIM" >&5
22246 echo $ECHO_N "checking for HIM... $ECHO_C" >&6; }
22248 if test -n "$PKG_CONFIG"; then
22249 if test -n "$HIM_CFLAGS"; then
22250 pkg_cv_HIM_CFLAGS="$HIM_CFLAGS"
22252 if test -n "$PKG_CONFIG" && \
22253 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0\"") >&5
22254 ($PKG_CONFIG --exists --print-errors "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0") 2>&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; then
22258 pkg_cv_HIM_CFLAGS=`$PKG_CONFIG --cflags "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0" 2>/dev/null`
22266 if test -n "$PKG_CONFIG"; then
22267 if test -n "$HIM_LIBS"; then
22268 pkg_cv_HIM_LIBS="$HIM_LIBS"
22270 if test -n "$PKG_CONFIG" && \
22271 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0\"") >&5
22272 ($PKG_CONFIG --exists --print-errors "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0") 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; then
22276 pkg_cv_HIM_LIBS=`$PKG_CONFIG --libs "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0" 2>/dev/null`
22287 if test $pkg_failed = yes; then
22289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22290 _pkg_short_errors_supported=yes
22292 _pkg_short_errors_supported=no
22294 if test $_pkg_short_errors_supported = yes; then
22295 HIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0"`
22297 HIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0"`
22299 # Put the nasty error message in config.log where it belongs
22300 echo "$HIM_PKG_ERRORS" >&5
22302 { { echo "$as_me:$LINENO: error: Package requirements (hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0) were not met:
22306 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22307 installed software in a non-standard prefix.
22309 Alternatively, you may set the environment variables HIM_CFLAGS
22310 and HIM_LIBS to avoid the need to call pkg-config.
22311 See the pkg-config man page for more details.
22313 echo "$as_me: error: Package requirements (hildon-input-method-framework-3.0 >= 1.99.0 hildon-input-method-ui-3.0 >= 1.99.0) were not met:
22317 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22318 installed software in a non-standard prefix.
22320 Alternatively, you may set the environment variables HIM_CFLAGS
22321 and HIM_LIBS to avoid the need to call pkg-config.
22322 See the pkg-config man page for more details.
22324 { (exit 1); exit 1; }; }
22325 elif test $pkg_failed = untried; then
22326 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22327 is in your PATH or set the PKG_CONFIG environment variable to the full
22328 path to pkg-config.
22330 Alternatively, you may set the environment variables HIM_CFLAGS
22331 and HIM_LIBS to avoid the need to call pkg-config.
22332 See the pkg-config man page for more details.
22334 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22335 See \`config.log' for more details." >&5
22336 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22337 is in your PATH or set the PKG_CONFIG environment variable to the full
22338 path to pkg-config.
22340 Alternatively, you may set the environment variables HIM_CFLAGS
22341 and HIM_LIBS to avoid the need to call pkg-config.
22342 See the pkg-config man page for more details.
22344 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22345 See \`config.log' for more details." >&2;}
22346 { (exit 1); exit 1; }; }
22348 HIM_CFLAGS=$pkg_cv_HIM_CFLAGS
22349 HIM_LIBS=$pkg_cv_HIM_LIBS
22350 { echo "$as_me:$LINENO: result: yes" >&5
22351 echo "${ECHO_T}yes" >&6; }
22359 { echo "$as_me:$LINENO: checking for DBUS" >&5
22360 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
22362 if test -n "$PKG_CONFIG"; then
22363 if test -n "$DBUS_CFLAGS"; then
22364 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
22366 if test -n "$PKG_CONFIG" && \
22367 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.60\"") >&5
22368 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.60") 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; then
22372 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.60" 2>/dev/null`
22380 if test -n "$PKG_CONFIG"; then
22381 if test -n "$DBUS_LIBS"; then
22382 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
22384 if test -n "$PKG_CONFIG" && \
22385 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.60\"") >&5
22386 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.60") 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; then
22390 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.60" 2>/dev/null`
22401 if test $pkg_failed = yes; then
22403 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22404 _pkg_short_errors_supported=yes
22406 _pkg_short_errors_supported=no
22408 if test $_pkg_short_errors_supported = yes; then
22409 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= 0.60"`
22411 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 0.60"`
22413 # Put the nasty error message in config.log where it belongs
22414 echo "$DBUS_PKG_ERRORS" >&5
22416 { { echo "$as_me:$LINENO: error: Package requirements (dbus-1 >= 0.60) were not met:
22420 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22421 installed software in a non-standard prefix.
22423 Alternatively, you may set the environment variables DBUS_CFLAGS
22424 and DBUS_LIBS to avoid the need to call pkg-config.
22425 See the pkg-config man page for more details.
22427 echo "$as_me: error: Package requirements (dbus-1 >= 0.60) were not met:
22431 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22432 installed software in a non-standard prefix.
22434 Alternatively, you may set the environment variables DBUS_CFLAGS
22435 and DBUS_LIBS to avoid the need to call pkg-config.
22436 See the pkg-config man page for more details.
22438 { (exit 1); exit 1; }; }
22439 elif test $pkg_failed = untried; then
22440 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22441 is in your PATH or set the PKG_CONFIG environment variable to the full
22442 path to pkg-config.
22444 Alternatively, you may set the environment variables DBUS_CFLAGS
22445 and DBUS_LIBS to avoid the need to call pkg-config.
22446 See the pkg-config man page for more details.
22448 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22449 See \`config.log' for more details." >&5
22450 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22451 is in your PATH or set the PKG_CONFIG environment variable to the full
22452 path to pkg-config.
22454 Alternatively, you may set the environment variables DBUS_CFLAGS
22455 and DBUS_LIBS to avoid the need to call pkg-config.
22456 See the pkg-config man page for more details.
22458 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22459 See \`config.log' for more details." >&2;}
22460 { (exit 1); exit 1; }; }
22462 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
22463 DBUS_LIBS=$pkg_cv_DBUS_LIBS
22464 { echo "$as_me:$LINENO: result: yes" >&5
22465 echo "${ECHO_T}yes" >&6; }
22471 ac_config_files="$ac_config_files Makefile src/Makefile"
22473 cat >confcache <<\_ACEOF
22474 # This file is a shell script that caches the results of configure
22475 # tests run on this system so they can be shared between configure
22476 # scripts and configure runs, see configure's option --config-cache.
22477 # It is not useful on other systems. If it contains results you don't
22478 # want to keep, you may remove or edit it.
22480 # config.status only pays attention to the cache file if you give it
22481 # the --recheck option to rerun configure.
22483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22485 # following values.
22489 # The following way of writing the cache mishandles newlines in values,
22490 # but we know of no workaround that is simple, portable, and efficient.
22491 # So, we kill variables containing newlines.
22492 # Ultrix sh set writes to stderr and can't be redirected directly,
22493 # and sets the high bit in the cache file unless we assign to the vars.
22495 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22496 eval ac_val=\$$ac_var
22500 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22501 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22504 _ | IFS | as_nl) ;; #(
22505 *) $as_unset $ac_var ;;
22511 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22512 *${as_nl}ac_space=\ *)
22513 # `set' does not quote correctly, so add quotes (double-quote
22514 # substitution turns \\\\ into \\, and sed turns \\ into \).
22517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22520 # `set' quotes correctly as required by POSIX, so do not add quotes.
22521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22532 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22534 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22535 if test -w "$cache_file"; then
22536 test "x$cache_file" != "x/dev/null" &&
22537 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22538 echo "$as_me: updating cache $cache_file" >&6;}
22539 cat confcache >$cache_file
22541 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22542 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22548 # Let make expand exec_prefix.
22549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22551 # Transform confdefs.h into DEFS.
22552 # Protect against shell expansion while executing Makefile rules.
22553 # Protect against Makefile macro expansion.
22555 # If the first sed substitution is executed (which looks for macros that
22556 # take arguments), then branch to the quote section. Otherwise,
22557 # look for a macro that doesn't take arguments.
22561 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22563 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22567 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22580 DEFS=`sed -n "$ac_script" confdefs.h`
22585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22586 # 1. Remove the extension, and $U if already installed.
22587 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22588 ac_i=`echo "$ac_i" | sed "$ac_script"`
22589 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22590 # will be set to the directory where LIBOBJS objects are built.
22591 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22592 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22594 LIBOBJS=$ac_libobjs
22596 LTLIBOBJS=$ac_ltlibobjs
22599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22600 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22601 Usually this means the macro was only invoked conditionally." >&5
22602 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22603 Usually this means the macro was only invoked conditionally." >&2;}
22604 { (exit 1); exit 1; }; }
22606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22607 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22608 Usually this means the macro was only invoked conditionally." >&5
22609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22610 Usually this means the macro was only invoked conditionally." >&2;}
22611 { (exit 1); exit 1; }; }
22613 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22614 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22615 Usually this means the macro was only invoked conditionally." >&5
22616 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22617 Usually this means the macro was only invoked conditionally." >&2;}
22618 { (exit 1); exit 1; }; }
22620 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22621 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22622 Usually this means the macro was only invoked conditionally." >&5
22623 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22624 Usually this means the macro was only invoked conditionally." >&2;}
22625 { (exit 1); exit 1; }; }
22627 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22628 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22629 Usually this means the macro was only invoked conditionally." >&5
22630 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22631 Usually this means the macro was only invoked conditionally." >&2;}
22632 { (exit 1); exit 1; }; }
22635 : ${CONFIG_STATUS=./config.status}
22636 ac_clean_files_save=$ac_clean_files
22637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22638 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22639 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22640 cat >$CONFIG_STATUS <<_ACEOF
22642 # Generated by $as_me.
22643 # Run this file to recreate the current configuration.
22644 # Compiler output produced by configure, useful for debugging
22645 # configure, is in config.log if it exists.
22648 ac_cs_recheck=false
22650 SHELL=\${CONFIG_SHELL-$SHELL}
22653 cat >>$CONFIG_STATUS <<\_ACEOF
22654 ## --------------------- ##
22655 ## M4sh Initialization. ##
22656 ## --------------------- ##
22658 # Be more Bourne compatible
22659 DUALCASE=1; export DUALCASE # for MKS sh
22660 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22663 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22664 # is contrary to our usage. Disable this feature.
22665 alias -g '${1+"$@"}'='"$@"'
22666 setopt NO_GLOB_SUBST
22668 case `(set -o) 2>/dev/null` in
22669 *posix*) set -o posix ;;
22678 # Avoid depending upon Character Ranges.
22679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22682 as_cr_digits='0123456789'
22683 as_cr_alnum=$as_cr_Letters$as_cr_digits
22685 # The user is always right.
22686 if test "${PATH_SEPARATOR+set}" != set; then
22687 echo "#! /bin/sh" >conf$$.sh
22688 echo "exit 0" >>conf$$.sh
22690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22698 # Support unset when possible.
22699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22707 # We need space, tab and new line, in precisely that order. Quoting is
22708 # there to prevent editors from complaining about space-tab.
22709 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22710 # splitting by setting IFS to empty value.)
22715 # Find who we are. Look in the path if we contain no directory separator.
22717 *[\\/]* ) as_myself=$0 ;;
22718 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22719 for as_dir in $PATH
22722 test -z "$as_dir" && as_dir=.
22723 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22729 # We did not find ourselves, most probably we were run as `sh COMMAND'
22730 # in which case we are not to be found in the path.
22731 if test "x$as_myself" = x; then
22734 if test ! -f "$as_myself"; then
22735 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22736 { (exit 1); exit 1; }
22739 # Work around bugs in pre-3.0 UWIN ksh.
22740 for as_var in ENV MAIL MAILPATH
22741 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22749 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22750 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22751 LC_TELEPHONE LC_TIME
22753 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22754 eval $as_var=C; export $as_var
22756 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22760 # Required to use basename.
22761 if expr a : '\(a\)' >/dev/null 2>&1 &&
22762 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22768 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22769 as_basename=basename
22775 # Name of the executable.
22776 as_me=`$as_basename -- "$0" ||
22777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22778 X"$0" : 'X\(//\)$' \| \
22779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22781 sed '/^.*\/\([^/][^/]*\)\/*$/{
22800 as_lineno_1=$LINENO
22801 as_lineno_2=$LINENO
22802 test "x$as_lineno_1" != "x$as_lineno_2" &&
22803 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22805 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22806 # uniformly replaced by the line number. The first 'sed' inserts a
22807 # line-number line after each line using $LINENO; the second 'sed'
22808 # does the real work. The second script uses 'N' to pair each
22809 # line-number line with the line containing $LINENO, and appends
22810 # trailing '-' during substitution so that $LINENO is not a special
22811 # case at line end.
22812 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22813 # scripts with optimization help from Paolo Bonzini. Blame Lee
22814 # E. McMahon (1931-1989) for sed's syntax. :-)
22826 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22829 ' >$as_me.lineno &&
22830 chmod +x "$as_me.lineno" ||
22831 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22832 { (exit 1); exit 1; }; }
22834 # Don't try to exec as it changes $[0], causing all sort of problems
22835 # (the dirname of $[0] is not the place where we might find the
22836 # original and so on. Autoconf is especially sensitive to this).
22837 . "./$as_me.lineno"
22838 # Exit status is that of the last command.
22843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22849 ECHO_C= ECHO_N= ECHO_T=
22850 case `echo -n x` in
22852 case `echo 'x\c'` in
22853 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22860 if expr a : '\(a\)' >/dev/null 2>&1 &&
22861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22867 rm -f conf$$ conf$$.exe conf$$.file
22868 if test -d conf$$.dir; then
22869 rm -f conf$$.dir/conf$$.file
22875 if ln -s conf$$.file conf$$ 2>/dev/null; then
22877 # ... but there are two gotchas:
22878 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22879 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22880 # In both cases, we have to default to `cp -p'.
22881 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22883 elif ln conf$$.file conf$$ 2>/dev/null; then
22888 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22889 rmdir conf$$.dir 2>/dev/null
22891 if mkdir -p . 2>/dev/null; then
22894 test -d ./-p && rmdir ./-p
22898 if test -x / >/dev/null 2>&1; then
22899 as_test_x='test -x'
22901 if ls -dL / >/dev/null 2>&1; then
22908 if test -d "$1"; then
22914 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22915 ???[sx]*):;;*)false;;esac;fi
22919 as_executable_p=$as_test_x
22921 # Sed expression to map a string onto a valid CPP name.
22922 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22924 # Sed expression to map a string onto a valid variable name.
22925 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22930 # Save the log message, to keep $[0] and so on meaningful, and to
22931 # report actual input values of CONFIG_FILES etc. instead of their
22932 # values after options handling.
22934 This file was extended by $as_me, which was
22935 generated by GNU Autoconf 2.61. Invocation command line was
22937 CONFIG_FILES = $CONFIG_FILES
22938 CONFIG_HEADERS = $CONFIG_HEADERS
22939 CONFIG_LINKS = $CONFIG_LINKS
22940 CONFIG_COMMANDS = $CONFIG_COMMANDS
22943 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22948 cat >>$CONFIG_STATUS <<_ACEOF
22949 # Files that config.status was made for.
22950 config_files="$ac_config_files"
22951 config_commands="$ac_config_commands"
22955 cat >>$CONFIG_STATUS <<\_ACEOF
22957 \`$as_me' instantiates files from templates according to the
22958 current configuration.
22960 Usage: $0 [OPTIONS] [FILE]...
22962 -h, --help print this help, then exit
22963 -V, --version print version number and configuration settings, then exit
22964 -q, --quiet do not print progress messages
22965 -d, --debug don't remove temporary files
22966 --recheck update $as_me by reconfiguring in the same conditions
22967 --file=FILE[:TEMPLATE]
22968 instantiate the configuration file FILE
22970 Configuration files:
22973 Configuration commands:
22976 Report bugs to <bug-autoconf@gnu.org>."
22979 cat >>$CONFIG_STATUS <<_ACEOF
22982 configured by $0, generated by GNU Autoconf 2.61,
22983 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22985 Copyright (C) 2006 Free Software Foundation, Inc.
22986 This config.status script is free software; the Free Software Foundation
22987 gives unlimited permission to copy, distribute and modify it."
22994 cat >>$CONFIG_STATUS <<\_ACEOF
22995 # If no file are specified by the user, then we need to provide default
22996 # value. By we need to know if files were specified by the user.
23002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23014 # Handling of the options.
23015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23017 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23018 echo "$ac_cs_version"; exit ;;
23019 --debug | --debu | --deb | --de | --d | -d )
23021 --file | --fil | --fi | --f )
23023 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23024 ac_need_defaults=false;;
23025 --he | --h | --help | --hel | -h )
23026 echo "$ac_cs_usage"; exit ;;
23027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23031 # This is an error.
23032 -*) { echo "$as_me: error: unrecognized option: $1
23033 Try \`$0 --help' for more information." >&2
23034 { (exit 1); exit 1; }; } ;;
23036 *) ac_config_targets="$ac_config_targets $1"
23037 ac_need_defaults=false ;;
23043 ac_configure_extra_args=
23045 if $ac_cs_silent; then
23047 ac_configure_extra_args="$ac_configure_extra_args --silent"
23051 cat >>$CONFIG_STATUS <<_ACEOF
23052 if \$ac_cs_recheck; then
23053 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23054 CONFIG_SHELL=$SHELL
23055 export CONFIG_SHELL
23056 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23060 cat >>$CONFIG_STATUS <<\_ACEOF
23064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23065 ## Running $as_me. ##
23071 cat >>$CONFIG_STATUS <<_ACEOF
23075 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23079 cat >>$CONFIG_STATUS <<\_ACEOF
23081 # Handling of arguments.
23082 for ac_config_target in $ac_config_targets
23084 case $ac_config_target in
23085 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23086 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23087 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23089 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23091 { (exit 1); exit 1; }; };;
23096 # If the user did not use the arguments to specify the items to instantiate,
23097 # then the envvar interface is used. Set only those that are not.
23098 # We use the long form for the default assignment because of an extremely
23099 # bizarre bug on SunOS 4.1.3.
23100 if $ac_need_defaults; then
23101 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23102 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23105 # Have a temporary directory for convenience. Make it in the build tree
23106 # simply because there is no reason against having it here, and in addition,
23107 # creating and moving files from /tmp can sometimes cause problems.
23108 # Hook for its removal unless debugging.
23109 # Note that there is a small window in which the directory will not be cleaned:
23110 # after its creation but before its name has been assigned to `$tmp'.
23114 trap 'exit_status=$?
23115 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23117 trap '{ (exit 1); exit 1; }' 1 2 13 15
23119 # Create a (secure) tmp directory for tmp files.
23122 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23123 test -n "$tmp" && test -d "$tmp"
23126 tmp=./conf$$-$RANDOM
23127 (umask 077 && mkdir "$tmp")
23130 echo "$me: cannot create a temporary directory in ." >&2
23131 { (exit 1); exit 1; }
23135 # Set up the sed scripts for CONFIG_FILES section.
23138 # No need to generate the scripts if there are no CONFIG_FILES.
23139 # This happens for instance when ./config.status config.h
23140 if test -n "$CONFIG_FILES"; then
23147 for ac_last_try in false false false false false :; do
23148 cat >conf$$subs.sed <<_ACEOF
23149 SHELL!$SHELL$ac_delim
23150 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23151 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23152 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23153 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23154 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23155 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23156 exec_prefix!$exec_prefix$ac_delim
23157 prefix!$prefix$ac_delim
23158 program_transform_name!$program_transform_name$ac_delim
23159 bindir!$bindir$ac_delim
23160 sbindir!$sbindir$ac_delim
23161 libexecdir!$libexecdir$ac_delim
23162 datarootdir!$datarootdir$ac_delim
23163 datadir!$datadir$ac_delim
23164 sysconfdir!$sysconfdir$ac_delim
23165 sharedstatedir!$sharedstatedir$ac_delim
23166 localstatedir!$localstatedir$ac_delim
23167 includedir!$includedir$ac_delim
23168 oldincludedir!$oldincludedir$ac_delim
23169 docdir!$docdir$ac_delim
23170 infodir!$infodir$ac_delim
23171 htmldir!$htmldir$ac_delim
23172 dvidir!$dvidir$ac_delim
23173 pdfdir!$pdfdir$ac_delim
23174 psdir!$psdir$ac_delim
23175 libdir!$libdir$ac_delim
23176 localedir!$localedir$ac_delim
23177 mandir!$mandir$ac_delim
23178 DEFS!$DEFS$ac_delim
23179 ECHO_C!$ECHO_C$ac_delim
23180 ECHO_N!$ECHO_N$ac_delim
23181 ECHO_T!$ECHO_T$ac_delim
23182 LIBS!$LIBS$ac_delim
23183 build_alias!$build_alias$ac_delim
23184 host_alias!$host_alias$ac_delim
23185 target_alias!$target_alias$ac_delim
23186 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23187 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23188 INSTALL_DATA!$INSTALL_DATA$ac_delim
23189 CYGPATH_W!$CYGPATH_W$ac_delim
23190 PACKAGE!$PACKAGE$ac_delim
23191 VERSION!$VERSION$ac_delim
23192 ACLOCAL!$ACLOCAL$ac_delim
23193 AUTOCONF!$AUTOCONF$ac_delim
23194 AUTOMAKE!$AUTOMAKE$ac_delim
23195 AUTOHEADER!$AUTOHEADER$ac_delim
23196 MAKEINFO!$MAKEINFO$ac_delim
23197 AMTAR!$AMTAR$ac_delim
23198 install_sh!$install_sh$ac_delim
23199 STRIP!$STRIP$ac_delim
23200 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23201 mkdir_p!$mkdir_p$ac_delim
23203 SET_MAKE!$SET_MAKE$ac_delim
23204 am__leading_dot!$am__leading_dot$ac_delim
23206 CFLAGS!$CFLAGS$ac_delim
23207 LDFLAGS!$LDFLAGS$ac_delim
23208 CPPFLAGS!$CPPFLAGS$ac_delim
23209 ac_ct_CC!$ac_ct_CC$ac_delim
23210 EXEEXT!$EXEEXT$ac_delim
23211 OBJEXT!$OBJEXT$ac_delim
23212 DEPDIR!$DEPDIR$ac_delim
23213 am__include!$am__include$ac_delim
23214 am__quote!$am__quote$ac_delim
23215 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23216 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23217 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23218 CCDEPMODE!$CCDEPMODE$ac_delim
23219 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23220 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23221 build!$build$ac_delim
23222 build_cpu!$build_cpu$ac_delim
23223 build_vendor!$build_vendor$ac_delim
23224 build_os!$build_os$ac_delim
23225 host!$host$ac_delim
23226 host_cpu!$host_cpu$ac_delim
23227 host_vendor!$host_vendor$ac_delim
23228 host_os!$host_os$ac_delim
23229 GREP!$GREP$ac_delim
23230 EGREP!$EGREP$ac_delim
23231 LN_S!$LN_S$ac_delim
23232 ECHO!$ECHO$ac_delim
23234 RANLIB!$RANLIB$ac_delim
23237 CXXFLAGS!$CXXFLAGS$ac_delim
23238 ac_ct_CXX!$ac_ct_CXX$ac_delim
23239 CXXDEPMODE!$CXXDEPMODE$ac_delim
23240 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23241 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23242 CXXCPP!$CXXCPP$ac_delim
23244 FFLAGS!$FFLAGS$ac_delim
23245 ac_ct_F77!$ac_ct_F77$ac_delim
23248 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23250 elif $ac_last_try; then
23251 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23252 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23253 { (exit 1); exit 1; }; }
23255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23259 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23260 if test -n "$ac_eof"; then
23261 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23262 ac_eof=`expr $ac_eof + 1`
23265 cat >>$CONFIG_STATUS <<_ACEOF
23266 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23270 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23271 s/^/s,@/; s/!/@,|#_!!_#|/
23274 s/'"$ac_delim"'$/,g/; t
23276 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23277 ' >>$CONFIG_STATUS <conf$$subs.sed
23278 rm -f conf$$subs.sed
23279 cat >>$CONFIG_STATUS <<_ACEOF
23285 for ac_last_try in false false false false false :; do
23286 cat >conf$$subs.sed <<_ACEOF
23287 LIBTOOL!$LIBTOOL$ac_delim
23288 PKG_CONFIG!$PKG_CONFIG$ac_delim
23289 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23290 GTK_LIBS!$GTK_LIBS$ac_delim
23291 HIM_CFLAGS!$HIM_CFLAGS$ac_delim
23292 HIM_LIBS!$HIM_LIBS$ac_delim
23293 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
23294 DBUS_LIBS!$DBUS_LIBS$ac_delim
23295 LIBOBJS!$LIBOBJS$ac_delim
23296 LTLIBOBJS!$LTLIBOBJS$ac_delim
23299 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
23301 elif $ac_last_try; then
23302 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23304 { (exit 1); exit 1; }; }
23306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23311 if test -n "$ac_eof"; then
23312 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23313 ac_eof=`expr $ac_eof + 1`
23316 cat >>$CONFIG_STATUS <<_ACEOF
23317 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23322 s/^/s,@/; s/!/@,|#_!!_#|/
23325 s/'"$ac_delim"'$/,g/; t
23327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23328 ' >>$CONFIG_STATUS <conf$$subs.sed
23329 rm -f conf$$subs.sed
23330 cat >>$CONFIG_STATUS <<_ACEOF
23337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23339 # trailing colons and then remove the whole line if VPATH becomes empty
23340 # (actually we leave an empty line to preserve line numbers).
23341 if test "x$srcdir" = x.; then
23342 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23343 s/:*\$(srcdir):*/:/
23344 s/:*\${srcdir}:*/:/
23346 s/^\([^=]*=[ ]*\):*/\1/
23352 cat >>$CONFIG_STATUS <<\_ACEOF
23353 fi # test -n "$CONFIG_FILES"
23356 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
23359 :[FHLC]) ac_mode=$ac_tag; continue;;
23361 case $ac_mode$ac_tag in
23363 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23364 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23365 { (exit 1); exit 1; }; };;
23366 :[FH]-) ac_tag=-:-;;
23367 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23384 -) ac_f="$tmp/stdin";;
23385 *) # Look for the file first in the build tree, then in the source tree
23386 # (if the path is not absolute). The absolute path cannot be DOS-style,
23387 # because $ac_f cannot contain `:'.
23391 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23393 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23394 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23395 { (exit 1); exit 1; }; };;
23397 ac_file_inputs="$ac_file_inputs $ac_f"
23400 # Let's still pretend it is `configure' which instantiates (i.e., don't
23401 # use $as_me), people would be surprised to read:
23402 # /* config.h. Generated by config.status. */
23403 configure_input="Generated from "`IFS=:
23404 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23405 if test x"$ac_file" != x-; then
23406 configure_input="$ac_file. $configure_input"
23407 { echo "$as_me:$LINENO: creating $ac_file" >&5
23408 echo "$as_me: creating $ac_file" >&6;}
23412 *:-:* | *:-) cat >"$tmp/stdin";;
23417 ac_dir=`$as_dirname -- "$ac_file" ||
23418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23419 X"$ac_file" : 'X\(//\)[^/]' \| \
23420 X"$ac_file" : 'X\(//\)$' \| \
23421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23427 /^X\(\/\/\)[^/].*/{
23442 -*) as_dir=./$as_dir;;
23444 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23448 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23449 *) as_qdir=$as_dir;;
23451 as_dirs="'$as_qdir' $as_dirs"
23452 as_dir=`$as_dirname -- "$as_dir" ||
23453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23454 X"$as_dir" : 'X\(//\)[^/]' \| \
23455 X"$as_dir" : 'X\(//\)$' \| \
23456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23462 /^X\(\/\/\)[^/].*/{
23475 test -d "$as_dir" && break
23477 test -z "$as_dirs" || eval "mkdir $as_dirs"
23478 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23479 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23480 { (exit 1); exit 1; }; }; }
23484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23487 # A ".." for each directory in $ac_dir_suffix.
23488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23489 case $ac_top_builddir_sub in
23490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23494 ac_abs_top_builddir=$ac_pwd
23495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23496 # for backward compatibility:
23497 ac_top_builddir=$ac_top_build_prefix
23500 .) # We are building in place.
23502 ac_top_srcdir=$ac_top_builddir_sub
23503 ac_abs_top_srcdir=$ac_pwd ;;
23504 [\\/]* | ?:[\\/]* ) # Absolute name.
23505 ac_srcdir=$srcdir$ac_dir_suffix;
23506 ac_top_srcdir=$srcdir
23507 ac_abs_top_srcdir=$srcdir ;;
23508 *) # Relative name.
23509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23510 ac_top_srcdir=$ac_top_build_prefix$srcdir
23511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23528 cat >>$CONFIG_STATUS <<\_ACEOF
23529 # If the template does not know about datarootdir, expand it.
23530 # FIXME: This hack should be removed a few years after 2.60.
23531 ac_datarootdir_hack=; ac_datarootdir_seen=
23533 case `sed -n '/datarootdir/ {
23542 ' $ac_file_inputs` in
23543 *datarootdir*) ac_datarootdir_seen=yes;;
23544 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23545 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23546 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23548 cat >>$CONFIG_STATUS <<_ACEOF
23549 ac_datarootdir_hack='
23550 s&@datadir@&$datadir&g
23551 s&@docdir@&$docdir&g
23552 s&@infodir@&$infodir&g
23553 s&@localedir@&$localedir&g
23554 s&@mandir@&$mandir&g
23555 s&\\\${datarootdir}&$datarootdir&g' ;;
23559 # Neutralize VPATH when `$srcdir' = `.'.
23560 # Shell code in configure.ac might set extrasub.
23561 # FIXME: do we really want to maintain this feature?
23562 cat >>$CONFIG_STATUS <<_ACEOF
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23569 s&@configure_input@&$configure_input&;t t
23570 s&@top_builddir@&$ac_top_builddir_sub&;t t
23571 s&@srcdir@&$ac_srcdir&;t t
23572 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23573 s&@top_srcdir@&$ac_top_srcdir&;t t
23574 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23575 s&@builddir@&$ac_builddir&;t t
23576 s&@abs_builddir@&$ac_abs_builddir&;t t
23577 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23578 s&@INSTALL@&$ac_INSTALL&;t t
23579 $ac_datarootdir_hack
23580 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23583 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23585 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23586 which seems to be undefined. Please make sure it is defined." >&5
23587 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23588 which seems to be undefined. Please make sure it is defined." >&2;}
23592 -) cat "$tmp/out"; rm -f "$tmp/out";;
23593 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23598 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23599 echo "$as_me: executing $ac_file commands" >&6;}
23604 case $ac_file$ac_mode in
23605 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23606 # Strip MF so we end up with the name of the file.
23607 mf=`echo "$mf" | sed -e 's/:.*$//'`
23608 # Check whether this is an Automake generated Makefile or not.
23609 # We used to match only the files named `Makefile.in', but
23610 # some people rename them; so instead we look at the file content.
23611 # Grep'ing the first line is not enough: some people post-process
23612 # each Makefile.in and add a new line on top of each file to say so.
23613 # So let's grep whole file.
23614 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23615 dirpart=`$as_dirname -- "$mf" ||
23616 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23617 X"$mf" : 'X\(//\)[^/]' \| \
23618 X"$mf" : 'X\(//\)$' \| \
23619 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23625 /^X\(\/\/\)[^/].*/{
23641 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23642 # Extract the definition of DEP_FILES from the Makefile without
23644 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23645 test -z "$DEPDIR" && continue
23646 # When using ansi2knr, U may be empty or an underscore; expand it
23647 U=`sed -n 's/^U = //p' < "$mf"`
23648 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23649 # We invoke sed twice because it is the simplest approach to
23650 # changing $(DEPDIR) to its actual value in the expansion.
23651 for file in `sed -n '
23652 /^DEP_FILES = .*\\\\$/ {
23661 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23662 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23663 # Make sure the directory exists.
23664 test -f "$dirpart/$file" && continue
23665 fdir=`$as_dirname -- "$file" ||
23666 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23667 X"$file" : 'X\(//\)[^/]' \| \
23668 X"$file" : 'X\(//\)$' \| \
23669 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23675 /^X\(\/\/\)[^/].*/{
23688 { as_dir=$dirpart/$fdir
23690 -*) as_dir=./$as_dir;;
23692 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23696 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23697 *) as_qdir=$as_dir;;
23699 as_dirs="'$as_qdir' $as_dirs"
23700 as_dir=`$as_dirname -- "$as_dir" ||
23701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23702 X"$as_dir" : 'X\(//\)[^/]' \| \
23703 X"$as_dir" : 'X\(//\)$' \| \
23704 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23710 /^X\(\/\/\)[^/].*/{
23723 test -d "$as_dir" && break
23725 test -z "$as_dirs" || eval "mkdir $as_dirs"
23726 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23727 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23728 { (exit 1); exit 1; }; }; }
23729 # echo "creating $dirpart/$file"
23730 echo '# dummy' > "$dirpart/$file"
23739 { (exit 0); exit 0; }
23741 chmod +x $CONFIG_STATUS
23742 ac_clean_files=$ac_clean_files_save
23745 # configure is writing to config.log, and then calls config.status.
23746 # config.status does its own redirection, appending to config.log.
23747 # Unfortunately, on DOS this fails, as config.log is still kept open
23748 # by configure, so config.status won't be able to write to it; its
23749 # output is simply discarded. So we exec the FD to /dev/null,
23750 # effectively closing config.log, so it can be properly (re)opened and
23751 # appended to by config.status. When coming back to configure, we
23752 # need to make the FD available again.
23753 if test "$no_create" != yes; then
23755 ac_config_status_args=
23756 test "$silent" = yes &&
23757 ac_config_status_args="$ac_config_status_args --quiet"
23759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23762 # would make configure fail if this is the last instruction.
23763 $ac_cs_success || { (exit 1); exit 1; }