2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for osso-statusbar-sync 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='osso-statusbar-sync'
728 PACKAGE_TARNAME='osso-statusbar-sync'
729 PACKAGE_VERSION='0.1'
730 PACKAGE_STRING='osso-statusbar-sync 0.1'
733 # Factoring default headers for most tests.
734 ac_includes_default="\
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
746 # ifdef HAVE_STDLIB_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
778 program_transform_name
820 INSTALL_STRIP_PROGRAM
887 LIBHILDONDESKTOP_CFLAGS
888 LIBHILDONDESKTOP_LIBS
891 STATUSBAR_SYNC_CFLAGS
896 hildonstatusmenudesktopentrydir
901 ac_precious_vars='build_alias
917 LIBHILDONDESKTOP_CFLAGS
918 LIBHILDONDESKTOP_LIBS
921 STATUSBAR_SYNC_CFLAGS
925 # Initialize some variables set by options.
927 ac_init_version=false
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
937 program_transform_name=s,x,x,
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962 infodir='${datarootdir}/info'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
983 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 # Accept the important Cygnus configure options, so we can diagnose typos.
989 case $ac_dashdash$ac_option in
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1013 -datadir | --datadir | --datadi | --datad)
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1025 -disable-* | --disable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032 eval enable_$ac_feature=no ;;
1034 -docdir | --docdir | --docdi | --doc | --do)
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
1044 -enable-* | --enable-*)
1045 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1051 eval enable_$ac_feature=\$ac_optarg ;;
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 htmldir=$ac_optarg ;;
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1096 -libdir | --libdir | --libdi | --libd)
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1187 -psdir | --psdir | --psdi | --psd | --ps)
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 sbindir=$ac_optarg ;;
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 sharedstatedir=$ac_optarg ;;
1213 -site | --site | --sit)
1215 -site=* | --site=* | --sit=*)
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1242 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 { echo "$as_me: error: invalid package name: $ac_package" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248 eval with_$ac_package=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_$ac_package=no ;;
1260 # Obsolete; use --with-x.
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) { echo "$as_me: error: unrecognized option: $ac_option
1278 Try \`$0 --help' for more information." >&2
1279 { (exit 1); exit 1; }; }
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1286 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1287 { (exit 1); exit 1; }; }
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 { echo "$as_me: error: missing argument to $ac_option" >&2
1305 { (exit 1); exit 1; }; }
1308 # Be sure to have absolute directory names.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1314 eval ac_val=\$$ac_var
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1320 { (exit 1); exit 1; }; }
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1328 target=$target_alias
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1335 If a cross compiler is detected then cross compile mode will be used." >&2
1336 elif test "x$build_alias" != "x$host_alias"; then
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344 test "$silent" = yes && exec 6>/dev/null
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 { echo "$as_me: error: Working directory cannot be determined" >&2
1351 { (exit 1); exit 1; }; }
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 { echo "$as_me: error: pwd does not report name of working directory" >&2
1354 { (exit 1); exit 1; }; }
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$0" ||
1362 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$0" : 'X\(//\)[^/]' \| \
1364 X"$0" : 'X\(//\)$' \| \
1365 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1389 ac_srcdir_defaulted=no
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1394 { (exit 1); exit 1; }; }
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1399 { (exit 1); exit 1; }; }
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 # Report the --help message.
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1425 \`configure' configures osso-statusbar-sync 0.1 to adapt to many kinds of systems.
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1432 Defaults for the options are specified in brackets.
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1456 For better control, use the options below.
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/osso-statusbar-sync]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493 if test -n "$ac_init_help"; then
1494 case $ac_init_help in
1495 short | recursive ) echo "Configuration of osso-statusbar-sync 0.1:";;
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --disable-dependency-tracking speeds up one-time build
1503 --enable-dependency-tracking do not reject slow dependency extractors
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-static[=PKGS] build static libraries [default=yes]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --disable-libtool-lock avoid locking (might break parallel builds)
1509 --enable-debug Enable debug [default=false]
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1515 --with-pic try to use only PIC/non-PIC objects [default=use
1517 --with-tags[=TAGS] include additional configurations [automatic]
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1530 CXXCPP C++ preprocessor
1531 F77 Fortran 77 compiler command
1532 FFLAGS Fortran 77 compiler flags
1533 PKG_CONFIG path to pkg-config utility
1534 LIBHILDONDESKTOP_CFLAGS
1535 C compiler flags for LIBHILDONDESKTOP, overriding pkg-config
1536 LIBHILDONDESKTOP_LIBS
1537 linker flags for LIBHILDONDESKTOP, overriding pkg-config
1539 C compiler flags for CONIC, overriding pkg-config
1540 CONIC_LIBS linker flags for CONIC, overriding pkg-config
1541 STATUSBAR_SYNC_CFLAGS
1542 C compiler flags for STATUSBAR_SYNC, overriding pkg-config
1544 linker flags for STATUSBAR_SYNC, overriding pkg-config
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" || continue
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1576 .) # We are building in place.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1600 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1609 osso-statusbar-sync configure 0.1
1610 generated by GNU Autoconf 2.61
1612 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1613 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1619 cat >config.log <<_ACEOF
1620 This file contains any messages produced by compilers while
1621 running configure, to aid debugging if configure makes a mistake.
1623 It was created by osso-statusbar-sync $as_me 0.1, which was
1624 generated by GNU Autoconf 2.61. Invocation command line was
1636 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1637 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1638 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1639 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1640 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1642 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1643 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1645 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1646 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1647 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1648 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1649 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1650 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1651 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 echo "PATH: $as_dir"
1676 # Keep a trace of the command line.
1677 # Strip out --no-create and --no-recursion so they do not pile up.
1678 # Strip out --silent because we don't want to record it for future runs.
1679 # Also quote any args containing shell meta-characters.
1680 # Make two passes to allow for proper duplicate-argument suppression.
1684 ac_must_keep_next=false
1690 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1692 | -silent | --silent | --silen | --sile | --sil)
1695 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1700 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1701 if test $ac_must_keep_next = true; then
1702 ac_must_keep_next=false # Got value, back to normal.
1705 *=* | --config-cache | -C | -disable-* | --disable-* \
1706 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1707 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1708 | -with-* | --with-* | -without-* | --without-* | --x)
1709 case "$ac_configure_args0 " in
1710 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1713 -* ) ac_must_keep_next=true ;;
1716 ac_configure_args="$ac_configure_args '$ac_arg'"
1721 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1722 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1724 # When interrupted or exit'd, cleanup temporary files, and complete
1725 # config.log. We remove comments because anyway the quotes in there
1726 # would cause problems or look ugly.
1727 # WARNING: Use '\'' to represent an apostrophe within the trap.
1728 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1729 trap 'exit_status=$?
1730 # Save into config.log some information that might help in debugging.
1735 ## ---------------- ##
1736 ## Cache variables. ##
1737 ## ---------------- ##
1740 # The following way of writing the cache mishandles newlines in values,
1742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1743 eval ac_val=\$$ac_var
1747 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1748 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1751 _ | IFS | as_nl) ;; #(
1752 *) $as_unset $ac_var ;;
1757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1758 *${as_nl}ac_space=\ *)
1760 "s/'\''/'\''\\\\'\'''\''/g;
1761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772 ## ----------------- ##
1773 ## Output variables. ##
1774 ## ----------------- ##
1777 for ac_var in $ac_subst_vars
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 echo "$ac_var='\''$ac_val'\''"
1787 if test -n "$ac_subst_files"; then
1789 ## ------------------- ##
1790 ## File substitutions. ##
1791 ## ------------------- ##
1794 for ac_var in $ac_subst_files
1796 eval ac_val=\$$ac_var
1798 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800 echo "$ac_var='\''$ac_val'\''"
1805 if test -s confdefs.h; then
1815 test "$ac_signal" != 0 &&
1816 echo "$as_me: caught signal $ac_signal"
1817 echo "$as_me: exit $exit_status"
1819 rm -f core *.core core.conftest.* &&
1820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1823 for ac_signal in 1 2 13 15; do
1824 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1828 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1829 rm -f -r conftest* confdefs.h
1831 # Predefined preprocessor variables.
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_NAME "$PACKAGE_NAME"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_STRING "$PACKAGE_STRING"
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1858 # Let the site file select an alternate cache file if it wants to.
1859 # Prefer explicitly selected file to automatically selected ones.
1860 if test -n "$CONFIG_SITE"; then
1861 set x "$CONFIG_SITE"
1862 elif test "x$prefix" != xNONE; then
1863 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1865 set x "$ac_default_prefix/share/config.site" \
1866 "$ac_default_prefix/etc/config.site"
1871 if test -r "$ac_site_file"; then
1872 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1873 echo "$as_me: loading site script $ac_site_file" >&6;}
1874 sed 's/^/| /' "$ac_site_file" >&5
1879 if test -r "$cache_file"; then
1880 # Some versions of bash will fail to source /dev/null (special
1881 # files actually), so we avoid doing that.
1882 if test -f "$cache_file"; then
1883 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1884 echo "$as_me: loading cache $cache_file" >&6;}
1886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887 *) . "./$cache_file";;
1891 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1892 echo "$as_me: creating cache $cache_file" >&6;}
1896 # Check that the precious variables saved in the cache have kept the same
1898 ac_cache_corrupted=false
1899 for ac_var in $ac_precious_vars; do
1900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1901 eval ac_new_set=\$ac_env_${ac_var}_set
1902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1903 eval ac_new_val=\$ac_env_${ac_var}_value
1904 case $ac_old_set,$ac_new_set in
1906 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1907 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1910 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1911 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1915 if test "x$ac_old_val" != "x$ac_new_val"; then
1916 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1917 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1918 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1919 echo "$as_me: former value: $ac_old_val" >&2;}
1920 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1921 echo "$as_me: current value: $ac_new_val" >&2;}
1922 ac_cache_corrupted=:
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1928 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937 if $ac_cache_corrupted; then
1938 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1939 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1940 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1941 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1942 { (exit 1); exit 1; }; }
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976 #AC_CONFIG_AUX_DIR([build-aux])
1977 am__api_version="1.8"
1979 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1980 if test -f "$ac_dir/install-sh"; then
1982 ac_install_sh="$ac_aux_dir/install-sh -c"
1984 elif test -f "$ac_dir/install.sh"; then
1986 ac_install_sh="$ac_aux_dir/install.sh -c"
1988 elif test -f "$ac_dir/shtool"; then
1990 ac_install_sh="$ac_aux_dir/shtool install -c"
1994 if test -z "$ac_aux_dir"; then
1995 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1996 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1997 { (exit 1); exit 1; }; }
2000 # These three variables are undocumented and unsupported,
2001 # and are intended to be withdrawn in a future Autoconf release.
2002 # They can cause serious problems if a builder's source tree is in a directory
2003 # whose full name contains unusual characters.
2004 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2005 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2006 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2009 # Find a good install program. We prefer a C program (faster),
2010 # so one script is as good as another. But avoid the broken or
2011 # incompatible versions:
2012 # SysV /etc/install, /usr/sbin/install
2013 # SunOS /usr/etc/install
2014 # IRIX /sbin/install
2016 # AmigaOS /C/install, which installs bootblocks on floppy discs
2017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2020 # OS/2's system install, which has a completely different semantic
2021 # ./install, which can be erroneously created by make from ./install.sh.
2022 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2024 if test -z "$INSTALL"; then
2025 if test "${ac_cv_path_install+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir=.
2033 # Account for people who put trailing slashes in PATH elements.
2035 ./ | .// | /cC/* | \
2036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2040 # OSF1 and SCO ODT 3.0 have their own names for install.
2041 # Don't use installbsd from OSF since it installs stuff as root
2043 for ac_prog in ginstall scoinst install; do
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2046 if test $ac_prog = install &&
2047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # AIX install. It has an incompatible calling convention.
2050 elif test $ac_prog = install &&
2051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052 # program-specific install script used by HP pwplus--don't use.
2055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2068 if test "${ac_cv_path_install+set}" = set; then
2069 INSTALL=$ac_cv_path_install
2071 # As a last resort, use the slow shell script. Don't cache a
2072 # value for INSTALL within a source directory, because that will
2073 # break other packages using the cache if that directory is
2074 # removed, or if the value is a relative name.
2075 INSTALL=$ac_install_sh
2078 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2079 echo "${ECHO_T}$INSTALL" >&6; }
2081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2082 # It thinks the first close brace ends the variable substitution.
2083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2089 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2090 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2093 echo timestamp > conftest.file
2094 # Do `set' in a subshell so we don't clobber the current shell's
2095 # arguments. Must try -L first in case configure is actually a
2096 # symlink; some systems play weird games with the mod time of symlinks
2097 # (eg FreeBSD returns the mod time of the symlink's containing
2100 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2101 if test "$*" = "X"; then
2103 set X `ls -t $srcdir/configure conftest.file`
2106 if test "$*" != "X $srcdir/configure conftest.file" \
2107 && test "$*" != "X conftest.file $srcdir/configure"; then
2109 # If neither matched, then we have a broken ls. This can happen
2110 # if, for instance, CONFIG_SHELL is bash and it inherits a
2111 # broken ls alias from the environment. This has actually
2112 # happened. Such a system could not be considered "sane".
2113 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2114 alias in your environment" >&5
2115 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2116 alias in your environment" >&2;}
2117 { (exit 1); exit 1; }; }
2120 test "$2" = conftest.file
2126 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2127 Check your system clock" >&5
2128 echo "$as_me: error: newly created file is older than distributed files!
2129 Check your system clock" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6; }
2134 test "$program_prefix" != NONE &&
2135 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2136 # Use a double $ so make ignores it.
2137 test "$program_suffix" != NONE &&
2138 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2139 # Double any \ or $. echo might interpret backslashes.
2140 # By default was `s,x,x', remove it if useless.
2141 cat <<\_ACEOF >conftest.sed
2142 s/[\\$]/&&/g;s/;s,x,x,$//
2144 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2147 # expand $ac_aux_dir to an absolute path
2148 am_aux_dir=`cd $ac_aux_dir && pwd`
2150 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2151 # Use eval to expand $SHELL
2152 if eval "$MISSING --run true"; then
2153 am_missing_run="$MISSING --run "
2156 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2157 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2160 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2161 # Keeping the `.' argument allows $(mkdir_p) to be used without
2162 # argument. Indeed, we sometimes output rules like
2163 # $(mkdir_p) $(somedir)
2164 # where $(somedir) is conditionally defined.
2165 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2166 # expensive solution, as it forces Make to start a sub-shell.)
2167 mkdir_p='mkdir -p -- .'
2169 # On NextStep and OpenStep, the `mkdir' command does not
2170 # recognize any option. It will interpret all options as
2171 # directories to create, and then abort because `.' already
2173 for d in ./-p ./--version;
2175 test -d $d && rmdir $d
2177 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2178 if test -f "$ac_aux_dir/mkinstalldirs"; then
2179 mkdir_p='$(mkinstalldirs)'
2181 mkdir_p='$(install_sh) -d'
2185 for ac_prog in gawk mawk nawk awk
2187 # Extract the first word of "$ac_prog", so it can be a program name with args.
2188 set dummy $ac_prog; ac_word=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_AWK+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test -n "$AWK"; then
2195 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204 ac_cv_prog_AWK="$ac_prog"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 if test -n "$AWK"; then
2216 { echo "$as_me:$LINENO: result: $AWK" >&5
2217 echo "${ECHO_T}$AWK" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2224 test -n "$AWK" && break
2227 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2228 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2229 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2230 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 cat >conftest.make <<\_ACEOF
2236 @echo '@@@%%%=$(MAKE)=@@@%%%'
2238 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2239 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2241 eval ac_cv_prog_make_${ac_make}_set=yes;;
2243 eval ac_cv_prog_make_${ac_make}_set=no;;
2247 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2248 { echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6; }
2252 { echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6; }
2254 SET_MAKE="MAKE=${MAKE-make}"
2257 rm -rf .tst 2>/dev/null
2258 mkdir .tst 2>/dev/null
2259 if test -d .tst; then
2264 rmdir .tst 2>/dev/null
2266 # test to see if srcdir already configured
2267 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2268 test -f $srcdir/config.status; then
2269 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2270 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2271 { (exit 1); exit 1; }; }
2274 # test whether we have cygpath
2275 if test -z "$CYGPATH_W"; then
2276 if (cygpath --version) >/dev/null 2>/dev/null; then
2277 CYGPATH_W='cygpath -w'
2284 # Define the identity of the package.
2285 PACKAGE='osso-statusbar-sync'
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE "$PACKAGE"
2294 cat >>confdefs.h <<_ACEOF
2295 #define VERSION "$VERSION"
2298 # Some tools Automake needs.
2300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2315 AMTAR=${AMTAR-"${am_missing_run}tar"}
2317 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2319 # Installed binaries are usually stripped using `strip' when the user
2320 # run `make install-strip'. However `strip' might not be the right
2321 # tool to use in cross-compilation environments, therefore Automake
2322 # will honor the `STRIP' environment variable to overrule this program.
2323 if test "$cross_compiling" != no; then
2324 if test -n "$ac_tool_prefix"; then
2325 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2326 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 if test -n "$STRIP"; then
2333 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}strip"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 STRIP=$ac_cv_prog_STRIP
2353 if test -n "$STRIP"; then
2354 { echo "$as_me:$LINENO: result: $STRIP" >&5
2355 echo "${ECHO_T}$STRIP" >&6; }
2357 { echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6; }
2363 if test -z "$ac_cv_prog_STRIP"; then
2365 # Extract the first word of "strip", so it can be a program name with args.
2366 set dummy strip; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -n "$ac_ct_STRIP"; then
2373 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_ac_ct_STRIP="strip"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2393 if test -n "$ac_ct_STRIP"; then
2394 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2395 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2397 { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2401 if test "x$ac_ct_STRIP" = x; then
2404 case $cross_compiling:$ac_tool_warned in
2406 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&5
2409 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2410 whose name does not start with the host triplet. If you think this
2411 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2412 ac_tool_warned=yes ;;
2417 STRIP="$ac_cv_prog_STRIP"
2421 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2423 # We need awk for the "check" target. The system "awk" is bad on
2429 ac_config_headers="$ac_config_headers config.h"
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2476 if test -z "$ac_cv_prog_CC"; then
2478 # Extract the first word of "gcc", so it can be a program name with args.
2479 set dummy gcc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$ac_ct_CC"; then
2486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_CC="gcc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506 if test -n "$ac_ct_CC"; then
2507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2508 echo "${ECHO_T}$ac_ct_CC" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2514 if test "x$ac_ct_CC" = x; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2533 if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="${ac_tool_prefix}cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2574 if test -z "$CC"; then
2575 # Extract the first word of "cc", so it can be a program name with args.
2576 set dummy cc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test $ac_prog_rejected = yes; then
2606 # We found a bogon in the path, so make sure we never use it.
2607 set dummy $ac_cv_prog_CC
2609 if test $# != 0; then
2610 # We chose a different compiler from the bogus one.
2611 # However, it has the same basename, so the bogon will be chosen
2612 # first if we set CC to just the basename; use the full file name.
2614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2630 if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 for ac_prog in cl.exe
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 if test -n "$CC"; then
2663 { echo "$as_me:$LINENO: result: $CC" >&5
2664 echo "${ECHO_T}$CC" >&6; }
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2671 test -n "$CC" && break
2674 if test -z "$CC"; then
2676 for ac_prog in cl.exe
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708 echo "${ECHO_T}$ac_ct_CC" >&6; }
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$ac_ct_CC" && break
2718 if test "x$ac_ct_CC" = x; then
2721 case $cross_compiling:$ac_tool_warned in
2723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet. If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&5
2726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2727 whose name does not start with the host triplet. If you think this
2728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2729 ac_tool_warned=yes ;;
2738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&5
2740 echo "$as_me: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&2;}
2742 { (exit 1); exit 1; }; }
2744 # Provide some information about the compiler.
2745 echo "$as_me:$LINENO: checking for C compiler version" >&5
2746 ac_compiler=`set X $ac_compile; echo $2`
2747 { (ac_try="$ac_compiler --version >&5"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler --version >&5") 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -v >&5") 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767 { (ac_try="$ac_compiler -V >&5"
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -V >&5") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 ac_clean_files_save=$ac_clean_files
2794 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2795 # Try to create an executable without -o first, disregard a.out.
2796 # It will help us diagnose broken compilers, and finding out an intuition
2798 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2799 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2800 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802 # List of possible output files, starting from the most likely.
2803 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2804 # only as a last resort. b.out is created by i960 compilers.
2805 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2807 # The IRIX 6 linker writes into existing files which may not be
2808 # executable, retaining their permissions. Remove them first so a
2809 # subsequent execution test works.
2811 for ac_file in $ac_files
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820 if { (ac_try="$ac_link_default"
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_link_default") 2>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; then
2830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2833 # so that the user can short-circuit this test for compilers unknown to
2835 for ac_file in $ac_files ''
2837 test -f "$ac_file" || continue
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2842 # We found the default executable, but exeext='' is most
2846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 # We set ac_cv_exeext here because the later test for it is not
2851 # safe: cross compilers may not add the suffix if given an `-o'
2852 # argument, so we may need to know it at that point already.
2853 # Even if this section looks crufty: it has the advantage of
2860 test "$ac_cv_exeext" = no && ac_cv_exeext=
2866 { echo "$as_me:$LINENO: result: $ac_file" >&5
2867 echo "${ECHO_T}$ac_file" >&6; }
2868 if test -z "$ac_file"; then
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: C compiler cannot create executables
2875 See \`config.log' for more details." >&2;}
2876 { (exit 77); exit 77; }; }
2879 ac_exeext=$ac_cv_exeext
2881 # Check that the compiler produces executables we can run. If not, either
2882 # the compiler is broken, or we cross compile.
2883 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888 if { ac_try='./$ac_file'
2889 { (case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_try") 2>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 if test "$cross_compiling" = maybe; then
2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2913 { echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6; }
2916 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2917 ac_clean_files=$ac_clean_files_save
2918 # Check that the compiler produces executables we can run. If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2921 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2922 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2923 echo "${ECHO_T}$cross_compiling" >&6; }
2925 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2926 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2927 if { (ac_try="$ac_link"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_link") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2938 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2939 # work properly (i.e., refer to `conftest.exe'), while it won't with
2941 for ac_file in conftest.exe conftest conftest.*; do
2942 test -f "$ac_file" || continue
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2945 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2954 See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest$ac_cv_exeext
2959 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2960 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2962 rm -f conftest.$ac_ext
2963 EXEEXT=$ac_cv_exeext
2965 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2966 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2967 if test "${ac_cv_objext+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2985 rm -f conftest.o conftest.obj
2986 if { (ac_try="$ac_compile"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; then
2996 for ac_file in conftest.o conftest.obj conftest.*; do
2997 test -f "$ac_file" || continue;
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3015 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3017 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3018 echo "${ECHO_T}$ac_cv_objext" >&6; }
3019 OBJEXT=$ac_cv_objext
3021 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } && {
3058 test -z "$ac_c_werror_flag" ||
3059 test ! -s conftest.err
3060 } && test -s conftest.$ac_objext; then
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3073 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3074 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3075 GCC=`test $ac_compiler_gnu = yes && echo yes`
3076 ac_test_CFLAGS=${CFLAGS+set}
3077 ac_save_CFLAGS=$CFLAGS
3078 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3079 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_cc_g+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 ac_save_c_werror_flag=$ac_c_werror_flag
3084 ac_c_werror_flag=yes
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3102 rm -f conftest.$ac_objext
3103 if { (ac_try="$ac_compile"
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_compile") 2>conftest.er1
3111 grep -v '^ *+' conftest.er1 >conftest.err
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } && {
3116 test -z "$ac_c_werror_flag" ||
3117 test ! -s conftest.err
3118 } && test -s conftest.$ac_objext; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3149 grep -v '^ *+' conftest.er1 >conftest.err
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.$ac_objext; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 ac_c_werror_flag=$ac_save_c_werror_flag
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3188 grep -v '^ *+' conftest.er1 >conftest.err
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } && {
3193 test -z "$ac_c_werror_flag" ||
3194 test ! -s conftest.err
3195 } && test -s conftest.$ac_objext; then
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 ac_c_werror_flag=$ac_save_c_werror_flag
3213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3214 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3215 if test "$ac_test_CFLAGS" = set; then
3216 CFLAGS=$ac_save_CFLAGS
3217 elif test $ac_cv_prog_cc_g = yes; then
3218 if test "$GCC" = yes; then
3224 if test "$GCC" = yes; then
3230 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3231 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3232 if test "${ac_cv_prog_cc_c89+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 ac_cv_prog_cc_c89=no
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3245 #include <sys/types.h>
3246 #include <sys/stat.h>
3247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3248 struct buf { int x; };
3249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3250 static char *e (p, i)
3256 static char *f (char * (*g) (char **, int), char **p, ...)
3261 s = g (p, va_arg (v,int));
3266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3267 function prototypes and stuff, but not '\xHH' hex character constants.
3268 These don't provoke an error unfortunately, instead are silently treated
3269 as 'x'. The following induces an error, until -std is added to get
3270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3271 array size at least. It's necessary to write '\x00'==0 to get something
3272 that's true only with -std. */
3273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3276 inside strings and character constants. */
3278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3280 int test (int i, double x);
3281 struct s1 {int (*f) (int a);};
3282 struct s2 {int (*f) (double a);};
3283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3297 CC="$ac_save_CC $ac_arg"
3298 rm -f conftest.$ac_objext
3299 if { (ac_try="$ac_compile"
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3307 grep -v '^ *+' conftest.er1 >conftest.err
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3315 ac_cv_prog_cc_c89=$ac_arg
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3323 rm -f core conftest.err conftest.$ac_objext
3324 test "x$ac_cv_prog_cc_c89" != "xno" && break
3326 rm -f conftest.$ac_ext
3331 case "x$ac_cv_prog_cc_c89" in
3333 { echo "$as_me:$LINENO: result: none needed" >&5
3334 echo "${ECHO_T}none needed" >&6; } ;;
3336 { echo "$as_me:$LINENO: result: unsupported" >&5
3337 echo "${ECHO_T}unsupported" >&6; } ;;
3339 CC="$CC $ac_cv_prog_cc_c89"
3340 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3341 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 DEPDIR="${am__leading_dot}deps"
3352 ac_config_commands="$ac_config_commands depfiles"
3355 am_make=${MAKE-make}
3356 cat > confinc << 'END'
3361 # If we don't find an include directive, just comment out the code.
3362 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3363 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3367 # First try GNU make style include.
3368 echo "include confinc" > confmf
3369 # We grep out `Entering directory' and `Leaving directory'
3370 # messages which can occur if `w' ends up in MAKEFLAGS.
3371 # In particular we don't look at `^make:' because GNU make might
3372 # be invoked under some other name (usually "gmake"), in which
3373 # case it prints its new name instead of `make'.
3374 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3379 # Now try BSD make style include.
3380 if test "$am__include" = "#"; then
3381 echo '.include "confinc"' > confmf
3382 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3383 am__include=.include
3390 { echo "$as_me:$LINENO: result: $_am_result" >&5
3391 echo "${ECHO_T}$_am_result" >&6; }
3392 rm -f confinc confmf
3394 # Check whether --enable-dependency-tracking was given.
3395 if test "${enable_dependency_tracking+set}" = set; then
3396 enableval=$enable_dependency_tracking;
3399 if test "x$enable_dependency_tracking" != xno; then
3400 am_depcomp="$ac_aux_dir/depcomp"
3405 if test "x$enable_dependency_tracking" != xno; then
3416 depcc="$CC" am_compiler_list=
3418 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3419 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3420 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3424 # We make a subdir and do the tests there. Otherwise we can end up
3425 # making bogus files that we don't know about and never remove. For
3426 # instance it was reported that on HP-UX the gcc test will end up
3427 # making a dummy file named `D' -- because `-MD' means `put the output
3430 # Copy depcomp to subdir because otherwise we won't find it if we're
3431 # using a relative directory.
3432 cp "$am_depcomp" conftest.dir
3434 # We will build objects and dependencies in a subdirectory because
3435 # it helps to detect inapplicable dependency modes. For instance
3436 # both Tru64's cc and ICC support -MD to output dependencies as a
3437 # side effect of compilation, but ICC will put the dependencies in
3438 # the current directory while Tru64 will put them in the object
3442 am_cv_CC_dependencies_compiler_type=none
3443 if test "$am_compiler_list" = ""; then
3444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3446 for depmode in $am_compiler_list; do
3447 # Setup a source with many dependencies, because some compilers
3448 # like to wrap large dependency lists on column 80 (with \), and
3449 # we should not choose a depcomp mode which is confused by this.
3451 # We need to recreate these files for each test, as the compiler may
3452 # overwrite some of them when testing with obscure command lines.
3453 # This happens at least with the AIX C compiler.
3455 for i in 1 2 3 4 5 6; do
3456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3457 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3458 # Solaris 8's {/usr,}/bin/sh.
3459 touch sub/conftst$i.h
3461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3465 # after this tag, mechanisms are not by side-effect, so they'll
3466 # only be used when explicitly requested
3467 if test "x$enable_dependency_tracking" = xyes; then
3475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3476 # mode. It turns out that the SunPro C++ compiler does not properly
3477 # handle `-M -o', and we need to detect this.
3478 if depmode=$depmode \
3479 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3481 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3482 >/dev/null 2>conftest.err &&
3483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3484 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3486 # icc doesn't choke on unknown options, it will just issue warnings
3487 # or remarks (even with -Werror). So we grep stderr for any message
3488 # that says an option was ignored or not supported.
3489 # When given -MP, icc 7.0 and 7.1 complain thusly:
3490 # icc: Command line warning: ignoring option '-M'; no argument required
3491 # The diagnosis changed in icc 8.0:
3492 # icc: Command line remark: option '-MP' not supported
3493 if (grep 'ignoring option' conftest.err ||
3494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3495 am_cv_CC_dependencies_compiler_type=$depmode
3504 am_cv_CC_dependencies_compiler_type=none
3508 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3509 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3510 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3515 test "x$enable_dependency_tracking" != xno \
3516 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3518 am__fastdepCC_FALSE='#'
3520 am__fastdepCC_TRUE='#'
3521 am__fastdepCC_FALSE=
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3532 # On Suns, sometimes $CPP names a directory.
3533 if test -n "$CPP" && test -d "$CPP"; then
3536 if test -z "$CPP"; then
3537 if test "${ac_cv_prog_CPP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 # Double quotes because CPP needs to be expanded
3541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3544 for ac_c_preproc_warn_flag in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3559 # include <limits.h>
3561 # include <assert.h>
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null && {
3578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 # Broken: fails on valid input.
3590 rm -f conftest.err conftest.$ac_ext
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <ac_nonexistent.h>
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } >/dev/null && {
3615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3618 # Broken: success on invalid input.
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Passes both tests.
3629 rm -f conftest.err conftest.$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3646 { echo "$as_me:$LINENO: result: $CPP" >&5
3647 echo "${ECHO_T}$CPP" >&6; }
3649 for ac_c_preproc_warn_flag in '' yes
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3664 # include <limits.h>
3666 # include <assert.h>
3670 if { (ac_try="$ac_cpp conftest.$ac_ext"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } >/dev/null && {
3683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3684 test ! -s conftest.err
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 # Broken: fails on valid input.
3695 rm -f conftest.err conftest.$ac_ext
3697 # OK, works on sane cases. Now check whether nonexistent headers
3698 # can be detected and how.
3699 cat >conftest.$ac_ext <<_ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <ac_nonexistent.h>
3707 if { (ac_try="$ac_cpp conftest.$ac_ext"
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3715 grep -v '^ *+' conftest.er1 >conftest.err
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev/null && {
3720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3723 # Broken: success on invalid input.
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 # Passes both tests.
3734 rm -f conftest.err conftest.$ac_ext
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&5
3744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745 See \`config.log' for more details." >&2;}
3746 { (exit 1); exit 1; }; }
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757 ac_cpp='$CXXCPP $CPPFLAGS'
3758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3761 if test -z "$CXX"; then
3762 if test -n "$CCC"; then
3765 if test -n "$ac_tool_prefix"; then
3766 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
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_CXX+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if test -n "$CXX"; then
3776 ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 if test -n "$CXX"; then
3797 { echo "$as_me:$LINENO: result: $CXX" >&5
3798 echo "${ECHO_T}$CXX" >&6; }
3800 { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3805 test -n "$CXX" && break
3808 if test -z "$CXX"; then
3810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
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_CXX+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 if test -n "$ac_ct_CXX"; then
3820 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"
3830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3840 if test -n "$ac_ct_CXX"; then
3841 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3842 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3844 { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3849 test -n "$ac_ct_CXX" && break
3852 if test "x$ac_ct_CXX" = 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 ;;
3871 # Provide some information about the compiler.
3872 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3873 ac_compiler=`set X $ac_compile; echo $2`
3874 { (ac_try="$ac_compiler --version >&5"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compiler --version >&5") 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }
3884 { (ac_try="$ac_compiler -v >&5"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_compiler -v >&5") 2>&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }
3894 { (ac_try="$ac_compiler -V >&5"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_compiler -V >&5") 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }
3905 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3906 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3907 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_compile") 2>conftest.er1
3937 grep -v '^ *+' conftest.er1 >conftest.err
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && {
3942 test -z "$ac_cxx_werror_flag" ||
3943 test ! -s conftest.err
3944 } && test -s conftest.$ac_objext; then
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3957 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3958 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3959 GXX=`test $ac_compiler_gnu = yes && echo yes`
3960 ac_test_CXXFLAGS=${CXXFLAGS+set}
3961 ac_save_CXXFLAGS=$CXXFLAGS
3962 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3963 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3964 if test "${ac_cv_prog_cxx_g+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3968 ac_cxx_werror_flag=yes
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3986 rm -f conftest.$ac_objext
3987 if { (ac_try="$ac_compile"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_compile") 2>conftest.er1
3995 grep -v '^ *+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } && {
4000 test -z "$ac_cxx_werror_flag" ||
4001 test ! -s conftest.err
4002 } && test -s conftest.$ac_objext; then
4003 ac_cv_prog_cxx_g=yes
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_compile") 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } && {
4038 test -z "$ac_cxx_werror_flag" ||
4039 test ! -s conftest.err
4040 } && test -s conftest.$ac_objext; then
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_cxx_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4080 ac_cv_prog_cxx_g=yes
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4098 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4099 if test "$ac_test_CXXFLAGS" = set; then
4100 CXXFLAGS=$ac_save_CXXFLAGS
4101 elif test $ac_cv_prog_cxx_g = yes; then
4102 if test "$GXX" = yes; then
4108 if test "$GXX" = yes; then
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 depcc="$CXX" am_compiler_list=
4122 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4123 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4124 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4128 # We make a subdir and do the tests there. Otherwise we can end up
4129 # making bogus files that we don't know about and never remove. For
4130 # instance it was reported that on HP-UX the gcc test will end up
4131 # making a dummy file named `D' -- because `-MD' means `put the output
4134 # Copy depcomp to subdir because otherwise we won't find it if we're
4135 # using a relative directory.
4136 cp "$am_depcomp" conftest.dir
4138 # We will build objects and dependencies in a subdirectory because
4139 # it helps to detect inapplicable dependency modes. For instance
4140 # both Tru64's cc and ICC support -MD to output dependencies as a
4141 # side effect of compilation, but ICC will put the dependencies in
4142 # the current directory while Tru64 will put them in the object
4146 am_cv_CXX_dependencies_compiler_type=none
4147 if test "$am_compiler_list" = ""; then
4148 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4150 for depmode in $am_compiler_list; do
4151 # Setup a source with many dependencies, because some compilers
4152 # like to wrap large dependency lists on column 80 (with \), and
4153 # we should not choose a depcomp mode which is confused by this.
4155 # We need to recreate these files for each test, as the compiler may
4156 # overwrite some of them when testing with obscure command lines.
4157 # This happens at least with the AIX C compiler.
4159 for i in 1 2 3 4 5 6; do
4160 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4161 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4162 # Solaris 8's {/usr,}/bin/sh.
4163 touch sub/conftst$i.h
4165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4169 # after this tag, mechanisms are not by side-effect, so they'll
4170 # only be used when explicitly requested
4171 if test "x$enable_dependency_tracking" = xyes; then
4179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4180 # mode. It turns out that the SunPro C++ compiler does not properly
4181 # handle `-M -o', and we need to detect this.
4182 if depmode=$depmode \
4183 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4185 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4186 >/dev/null 2>conftest.err &&
4187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4188 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4190 # icc doesn't choke on unknown options, it will just issue warnings
4191 # or remarks (even with -Werror). So we grep stderr for any message
4192 # that says an option was ignored or not supported.
4193 # When given -MP, icc 7.0 and 7.1 complain thusly:
4194 # icc: Command line warning: ignoring option '-M'; no argument required
4195 # The diagnosis changed in icc 8.0:
4196 # icc: Command line remark: option '-MP' not supported
4197 if (grep 'ignoring option' conftest.err ||
4198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4199 am_cv_CXX_dependencies_compiler_type=$depmode
4208 am_cv_CXX_dependencies_compiler_type=none
4212 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4213 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4214 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4219 test "x$enable_dependency_tracking" != xno \
4220 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4221 am__fastdepCXX_TRUE=
4222 am__fastdepCXX_FALSE='#'
4224 am__fastdepCXX_TRUE='#'
4225 am__fastdepCXX_FALSE=
4230 # Check whether --enable-shared was given.
4231 if test "${enable_shared+set}" = set; then
4232 enableval=$enable_shared; p=${PACKAGE-default}
4234 yes) enable_shared=yes ;;
4235 no) enable_shared=no ;;
4238 # Look at the argument we got. We use all the common list separators.
4239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4240 for pkg in $enableval; do
4242 if test "X$pkg" = "X$p"; then
4254 # Check whether --enable-static was given.
4255 if test "${enable_static+set}" = set; then
4256 enableval=$enable_static; p=${PACKAGE-default}
4258 yes) enable_static=yes ;;
4259 no) enable_static=no ;;
4262 # Look at the argument we got. We use all the common list separators.
4263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4264 for pkg in $enableval; do
4266 if test "X$pkg" = "X$p"; then
4278 # Check whether --enable-fast-install was given.
4279 if test "${enable_fast_install+set}" = set; then
4280 enableval=$enable_fast_install; p=${PACKAGE-default}
4282 yes) enable_fast_install=yes ;;
4283 no) enable_fast_install=no ;;
4285 enable_fast_install=no
4286 # Look at the argument we got. We use all the common list separators.
4287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4288 for pkg in $enableval; do
4290 if test "X$pkg" = "X$p"; then
4291 enable_fast_install=yes
4298 enable_fast_install=yes
4302 # Make sure we can run config.sub.
4303 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4304 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4305 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4306 { (exit 1); exit 1; }; }
4308 { echo "$as_me:$LINENO: checking build system type" >&5
4309 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4310 if test "${ac_cv_build+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 ac_build_alias=$build_alias
4314 test "x$ac_build_alias" = x &&
4315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4316 test "x$ac_build_alias" = x &&
4317 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4318 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4319 { (exit 1); exit 1; }; }
4320 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4321 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4322 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4323 { (exit 1); exit 1; }; }
4326 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4327 echo "${ECHO_T}$ac_cv_build" >&6; }
4328 case $ac_cv_build in
4330 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4331 echo "$as_me: error: invalid value of canonical build" >&2;}
4332 { (exit 1); exit 1; }; };;
4335 ac_save_IFS=$IFS; IFS='-'
4341 # Remember, the first character of IFS is used to create $*,
4342 # except with old shells:
4345 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4348 { echo "$as_me:$LINENO: checking host system type" >&5
4349 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4350 if test "${ac_cv_host+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test "x$host_alias" = x; then
4354 ac_cv_host=$ac_cv_build
4356 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4357 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4358 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4359 { (exit 1); exit 1; }; }
4363 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4364 echo "${ECHO_T}$ac_cv_host" >&6; }
4367 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4368 echo "$as_me: error: invalid value of canonical host" >&2;}
4369 { (exit 1); exit 1; }; };;
4372 ac_save_IFS=$IFS; IFS='-'
4378 # Remember, the first character of IFS is used to create $*,
4379 # except with old shells:
4382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4385 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4386 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4387 if test "${lt_cv_path_SED+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 # Loop through the user's path and test for sed and gsed.
4391 # Then use that list of sed's as ones to test for truncation.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for lt_ac_prog in sed gsed; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4400 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4407 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4408 # along with /bin/sed that truncates output.
4409 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4410 test ! -f $lt_ac_sed && continue
4411 cat /dev/null > conftest.in
4413 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4414 # Check for GNU sed and select it if it is found.
4415 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4416 lt_cv_path_SED=$lt_ac_sed
4420 cat conftest.in conftest.in >conftest.tmp
4421 mv conftest.tmp conftest.in
4422 cp conftest.in conftest.nl
4424 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4425 cmp -s conftest.out conftest.nl || break
4426 # 10000 chars as input seems more than enough
4427 test $lt_ac_count -gt 10 && break
4428 lt_ac_count=`expr $lt_ac_count + 1`
4429 if test $lt_ac_count -gt $lt_ac_max; then
4430 lt_ac_max=$lt_ac_count
4431 lt_cv_path_SED=$lt_ac_sed
4439 { echo "$as_me:$LINENO: result: $SED" >&5
4440 echo "${ECHO_T}$SED" >&6; }
4442 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4443 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4444 if test "${ac_cv_path_GREP+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 # Extract the first word of "grep ggrep" to use in msg output
4448 if test -z "$GREP"; then
4449 set dummy grep ggrep; ac_prog_name=$2
4450 if test "${ac_cv_path_GREP+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 ac_path_GREP_found=false
4454 # Loop through the user's path and test for each of PROGNAME-LIST
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459 test -z "$as_dir" && as_dir=.
4460 for ac_prog in grep ggrep; do
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4463 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4464 # Check for GNU ac_path_GREP and select it if it is found.
4465 # Check for GNU $ac_path_GREP
4466 case `"$ac_path_GREP" --version 2>&1` in
4468 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4471 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4474 cat "conftest.in" "conftest.in" >"conftest.tmp"
4475 mv "conftest.tmp" "conftest.in"
4476 cp "conftest.in" "conftest.nl"
4477 echo 'GREP' >> "conftest.nl"
4478 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480 ac_count=`expr $ac_count + 1`
4481 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4482 # Best one so far, save it but keep looking for a better one
4483 ac_cv_path_GREP="$ac_path_GREP"
4484 ac_path_GREP_max=$ac_count
4486 # 10*(2^10) chars as input seems more than enough
4487 test $ac_count -gt 10 && break
4489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 $ac_path_GREP_found && break 3
4503 GREP="$ac_cv_path_GREP"
4504 if test -z "$GREP"; then
4505 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4506 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4507 { (exit 1); exit 1; }; }
4511 ac_cv_path_GREP=$GREP
4516 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4517 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4518 GREP="$ac_cv_path_GREP"
4521 { echo "$as_me:$LINENO: checking for egrep" >&5
4522 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4523 if test "${ac_cv_path_EGREP+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4527 then ac_cv_path_EGREP="$GREP -E"
4529 # Extract the first word of "egrep" to use in msg output
4530 if test -z "$EGREP"; then
4531 set dummy egrep; ac_prog_name=$2
4532 if test "${ac_cv_path_EGREP+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 ac_path_EGREP_found=false
4536 # Loop through the user's path and test for each of PROGNAME-LIST
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541 test -z "$as_dir" && as_dir=.
4542 for ac_prog in egrep; do
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4545 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4546 # Check for GNU ac_path_EGREP and select it if it is found.
4547 # Check for GNU $ac_path_EGREP
4548 case `"$ac_path_EGREP" --version 2>&1` in
4550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4553 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4556 cat "conftest.in" "conftest.in" >"conftest.tmp"
4557 mv "conftest.tmp" "conftest.in"
4558 cp "conftest.in" "conftest.nl"
4559 echo 'EGREP' >> "conftest.nl"
4560 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4562 ac_count=`expr $ac_count + 1`
4563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4564 # Best one so far, save it but keep looking for a better one
4565 ac_cv_path_EGREP="$ac_path_EGREP"
4566 ac_path_EGREP_max=$ac_count
4568 # 10*(2^10) chars as input seems more than enough
4569 test $ac_count -gt 10 && break
4571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4575 $ac_path_EGREP_found && break 3
4585 EGREP="$ac_cv_path_EGREP"
4586 if test -z "$EGREP"; then
4587 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4588 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4589 { (exit 1); exit 1; }; }
4593 ac_cv_path_EGREP=$EGREP
4599 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4600 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4601 EGREP="$ac_cv_path_EGREP"
4605 # Check whether --with-gnu-ld was given.
4606 if test "${with_gnu_ld+set}" = set; then
4607 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4613 if test "$GCC" = yes; then
4614 # Check if gcc -print-prog-name=ld gives a path.
4615 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4616 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4619 # gcc leaves a trailing carriage return which upsets mingw
4620 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4622 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4625 # Accept absolute paths.
4627 re_direlt='/[^/][^/]*/\.\./'
4628 # Canonicalize the pathname of ld
4629 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4630 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4631 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4633 test -z "$LD" && LD="$ac_prog"
4636 # If it fails, then pretend we aren't using GCC.
4640 # If it is relative, then search for the first ld in PATH.
4644 elif test "$with_gnu_ld" = yes; then
4645 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4646 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4648 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4649 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4651 if test "${lt_cv_path_LD+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if test -z "$LD"; then
4655 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4656 for ac_dir in $PATH; do
4658 test -z "$ac_dir" && ac_dir=.
4659 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4660 lt_cv_path_LD="$ac_dir/$ac_prog"
4661 # Check to see if the program is GNU ld. I'd rather use --version,
4662 # but apparently some variants of GNU ld only accept -v.
4663 # Break only if it was the GNU/non-GNU ld that we prefer.
4664 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4665 *GNU* | *'with BFD'*)
4666 test "$with_gnu_ld" != no && break
4669 test "$with_gnu_ld" != yes && break
4676 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4681 if test -n "$LD"; then
4682 { echo "$as_me:$LINENO: result: $LD" >&5
4683 echo "${ECHO_T}$LD" >&6; }
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4688 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4689 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4690 { (exit 1); exit 1; }; }
4691 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4692 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4693 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4697 case `$LD -v 2>&1 </dev/null` in
4698 *GNU* | *'with BFD'*)
4699 lt_cv_prog_gnu_ld=yes
4702 lt_cv_prog_gnu_ld=no
4706 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4707 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4708 with_gnu_ld=$lt_cv_prog_gnu_ld
4711 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4712 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4713 if test "${lt_cv_ld_reload_flag+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 lt_cv_ld_reload_flag='-r'
4718 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4719 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4720 reload_flag=$lt_cv_ld_reload_flag
4721 case $reload_flag in
4723 *) reload_flag=" $reload_flag" ;;
4725 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4728 if test "$GCC" = yes; then
4729 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4731 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4736 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4737 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4738 if test "${lt_cv_path_NM+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$NM"; then
4742 # Let the user override the test.
4745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4746 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4748 test -z "$ac_dir" && ac_dir=.
4749 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4750 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4751 # Check to see if the nm accepts a BSD-compat flag.
4752 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4753 # nm: unknown option "B" ignored
4754 # Tru64's nm complains that /dev/null is an invalid object file
4755 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4756 */dev/null* | *'Invalid file or object type'*)
4757 lt_cv_path_NM="$tmp_nm -B"
4761 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4763 lt_cv_path_NM="$tmp_nm -p"
4767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4768 continue # so that we can try to find one that supports BSD flags
4775 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4778 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4779 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4782 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4783 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4785 if test "$LN_S" = "ln -s"; then
4786 { echo "$as_me:$LINENO: result: yes" >&5
4787 echo "${ECHO_T}yes" >&6; }
4789 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4790 echo "${ECHO_T}no, using $LN_S" >&6; }
4793 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4794 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4795 if test "${lt_cv_deplibs_check_method+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 lt_cv_file_magic_cmd='$MAGIC_CMD'
4799 lt_cv_file_magic_test_file=
4800 lt_cv_deplibs_check_method='unknown'
4801 # Need to set the preceding variable on all platforms that support
4802 # interlibrary dependencies.
4803 # 'none' -- dependencies not supported.
4804 # `unknown' -- same as none, but documents that we really don't know.
4805 # 'pass_all' -- all dependencies passed with no checks.
4806 # 'test_compile' -- check by making test program.
4807 # 'file_magic [[regex]]' -- check by looking for files in library path
4808 # which responds to the $file_magic_cmd with a given extended regex.
4809 # If you have `file' or equivalent on your system and you're not sure
4810 # whether `pass_all' will *always* work, you probably want this one.
4814 lt_cv_deplibs_check_method=pass_all
4818 lt_cv_deplibs_check_method=pass_all
4822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4823 lt_cv_file_magic_cmd='/usr/bin/file -L'
4824 lt_cv_file_magic_test_file=/shlib/libc.so
4828 # func_win32_libid is a shell function defined in ltmain.sh
4829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4830 lt_cv_file_magic_cmd='func_win32_libid'
4834 # Base MSYS/MinGW do not provide the 'file' command needed by
4835 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4836 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4837 lt_cv_file_magic_cmd='$OBJDUMP -f'
4840 darwin* | rhapsody*)
4841 lt_cv_deplibs_check_method=pass_all
4844 freebsd* | kfreebsd*-gnu | dragonfly*)
4845 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4848 # Not sure whether the presence of OpenBSD here was a mistake.
4849 # Let's accept both of them until this is cleared up.
4850 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4851 lt_cv_file_magic_cmd=/usr/bin/file
4852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4856 lt_cv_deplibs_check_method=pass_all
4861 lt_cv_deplibs_check_method=pass_all
4864 hpux10.20* | hpux11*)
4865 lt_cv_file_magic_cmd=/usr/bin/file
4868 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4869 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4872 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]'
4873 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4877 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4882 irix5* | irix6* | nonstopux*)
4884 *-32|*"-32 ") libmagic=32-bit;;
4885 *-n32|*"-n32 ") libmagic=N32;;
4886 *-64|*"-64 ") libmagic=64-bit;;
4887 *) libmagic=never-match;;
4889 lt_cv_deplibs_check_method=pass_all
4892 # This must be Linux ELF.
4894 lt_cv_deplibs_check_method=pass_all
4898 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4906 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4907 lt_cv_file_magic_cmd=/usr/bin/file
4908 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4912 lt_cv_deplibs_check_method=unknown
4916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4923 osf3* | osf4* | osf5*)
4924 lt_cv_deplibs_check_method=pass_all
4928 lt_cv_deplibs_check_method=pass_all
4932 lt_cv_deplibs_check_method=pass_all
4935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4936 case $host_vendor in
4938 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]'
4939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4942 lt_cv_deplibs_check_method=pass_all
4945 lt_cv_file_magic_cmd='/bin/file'
4946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4949 lt_cv_file_magic_cmd='/bin/file'
4950 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4951 lt_cv_file_magic_test_file=/lib/libc.so
4954 lt_cv_deplibs_check_method=pass_all
4959 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4960 lt_cv_deplibs_check_method=pass_all
4965 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4966 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4967 file_magic_cmd=$lt_cv_file_magic_cmd
4968 deplibs_check_method=$lt_cv_deplibs_check_method
4969 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4974 # If no C compiler was specified, use CC.
4977 # Allow CC to be a program name with arguments.
4981 # Check whether --enable-libtool-lock was given.
4982 if test "${enable_libtool_lock+set}" = set; then
4983 enableval=$enable_libtool_lock;
4986 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4988 # Some flags need to be propagated to the compiler or linker for good
4992 # Find out which ABI we are using.
4993 echo 'int i;' > conftest.$ac_ext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; then
4999 case `/usr/bin/file conftest.$ac_objext` in
5011 # Find out which ABI we are using.
5012 echo '#line 5012 "configure"' > conftest.$ac_ext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014 (eval $ac_compile) 2>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; then
5018 if test "$lt_cv_prog_gnu_ld" = yes; then
5019 case `/usr/bin/file conftest.$ac_objext` in
5021 LD="${LD-ld} -melf32bsmip"
5024 LD="${LD-ld} -melf32bmipn32"
5027 LD="${LD-ld} -melf64bmip"
5031 case `/usr/bin/file conftest.$ac_objext` in
5047 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5048 # Find out which ABI we are using.
5049 echo 'int i;' > conftest.$ac_ext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; then
5055 case `/usr/bin/file conftest.o` in
5059 LD="${LD-ld} -m elf_i386"
5061 ppc64-*linux*|powerpc64-*linux*)
5062 LD="${LD-ld} -m elf32ppclinux"
5065 LD="${LD-ld} -m elf_s390"
5068 LD="${LD-ld} -m elf32_sparc"
5075 LD="${LD-ld} -m elf_x86_64"
5077 ppc*-*linux*|powerpc*-*linux*)
5078 LD="${LD-ld} -m elf64ppc"
5081 LD="${LD-ld} -m elf64_s390"
5084 LD="${LD-ld} -m elf64_sparc"
5094 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5095 SAVE_CFLAGS="$CFLAGS"
5096 CFLAGS="$CFLAGS -belf"
5097 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5098 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5099 if test "${lt_cv_cc_needs_belf+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 ac_cpp='$CPP $CPPFLAGS'
5104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5123 rm -f conftest.$ac_objext conftest$ac_exeext
5124 if { (ac_try="$ac_link"
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_link") 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && {
5137 test -z "$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5139 } && test -s conftest$ac_exeext &&
5140 $as_test_x conftest$ac_exeext; then
5141 lt_cv_cc_needs_belf=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 lt_cv_cc_needs_belf=no
5149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5150 conftest$ac_exeext conftest.$ac_ext
5152 ac_cpp='$CPP $CPPFLAGS'
5153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5159 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5160 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5161 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5162 CFLAGS="$SAVE_CFLAGS"
5168 need_locks="$enable_libtool_lock"
5172 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5174 if test "${ac_cv_header_stdc+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5196 rm -f conftest.$ac_objext
5197 if { (ac_try="$ac_compile"
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_compile") 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && {
5210 test -z "$ac_c_werror_flag" ||
5211 test ! -s conftest.err
5212 } && test -s conftest.$ac_objext; then
5213 ac_cv_header_stdc=yes
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 ac_cv_header_stdc=no
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 if test $ac_cv_header_stdc = yes; then
5224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5235 $EGREP "memchr" >/dev/null 2>&1; then
5238 ac_cv_header_stdc=no
5244 if test $ac_cv_header_stdc = yes; then
5245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5246 cat >conftest.$ac_ext <<_ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5256 $EGREP "free" >/dev/null 2>&1; then
5259 ac_cv_header_stdc=no
5265 if test $ac_cv_header_stdc = yes; then
5266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5267 if test "$cross_compiling" = yes; then
5270 cat >conftest.$ac_ext <<_ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5278 #if ((' ' & 0x0FF) == 0x020)
5279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5282 # define ISLOWER(c) \
5283 (('a' <= (c) && (c) <= 'i') \
5284 || ('j' <= (c) && (c) <= 'r') \
5285 || ('s' <= (c) && (c) <= 'z'))
5286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5294 for (i = 0; i < 256; i++)
5295 if (XOR (islower (i), ISLOWER (i))
5296 || toupper (i) != TOUPPER (i))
5301 rm -f conftest$ac_exeext
5302 if { (ac_try="$ac_link"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_link") 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5312 { (case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_try") 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_cv_header_stdc=no
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5336 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5337 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5340 cat >>confdefs.h <<\_ACEOF
5341 #define STDC_HEADERS 1
5346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5357 inttypes.h stdint.h unistd.h
5359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 cat >conftest.$ac_ext <<_ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 $ac_includes_default
5373 #include <$ac_header>
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_c_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
5392 eval "$as_ac_Header=yes"
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 eval "$as_ac_Header=no"
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 ac_res=`eval echo '${'$as_ac_Header'}'`
5403 { echo "$as_me:$LINENO: result: $ac_res" >&5
5404 echo "${ECHO_T}$ac_res" >&6; }
5405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5406 cat >>confdefs.h <<_ACEOF
5407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5416 for ac_header in dlfcn.h
5418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_res=`eval echo '${'$as_ac_Header'}'`
5426 { echo "$as_me:$LINENO: result: $ac_res" >&5
5427 echo "${ECHO_T}$ac_res" >&6; }
5429 # Is the header compilable?
5430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439 #include <$ac_header>
5441 rm -f conftest.$ac_objext
5442 if { (ac_try="$ac_compile"
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_compile") 2>conftest.er1
5450 grep -v '^ *+' conftest.er1 >conftest.err
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest.$ac_objext; then
5458 ac_header_compiler=yes
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_header_compiler=no
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468 echo "${ECHO_T}$ac_header_compiler" >&6; }
5470 # Is the header present?
5471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5473 cat >conftest.$ac_ext <<_ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 #include <$ac_header>
5481 if { (ac_try="$ac_cpp conftest.$ac_ext"
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5489 grep -v '^ *+' conftest.er1 >conftest.err
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } >/dev/null && {
5494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5497 ac_header_preproc=yes
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 ac_header_preproc=no
5505 rm -f conftest.err conftest.$ac_ext
5506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5507 echo "${ECHO_T}$ac_header_preproc" >&6; }
5509 # So? What about this header?
5510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5516 ac_header_preproc=yes
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 eval "$as_ac_Header=\$ac_header_preproc"
5541 ac_res=`eval echo '${'$as_ac_Header'}'`
5542 { echo "$as_me:$LINENO: result: $ac_res" >&5
5543 echo "${ECHO_T}$ac_res" >&6; }
5546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5547 cat >>confdefs.h <<_ACEOF
5548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5557 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5558 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5559 (test "X$CXX" != "Xg++"))) ; then
5561 ac_cpp='$CXXCPP $CPPFLAGS'
5562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5565 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5566 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5567 if test -z "$CXXCPP"; then
5568 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 # Double quotes because CXXCPP needs to be expanded
5572 for CXXCPP in "$CXX -E" "/lib/cpp"
5575 for ac_cxx_preproc_warn_flag in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 # include <limits.h>
5592 # include <assert.h>
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null && {
5609 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5610 test ! -s conftest.err
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 # Broken: fails on valid input.
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5633 if { (ac_try="$ac_cpp conftest.$ac_ext"
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev/null && {
5646 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5647 test ! -s conftest.err
5649 # Broken: success on invalid input.
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 # Passes both tests.
5660 rm -f conftest.err conftest.$ac_ext
5663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5664 rm -f conftest.err conftest.$ac_ext
5665 if $ac_preproc_ok; then
5670 ac_cv_prog_CXXCPP=$CXXCPP
5673 CXXCPP=$ac_cv_prog_CXXCPP
5675 ac_cv_prog_CXXCPP=$CXXCPP
5677 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5678 echo "${ECHO_T}$CXXCPP" >&6; }
5680 for ac_cxx_preproc_warn_flag in '' yes
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error" is here to catch this case.
5688 cat >conftest.$ac_ext <<_ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5695 # include <limits.h>
5697 # include <assert.h>
5701 if { (ac_try="$ac_cpp conftest.$ac_ext"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } >/dev/null && {
5714 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5715 test ! -s conftest.err
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 # Broken: fails on valid input.
5726 rm -f conftest.err conftest.$ac_ext
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <ac_nonexistent.h>
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5746 grep -v '^ *+' conftest.er1 >conftest.err
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5754 # Broken: success on invalid input.
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 # Passes both tests.
5765 rm -f conftest.err conftest.$ac_ext
5768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769 rm -f conftest.err conftest.$ac_ext
5770 if $ac_preproc_ok; then
5773 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5774 See \`config.log' for more details." >&5
5775 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5776 See \`config.log' for more details." >&2;}
5777 { (exit 1); exit 1; }; }
5781 ac_cpp='$CXXCPP $CPPFLAGS'
5782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5790 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5791 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5793 if test -n "$ac_tool_prefix"; then
5794 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
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_F77+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 if test -n "$F77"; then
5804 ac_cv_prog_F77="$F77" # Let the user override the test.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 if test -n "$F77"; then
5825 { echo "$as_me:$LINENO: result: $F77" >&5
5826 echo "${ECHO_T}$F77" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 test -n "$F77" && break
5836 if test -z "$F77"; then
5838 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
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841 set dummy $ac_prog; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 if test -n "$ac_ct_F77"; then
5848 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_F77="$ac_prog"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5868 if test -n "$ac_ct_F77"; then
5869 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5870 echo "${ECHO_T}$ac_ct_F77" >&6; }
5872 { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5877 test -n "$ac_ct_F77" && break
5880 if test "x$ac_ct_F77" = x; then
5883 case $cross_compiling:$ac_tool_warned in
5885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the host triplet. If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&5
5888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5889 whose name does not start with the host triplet. If you think this
5890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5891 ac_tool_warned=yes ;;
5898 # Provide some information about the compiler.
5899 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5900 ac_compiler=`set X $ac_compile; echo $2`
5901 { (ac_try="$ac_compiler --version >&5"
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compiler --version >&5") 2>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }
5911 { (ac_try="$ac_compiler -v >&5"
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_compiler -v >&5") 2>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }
5921 { (ac_try="$ac_compiler -V >&5"
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compiler -V >&5") 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }
5933 # If we don't use `.F' as extension, the preprocessor is not run on the
5934 # input file. (Note that this only needs to work for GNU compilers.)
5937 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5938 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5939 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 cat >conftest.$ac_ext <<_ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_f77_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5979 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5980 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5982 ac_test_FFLAGS=${FFLAGS+set}
5983 ac_save_FFLAGS=$FFLAGS
5985 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5986 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_f77_g+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_f77_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.$ac_objext; then
6013 ac_cv_prog_f77_g=yes
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6025 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6026 if test "$ac_test_FFLAGS" = set; then
6027 FFLAGS=$ac_save_FFLAGS
6028 elif test $ac_cv_prog_f77_g = yes; then
6029 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6035 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6042 G77=`test $ac_compiler_gnu = yes && echo yes`
6044 ac_cpp='$CPP $CPPFLAGS'
6045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6053 # find the maximum length of command line arguments
6054 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6055 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6056 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 # On DJGPP, this test can blow up pretty badly due to problems in libc
6065 # (any single argument exceeding 2000 bytes causes a buffer overrun
6066 # during glob expansion). Even if it were fixed, the result of this
6067 # check would be larger than it should be.
6068 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6072 # Under GNU Hurd, this test is not required because there is
6073 # no limit to the length of command line arguments.
6074 # Libtool will interpret -1 as no limit whatsoever
6075 lt_cv_sys_max_cmd_len=-1;
6079 # On Win9x/ME, this test blows up -- it succeeds, but takes
6080 # about 5 minutes as the teststring grows exponentially.
6081 # Worse, since 9x/ME are not pre-emptively multitasking,
6082 # you end up with a "frozen" computer, even though with patience
6083 # the test eventually succeeds (with a max line length of 256k).
6084 # Instead, let's just punt: use the minimum linelength reported by
6085 # all of the supported platforms: 8192 (on NT/2K/XP).
6086 lt_cv_sys_max_cmd_len=8192;
6090 # On AmigaOS with pdksh, this test takes hours, literally.
6091 # So we just punt and use a minimum line length of 8192.
6092 lt_cv_sys_max_cmd_len=8192;
6095 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6096 # This has been around since 386BSD, at least. Likely further.
6097 if test -x /sbin/sysctl; then
6098 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6099 elif test -x /usr/sbin/sysctl; then
6100 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6102 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6104 # And add a safety zone
6105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6109 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6110 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6111 # nice to cause kernel panics so lets avoid the loop below.
6112 # First set a reasonable default.
6113 lt_cv_sys_max_cmd_len=16384
6115 if test -x /sbin/sysconfig; then
6116 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6117 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6122 # If test is not a shell built-in, we'll probably end up computing a
6123 # maximum length that is only half of the actual maximum length, but
6125 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6126 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6127 = "XX$teststring") >/dev/null 2>&1 &&
6128 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6129 lt_cv_sys_max_cmd_len=$new_result &&
6130 test $i != 17 # 1/2 MB should be enough
6133 teststring=$teststring$teststring
6136 # Add a significant safety factor because C++ compilers can tack on massive
6137 # amounts of additional arguments before passing them to the linker.
6138 # It appears as though 1/2 is a usable value.
6139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6145 if test -n $lt_cv_sys_max_cmd_len ; then
6146 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6149 { echo "$as_me:$LINENO: result: none" >&5
6150 echo "${ECHO_T}none" >&6; }
6156 # Check for command to grab the raw symbol name followed by C symbol from nm.
6157 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6158 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6159 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 # These are sane defaults that work on at least a few old systems.
6164 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6166 # Character class describing NM global symbol codes.
6167 symcode='[BCDEGRST]'
6169 # Regexp to match symbols that can be accessed directly from C.
6170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6172 # Transform an extracted symbol line into a proper C declaration
6173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6175 # Transform an extracted symbol line into symbol name and symbol address
6176 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'"
6178 # Define system-specific variables.
6183 cygwin* | mingw* | pw32*)
6184 symcode='[ABCDGISTW]'
6186 hpux*) # Its linker distinguishes data from code symbols
6187 if test "$host_cpu" = ia64; then
6188 symcode='[ABCDEGRST]'
6190 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6191 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'"
6194 if test "$host_cpu" = ia64; then
6195 symcode='[ABCDGIRSTW]'
6196 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6197 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'"
6201 symcode='[BCDEGRST]'
6204 symcode='[BCDEGQRST]'
6214 # Handle CRLF in mingw tool chain
6218 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6222 # If we're using GNU nm, then use its standard symbol codes.
6223 case `$NM -V 2>&1` in
6224 *GNU* | *'with BFD'*)
6225 symcode='[ABCDGIRSTW]' ;;
6228 # Try without a prefix undercore, then with it.
6229 for ac_symprfx in "" "_"; do
6231 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6232 symxfrm="\\1 $ac_symprfx\\2 \\2"
6234 # Write the raw and C identifiers.
6235 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6237 # Check to see that the pipe works correctly.
6241 cat > conftest.$ac_ext <<EOF
6246 void nm_test_func(){}
6250 int main(){nm_test_var='a';nm_test_func();return(0);}
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; then
6258 # Now try to grab the symbols.
6260 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6261 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && test -s "$nlist"; then
6265 # Try sorting and uniquifying the output.
6266 if sort "$nlist" | uniq > "$nlist"T; then
6267 mv -f "$nlist"T "$nlist"
6272 # Make sure that we snagged all the symbols we need.
6273 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6274 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6275 cat <<EOF > conftest.$ac_ext
6281 # Now generate the symbol file.
6282 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6284 cat <<EOF >> conftest.$ac_ext
6285 #if defined (__STDC__) && __STDC__
6286 # define lt_ptr_t void *
6288 # define lt_ptr_t char *
6292 /* The mapping between symbol names and symbols. */
6297 lt_preloaded_symbols[] =
6300 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6301 cat <<\EOF >> conftest.$ac_ext
6309 # Now try linking the two files.
6310 mv conftest.$ac_objext conftstm.$ac_objext
6311 lt_save_LIBS="$LIBS"
6312 lt_save_CFLAGS="$CFLAGS"
6313 LIBS="conftstm.$ac_objext"
6314 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6322 LIBS="$lt_save_LIBS"
6323 CFLAGS="$lt_save_CFLAGS"
6325 echo "cannot find nm_test_func in $nlist" >&5
6328 echo "cannot find nm_test_var in $nlist" >&5
6331 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6334 echo "$progname: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6337 rm -f conftest* conftst*
6339 # Do not use the global_symbol_pipe unless it works.
6340 if test "$pipe_works" = yes; then
6343 lt_cv_sys_global_symbol_pipe=
6349 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6350 lt_cv_sys_global_symbol_to_cdecl=
6352 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6353 { echo "$as_me:$LINENO: result: failed" >&5
6354 echo "${ECHO_T}failed" >&6; }
6356 { echo "$as_me:$LINENO: result: ok" >&5
6357 echo "${ECHO_T}ok" >&6; }
6360 { echo "$as_me:$LINENO: checking for objdir" >&5
6361 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6362 if test "${lt_cv_objdir+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 rm -f .libs 2>/dev/null
6366 mkdir .libs 2>/dev/null
6367 if test -d .libs; then
6370 # MS-DOS does not allow filenames that begin with a dot.
6373 rmdir .libs 2>/dev/null
6375 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6376 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6377 objdir=$lt_cv_objdir
6385 # AIX sometimes has problems with the GCC collect2 program. For some
6386 # reason, if we set the COLLECT_NAMES environment variable, the problems
6387 # vanish in a puff of smoke.
6388 if test "X${COLLECT_NAMES+set}" != Xset; then
6390 export COLLECT_NAMES
6395 # Sed substitution that helps us do robust quoting. It backslashifies
6396 # metacharacters that are still active within double-quoted strings.
6397 Xsed='sed -e 1s/^X//'
6398 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6400 # Same as above, but do not quote variable references.
6401 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6403 # Sed substitution to delay expansion of an escaped shell variable in a
6404 # double_quote_subst'ed string.
6405 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6407 # Sed substitution to avoid accidental globbing in evaled expressions
6408 no_glob_subst='s/\*/\\\*/g'
6414 default_ofile=libtool
6415 can_build_shared=yes
6417 # All known linkers require a `.a' archive for static linking (except MSVC,
6418 # which needs '.lib').
6420 ltmain="$ac_aux_dir/ltmain.sh"
6421 ofile="$default_ofile"
6422 with_gnu_ld="$lt_cv_prog_gnu_ld"
6424 if test -n "$ac_tool_prefix"; then
6425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ar; ac_word=$2
6427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429 if test "${ac_cv_prog_AR+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 if test -n "$AR"; then
6433 ac_cv_prog_AR="$AR" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_prog_AR="${ac_tool_prefix}ar"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 if test -n "$AR"; then
6454 { echo "$as_me:$LINENO: result: $AR" >&5
6455 echo "${ECHO_T}$AR" >&6; }
6457 { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6463 if test -z "$ac_cv_prog_AR"; then
6465 # Extract the first word of "ar", so it can be a program name with args.
6466 set dummy ar; ac_word=$2
6467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6469 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 if test -n "$ac_ct_AR"; then
6473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_ac_ct_AR="ar"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6493 if test -n "$ac_ct_AR"; then
6494 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6495 echo "${ECHO_T}$ac_ct_AR" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6501 if test "x$ac_ct_AR" = x; then
6504 case $cross_compiling:$ac_tool_warned in
6506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6507 whose name does not start with the host triplet. If you think this
6508 configuration is useful to you, please write to autoconf@gnu.org." >&5
6509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet. If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6512 ac_tool_warned=yes ;;
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_prog_RANLIB+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 if test -n "$RANLIB"; then
6529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 RANLIB=$ac_cv_prog_RANLIB
6549 if test -n "$RANLIB"; then
6550 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6551 echo "${ECHO_T}$RANLIB" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6559 if test -z "$ac_cv_prog_RANLIB"; then
6560 ac_ct_RANLIB=$RANLIB
6561 # Extract the first word of "ranlib", so it can be a program name with args.
6562 set dummy ranlib; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 if test -n "$ac_ct_RANLIB"; then
6569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_RANLIB="ranlib"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6589 if test -n "$ac_ct_RANLIB"; then
6590 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6591 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6593 { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6597 if test "x$ac_ct_RANLIB" = x; then
6600 case $cross_compiling:$ac_tool_warned in
6602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6603 whose name does not start with the host triplet. If you think this
6604 configuration is useful to you, please write to autoconf@gnu.org." >&5
6605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet. If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6608 ac_tool_warned=yes ;;
6610 RANLIB=$ac_ct_RANLIB
6613 RANLIB="$ac_cv_prog_RANLIB"
6616 if test -n "$ac_tool_prefix"; then
6617 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6618 set dummy ${ac_tool_prefix}strip; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_prog_STRIP+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 if test -n "$STRIP"; then
6625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 STRIP=$ac_cv_prog_STRIP
6645 if test -n "$STRIP"; then
6646 { echo "$as_me:$LINENO: result: $STRIP" >&5
6647 echo "${ECHO_T}$STRIP" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6655 if test -z "$ac_cv_prog_STRIP"; then
6657 # Extract the first word of "strip", so it can be a program name with args.
6658 set dummy strip; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 if test -n "$ac_ct_STRIP"; then
6665 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_prog_ac_ct_STRIP="strip"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6685 if test -n "$ac_ct_STRIP"; then
6686 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6687 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6689 { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6693 if test "x$ac_ct_STRIP" = x; then
6696 case $cross_compiling:$ac_tool_warned in
6698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6699 whose name does not start with the host triplet. If you think this
6700 configuration is useful to you, please write to autoconf@gnu.org." >&5
6701 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet. If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6704 ac_tool_warned=yes ;;
6709 STRIP="$ac_cv_prog_STRIP"
6714 old_CFLAGS="$CFLAGS"
6716 # Set sane defaults for various variables
6717 test -z "$AR" && AR=ar
6718 test -z "$AR_FLAGS" && AR_FLAGS=cru
6719 test -z "$AS" && AS=as
6720 test -z "$CC" && CC=cc
6721 test -z "$LTCC" && LTCC=$CC
6722 test -z "$DLLTOOL" && DLLTOOL=dlltool
6723 test -z "$LD" && LD=ld
6724 test -z "$LN_S" && LN_S="ln -s"
6725 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6726 test -z "$NM" && NM=nm
6727 test -z "$SED" && SED=sed
6728 test -z "$OBJDUMP" && OBJDUMP=objdump
6729 test -z "$RANLIB" && RANLIB=:
6730 test -z "$STRIP" && STRIP=:
6731 test -z "$ac_objext" && ac_objext=o
6733 # Determine commands to create old-style static archives.
6734 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6735 old_postinstall_cmds='chmod 644 $oldlib'
6736 old_postuninstall_cmds=
6738 if test -n "$RANLIB"; then
6741 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6744 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6747 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6750 for cc_temp in $compiler""; do
6752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6758 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6761 # Only perform the check for file, if the check method requires it
6762 case $deplibs_check_method in
6764 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6765 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6766 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6767 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6775 lt_save_MAGIC_CMD="$MAGIC_CMD"
6776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6778 for ac_dir in $ac_dummy; do
6780 test -z "$ac_dir" && ac_dir=.
6781 if test -f $ac_dir/${ac_tool_prefix}file; then
6782 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6783 if test -n "$file_magic_test_file"; then
6784 case $deplibs_check_method in
6786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6789 $EGREP "$file_magic_regex" > /dev/null; then
6794 *** Warning: the command libtool uses to detect shared libraries,
6795 *** $file_magic_cmd, produces output that libtool cannot recognize.
6796 *** The result is that libtool may fail to recognize shared libraries
6797 *** as such. This will affect the creation of libtool libraries that
6798 *** depend on shared libraries, but programs linked with such libtool
6799 *** libraries will work regardless of this problem. Nevertheless, you
6800 *** may want to report the problem to your system manager and/or to
6801 *** bug-libtool@gnu.org
6811 MAGIC_CMD="$lt_save_MAGIC_CMD"
6816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6817 if test -n "$MAGIC_CMD"; then
6818 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6819 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6821 { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6825 if test -z "$lt_cv_path_MAGIC_CMD"; then
6826 if test -n "$ac_tool_prefix"; then
6827 { echo "$as_me:$LINENO: checking for file" >&5
6828 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6829 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6837 lt_save_MAGIC_CMD="$MAGIC_CMD"
6838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6840 for ac_dir in $ac_dummy; do
6842 test -z "$ac_dir" && ac_dir=.
6843 if test -f $ac_dir/file; then
6844 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6845 if test -n "$file_magic_test_file"; then
6846 case $deplibs_check_method in
6848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6851 $EGREP "$file_magic_regex" > /dev/null; then
6856 *** Warning: the command libtool uses to detect shared libraries,
6857 *** $file_magic_cmd, produces output that libtool cannot recognize.
6858 *** The result is that libtool may fail to recognize shared libraries
6859 *** as such. This will affect the creation of libtool libraries that
6860 *** depend on shared libraries, but programs linked with such libtool
6861 *** libraries will work regardless of this problem. Nevertheless, you
6862 *** may want to report the problem to your system manager and/or to
6863 *** bug-libtool@gnu.org
6873 MAGIC_CMD="$lt_save_MAGIC_CMD"
6878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6879 if test -n "$MAGIC_CMD"; then
6880 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6881 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6899 # Check whether --enable-libtool-lock was given.
6900 if test "${enable_libtool_lock+set}" = set; then
6901 enableval=$enable_libtool_lock;
6904 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6907 # Check whether --with-pic was given.
6908 if test "${with_pic+set}" = set; then
6909 withval=$with_pic; pic_mode="$withval"
6914 test -z "$pic_mode" && pic_mode=default
6916 # Use C for the default configuration in the libtool script
6920 ac_cpp='$CPP $CPPFLAGS'
6921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926 # Source file extension for C test sources.
6929 # Object file extension for compiled C test sources.
6933 # Code to be used in simple compile tests
6934 lt_simple_compile_test_code="int some_variable = 0;\n"
6936 # Code to be used in simple link tests
6937 lt_simple_link_test_code='int main(){return(0);}\n'
6940 # If no C compiler was specified, use CC.
6943 # Allow CC to be a program name with arguments.
6947 # save warnings/boilerplate of simple test code
6948 ac_outfile=conftest.$ac_objext
6949 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6950 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6951 _lt_compiler_boilerplate=`cat conftest.err`
6954 ac_outfile=conftest.$ac_objext
6955 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6956 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6957 _lt_linker_boilerplate=`cat conftest.err`
6962 # Check for any special shared library compilation flags.
6965 if test "$GCC" = no; then
6968 lt_prog_cc_shlib='-belf'
6972 if test -n "$lt_prog_cc_shlib"; then
6973 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6974 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6975 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6977 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6978 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6979 lt_cv_prog_cc_can_build_shared=no
6985 # Check to make sure the static flag actually works.
6987 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6988 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6989 if test "${lt_prog_compiler_static_works+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 lt_prog_compiler_static_works=no
6993 save_LDFLAGS="$LDFLAGS"
6994 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6995 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6997 # The linker can only warn and ignore the option if not recognized
6998 # So say no if there are warnings
6999 if test -s conftest.err; then
7000 # Append any errors to the config.log.
7001 cat conftest.err 1>&5
7002 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7003 $SED '/^$/d' conftest.err >conftest.er2
7004 if diff conftest.exp conftest.er2 >/dev/null; then
7005 lt_prog_compiler_static_works=yes
7008 lt_prog_compiler_static_works=yes
7012 LDFLAGS="$save_LDFLAGS"
7015 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7016 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7018 if test x"$lt_prog_compiler_static_works" = xyes; then
7021 lt_prog_compiler_static=
7027 lt_prog_compiler_no_builtin_flag=
7029 if test "$GCC" = yes; then
7030 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7033 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7034 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7035 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 lt_cv_prog_compiler_rtti_exceptions=no
7039 ac_outfile=conftest.$ac_objext
7040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7041 lt_compiler_flag="-fno-rtti -fno-exceptions"
7042 # Insert the option either (1) after the last *FLAGS variable, or
7043 # (2) before a word containing "conftest.", or (3) at the end.
7044 # Note that $ac_compile itself does not contain backslashes and begins
7045 # with a dollar sign (not a hyphen), so the echo should work correctly.
7046 # The option is referenced via a variable to avoid confusing sed.
7047 lt_compile=`echo "$ac_compile" | $SED \
7048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7050 -e 's:$: $lt_compiler_flag:'`
7051 (eval echo "\"\$as_me:7051: $lt_compile\"" >&5)
7052 (eval "$lt_compile" 2>conftest.err)
7054 cat conftest.err >&5
7055 echo "$as_me:7055: \$? = $ac_status" >&5
7056 if (exit $ac_status) && test -s "$ac_outfile"; then
7057 # The compiler can only warn and ignore the option if not recognized
7058 # So say no if there are warnings other than the usual output.
7059 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7060 $SED '/^$/d' conftest.err >conftest.er2
7061 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7062 lt_cv_prog_compiler_rtti_exceptions=yes
7068 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7069 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7079 lt_prog_compiler_wl=
7080 lt_prog_compiler_pic=
7081 lt_prog_compiler_static=
7083 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7086 if test "$GCC" = yes; then
7087 lt_prog_compiler_wl='-Wl,'
7088 lt_prog_compiler_static='-static'
7092 # All AIX code is PIC.
7093 if test "$host_cpu" = ia64; then
7094 # AIX 5 now supports IA64 processor
7095 lt_prog_compiler_static='-Bstatic'
7100 # FIXME: we need at least 68020 code to build shared libraries, but
7101 # adding the `-m68020' flag to GCC prevents building anything better,
7103 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7106 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7107 # PIC is the default for these OSes.
7110 mingw* | pw32* | os2*)
7111 # This hack is so that the source file can tell whether it is being
7112 # built for inclusion in a dll (and should export symbols for example).
7113 lt_prog_compiler_pic='-DDLL_EXPORT'
7116 darwin* | rhapsody*)
7117 # PIC is the default on this platform
7118 # Common symbols not allowed in MH_DYLIB files
7119 lt_prog_compiler_pic='-fno-common'
7123 # Just because we use GCC doesn't mean we suddenly get shared libraries
7124 # on systems that don't support them.
7125 lt_prog_compiler_can_build_shared=no
7130 if test -d /usr/nec; then
7131 lt_prog_compiler_pic=-Kconform_pic
7136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7143 lt_prog_compiler_pic='-fPIC'
7149 lt_prog_compiler_pic='-fPIC'
7153 # PORTME Check for flag to pass linker flags through the system compiler.
7156 lt_prog_compiler_wl='-Wl,'
7157 if test "$host_cpu" = ia64; then
7158 # AIX 5 now supports IA64 processor
7159 lt_prog_compiler_static='-Bstatic'
7161 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7165 # PIC is the default on this platform
7166 # Common symbols not allowed in MH_DYLIB files
7167 case $cc_basename in
7169 lt_prog_compiler_pic='-qnocommon'
7170 lt_prog_compiler_wl='-Wl,'
7175 mingw* | pw32* | os2*)
7176 # This hack is so that the source file can tell whether it is being
7177 # built for inclusion in a dll (and should export symbols for example).
7178 lt_prog_compiler_pic='-DDLL_EXPORT'
7181 hpux9* | hpux10* | hpux11*)
7182 lt_prog_compiler_wl='-Wl,'
7183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7190 lt_prog_compiler_pic='+Z'
7193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7194 lt_prog_compiler_static='${wl}-a ${wl}archive'
7197 irix5* | irix6* | nonstopux*)
7198 lt_prog_compiler_wl='-Wl,'
7199 # PIC (with -KPIC) is the default.
7200 lt_prog_compiler_static='-non_shared'
7204 lt_prog_compiler_pic='-KPIC'
7205 lt_prog_compiler_static='-Bstatic'
7209 case $cc_basename in
7211 lt_prog_compiler_wl='-Wl,'
7212 lt_prog_compiler_pic='-KPIC'
7213 lt_prog_compiler_static='-static'
7215 pgcc* | pgf77* | pgf90* | pgf95*)
7216 # Portland Group compilers (*not* the Pentium gcc compiler,
7217 # which looks to be a dead project)
7218 lt_prog_compiler_wl='-Wl,'
7219 lt_prog_compiler_pic='-fpic'
7220 lt_prog_compiler_static='-Bstatic'
7223 lt_prog_compiler_wl='-Wl,'
7224 # All Alpha code is PIC.
7225 lt_prog_compiler_static='-non_shared'
7230 osf3* | osf4* | osf5*)
7231 lt_prog_compiler_wl='-Wl,'
7232 # All OSF/1 code is PIC.
7233 lt_prog_compiler_static='-non_shared'
7237 lt_prog_compiler_pic='-Kpic'
7238 lt_prog_compiler_static='-dn'
7242 lt_prog_compiler_pic='-KPIC'
7243 lt_prog_compiler_static='-Bstatic'
7244 case $cc_basename in
7246 lt_prog_compiler_wl='-Qoption ld ';;
7248 lt_prog_compiler_wl='-Wl,';;
7253 lt_prog_compiler_wl='-Qoption ld '
7254 lt_prog_compiler_pic='-PIC'
7255 lt_prog_compiler_static='-Bstatic'
7258 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7259 lt_prog_compiler_wl='-Wl,'
7260 lt_prog_compiler_pic='-KPIC'
7261 lt_prog_compiler_static='-Bstatic'
7265 if test -d /usr/nec ;then
7266 lt_prog_compiler_pic='-Kconform_pic'
7267 lt_prog_compiler_static='-Bstatic'
7272 lt_prog_compiler_wl='-Wl,'
7273 lt_prog_compiler_can_build_shared=no
7277 lt_prog_compiler_pic='-pic'
7278 lt_prog_compiler_static='-Bstatic'
7282 lt_prog_compiler_can_build_shared=no
7287 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7288 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7291 # Check to make sure the PIC flag actually works.
7293 if test -n "$lt_prog_compiler_pic"; then
7295 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7296 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7297 if test "${lt_prog_compiler_pic_works+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 lt_prog_compiler_pic_works=no
7301 ac_outfile=conftest.$ac_objext
7302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7303 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7304 # Insert the option either (1) after the last *FLAGS variable, or
7305 # (2) before a word containing "conftest.", or (3) at the end.
7306 # Note that $ac_compile itself does not contain backslashes and begins
7307 # with a dollar sign (not a hyphen), so the echo should work correctly.
7308 # The option is referenced via a variable to avoid confusing sed.
7309 lt_compile=`echo "$ac_compile" | $SED \
7310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7312 -e 's:$: $lt_compiler_flag:'`
7313 (eval echo "\"\$as_me:7313: $lt_compile\"" >&5)
7314 (eval "$lt_compile" 2>conftest.err)
7316 cat conftest.err >&5
7317 echo "$as_me:7317: \$? = $ac_status" >&5
7318 if (exit $ac_status) && test -s "$ac_outfile"; then
7319 # The compiler can only warn and ignore the option if not recognized
7320 # So say no if there are warnings other than the usual output.
7321 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7322 $SED '/^$/d' conftest.err >conftest.er2
7323 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7324 lt_prog_compiler_pic_works=yes
7330 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7331 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7333 if test x"$lt_prog_compiler_pic_works" = xyes; then
7334 case $lt_prog_compiler_pic in
7336 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7339 lt_prog_compiler_pic=
7340 lt_prog_compiler_can_build_shared=no
7345 # For platforms which do not support PIC, -DPIC is meaningless:
7347 lt_prog_compiler_pic=
7350 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7354 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7355 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7356 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 lt_cv_prog_compiler_c_o=no
7360 $rm -r conftest 2>/dev/null
7364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7366 lt_compiler_flag="-o out/conftest2.$ac_objext"
7367 # Insert the option either (1) after the last *FLAGS variable, or
7368 # (2) before a word containing "conftest.", or (3) at the end.
7369 # Note that $ac_compile itself does not contain backslashes and begins
7370 # with a dollar sign (not a hyphen), so the echo should work correctly.
7371 lt_compile=`echo "$ac_compile" | $SED \
7372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7374 -e 's:$: $lt_compiler_flag:'`
7375 (eval echo "\"\$as_me:7375: $lt_compile\"" >&5)
7376 (eval "$lt_compile" 2>out/conftest.err)
7378 cat out/conftest.err >&5
7379 echo "$as_me:7379: \$? = $ac_status" >&5
7380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7382 # The compiler can only warn and ignore the option if not recognized
7383 # So say no if there are warnings
7384 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7385 $SED '/^$/d' out/conftest.err >out/conftest.er2
7386 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7387 lt_cv_prog_compiler_c_o=yes
7392 # SGI C++ compiler will create directory out/ii_files/ for
7393 # template instantiation
7394 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7395 $rm out/* && rmdir out
7401 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7402 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7405 hard_links="nottested"
7406 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7407 # do not overwrite the value of need_locks provided by the user
7408 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7409 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7414 ln conftest.a conftest.b 2>&5 || hard_links=no
7415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7416 { echo "$as_me:$LINENO: result: $hard_links" >&5
7417 echo "${ECHO_T}$hard_links" >&6; }
7418 if test "$hard_links" = no; then
7419 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7420 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7427 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7428 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7431 allow_undefined_flag=
7432 enable_shared_with_static_runtimes=no
7434 archive_expsym_cmds=
7435 old_archive_From_new_cmds=
7436 old_archive_from_expsyms_cmds=
7437 export_dynamic_flag_spec=
7438 whole_archive_flag_spec=
7439 thread_safe_flag_spec=
7440 hardcode_libdir_flag_spec=
7441 hardcode_libdir_flag_spec_ld=
7442 hardcode_libdir_separator=
7445 hardcode_shlibpath_var=unsupported
7446 link_all_deplibs=unknown
7447 hardcode_automatic=no
7450 always_export_symbols=no
7451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7452 # include_expsyms should be a list of space-separated symbols to be *always*
7453 # included in the symbol list
7455 # exclude_expsyms can be an extended regexp of symbols to exclude
7456 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7458 # as well as any symbol that contains `d'.
7459 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7461 # platforms (ab)use it in PIC code, but their linkers get confused if
7462 # the symbol is explicitly referenced. Since portable code cannot
7463 # rely on this symbol name, it's probably fine to never include it in
7464 # preloaded symbol tables.
7465 extract_expsyms_cmds=
7466 # Just being paranoid about ensuring that cc_basename is set.
7467 for cc_temp in $compiler""; do
7469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7475 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7478 cygwin* | mingw* | pw32*)
7479 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7480 # When not using gcc, we currently assume that we are using
7481 # Microsoft Visual C++.
7482 if test "$GCC" != yes; then
7492 if test "$with_gnu_ld" = yes; then
7493 # If archive_cmds runs LD, not CC, wlarc should be empty
7496 # Set some defaults for GNU ld with shared library support. These
7497 # are reset later if shared libraries are not supported. Putting them
7498 # here allows them to be overridden if necessary.
7499 runpath_var=LD_RUN_PATH
7500 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7501 export_dynamic_flag_spec='${wl}--export-dynamic'
7502 # ancient GNU ld didn't support --whole-archive et. al.
7503 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7504 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7506 whole_archive_flag_spec=
7508 supports_anon_versioning=no
7509 case `$LD -v 2>/dev/null` in
7510 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7511 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7512 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7513 *\ 2.11.*) ;; # other 2.11 versions
7514 *) supports_anon_versioning=yes ;;
7517 # See if GNU ld supports shared libraries.
7519 aix3* | aix4* | aix5*)
7520 # On AIX/PPC, the GNU linker is very broken
7521 if test "$host_cpu" != ia64; then
7525 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7526 *** to be unable to reliably create shared libraries on AIX.
7527 *** Therefore, libtool is disabling shared libraries support. If you
7528 *** really care for shared libraries, you may want to modify your PATH
7529 *** so that a non-GNU linker is found, and then restart.
7536 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)'
7537 hardcode_libdir_flag_spec='-L$libdir'
7538 hardcode_minus_L=yes
7540 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7541 # that the semantics of dynamic libraries on AmigaOS, at least up
7542 # to version 4, is to share data among multiple programs linked
7543 # with the same dynamic library. Since this doesn't match the
7544 # behavior of shared libraries on other platforms, we can't use
7550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7551 allow_undefined_flag=unsupported
7552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7553 # support --undefined. This deserves some investigation. FIXME
7554 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7560 cygwin* | mingw* | pw32*)
7561 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7562 # as there is no search path for DLLs.
7563 hardcode_libdir_flag_spec='-L$libdir'
7564 allow_undefined_flag=unsupported
7565 always_export_symbols=no
7566 enable_shared_with_static_runtimes=yes
7567 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7569 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7571 # If the export-symbols file already is a .def file (1st line
7572 # is EXPORTS), use it as is; otherwise, prepend...
7573 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7574 cp $export_symbols $output_objdir/$soname.def;
7576 echo EXPORTS > $output_objdir/$soname.def;
7577 cat $export_symbols >> $output_objdir/$soname.def;
7579 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7586 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7588 case $cc_basename,$host_cpu in
7589 pgcc*) # Portland Group C compiler
7590 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'
7591 tmp_addflag=' $pic_flag'
7593 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7594 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'
7595 tmp_addflag=' $pic_flag -Mnomain' ;;
7596 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7597 tmp_addflag=' -i_dynamic' ;;
7598 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7599 tmp_addflag=' -i_dynamic -nofor_main' ;;
7600 ifc* | ifort*) # Intel Fortran compiler
7601 tmp_addflag=' -nofor_main' ;;
7603 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7605 if test $supports_anon_versioning = yes; then
7606 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7608 $echo "local: *; };" >> $output_objdir/$libname.ver~
7609 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7617 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7618 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7622 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7627 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7631 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7632 *** create shared libraries on Solaris systems. Therefore, libtool
7633 *** is disabling shared libraries support. We urge you to upgrade GNU
7634 *** binutils to release 2.9.1 or newer. Another option is to modify
7635 *** your PATH or compiler configuration so that the native linker is
7636 *** used, and then restart.
7639 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7648 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7651 hardcode_shlibpath_var=no
7655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 if test "$ld_shlibs" = no; then
7666 hardcode_libdir_flag_spec=
7667 export_dynamic_flag_spec=
7668 whole_archive_flag_spec=
7671 # PORTME fill in a description of your system's linker (not GNU ld)
7674 allow_undefined_flag=unsupported
7675 always_export_symbols=yes
7676 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'
7677 # Note: this linker hardcodes the directories in LIBPATH if there
7678 # are no directories specified by -L.
7679 hardcode_minus_L=yes
7680 if test "$GCC" = yes && test -z "$link_static_flag"; then
7681 # Neither direct hardcoding nor static linking is supported with a
7683 hardcode_direct=unsupported
7688 if test "$host_cpu" = ia64; then
7689 # On IA64, the linker does run time linking by default, so we don't
7690 # have to do anything special.
7691 aix_use_runtimelinking=no
7692 exp_sym_flag='-Bexport'
7695 # If we're using GNU nm, then we don't want the "-C" option.
7696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7697 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7698 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'
7700 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'
7702 aix_use_runtimelinking=no
7704 # Test if we are trying to use run time linking or normal
7705 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7706 # need to do runtime linking.
7707 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7708 for ld_flag in $LDFLAGS; do
7709 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7710 aix_use_runtimelinking=yes
7716 exp_sym_flag='-bexport'
7717 no_entry_flag='-bnoentry'
7720 # When large executables or shared objects are built, AIX ld can
7721 # have problems creating the table of contents. If linking a library
7722 # or program results in "error TOC overflow" add -mminimal-toc to
7723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7728 hardcode_libdir_separator=':'
7729 link_all_deplibs=yes
7731 if test "$GCC" = yes; then
7732 case $host_os in aix4.[012]|aix4.[012].*)
7733 # We only want to do this on AIX 4.2 and lower, the check
7734 # below for broken collect2 doesn't work under 4.3+
7735 collect2name=`${CC} -print-prog-name=collect2`
7736 if test -f "$collect2name" && \
7737 strings "$collect2name" | grep resolve_lib_name >/dev/null
7739 # We have reworked collect2
7742 # We have old collect2
7743 hardcode_direct=unsupported
7744 # It fails to find uninstalled libraries when the uninstalled
7745 # path is not listed in the libpath. Setting hardcode_minus_L
7746 # to unsupported forces relinking
7747 hardcode_minus_L=yes
7748 hardcode_libdir_flag_spec='-L$libdir'
7749 hardcode_libdir_separator=
7752 shared_flag='-shared'
7753 if test "$aix_use_runtimelinking" = yes; then
7754 shared_flag="$shared_flag "'${wl}-G'
7758 if test "$host_cpu" = ia64; then
7759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7760 # chokes on -Wl,-G. The following line is correct:
7763 if test "$aix_use_runtimelinking" = yes; then
7764 shared_flag='${wl}-G'
7766 shared_flag='${wl}-bM:SRE'
7771 # It seems that -bexpall does not export symbols beginning with
7772 # underscore (_), so it is better to generate a list of symbols to export.
7773 always_export_symbols=yes
7774 if test "$aix_use_runtimelinking" = yes; then
7775 # Warning - without using the other runtime loading flags (-brtl),
7776 # -berok will link without error, but may produce a broken library.
7777 allow_undefined_flag='-berok'
7778 # Determine the default libpath from the value encoded in an empty executable.
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7794 rm -f conftest.$ac_objext conftest$ac_exeext
7795 if { (ac_try="$ac_link"
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_link") 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest$ac_exeext &&
7811 $as_test_x conftest$ac_exeext; then
7813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7815 # Check for a 64-bit object if we didn't find anything.
7816 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; }
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7826 conftest$ac_exeext conftest.$ac_ext
7827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7829 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7830 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"
7832 if test "$host_cpu" = ia64; then
7833 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7834 allow_undefined_flag="-z nodefs"
7835 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"
7837 # Determine the default libpath from the value encoded in an empty executable.
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (ac_try="$ac_link"
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_link") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest$ac_exeext &&
7870 $as_test_x conftest$ac_exeext; then
7872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7874 # Check for a 64-bit object if we didn't find anything.
7875 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; }
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7885 conftest$ac_exeext conftest.$ac_ext
7886 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7888 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7889 # Warning - without using the other run time loading flags,
7890 # -berok will link without error, but may produce a broken library.
7891 no_undefined_flag=' ${wl}-bernotok'
7892 allow_undefined_flag=' ${wl}-berok'
7893 # -bexpall does not export symbols beginning with underscore (_)
7894 always_export_symbols=yes
7895 # Exported symbols can be pulled into shared objects from archives
7896 whole_archive_flag_spec=' '
7897 archive_cmds_need_lc=yes
7898 # This is similar to how AIX traditionally builds its shared libraries.
7899 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'
7905 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)'
7906 hardcode_libdir_flag_spec='-L$libdir'
7907 hardcode_minus_L=yes
7908 # see comment about different semantics on the GNU ld section
7913 export_dynamic_flag_spec=-rdynamic
7916 cygwin* | mingw* | pw32*)
7917 # When not using gcc, we currently assume that we are using
7918 # Microsoft Visual C++.
7919 # hardcode_libdir_flag_spec is actually meaningless, as there is
7920 # no search path for DLLs.
7921 hardcode_libdir_flag_spec=' '
7922 allow_undefined_flag=unsupported
7923 # Tell ltmain to make .lib files, not .a files.
7925 # Tell ltmain to make .dll files, not .so files.
7927 # FIXME: Setting linknames here is a bad hack.
7928 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7929 # The linker will automatically build a .lib file if we build a DLL.
7930 old_archive_From_new_cmds='true'
7931 # FIXME: Should let the user specify the lib program.
7932 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7933 fix_srcfile_path='`cygpath -w "$srcfile"`'
7934 enable_shared_with_static_runtimes=yes
7937 darwin* | rhapsody*)
7939 rhapsody* | darwin1.[012])
7940 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7943 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7944 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7946 case ${MACOSX_DEPLOYMENT_TARGET} in
7948 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7951 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7957 archive_cmds_need_lc=no
7959 hardcode_automatic=yes
7960 hardcode_shlibpath_var=unsupported
7961 whole_archive_flag_spec=''
7962 link_all_deplibs=yes
7963 if test "$GCC" = yes ; then
7964 output_verbose_link_cmd='echo'
7965 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7966 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7967 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7968 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}'
7969 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}'
7971 case $cc_basename in
7973 output_verbose_link_cmd='echo'
7974 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7975 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7976 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7977 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}'
7978 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}'
7988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7989 hardcode_libdir_flag_spec='-L$libdir'
7990 hardcode_shlibpath_var=no
7997 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7998 # support. Future versions do this automatically, but an explicit c++rt0.o
7999 # does not break anything, and helps significantly (at the cost of a little
8002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8003 hardcode_libdir_flag_spec='-R$libdir'
8005 hardcode_shlibpath_var=no
8008 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8012 hardcode_minus_L=yes
8013 hardcode_shlibpath_var=no
8016 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8017 freebsd* | kfreebsd*-gnu | dragonfly*)
8018 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8019 hardcode_libdir_flag_spec='-R$libdir'
8021 hardcode_shlibpath_var=no
8025 if test "$GCC" = yes; then
8026 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'
8028 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'
8030 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8031 hardcode_libdir_separator=:
8034 # hardcode_minus_L: Not really in the search PATH,
8035 # but as the default location of the library.
8036 hardcode_minus_L=yes
8037 export_dynamic_flag_spec='${wl}-E'
8041 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8044 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8047 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8053 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8056 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8060 if test "$with_gnu_ld" = no; then
8063 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8064 hardcode_libdir_flag_spec_ld='+b $libdir'
8065 hardcode_libdir_separator=:
8067 hardcode_shlibpath_var=no
8070 hardcode_libdir_flag_spec='-L$libdir'
8072 hardcode_shlibpath_var=no
8074 # hardcode_minus_L: Not really in the search PATH,
8075 # but as the default location of the library.
8076 hardcode_minus_L=yes
8079 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8080 hardcode_libdir_separator=:
8082 export_dynamic_flag_spec='${wl}-E'
8084 # hardcode_minus_L: Not really in the search PATH,
8085 # but as the default location of the library.
8086 hardcode_minus_L=yes
8092 irix5* | irix6* | nonstopux*)
8093 if test "$GCC" = yes; then
8094 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'
8096 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'
8097 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8100 hardcode_libdir_separator=:
8101 link_all_deplibs=yes
8105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8108 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8110 hardcode_libdir_flag_spec='-R$libdir'
8112 hardcode_shlibpath_var=no
8116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8119 hardcode_libdir_separator=:
8120 hardcode_shlibpath_var=no
8125 hardcode_shlibpath_var=no
8126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8128 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8129 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8130 export_dynamic_flag_spec='${wl}-E'
8133 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8135 hardcode_libdir_flag_spec='-R$libdir'
8138 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8139 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8146 hardcode_libdir_flag_spec='-L$libdir'
8147 hardcode_minus_L=yes
8148 allow_undefined_flag=unsupported
8149 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'
8150 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8154 if test "$GCC" = yes; then
8155 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8156 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'
8158 allow_undefined_flag=' -expect_unresolved \*'
8159 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'
8161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8162 hardcode_libdir_separator=:
8165 osf4* | osf5*) # as osf3* with the addition of -msym flag
8166 if test "$GCC" = yes; then
8167 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8168 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'
8169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8171 allow_undefined_flag=' -expect_unresolved \*'
8172 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'
8173 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8174 $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'
8176 # Both c and cxx compiler support -rpath directly
8177 hardcode_libdir_flag_spec='-rpath $libdir'
8179 hardcode_libdir_separator=:
8183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8184 hardcode_shlibpath_var=no
8185 export_dynamic_flag_spec='${wl}-Bexport'
8186 runpath_var=LD_RUN_PATH
8187 hardcode_runpath_var=yes
8191 no_undefined_flag=' -z text'
8192 if test "$GCC" = yes; then
8194 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8195 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8196 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8199 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8200 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8201 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8203 hardcode_libdir_flag_spec='-R$libdir'
8204 hardcode_shlibpath_var=no
8206 solaris2.[0-5] | solaris2.[0-5].*) ;;
8208 # The compiler driver will combine linker options so we
8209 # cannot just pass the convience library names through
8210 # without $wl, iff we do not link with $LD.
8211 # Luckily, gcc supports the same syntax we need for Sun Studio.
8212 # Supported since Solaris 2.6 (maybe 2.5.1?)
8215 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8217 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' ;;
8220 link_all_deplibs=yes
8224 if test "x$host_vendor" = xsequent; then
8225 # Use $CC to link under sequent, because it throws in some extra .o
8226 # files that make .init and .fini sections work.
8227 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8229 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8231 hardcode_libdir_flag_spec='-L$libdir'
8233 hardcode_minus_L=yes
8234 hardcode_shlibpath_var=no
8238 case $host_vendor in
8240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8241 hardcode_direct=yes # is this really true???
8244 ## LD is ld it makes a PLAMLIB
8245 ## CC just makes a GrossModule.
8246 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8247 reload_cmds='$CC -r -o $output$reload_objs'
8251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8252 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8255 runpath_var='LD_RUN_PATH'
8256 hardcode_shlibpath_var=no
8260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8261 hardcode_shlibpath_var=no
8262 export_dynamic_flag_spec='-Bexport'
8266 if test -d /usr/nec; then
8267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8268 hardcode_shlibpath_var=no
8269 runpath_var=LD_RUN_PATH
8270 hardcode_runpath_var=yes
8276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_shlibpath_var=no
8280 hardcode_runpath_var=yes
8281 runpath_var=LD_RUN_PATH
8284 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8285 no_undefined_flag='${wl}-z ${wl}text'
8286 if test "$GCC" = yes; then
8287 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8289 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8291 runpath_var='LD_RUN_PATH'
8292 hardcode_shlibpath_var=no
8296 no_undefined_flag=' -z text'
8297 # $CC -shared without GNU ld will not create a library from C++
8298 # object files and a static libstdc++, better avoid it by now
8299 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8301 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8302 hardcode_libdir_flag_spec=
8303 hardcode_shlibpath_var=no
8304 runpath_var='LD_RUN_PATH'
8308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8309 hardcode_libdir_flag_spec='-L$libdir'
8310 hardcode_shlibpath_var=no
8319 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8320 echo "${ECHO_T}$ld_shlibs" >&6; }
8321 test "$ld_shlibs" = no && can_build_shared=no
8323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8324 if test "$GCC" = yes; then
8325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8329 # Do we need to explicitly link libc?
8331 case "x$archive_cmds_need_lc" in
8333 # Assume -lc should be added
8334 archive_cmds_need_lc=yes
8336 if test "$enable_shared" = yes && test "$GCC" = yes; then
8337 case $archive_cmds in
8339 # FIXME: we may have to deal with multi-command sequences.
8342 # Test whether the compiler implicitly links with -lc since on some
8343 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8344 # to ld, don't add -lc before -lgcc.
8345 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8346 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } 2>conftest.err; then
8357 libobjs=conftest.$ac_objext
8359 wl=$lt_prog_compiler_wl
8365 lt_save_allow_undefined_flag=$allow_undefined_flag
8366 allow_undefined_flag=
8367 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8368 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }
8373 archive_cmds_need_lc=no
8375 archive_cmds_need_lc=yes
8377 allow_undefined_flag=$lt_save_allow_undefined_flag
8379 cat conftest.err 1>&5
8382 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8383 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8390 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8391 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8393 libname_spec='lib$name'
8401 shlibpath_overrides_runpath=unknown
8403 dynamic_linker="$host_os ld.so"
8404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8405 if test "$GCC" = yes; then
8406 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8407 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8408 # if the path contains ";" then we assume it to be the separator
8409 # otherwise default to the standard path separator (i.e. ":") - it is
8410 # assumed that no part of a normal pathname contains ";" but that should
8411 # okay in the real world where ";" in dirpaths is itself problematic.
8412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8417 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8419 need_lib_prefix=unknown
8420 hardcode_into_libs=no
8422 # when you set need_version to no, make sure it does not cause -set_version
8423 # flags to be left without arguments
8424 need_version=unknown
8429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8430 shlibpath_var=LIBPATH
8432 # AIX 3 has no versioning support, so we append a major version to the name.
8433 soname_spec='${libname}${release}${shared_ext}$major'
8440 hardcode_into_libs=yes
8441 if test "$host_cpu" = ia64; then
8442 # AIX 5 supports IA64
8443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8444 shlibpath_var=LD_LIBRARY_PATH
8446 # With GCC up to 2.95.x, collect2 would create an import file
8447 # for dependence libraries. The import file would start with
8448 # the line `#! .'. This would cause the generated library to
8449 # depend on `.', always an invalid library. This was fixed in
8450 # development snapshots of GCC prior to 3.0.
8452 aix4 | aix4.[01] | aix4.[01].*)
8453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8455 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8463 # soname into executable. Probably we can add versioning support to
8464 # collect2, so additional links can be useful in future.
8465 if test "$aix_use_runtimelinking" = yes; then
8466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8467 # instead of lib<name>.a to let people know that these are not
8468 # typical AIX shared libraries.
8469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8471 # We preserve .a as extension for shared libraries through AIX4.2
8472 # and later when we are not doing run time linking.
8473 library_names_spec='${libname}${release}.a $libname.a'
8474 soname_spec='${libname}${release}${shared_ext}$major'
8476 shlibpath_var=LIBPATH
8481 library_names_spec='$libname.ixlibrary $libname.a'
8482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8483 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'
8487 library_names_spec='${libname}${shared_ext}'
8488 dynamic_linker="$host_os ld.so"
8489 shlibpath_var=LIBRARY_PATH
8495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8496 soname_spec='${libname}${release}${shared_ext}$major'
8497 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8498 shlibpath_var=LD_LIBRARY_PATH
8499 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8500 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8501 # the default ld.so.conf also contains /usr/contrib/lib and
8502 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8503 # libtool to hard-code these into programs
8506 cygwin* | mingw* | pw32*)
8507 version_type=windows
8512 case $GCC,$host_os in
8513 yes,cygwin* | yes,mingw* | yes,pw32*)
8514 library_names_spec='$libname.dll.a'
8515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8516 postinstall_cmds='base_file=`basename \${file}`~
8517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8518 dldir=$destdir/`dirname \$dlpath`~
8519 test -d \$dldir || mkdir -p \$dldir~
8520 $install_prog $dir/$dlname \$dldir/$dlname~
8521 chmod a+x \$dldir/$dlname'
8522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8523 dlpath=$dir/\$dldll~
8525 shlibpath_overrides_runpath=yes
8529 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8530 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8531 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8534 # MinGW DLLs use traditional 'lib' prefix
8535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8536 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8537 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8538 # It is most probably a Windows format PATH printed by
8539 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8540 # path with ; separators, and with drive letters. We can handle the
8541 # drive letters (cygwin fileutils understands them), so leave them,
8542 # especially as we might pass files found there to a mingw objdump,
8543 # which wouldn't understand a cygwinified path. Ahh.
8544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8550 # pw32 DLLs use 'pw' prefix rather than 'lib'
8551 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8557 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8560 dynamic_linker='Win32 ld.exe'
8561 # FIXME: first we should search . and the directory the executable is in
8565 darwin* | rhapsody*)
8566 dynamic_linker="$host_os dyld"
8570 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8571 soname_spec='${libname}${release}${major}$shared_ext'
8572 shlibpath_overrides_runpath=yes
8573 shlibpath_var=DYLD_LIBRARY_PATH
8574 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8575 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8576 if test "$GCC" = yes; then
8577 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"`
8579 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8581 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8589 soname_spec='${libname}${release}${shared_ext}$major'
8590 shlibpath_var=LD_LIBRARY_PATH
8601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8602 soname_spec='${libname}${release}${shared_ext}$major'
8603 shlibpath_var=LD_LIBRARY_PATH
8604 shlibpath_overrides_runpath=no
8605 hardcode_into_libs=yes
8606 dynamic_linker='GNU ld.so'
8609 freebsd* | dragonfly*)
8610 # DragonFly does not have aout. When/if they implement a new
8611 # versioning mechanism, adjust this.
8612 if test -x /usr/bin/objformat; then
8613 objformat=`/usr/bin/objformat`
8616 freebsd[123]*) objformat=aout ;;
8620 version_type=freebsd-$objformat
8621 case $version_type in
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8632 shlibpath_var=LD_LIBRARY_PATH
8635 shlibpath_overrides_runpath=yes
8637 freebsd3.[01]* | freebsdelf3.[01]*)
8638 shlibpath_overrides_runpath=yes
8639 hardcode_into_libs=yes
8642 shlibpath_overrides_runpath=no
8643 hardcode_into_libs=yes
8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 shlibpath_var=LD_LIBRARY_PATH
8655 hardcode_into_libs=yes
8658 hpux9* | hpux10* | hpux11*)
8659 # Give a soname corresponding to the major version so that dld.sl refuses to
8660 # link against other versions.
8667 hardcode_into_libs=yes
8668 dynamic_linker="$host_os dld.so"
8669 shlibpath_var=LD_LIBRARY_PATH
8670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 if test "X$HPUX_IA64_MODE" = X32; then
8674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8682 hardcode_into_libs=yes
8683 dynamic_linker="$host_os dld.sl"
8684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8693 dynamic_linker="$host_os dld.sl"
8694 shlibpath_var=SHLIB_PATH
8695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8697 soname_spec='${libname}${release}${shared_ext}$major'
8700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8701 postinstall_cmds='chmod 555 $lib'
8704 irix5* | irix6* | nonstopux*)
8706 nonstopux*) version_type=nonstopux ;;
8708 if test "$lt_cv_prog_gnu_ld" = yes; then
8716 soname_spec='${libname}${release}${shared_ext}$major'
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8719 irix5* | nonstopux*)
8723 case $LD in # libtool.m4 will add one of these switches to LD
8724 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8725 libsuff= shlibsuff= libmagic=32-bit;;
8726 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8727 libsuff=32 shlibsuff=N32 libmagic=N32;;
8728 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8729 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8730 *) libsuff= shlibsuff= libmagic=never-match;;
8734 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8735 shlibpath_overrides_runpath=no
8736 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8737 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8738 hardcode_into_libs=yes
8741 # No shared lib support for Linux oldld, aout, or coff.
8742 linux*oldld* | linux*aout* | linux*coff*)
8746 # This must be Linux ELF.
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8754 shlibpath_var=LD_LIBRARY_PATH
8755 shlibpath_overrides_runpath=no
8756 # This implies no fast_install, which is unacceptable.
8757 # Some rework will be needed to allow for fast_install
8758 # before this can be enabled.
8759 hardcode_into_libs=yes
8761 # Append ld.so.conf contents to the search path
8762 if test -f /etc/ld.so.conf; then
8763 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' ' '`
8764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8767 # We used to test for /lib/ld.so.1 and disable shared libraries on
8768 # powerpc, because MkLinux only supported shared libraries with the
8769 # GNU dynamic linker. Since this was broken with cross compilers,
8770 # most powerpc-linux boxes support dynamic linking these days and
8771 # people can always --disable-shared, the test was removed, and we
8772 # assume the GNU/Linux dynamic linker is in use.
8773 dynamic_linker='GNU/Linux ld.so'
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 shlibpath_overrides_runpath=no
8784 hardcode_into_libs=yes
8785 dynamic_linker='GNU ld.so'
8792 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8795 dynamic_linker='NetBSD (a.out) ld.so'
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8798 soname_spec='${libname}${release}${shared_ext}$major'
8799 dynamic_linker='NetBSD ld.elf_so'
8801 shlibpath_var=LD_LIBRARY_PATH
8802 shlibpath_overrides_runpath=yes
8803 hardcode_into_libs=yes
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 shlibpath_var=LD_LIBRARY_PATH
8810 shlibpath_overrides_runpath=yes
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 shlibpath_overrides_runpath=yes
8826 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8828 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8829 *) need_version=no ;;
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8833 shlibpath_var=LD_LIBRARY_PATH
8834 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8836 openbsd2.[89] | openbsd2.[89].*)
8837 shlibpath_overrides_runpath=no
8840 shlibpath_overrides_runpath=yes
8844 shlibpath_overrides_runpath=yes
8849 libname_spec='$name'
8852 library_names_spec='$libname${shared_ext} $libname.a'
8853 dynamic_linker='OS/2 ld.exe'
8854 shlibpath_var=LIBPATH
8857 osf3* | osf4* | osf5*)
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8865 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8870 soname_spec='${libname}${release}${shared_ext}$major'
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 shlibpath_var=LD_LIBRARY_PATH
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 shlibpath_overrides_runpath=yes
8883 hardcode_into_libs=yes
8884 # ldd complains unless libraries are executable
8885 postinstall_cmds='chmod +x $lib'
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=yes
8894 if test "$with_gnu_ld" = yes; then
8900 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 case $host_vendor in
8907 shlibpath_overrides_runpath=no
8909 export_dynamic_flag_spec='${wl}-Blargedynsym'
8910 runpath_var=LD_RUN_PATH
8918 shlibpath_overrides_runpath=no
8919 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8925 if test -d /usr/nec ;then
8927 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8928 soname_spec='$libname${shared_ext}.$major'
8929 shlibpath_var=LD_LIBRARY_PATH
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 shlibpath_var=LD_LIBRARY_PATH
8944 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8945 echo "${ECHO_T}$dynamic_linker" >&6; }
8946 test "$dynamic_linker" = no && can_build_shared=no
8948 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8949 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8951 if test -n "$hardcode_libdir_flag_spec" || \
8952 test -n "$runpath_var" || \
8953 test "X$hardcode_automatic" = "Xyes" ; then
8955 # We can hardcode non-existant directories.
8956 if test "$hardcode_direct" != no &&
8957 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8958 # have to relink, otherwise we might link with an installed library
8959 # when we should be linking with a yet-to-be-installed one
8960 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8961 test "$hardcode_minus_L" != no; then
8962 # Linking always hardcodes the temporary library directory.
8963 hardcode_action=relink
8965 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8966 hardcode_action=immediate
8969 # We cannot hardcode anything, or else we can only hardcode existing
8971 hardcode_action=unsupported
8973 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8974 echo "${ECHO_T}$hardcode_action" >&6; }
8976 if test "$hardcode_action" = relink; then
8977 # Fast installation is not supported
8978 enable_fast_install=no
8979 elif test "$shlibpath_overrides_runpath" = yes ||
8980 test "$enable_shared" = no; then
8981 # Fast installation is not necessary
8982 enable_fast_install=needless
8987 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8988 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8989 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8990 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8991 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8992 { echo "$as_me:$LINENO: result: yes" >&5
8993 echo "${ECHO_T}yes" >&6; }
8995 # FIXME - insert some real tests, host_os isn't really good enough
8998 if test -n "$STRIP" ; then
8999 striplib="$STRIP -x"
9000 { echo "$as_me:$LINENO: result: yes" >&5
9001 echo "${ECHO_T}yes" >&6; }
9003 { echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6; }
9008 { echo "$as_me:$LINENO: result: no" >&5
9009 echo "${ECHO_T}no" >&6; }
9014 if test "x$enable_dlopen" != xyes; then
9015 enable_dlopen=unknown
9016 enable_dlopen_self=unknown
9017 enable_dlopen_self_static=unknown
9024 lt_cv_dlopen="load_add_on"
9026 lt_cv_dlopen_self=yes
9030 lt_cv_dlopen="LoadLibrary"
9035 lt_cv_dlopen="dlopen"
9040 # if libdl is installed we need to link against it
9041 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9042 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9043 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 ac_check_lib_save_LIBS=$LIBS
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9055 /* Override any GCC internal prototype to avoid an error.
9056 Use char because int might match the return type of a GCC
9057 builtin and then its argument prototype would still apply. */
9070 rm -f conftest.$ac_objext conftest$ac_exeext
9071 if { (ac_try="$ac_link"
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_link") 2>conftest.er1
9079 grep -v '^ *+' conftest.er1 >conftest.err
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } && {
9084 test -z "$ac_c_werror_flag" ||
9085 test ! -s conftest.err
9086 } && test -s conftest$ac_exeext &&
9087 $as_test_x conftest$ac_exeext; then
9088 ac_cv_lib_dl_dlopen=yes
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_cv_lib_dl_dlopen=no
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097 conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9100 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9101 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9102 if test $ac_cv_lib_dl_dlopen = yes; then
9103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9108 lt_cv_dlopen_self=yes
9115 { echo "$as_me:$LINENO: checking for shl_load" >&5
9116 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9117 if test "${ac_cv_func_shl_load+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 cat >conftest.$ac_ext <<_ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9128 #define shl_load innocuous_shl_load
9130 /* System header to define __stub macros and hopefully few prototypes,
9131 which can conflict with char shl_load (); below.
9132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9133 <limits.h> exists even on freestanding compilers. */
9136 # include <limits.h>
9138 # include <assert.h>
9143 /* Override any GCC internal prototype to avoid an error.
9144 Use char because int might match the return type of a GCC
9145 builtin and then its argument prototype would still apply. */
9150 /* The GNU C library defines this for functions which it implements
9151 to always fail with ENOSYS. Some functions are actually named
9152 something starting with __ and the normal name is an alias. */
9153 #if defined __stub_shl_load || defined __stub___shl_load
9165 rm -f conftest.$ac_objext conftest$ac_exeext
9166 if { (ac_try="$ac_link"
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_link") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest$ac_exeext &&
9182 $as_test_x conftest$ac_exeext; then
9183 ac_cv_func_shl_load=yes
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 ac_cv_func_shl_load=no
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9194 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9195 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9196 if test $ac_cv_func_shl_load = yes; then
9197 lt_cv_dlopen="shl_load"
9199 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9200 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9201 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 ac_check_lib_save_LIBS=$LIBS
9206 cat >conftest.$ac_ext <<_ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9213 /* Override any GCC internal prototype to avoid an error.
9214 Use char because int might match the return type of a GCC
9215 builtin and then its argument prototype would still apply. */
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (ac_try="$ac_link"
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_link") 2>conftest.er1
9237 grep -v '^ *+' conftest.er1 >conftest.err
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } && {
9242 test -z "$ac_c_werror_flag" ||
9243 test ! -s conftest.err
9244 } && test -s conftest$ac_exeext &&
9245 $as_test_x conftest$ac_exeext; then
9246 ac_cv_lib_dld_shl_load=yes
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_cv_lib_dld_shl_load=no
9254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9255 conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9259 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9260 if test $ac_cv_lib_dld_shl_load = yes; then
9261 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9263 { echo "$as_me:$LINENO: checking for dlopen" >&5
9264 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9265 if test "${ac_cv_func_dlopen+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9276 #define dlopen innocuous_dlopen
9278 /* System header to define __stub macros and hopefully few prototypes,
9279 which can conflict with char dlopen (); below.
9280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9281 <limits.h> exists even on freestanding compilers. */
9284 # include <limits.h>
9286 # include <assert.h>
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9298 /* The GNU C library defines this for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined __stub_dlopen || defined __stub___dlopen
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_link") 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest$ac_exeext &&
9330 $as_test_x conftest$ac_exeext; then
9331 ac_cv_func_dlopen=yes
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_cv_func_dlopen=no
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340 conftest$ac_exeext conftest.$ac_ext
9342 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9343 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9344 if test $ac_cv_func_dlopen = yes; then
9345 lt_cv_dlopen="dlopen"
9347 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 ac_check_lib_save_LIBS=$LIBS
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (ac_try="$ac_link"
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_link") 2>conftest.er1
9385 grep -v '^ *+' conftest.er1 >conftest.err
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } && {
9390 test -z "$ac_c_werror_flag" ||
9391 test ! -s conftest.err
9392 } && test -s conftest$ac_exeext &&
9393 $as_test_x conftest$ac_exeext; then
9394 ac_cv_lib_dl_dlopen=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ac_cv_lib_dl_dlopen=no
9402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403 conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9406 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9408 if test $ac_cv_lib_dl_dlopen = yes; then
9409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9411 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9412 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9413 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 ac_check_lib_save_LIBS=$LIBS
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9425 /* Override any GCC internal prototype to avoid an error.
9426 Use char because int might match the return type of a GCC
9427 builtin and then its argument prototype would still apply. */
9440 rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (ac_try="$ac_link"
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_link") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest$ac_exeext &&
9457 $as_test_x conftest$ac_exeext; then
9458 ac_cv_lib_svld_dlopen=yes
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_cv_lib_svld_dlopen=no
9466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9467 conftest$ac_exeext conftest.$ac_ext
9468 LIBS=$ac_check_lib_save_LIBS
9470 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9471 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9472 if test $ac_cv_lib_svld_dlopen = yes; then
9473 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9475 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9476 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9477 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 ac_check_lib_save_LIBS=$LIBS
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest$ac_exeext &&
9521 $as_test_x conftest$ac_exeext; then
9522 ac_cv_lib_dld_dld_link=yes
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_cv_lib_dld_dld_link=no
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9534 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9535 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9536 if test $ac_cv_lib_dld_dld_link = yes; then
9537 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9558 if test "x$lt_cv_dlopen" != xno; then
9564 case $lt_cv_dlopen in
9566 save_CPPFLAGS="$CPPFLAGS"
9567 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9569 save_LDFLAGS="$LDFLAGS"
9570 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9573 LIBS="$lt_cv_dlopen_libs $LIBS"
9575 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9576 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9577 if test "${lt_cv_dlopen_self+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 if test "$cross_compiling" = yes; then :
9581 lt_cv_dlopen_self=cross
9583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9584 lt_status=$lt_dlunknown
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9586 "configure"
9587 #include "confdefs.h"
9596 # define LT_DLGLOBAL RTLD_GLOBAL
9599 # define LT_DLGLOBAL DL_GLOBAL
9601 # define LT_DLGLOBAL 0
9605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9606 find out it does not work in some platform. */
9607 #ifndef LT_DLLAZY_OR_NOW
9609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9612 # define LT_DLLAZY_OR_NOW DL_LAZY
9615 # define LT_DLLAZY_OR_NOW RTLD_NOW
9618 # define LT_DLLAZY_OR_NOW DL_NOW
9620 # define LT_DLLAZY_OR_NOW 0
9628 extern "C" void exit (int);
9631 void fnord() { int i=42;}
9634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9635 int status = $lt_dlunknown;
9639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9640 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9641 /* dlclose (self); */
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9652 (./conftest; exit; ) >&5 2>/dev/null
9655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9657 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9660 # compilation failed
9661 lt_cv_dlopen_self=no
9668 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9669 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9671 if test "x$lt_cv_dlopen_self" = xyes; then
9672 LDFLAGS="$LDFLAGS $link_static_flag"
9673 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9674 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9675 if test "${lt_cv_dlopen_self_static+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 if test "$cross_compiling" = yes; then :
9679 lt_cv_dlopen_self_static=cross
9681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9682 lt_status=$lt_dlunknown
9683 cat > conftest.$ac_ext <<EOF
9684 #line 9684 "configure"
9685 #include "confdefs.h"
9694 # define LT_DLGLOBAL RTLD_GLOBAL
9697 # define LT_DLGLOBAL DL_GLOBAL
9699 # define LT_DLGLOBAL 0
9703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9704 find out it does not work in some platform. */
9705 #ifndef LT_DLLAZY_OR_NOW
9707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9710 # define LT_DLLAZY_OR_NOW DL_LAZY
9713 # define LT_DLLAZY_OR_NOW RTLD_NOW
9716 # define LT_DLLAZY_OR_NOW DL_NOW
9718 # define LT_DLLAZY_OR_NOW 0
9726 extern "C" void exit (int);
9729 void fnord() { int i=42;}
9732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9733 int status = $lt_dlunknown;
9737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9739 /* dlclose (self); */
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9750 (./conftest; exit; ) >&5 2>/dev/null
9753 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9754 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9755 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9758 # compilation failed
9759 lt_cv_dlopen_self_static=no
9766 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9767 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9770 CPPFLAGS="$save_CPPFLAGS"
9771 LDFLAGS="$save_LDFLAGS"
9776 case $lt_cv_dlopen_self in
9777 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9778 *) enable_dlopen_self=unknown ;;
9781 case $lt_cv_dlopen_self_static in
9782 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9783 *) enable_dlopen_self_static=unknown ;;
9788 # Report which librarie types wil actually be built
9789 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9790 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9791 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9792 echo "${ECHO_T}$can_build_shared" >&6; }
9794 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9795 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9796 test "$can_build_shared" = "no" && enable_shared=no
9798 # On AIX, shared libraries and static libraries use the same namespace, and
9799 # are all built from PIC.
9802 test "$enable_shared" = yes && enable_static=no
9803 if test -n "$RANLIB"; then
9804 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9805 postinstall_cmds='$RANLIB $lib'
9810 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9811 test "$enable_shared" = yes && enable_static=no
9815 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9816 echo "${ECHO_T}$enable_shared" >&6; }
9818 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9819 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9820 # Make sure either enable_shared or enable_static is yes.
9821 test "$enable_shared" = yes || enable_static=yes
9822 { echo "$as_me:$LINENO: result: $enable_static" >&5
9823 echo "${ECHO_T}$enable_static" >&6; }
9825 # The else clause should only fire when bootstrapping the
9826 # libtool distribution, otherwise you forgot to ship ltmain.sh
9827 # with your package, and you will get complaints that there are
9828 # no rules to generate ltmain.sh.
9829 if test -f "$ltmain"; then
9830 # See if we are running on zsh, and set the options which allow our commands through
9831 # without removal of \ escapes.
9832 if test -n "${ZSH_VERSION+set}" ; then
9833 setopt NO_GLOB_SUBST
9835 # Now quote all the things that may contain metacharacters while being
9836 # careful not to overquote the AC_SUBSTed values. We take copies of the
9837 # variables and quote the copies for generation of the libtool script.
9838 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9840 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9841 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9842 deplibs_check_method reload_flag reload_cmds need_locks \
9843 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9844 lt_cv_sys_global_symbol_to_c_name_address \
9845 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9846 old_postinstall_cmds old_postuninstall_cmds \
9850 lt_prog_compiler_wl \
9851 lt_prog_compiler_pic \
9852 lt_prog_compiler_static \
9853 lt_prog_compiler_no_builtin_flag \
9854 export_dynamic_flag_spec \
9855 thread_safe_flag_spec \
9856 whole_archive_flag_spec \
9857 enable_shared_with_static_runtimes \
9859 old_archive_from_new_cmds \
9864 compiler_lib_search_path \
9866 archive_expsym_cmds \
9868 postuninstall_cmds \
9869 old_archive_from_expsyms_cmds \
9870 allow_undefined_flag \
9872 export_symbols_cmds \
9873 hardcode_libdir_flag_spec \
9874 hardcode_libdir_flag_spec_ld \
9875 hardcode_libdir_separator \
9876 hardcode_automatic \
9878 module_expsym_cmds \
9879 lt_cv_prog_compiler_c_o \
9884 old_archive_cmds | \
9885 old_archive_from_new_cmds | \
9887 archive_expsym_cmds | \
9889 module_expsym_cmds | \
9890 old_archive_from_expsyms_cmds | \
9891 export_symbols_cmds | \
9892 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9893 postinstall_cmds | postuninstall_cmds | \
9894 old_postinstall_cmds | old_postuninstall_cmds | \
9895 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9896 # Double-quote double-evaled strings.
9897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9906 *'\$0 --fallback-echo"')
9907 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9912 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9914 { echo "$as_me:$LINENO: creating $ofile" >&5
9915 echo "$as_me: creating $ofile" >&6;}
9917 cat <<__EOF__ >> "$cfgfile"
9920 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9921 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9922 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9924 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9925 # Free Software Foundation, Inc.
9927 # This file is part of GNU Libtool:
9928 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9930 # This program is free software; you can redistribute it and/or modify
9931 # it under the terms of the GNU General Public License as published by
9932 # the Free Software Foundation; either version 2 of the License, or
9933 # (at your option) any later version.
9935 # This program is distributed in the hope that it will be useful, but
9936 # WITHOUT ANY WARRANTY; without even the implied warranty of
9937 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9938 # General Public License for more details.
9940 # You should have received a copy of the GNU General Public License
9941 # along with this program; if not, write to the Free Software
9942 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9944 # As a special exception to the GNU General Public License, if you
9945 # distribute this file as part of a program that contains a
9946 # configuration script generated by Autoconf, you may include it under
9947 # the same distribution terms that you use for the rest of that program.
9949 # A sed program that does not truncate output.
9952 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9953 Xsed="$SED -e 1s/^X//"
9955 # The HP-UX ksh and POSIX shell print the target directory to stdout
9957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9959 # The names of the tagged configurations supported by this script.
9962 # ### BEGIN LIBTOOL CONFIG
9964 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9966 # Shell to use when invoking shell scripts.
9969 # Whether or not to build shared libraries.
9970 build_libtool_libs=$enable_shared
9972 # Whether or not to build static libraries.
9973 build_old_libs=$enable_static
9975 # Whether or not to add -lc for building shared libraries.
9976 build_libtool_need_lc=$archive_cmds_need_lc
9978 # Whether or not to disallow shared libs when runtime libs are static
9979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9981 # Whether or not to optimize for fast installation.
9982 fast_install=$enable_fast_install
9985 host_alias=$host_alias
9990 build_alias=$build_alias
9994 # An echo program that does not interpret backslashes.
9999 AR_FLAGS=$lt_AR_FLAGS
10004 # A language-specific compiler.
10007 # Is the compiler the GNU C compiler?
10013 # The linker used to build libraries.
10016 # Whether we need hard or soft links.
10019 # A BSD-compatible nm program.
10022 # A symbol stripping program
10025 # Used to examine libraries when file_magic_cmd begins "file"
10026 MAGIC_CMD=$MAGIC_CMD
10028 # Used on cygwin: DLL creation program.
10031 # Used on cygwin: object dumper.
10034 # Used on cygwin: assembler.
10037 # The name of the directory that contains temporary libtool files.
10040 # How to create reloadable object files.
10041 reload_flag=$lt_reload_flag
10042 reload_cmds=$lt_reload_cmds
10044 # How to pass a linker flag through the compiler.
10045 wl=$lt_lt_prog_compiler_wl
10047 # Object file suffix (normally "o").
10048 objext="$ac_objext"
10050 # Old archive suffix (normally "a").
10053 # Shared library suffix (normally ".so").
10054 shrext_cmds='$shrext_cmds'
10056 # Executable file suffix (normally "").
10059 # Additional compiler flags for building library objects.
10060 pic_flag=$lt_lt_prog_compiler_pic
10063 # What is the maximum length of a command?
10064 max_cmd_len=$lt_cv_sys_max_cmd_len
10066 # Does compiler simultaneously support -c and -o options?
10067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10069 # Must we lock files when doing compilation?
10070 need_locks=$lt_need_locks
10072 # Do we need the lib prefix for modules?
10073 need_lib_prefix=$need_lib_prefix
10075 # Do we need a version for libraries?
10076 need_version=$need_version
10078 # Whether dlopen is supported.
10079 dlopen_support=$enable_dlopen
10081 # Whether dlopen of programs is supported.
10082 dlopen_self=$enable_dlopen_self
10084 # Whether dlopen of statically linked programs is supported.
10085 dlopen_self_static=$enable_dlopen_self_static
10087 # Compiler flag to prevent dynamic linking.
10088 link_static_flag=$lt_lt_prog_compiler_static
10090 # Compiler flag to turn off builtin functions.
10091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10093 # Compiler flag to allow reflexive dlopens.
10094 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10096 # Compiler flag to generate shared objects directly from archives.
10097 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10099 # Compiler flag to generate thread-safe objects.
10100 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10102 # Library versioning type.
10103 version_type=$version_type
10105 # Format of library name prefix.
10106 libname_spec=$lt_libname_spec
10108 # List of archive names. First name is the real one, the rest are links.
10109 # The last name is the one that the linker finds with -lNAME.
10110 library_names_spec=$lt_library_names_spec
10112 # The coded name of the library, if different from the real name.
10113 soname_spec=$lt_soname_spec
10115 # Commands used to build and install an old-style archive.
10117 old_archive_cmds=$lt_old_archive_cmds
10118 old_postinstall_cmds=$lt_old_postinstall_cmds
10119 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10121 # Create an old-style archive from a shared archive.
10122 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10124 # Create a temporary old-style archive to link instead of a shared archive.
10125 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10127 # Commands used to build and install a shared archive.
10128 archive_cmds=$lt_archive_cmds
10129 archive_expsym_cmds=$lt_archive_expsym_cmds
10130 postinstall_cmds=$lt_postinstall_cmds
10131 postuninstall_cmds=$lt_postuninstall_cmds
10133 # Commands used to build a loadable module (assumed same as above if empty)
10134 module_cmds=$lt_module_cmds
10135 module_expsym_cmds=$lt_module_expsym_cmds
10137 # Commands to strip libraries.
10138 old_striplib=$lt_old_striplib
10139 striplib=$lt_striplib
10141 # Dependencies to place before the objects being linked to create a
10143 predep_objects=$lt_predep_objects
10145 # Dependencies to place after the objects being linked to create a
10147 postdep_objects=$lt_postdep_objects
10149 # Dependencies to place before the objects being linked to create a
10151 predeps=$lt_predeps
10153 # Dependencies to place after the objects being linked to create a
10155 postdeps=$lt_postdeps
10157 # The library search path used internally by the compiler when linking
10158 # a shared library.
10159 compiler_lib_search_path=$lt_compiler_lib_search_path
10161 # Method to check whether dependent libraries are shared objects.
10162 deplibs_check_method=$lt_deplibs_check_method
10164 # Command to use when deplibs_check_method == file_magic.
10165 file_magic_cmd=$lt_file_magic_cmd
10167 # Flag that allows shared libraries with undefined symbols to be built.
10168 allow_undefined_flag=$lt_allow_undefined_flag
10170 # Flag that forces no undefined symbols.
10171 no_undefined_flag=$lt_no_undefined_flag
10173 # Commands used to finish a libtool library installation in a directory.
10174 finish_cmds=$lt_finish_cmds
10176 # Same as above, but a single script fragment to be evaled but not shown.
10177 finish_eval=$lt_finish_eval
10179 # Take the output of nm and produce a listing of raw symbols and C names.
10180 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10182 # Transform the output of nm in a proper C declaration
10183 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10185 # Transform the output of nm in a C name address pair
10186 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10188 # This is the shared library runtime path variable.
10189 runpath_var=$runpath_var
10191 # This is the shared library path variable.
10192 shlibpath_var=$shlibpath_var
10194 # Is shlibpath searched before the hard-coded library search path?
10195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10197 # How to hardcode a shared library path into an executable.
10198 hardcode_action=$hardcode_action
10200 # Whether we should hardcode library paths into libraries.
10201 hardcode_into_libs=$hardcode_into_libs
10203 # Flag to hardcode \$libdir into a binary during linking.
10204 # This must work even if \$libdir does not exist.
10205 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10207 # If ld is used when linking, flag to hardcode \$libdir into
10208 # a binary during linking. This must work even if \$libdir does
10210 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10212 # Whether we need a single -rpath flag with a separated argument.
10213 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10215 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10216 # resulting binary.
10217 hardcode_direct=$hardcode_direct
10219 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10220 # resulting binary.
10221 hardcode_minus_L=$hardcode_minus_L
10223 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10224 # the resulting binary.
10225 hardcode_shlibpath_var=$hardcode_shlibpath_var
10227 # Set to yes if building a shared library automatically hardcodes DIR into the library
10228 # and all subsequent libraries and executables linked against it.
10229 hardcode_automatic=$hardcode_automatic
10231 # Variables whose values should be saved in libtool wrapper scripts and
10232 # restored at relink time.
10233 variables_saved_for_relink="$variables_saved_for_relink"
10235 # Whether libtool must link a program against all its dependency libraries.
10236 link_all_deplibs=$link_all_deplibs
10238 # Compile-time system search path for libraries
10239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10241 # Run-time system search path for libraries
10242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10244 # Fix the shell variable \$srcfile for the compiler.
10245 fix_srcfile_path="$fix_srcfile_path"
10247 # Set to yes if exported symbols are required.
10248 always_export_symbols=$always_export_symbols
10250 # The commands to list exported symbols.
10251 export_symbols_cmds=$lt_export_symbols_cmds
10253 # The commands to extract the exported symbol list from a shared archive.
10254 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10256 # Symbols that should not be listed in the preloaded symbols.
10257 exclude_expsyms=$lt_exclude_expsyms
10259 # Symbols that must always be exported.
10260 include_expsyms=$lt_include_expsyms
10262 # ### END LIBTOOL CONFIG
10269 cat <<\EOF >> "$cfgfile"
10271 # AIX sometimes has problems with the GCC collect2 program. For some
10272 # reason, if we set the COLLECT_NAMES environment variable, the problems
10273 # vanish in a puff of smoke.
10274 if test "X${COLLECT_NAMES+set}" != Xset; then
10276 export COLLECT_NAMES
10282 # We use sed instead of cat because bash on DJGPP gets confused if
10283 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10284 # text mode, it properly converts lines to CR/LF. This bash problem
10285 # is reportedly fixed, but why not run on old versions too?
10286 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10288 mv -f "$cfgfile" "$ofile" || \
10289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10293 # If there is no Makefile yet, we rely on a make rule to execute
10294 # `config.status --recheck' to rerun these tests and create the
10295 # libtool script then.
10296 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10297 if test -f "$ltmain_in"; then
10298 test -f Makefile && make "$ltmain"
10304 ac_cpp='$CPP $CPPFLAGS'
10305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10312 # Check whether --with-tags was given.
10313 if test "${with_tags+set}" = set; then
10314 withval=$with_tags; tagnames="$withval"
10318 if test -f "$ltmain" && test -n "$tagnames"; then
10319 if test ! -f "${ofile}"; then
10320 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10321 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10324 if test -z "$LTCC"; then
10325 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10326 if test -z "$LTCC"; then
10327 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10328 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10330 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10331 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10335 # Extract list of available tagged configurations in $ofile.
10336 # Note that this assumes the entire list is on one line.
10337 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10340 for tagname in $tagnames; do
10342 # Check whether tagname contains only valid characters
10343 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10345 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10346 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10347 { (exit 1); exit 1; }; }
10351 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10353 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10354 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10355 { (exit 1); exit 1; }; }
10358 # Update the list of available tags.
10359 if test -n "$tagname"; then
10360 echo appending configuration tag \"$tagname\" to $ofile
10364 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10365 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10366 (test "X$CXX" != "Xg++"))) ; then
10368 ac_cpp='$CXXCPP $CPPFLAGS'
10369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10376 archive_cmds_need_lc_CXX=no
10377 allow_undefined_flag_CXX=
10378 always_export_symbols_CXX=no
10379 archive_expsym_cmds_CXX=
10380 export_dynamic_flag_spec_CXX=
10381 hardcode_direct_CXX=no
10382 hardcode_libdir_flag_spec_CXX=
10383 hardcode_libdir_flag_spec_ld_CXX=
10384 hardcode_libdir_separator_CXX=
10385 hardcode_minus_L_CXX=no
10386 hardcode_automatic_CXX=no
10388 module_expsym_cmds_CXX=
10389 link_all_deplibs_CXX=unknown
10390 old_archive_cmds_CXX=$old_archive_cmds
10391 no_undefined_flag_CXX=
10392 whole_archive_flag_spec_CXX=
10393 enable_shared_with_static_runtimes_CXX=no
10395 # Dependencies to place before and after the object being linked:
10396 predep_objects_CXX=
10397 postdep_objects_CXX=
10400 compiler_lib_search_path_CXX=
10402 # Source file extension for C++ test sources.
10405 # Object file extension for compiled C++ test sources.
10409 # Code to be used in simple compile tests
10410 lt_simple_compile_test_code="int some_variable = 0;\n"
10412 # Code to be used in simple link tests
10413 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10415 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10417 # If no C compiler was specified, use CC.
10420 # Allow CC to be a program name with arguments.
10424 # save warnings/boilerplate of simple test code
10425 ac_outfile=conftest.$ac_objext
10426 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10427 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10428 _lt_compiler_boilerplate=`cat conftest.err`
10431 ac_outfile=conftest.$ac_objext
10432 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10433 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10434 _lt_linker_boilerplate=`cat conftest.err`
10438 # Allow CC to be a program name with arguments.
10443 lt_save_with_gnu_ld=$with_gnu_ld
10444 lt_save_path_LD=$lt_cv_path_LD
10445 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10446 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10448 unset lt_cv_prog_gnu_ld
10450 if test -n "${lt_cv_path_LDCXX+set}"; then
10451 lt_cv_path_LD=$lt_cv_path_LDCXX
10453 unset lt_cv_path_LD
10455 test -z "${LDCXX+set}" || LD=$LDCXX
10459 for cc_temp in $compiler""; do
10461 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10462 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10467 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10470 # We don't want -fno-exception wen compiling C++ code, so set the
10471 # no_builtin_flag separately
10472 if test "$GXX" = yes; then
10473 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10475 lt_prog_compiler_no_builtin_flag_CXX=
10478 if test "$GXX" = yes; then
10479 # Set up default GNU C++ configuration
10482 # Check whether --with-gnu-ld was given.
10483 if test "${with_gnu_ld+set}" = set; then
10484 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10490 if test "$GCC" = yes; then
10491 # Check if gcc -print-prog-name=ld gives a path.
10492 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10493 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10496 # gcc leaves a trailing carriage return which upsets mingw
10497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10502 # Accept absolute paths.
10504 re_direlt='/[^/][^/]*/\.\./'
10505 # Canonicalize the pathname of ld
10506 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10507 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10508 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10510 test -z "$LD" && LD="$ac_prog"
10513 # If it fails, then pretend we aren't using GCC.
10517 # If it is relative, then search for the first ld in PATH.
10518 with_gnu_ld=unknown
10521 elif test "$with_gnu_ld" = yes; then
10522 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10525 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10528 if test "${lt_cv_path_LD+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 if test -z "$LD"; then
10532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10533 for ac_dir in $PATH; do
10535 test -z "$ac_dir" && ac_dir=.
10536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10537 lt_cv_path_LD="$ac_dir/$ac_prog"
10538 # Check to see if the program is GNU ld. I'd rather use --version,
10539 # but apparently some variants of GNU ld only accept -v.
10540 # Break only if it was the GNU/non-GNU ld that we prefer.
10541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10542 *GNU* | *'with BFD'*)
10543 test "$with_gnu_ld" != no && break
10546 test "$with_gnu_ld" != yes && break
10553 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10557 LD="$lt_cv_path_LD"
10558 if test -n "$LD"; then
10559 { echo "$as_me:$LINENO: result: $LD" >&5
10560 echo "${ECHO_T}$LD" >&6; }
10562 { echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6; }
10565 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10566 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10567 { (exit 1); exit 1; }; }
10568 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10569 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10570 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10574 case `$LD -v 2>&1 </dev/null` in
10575 *GNU* | *'with BFD'*)
10576 lt_cv_prog_gnu_ld=yes
10579 lt_cv_prog_gnu_ld=no
10583 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10584 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10585 with_gnu_ld=$lt_cv_prog_gnu_ld
10589 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10590 # archiving commands below assume that GNU ld is being used.
10591 if test "$with_gnu_ld" = yes; then
10592 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10593 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'
10595 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10596 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10598 # If archive_cmds runs LD, not CC, wlarc should be empty
10599 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10600 # investigate it a little bit more. (MM)
10603 # ancient GNU ld didn't support --whole-archive et. al.
10604 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10605 grep 'no-whole-archive' > /dev/null; then
10606 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10608 whole_archive_flag_spec_CXX=
10614 # A generic and very simple default shared library creation
10615 # command for GNU C++ for the case where it uses the native
10616 # linker, instead of GNU ld. If possible, this setting should
10617 # overridden to take advantage of the native linker features on
10618 # the platform it is being used on.
10619 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10622 # Commands to make compiler produce verbose output that lists
10623 # what "hidden" libraries, object files and flags are used when
10624 # linking a shared library.
10625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10633 # PORTME: fill in a description of your system's C++ link characteristics
10634 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10639 # FIXME: insert proper C++ library support
10643 if test "$host_cpu" = ia64; then
10644 # On IA64, the linker does run time linking by default, so we don't
10645 # have to do anything special.
10646 aix_use_runtimelinking=no
10647 exp_sym_flag='-Bexport'
10650 aix_use_runtimelinking=no
10652 # Test if we are trying to use run time linking or normal
10653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10654 # need to do runtime linking.
10655 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10656 for ld_flag in $LDFLAGS; do
10659 aix_use_runtimelinking=yes
10666 exp_sym_flag='-bexport'
10667 no_entry_flag='-bnoentry'
10670 # When large executables or shared objects are built, AIX ld can
10671 # have problems creating the table of contents. If linking a library
10672 # or program results in "error TOC overflow" add -mminimal-toc to
10673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10676 archive_cmds_CXX=''
10677 hardcode_direct_CXX=yes
10678 hardcode_libdir_separator_CXX=':'
10679 link_all_deplibs_CXX=yes
10681 if test "$GXX" = yes; then
10682 case $host_os in aix4.[012]|aix4.[012].*)
10683 # We only want to do this on AIX 4.2 and lower, the check
10684 # below for broken collect2 doesn't work under 4.3+
10685 collect2name=`${CC} -print-prog-name=collect2`
10686 if test -f "$collect2name" && \
10687 strings "$collect2name" | grep resolve_lib_name >/dev/null
10689 # We have reworked collect2
10690 hardcode_direct_CXX=yes
10692 # We have old collect2
10693 hardcode_direct_CXX=unsupported
10694 # It fails to find uninstalled libraries when the uninstalled
10695 # path is not listed in the libpath. Setting hardcode_minus_L
10696 # to unsupported forces relinking
10697 hardcode_minus_L_CXX=yes
10698 hardcode_libdir_flag_spec_CXX='-L$libdir'
10699 hardcode_libdir_separator_CXX=
10702 shared_flag='-shared'
10703 if test "$aix_use_runtimelinking" = yes; then
10704 shared_flag="$shared_flag "'${wl}-G'
10708 if test "$host_cpu" = ia64; then
10709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10710 # chokes on -Wl,-G. The following line is correct:
10713 if test "$aix_use_runtimelinking" = yes; then
10714 shared_flag='${wl}-G'
10716 shared_flag='${wl}-bM:SRE'
10721 # It seems that -bexpall does not export symbols beginning with
10722 # underscore (_), so it is better to generate a list of symbols to export.
10723 always_export_symbols_CXX=yes
10724 if test "$aix_use_runtimelinking" = yes; then
10725 # Warning - without using the other runtime loading flags (-brtl),
10726 # -berok will link without error, but may produce a broken library.
10727 allow_undefined_flag_CXX='-berok'
10728 # Determine the default libpath from the value encoded in an empty executable.
10729 cat >conftest.$ac_ext <<_ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_link") 2>conftest.er1
10753 grep -v '^ *+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_cxx_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest$ac_exeext &&
10761 $as_test_x conftest$ac_exeext; then
10763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10765 # Check for a 64-bit object if we didn't find anything.
10766 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; }
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
10777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10779 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10781 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"
10783 if test "$host_cpu" = ia64; then
10784 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10785 allow_undefined_flag_CXX="-z nodefs"
10786 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"
10788 # Determine the default libpath from the value encoded in an empty executable.
10789 cat >conftest.$ac_ext <<_ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (ac_try="$ac_link"
10806 case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_link") 2>conftest.er1
10813 grep -v '^ *+' conftest.er1 >conftest.err
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } && {
10818 test -z "$ac_cxx_werror_flag" ||
10819 test ! -s conftest.err
10820 } && test -s conftest$ac_exeext &&
10821 $as_test_x conftest$ac_exeext; then
10823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10825 # Check for a 64-bit object if we didn't find anything.
10826 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; }
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836 conftest$ac_exeext conftest.$ac_ext
10837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10839 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10840 # Warning - without using the other run time loading flags,
10841 # -berok will link without error, but may produce a broken library.
10842 no_undefined_flag_CXX=' ${wl}-bernotok'
10843 allow_undefined_flag_CXX=' ${wl}-berok'
10844 # -bexpall does not export symbols beginning with underscore (_)
10845 always_export_symbols_CXX=yes
10846 # Exported symbols can be pulled into shared objects from archives
10847 whole_archive_flag_spec_CXX=' '
10848 archive_cmds_need_lc_CXX=yes
10849 # This is similar to how AIX traditionally builds its shared libraries.
10850 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'
10855 case $cc_basename in
10857 # FIXME: insert proper C++ library support
10864 cygwin* | mingw* | pw32*)
10865 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10866 # as there is no search path for DLLs.
10867 hardcode_libdir_flag_spec_CXX='-L$libdir'
10868 allow_undefined_flag_CXX=unsupported
10869 always_export_symbols_CXX=no
10870 enable_shared_with_static_runtimes_CXX=yes
10872 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10873 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'
10874 # If the export-symbols file already is a .def file (1st line
10875 # is EXPORTS), use it as is; otherwise, prepend...
10876 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10877 cp $export_symbols $output_objdir/$soname.def;
10879 echo EXPORTS > $output_objdir/$soname.def;
10880 cat $export_symbols >> $output_objdir/$soname.def;
10882 $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'
10887 darwin* | rhapsody*)
10889 rhapsody* | darwin1.[012])
10890 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10893 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10894 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10896 case ${MACOSX_DEPLOYMENT_TARGET} in
10898 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10901 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10907 archive_cmds_need_lc_CXX=no
10908 hardcode_direct_CXX=no
10909 hardcode_automatic_CXX=yes
10910 hardcode_shlibpath_var_CXX=unsupported
10911 whole_archive_flag_spec_CXX=''
10912 link_all_deplibs_CXX=yes
10914 if test "$GXX" = yes ; then
10915 lt_int_apple_cc_single_mod=no
10916 output_verbose_link_cmd='echo'
10917 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10918 lt_int_apple_cc_single_mod=yes
10920 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10921 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10923 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'
10925 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10927 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10928 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}'
10930 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}'
10932 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}'
10934 case $cc_basename in
10936 output_verbose_link_cmd='echo'
10937 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'
10938 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10939 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10940 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}'
10941 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}'
10951 case $cc_basename in
10953 # FIXME: insert proper C++ library support
10957 # Green Hills C++ Compiler
10958 # FIXME: insert proper C++ library support
10962 # FIXME: insert proper C++ library support
10968 # C++ shared libraries reported to be fairly broken before switch to ELF
10972 archive_cmds_need_lc_CXX=no
10974 freebsd* | kfreebsd*-gnu | dragonfly*)
10975 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10982 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10983 hardcode_libdir_separator_CXX=:
10984 export_dynamic_flag_spec_CXX='${wl}-E'
10985 hardcode_direct_CXX=yes
10986 hardcode_minus_L_CXX=yes # Not in the search PATH,
10987 # but as the default
10988 # location of the library.
10990 case $cc_basename in
10992 # FIXME: insert proper C++ library support
10996 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'
10997 # Commands to make compiler produce verbose output that lists
10998 # what "hidden" libraries, object files and flags are used when
10999 # linking a shared library.
11001 # There doesn't appear to be a way to prevent this compiler from
11002 # explicitly linking system object files so we need to strip them
11003 # from the output so that they don't get included in the library
11005 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'
11008 if test "$GXX" = yes; then
11009 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'
11011 # FIXME: insert proper C++ library support
11018 if test $with_gnu_ld = no; then
11021 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11022 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11023 hardcode_libdir_separator_CXX=:
11026 hardcode_libdir_flag_spec_CXX='-L$libdir'
11029 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11030 hardcode_libdir_separator_CXX=:
11031 export_dynamic_flag_spec_CXX='${wl}-E'
11037 hardcode_direct_CXX=no
11038 hardcode_shlibpath_var_CXX=no
11041 hardcode_direct_CXX=no
11042 hardcode_shlibpath_var_CXX=no
11043 hardcode_minus_L_CXX=yes # Not in the search PATH,
11044 # but as the default
11045 # location of the library.
11048 hardcode_direct_CXX=yes
11049 hardcode_minus_L_CXX=yes # Not in the search PATH,
11050 # but as the default
11051 # location of the library.
11055 case $cc_basename in
11057 # FIXME: insert proper C++ library support
11063 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11066 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11069 # Commands to make compiler produce verbose output that lists
11070 # what "hidden" libraries, object files and flags are used when
11071 # linking a shared library.
11073 # There doesn't appear to be a way to prevent this compiler from
11074 # explicitly linking system object files so we need to strip them
11075 # from the output so that they don't get included in the library
11077 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'
11080 if test "$GXX" = yes; then
11081 if test $with_gnu_ld = no; then
11084 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11087 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'
11092 # FIXME: insert proper C++ library support
11099 case $cc_basename in
11102 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'
11104 # Archives containing C++ object files must be created using
11105 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11106 # necessary to make sure instantiated templates are included
11108 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11111 if test "$GXX" = yes; then
11112 if test "$with_gnu_ld" = no; then
11113 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'
11115 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'
11118 link_all_deplibs_CXX=yes
11121 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11122 hardcode_libdir_separator_CXX=:
11125 case $cc_basename in
11127 # Kuck and Associates, Inc. (KAI) C++ Compiler
11129 # KCC will only create a shared library if the output file
11130 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11131 # to its proper name (with version) after linking.
11132 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'
11133 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'
11134 # Commands to make compiler produce verbose output that lists
11135 # what "hidden" libraries, object files and flags are used when
11136 # linking a shared library.
11138 # There doesn't appear to be a way to prevent this compiler from
11139 # explicitly linking system object files so we need to strip them
11140 # from the output so that they don't get included in the library
11142 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'
11144 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11145 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11147 # Archives containing C++ object files must be created using
11148 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11149 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11154 # version 8.0 and above of icpc choke on multiply defined symbols
11155 # if we add $predep_objects and $postdep_objects, however 7.1 and
11156 # earlier do not add the objects themselves.
11157 case `$CC -V 2>&1` in
11159 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11160 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'
11162 *) # Version 8.0 or newer
11165 ia64*) tmp_idyn=' -i_dynamic';;
11167 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11168 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'
11171 archive_cmds_need_lc_CXX=no
11172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11173 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11174 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11177 # Portland Group C++ compiler
11178 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11179 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'
11181 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11183 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'
11187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11188 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'
11190 runpath_var=LD_RUN_PATH
11191 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11192 hardcode_libdir_separator_CXX=:
11194 # Commands to make compiler produce verbose output that lists
11195 # what "hidden" libraries, object files and flags are used when
11196 # linking a shared library.
11198 # There doesn't appear to be a way to prevent this compiler from
11199 # explicitly linking system object files so we need to strip them
11200 # from the output so that they don't get included in the library
11202 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'
11207 # FIXME: insert proper C++ library support
11211 # FIXME: insert proper C++ library support
11215 case $cc_basename in
11217 # FIXME: insert proper C++ library support
11221 # FIXME: insert proper C++ library support
11227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11228 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11230 hardcode_libdir_flag_spec_CXX='-R$libdir'
11231 hardcode_direct_CXX=yes
11232 hardcode_shlibpath_var_CXX=no
11234 # Workaround some broken pre-1.5 toolchains
11235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11238 # C++ shared libraries are fairly broken
11242 hardcode_direct_CXX=yes
11243 hardcode_shlibpath_var_CXX=no
11244 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11247 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11248 export_dynamic_flag_spec_CXX='${wl}-E'
11249 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11251 output_verbose_link_cmd='echo'
11254 case $cc_basename in
11256 # Kuck and Associates, Inc. (KAI) C++ Compiler
11258 # KCC will only create a shared library if the output file
11259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11260 # to its proper name (with version) after linking.
11261 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'
11263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11264 hardcode_libdir_separator_CXX=:
11266 # Archives containing C++ object files must be created using
11267 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11268 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11272 # Rational C++ 2.4.1
11273 # FIXME: insert proper C++ library support
11277 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11278 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'
11280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11281 hardcode_libdir_separator_CXX=:
11283 # Commands to make compiler produce verbose output that lists
11284 # what "hidden" libraries, object files and flags are used when
11285 # linking a shared library.
11287 # There doesn't appear to be a way to prevent this compiler from
11288 # explicitly linking system object files so we need to strip them
11289 # from the output so that they don't get included in the library
11291 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'
11294 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11295 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11296 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'
11298 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11299 hardcode_libdir_separator_CXX=:
11301 # Commands to make compiler produce verbose output that lists
11302 # what "hidden" libraries, object files and flags are used when
11303 # linking a shared library.
11304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11307 # FIXME: insert proper C++ library support
11314 case $cc_basename in
11316 # Kuck and Associates, Inc. (KAI) C++ Compiler
11318 # KCC will only create a shared library if the output file
11319 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11320 # to its proper name (with version) after linking.
11321 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'
11323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11324 hardcode_libdir_separator_CXX=:
11326 # Archives containing C++ object files must be created using
11327 # the KAI C++ compiler.
11328 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11331 # Rational C++ 2.4.1
11332 # FIXME: insert proper C++ library support
11336 allow_undefined_flag_CXX=' -expect_unresolved \*'
11337 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'
11338 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11339 echo "-hidden">> $lib.exp~
11340 $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~
11343 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11344 hardcode_libdir_separator_CXX=:
11346 # Commands to make compiler produce verbose output that lists
11347 # what "hidden" libraries, object files and flags are used when
11348 # linking a shared library.
11350 # There doesn't appear to be a way to prevent this compiler from
11351 # explicitly linking system object files so we need to strip them
11352 # from the output so that they don't get included in the library
11354 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'
11357 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11358 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11359 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'
11361 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11362 hardcode_libdir_separator_CXX=:
11364 # Commands to make compiler produce verbose output that lists
11365 # what "hidden" libraries, object files and flags are used when
11366 # linking a shared library.
11367 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11370 # FIXME: insert proper C++ library support
11377 # FIXME: insert proper C++ library support
11381 archive_cmds_need_lc_CXX=no
11382 case $cc_basename in
11384 # FIXME: insert proper C++ library support
11388 # FIXME: insert proper C++ library support
11394 case $cc_basename in
11397 # FIXME: insert proper C++ library support
11402 # FIXME: insert proper C++ library support
11406 # FIXME: insert proper C++ library support
11412 case $cc_basename in
11414 # Sun C++ 4.2, 5.x and Centerline C++
11415 archive_cmds_need_lc_CXX=yes
11416 no_undefined_flag_CXX=' -zdefs'
11417 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11418 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11419 $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'
11421 hardcode_libdir_flag_spec_CXX='-R$libdir'
11422 hardcode_shlibpath_var_CXX=no
11424 solaris2.[0-5] | solaris2.[0-5].*) ;;
11426 # The C++ compiler is used as linker so we must use $wl
11427 # flag to pass the commands to the underlying system
11428 # linker. We must also pass each convience library through
11429 # to the system linker between allextract/defaultextract.
11430 # The C++ compiler will combine linker options so we
11431 # cannot just pass the convience library names through
11433 # Supported since Solaris 2.6 (maybe 2.5.1?)
11434 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'
11437 link_all_deplibs_CXX=yes
11439 output_verbose_link_cmd='echo'
11441 # Archives containing C++ object files must be created using
11442 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11443 # necessary to make sure instantiated templates are included
11445 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11448 # Green Hills C++ Compiler
11449 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11451 # The C++ compiler must be used to create the archive.
11452 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11455 # GNU C++ compiler with Solaris linker
11456 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11457 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11458 if $CC --version | grep -v '^2\.7' > /dev/null; then
11459 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11460 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11461 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11463 # Commands to make compiler produce verbose output that lists
11464 # what "hidden" libraries, object files and flags are used when
11465 # linking a shared library.
11466 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11468 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11470 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11471 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11472 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11474 # Commands to make compiler produce verbose output that lists
11475 # what "hidden" libraries, object files and flags are used when
11476 # linking a shared library.
11477 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11480 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11485 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11486 archive_cmds_need_lc_CXX=no
11489 case $cc_basename in
11491 # NonStop-UX NCC 3.20
11492 # FIXME: insert proper C++ library support
11496 # FIXME: insert proper C++ library support
11502 # FIXME: insert proper C++ library support
11506 # FIXME: insert proper C++ library support
11510 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11511 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11512 test "$ld_shlibs_CXX" = no && can_build_shared=no
11518 cat > conftest.$ac_ext <<EOF
11522 Foo (void) { a = 0; }
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; then
11533 # Parse the compiler output and extract the necessary
11534 # objects, libraries and library flags.
11536 # Sentinel used to keep track of whether or not we are before
11537 # the conftest object file.
11538 pre_test_object_deps_done=no
11540 # The `*' in the case matches for architectures that use `case' in
11541 # $output_verbose_cmd can trigger glob expansion during the loop
11542 # eval without this substitution.
11543 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11545 for p in `eval $output_verbose_link_cmd`; do
11549 # Some compilers place space between "-{L,R}" and the path.
11550 # Remove the space.
11551 if test $p = "-L" \
11552 || test $p = "-R"; then
11559 if test "$pre_test_object_deps_done" = no; then
11562 # Internal compiler library paths should come after those
11563 # provided the user. The postdeps already come after the
11564 # user supplied libs so there is no need to process them.
11565 if test -z "$compiler_lib_search_path_CXX"; then
11566 compiler_lib_search_path_CXX="${prev}${p}"
11568 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11571 # The "-l" case would never come before the object being
11572 # linked, so don't bother handling this case.
11575 if test -z "$postdeps_CXX"; then
11576 postdeps_CXX="${prev}${p}"
11578 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11584 # This assumes that the test object file only shows up
11585 # once in the compiler output.
11586 if test "$p" = "conftest.$objext"; then
11587 pre_test_object_deps_done=yes
11591 if test "$pre_test_object_deps_done" = no; then
11592 if test -z "$predep_objects_CXX"; then
11593 predep_objects_CXX="$p"
11595 predep_objects_CXX="$predep_objects_CXX $p"
11598 if test -z "$postdep_objects_CXX"; then
11599 postdep_objects_CXX="$p"
11601 postdep_objects_CXX="$postdep_objects_CXX $p"
11606 *) ;; # Ignore the rest.
11614 echo "libtool.m4: error: problem compiling CXX test program"
11617 $rm -f confest.$objext
11619 # PORTME: override above test on systems where it is broken
11622 case $cc_basename in
11624 # Adding this requires a known-good setup of shared libraries for
11625 # Sun compiler versions before 5.6, else PIC objects from an old
11626 # archive will be linked into the output, leading to subtle bugs.
11627 postdeps_CXX='-lCstd -lCrun'
11633 case " $postdeps_CXX " in
11634 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11637 lt_prog_compiler_wl_CXX=
11638 lt_prog_compiler_pic_CXX=
11639 lt_prog_compiler_static_CXX=
11641 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11642 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11644 # C++ specific cases for pic, static, wl, etc.
11645 if test "$GXX" = yes; then
11646 lt_prog_compiler_wl_CXX='-Wl,'
11647 lt_prog_compiler_static_CXX='-static'
11651 # All AIX code is PIC.
11652 if test "$host_cpu" = ia64; then
11653 # AIX 5 now supports IA64 processor
11654 lt_prog_compiler_static_CXX='-Bstatic'
11658 # FIXME: we need at least 68020 code to build shared libraries, but
11659 # adding the `-m68020' flag to GCC prevents building anything better,
11661 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11663 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11664 # PIC is the default for these OSes.
11666 mingw* | os2* | pw32*)
11667 # This hack is so that the source file can tell whether it is being
11668 # built for inclusion in a dll (and should export symbols for example).
11669 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11671 darwin* | rhapsody*)
11672 # PIC is the default on this platform
11673 # Common symbols not allowed in MH_DYLIB files
11674 lt_prog_compiler_pic_CXX='-fno-common'
11677 # DJGPP does not support shared libraries at all
11678 lt_prog_compiler_pic_CXX=
11681 if test -d /usr/nec; then
11682 lt_prog_compiler_pic_CXX=-Kconform_pic
11686 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11687 # not for PA HP-UX.
11692 lt_prog_compiler_pic_CXX='-fPIC'
11697 lt_prog_compiler_pic_CXX='-fPIC'
11703 # All AIX code is PIC.
11704 if test "$host_cpu" = ia64; then
11705 # AIX 5 now supports IA64 processor
11706 lt_prog_compiler_static_CXX='-Bstatic'
11708 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11712 case $cc_basename in
11714 # Green Hills C++ Compiler
11715 # _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"
11720 # PIC is the default on this platform
11721 # Common symbols not allowed in MH_DYLIB files
11722 case $cc_basename in
11724 lt_prog_compiler_pic_CXX='-qnocommon'
11725 lt_prog_compiler_wl_CXX='-Wl,'
11730 case $cc_basename in
11732 lt_prog_compiler_pic_CXX='-KPIC'
11735 # Green Hills C++ Compiler
11736 lt_prog_compiler_pic_CXX='-pic'
11742 freebsd* | kfreebsd*-gnu | dragonfly*)
11743 # FreeBSD uses GNU C++
11745 hpux9* | hpux10* | hpux11*)
11746 case $cc_basename in
11748 lt_prog_compiler_wl_CXX='-Wl,'
11749 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11750 if test "$host_cpu" != ia64; then
11751 lt_prog_compiler_pic_CXX='+Z'
11755 lt_prog_compiler_wl_CXX='-Wl,'
11756 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11762 lt_prog_compiler_pic_CXX='+Z'
11770 irix5* | irix6* | nonstopux*)
11771 case $cc_basename in
11773 lt_prog_compiler_wl_CXX='-Wl,'
11774 lt_prog_compiler_static_CXX='-non_shared'
11775 # CC pic flag -KPIC is the default.
11782 case $cc_basename in
11785 lt_prog_compiler_wl_CXX='--backend -Wl,'
11786 lt_prog_compiler_pic_CXX='-fPIC'
11790 lt_prog_compiler_wl_CXX='-Wl,'
11791 lt_prog_compiler_pic_CXX='-KPIC'
11792 lt_prog_compiler_static_CXX='-static'
11795 # Portland Group C++ compiler.
11796 lt_prog_compiler_wl_CXX='-Wl,'
11797 lt_prog_compiler_pic_CXX='-fpic'
11798 lt_prog_compiler_static_CXX='-Bstatic'
11802 # Make sure the PIC flag is empty. It appears that all Alpha
11803 # Linux and Compaq Tru64 Unix objects are PIC.
11804 lt_prog_compiler_pic_CXX=
11805 lt_prog_compiler_static_CXX='-non_shared'
11816 case $cc_basename in
11818 lt_prog_compiler_pic_CXX='-W c,exportall'
11826 osf3* | osf4* | osf5*)
11827 case $cc_basename in
11829 lt_prog_compiler_wl_CXX='--backend -Wl,'
11832 # Rational C++ 2.4.1
11833 lt_prog_compiler_pic_CXX='-pic'
11836 # Digital/Compaq C++
11837 lt_prog_compiler_wl_CXX='-Wl,'
11838 # Make sure the PIC flag is empty. It appears that all Alpha
11839 # Linux and Compaq Tru64 Unix objects are PIC.
11840 lt_prog_compiler_pic_CXX=
11841 lt_prog_compiler_static_CXX='-non_shared'
11850 case $cc_basename in
11852 lt_prog_compiler_pic_CXX='-fPIC'
11859 case $cc_basename in
11861 # Sun C++ 4.2, 5.x and Centerline C++
11862 lt_prog_compiler_pic_CXX='-KPIC'
11863 lt_prog_compiler_static_CXX='-Bstatic'
11864 lt_prog_compiler_wl_CXX='-Qoption ld '
11867 # Green Hills C++ Compiler
11868 lt_prog_compiler_pic_CXX='-PIC'
11875 case $cc_basename in
11878 lt_prog_compiler_pic_CXX='-pic'
11879 lt_prog_compiler_static_CXX='-Bstatic'
11883 lt_prog_compiler_pic_CXX='-pic'
11890 case $cc_basename in
11892 # NonStop-UX NCC 3.20
11893 lt_prog_compiler_pic_CXX='-KPIC'
11904 lt_prog_compiler_can_build_shared_CXX=no
11909 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11910 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11913 # Check to make sure the PIC flag actually works.
11915 if test -n "$lt_prog_compiler_pic_CXX"; then
11917 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11918 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11919 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 lt_prog_compiler_pic_works_CXX=no
11923 ac_outfile=conftest.$ac_objext
11924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11925 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11926 # Insert the option either (1) after the last *FLAGS variable, or
11927 # (2) before a word containing "conftest.", or (3) at the end.
11928 # Note that $ac_compile itself does not contain backslashes and begins
11929 # with a dollar sign (not a hyphen), so the echo should work correctly.
11930 # The option is referenced via a variable to avoid confusing sed.
11931 lt_compile=`echo "$ac_compile" | $SED \
11932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11934 -e 's:$: $lt_compiler_flag:'`
11935 (eval echo "\"\$as_me:11935: $lt_compile\"" >&5)
11936 (eval "$lt_compile" 2>conftest.err)
11938 cat conftest.err >&5
11939 echo "$as_me:11939: \$? = $ac_status" >&5
11940 if (exit $ac_status) && test -s "$ac_outfile"; then
11941 # The compiler can only warn and ignore the option if not recognized
11942 # So say no if there are warnings other than the usual output.
11943 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11944 $SED '/^$/d' conftest.err >conftest.er2
11945 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11946 lt_prog_compiler_pic_works_CXX=yes
11952 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11953 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11955 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11956 case $lt_prog_compiler_pic_CXX in
11958 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11961 lt_prog_compiler_pic_CXX=
11962 lt_prog_compiler_can_build_shared_CXX=no
11967 # For platforms which do not support PIC, -DPIC is meaningless:
11969 lt_prog_compiler_pic_CXX=
11972 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11976 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11977 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11978 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 lt_cv_prog_compiler_c_o_CXX=no
11982 $rm -r conftest 2>/dev/null
11986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11988 lt_compiler_flag="-o out/conftest2.$ac_objext"
11989 # Insert the option either (1) after the last *FLAGS variable, or
11990 # (2) before a word containing "conftest.", or (3) at the end.
11991 # Note that $ac_compile itself does not contain backslashes and begins
11992 # with a dollar sign (not a hyphen), so the echo should work correctly.
11993 lt_compile=`echo "$ac_compile" | $SED \
11994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11996 -e 's:$: $lt_compiler_flag:'`
11997 (eval echo "\"\$as_me:11997: $lt_compile\"" >&5)
11998 (eval "$lt_compile" 2>out/conftest.err)
12000 cat out/conftest.err >&5
12001 echo "$as_me:12001: \$? = $ac_status" >&5
12002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12004 # The compiler can only warn and ignore the option if not recognized
12005 # So say no if there are warnings
12006 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12007 $SED '/^$/d' out/conftest.err >out/conftest.er2
12008 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12009 lt_cv_prog_compiler_c_o_CXX=yes
12014 # SGI C++ compiler will create directory out/ii_files/ for
12015 # template instantiation
12016 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12017 $rm out/* && rmdir out
12023 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12024 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12027 hard_links="nottested"
12028 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12029 # do not overwrite the value of need_locks provided by the user
12030 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12031 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12036 ln conftest.a conftest.b 2>&5 || hard_links=no
12037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12038 { echo "$as_me:$LINENO: result: $hard_links" >&5
12039 echo "${ECHO_T}$hard_links" >&6; }
12040 if test "$hard_links" = no; then
12041 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12042 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12049 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12050 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12052 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12055 # If we're using GNU nm, then we don't want the "-C" option.
12056 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12057 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12058 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'
12060 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'
12064 export_symbols_cmds_CXX="$ltdll_cmds"
12067 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'
12070 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12074 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12075 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12076 test "$ld_shlibs_CXX" = no && can_build_shared=no
12078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12079 if test "$GCC" = yes; then
12080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12084 # Do we need to explicitly link libc?
12086 case "x$archive_cmds_need_lc_CXX" in
12088 # Assume -lc should be added
12089 archive_cmds_need_lc_CXX=yes
12091 if test "$enable_shared" = yes && test "$GCC" = yes; then
12092 case $archive_cmds_CXX in
12094 # FIXME: we may have to deal with multi-command sequences.
12097 # Test whether the compiler implicitly links with -lc since on some
12098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12099 # to ld, don't add -lc before -lgcc.
12100 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12101 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106 (eval $ac_compile) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } 2>conftest.err; then
12112 libobjs=conftest.$ac_objext
12114 wl=$lt_prog_compiler_wl_CXX
12120 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12121 allow_undefined_flag_CXX=
12122 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12123 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }
12128 archive_cmds_need_lc_CXX=no
12130 archive_cmds_need_lc_CXX=yes
12132 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12134 cat conftest.err 1>&5
12137 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12138 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12145 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12146 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12147 library_names_spec=
12148 libname_spec='lib$name'
12152 postuninstall_cmds=
12156 shlibpath_overrides_runpath=unknown
12158 dynamic_linker="$host_os ld.so"
12159 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12160 if test "$GCC" = yes; then
12161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12162 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12163 # if the path contains ";" then we assume it to be the separator
12164 # otherwise default to the standard path separator (i.e. ":") - it is
12165 # assumed that no part of a normal pathname contains ";" but that should
12166 # okay in the real world where ";" in dirpaths is itself problematic.
12167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12174 need_lib_prefix=unknown
12175 hardcode_into_libs=no
12177 # when you set need_version to no, make sure it does not cause -set_version
12178 # flags to be left without arguments
12179 need_version=unknown
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12185 shlibpath_var=LIBPATH
12187 # AIX 3 has no versioning support, so we append a major version to the name.
12188 soname_spec='${libname}${release}${shared_ext}$major'
12195 hardcode_into_libs=yes
12196 if test "$host_cpu" = ia64; then
12197 # AIX 5 supports IA64
12198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12199 shlibpath_var=LD_LIBRARY_PATH
12201 # With GCC up to 2.95.x, collect2 would create an import file
12202 # for dependence libraries. The import file would start with
12203 # the line `#! .'. This would cause the generated library to
12204 # depend on `.', always an invalid library. This was fixed in
12205 # development snapshots of GCC prior to 3.0.
12207 aix4 | aix4.[01] | aix4.[01].*)
12208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12210 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12213 can_build_shared=no
12217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12218 # soname into executable. Probably we can add versioning support to
12219 # collect2, so additional links can be useful in future.
12220 if test "$aix_use_runtimelinking" = yes; then
12221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12222 # instead of lib<name>.a to let people know that these are not
12223 # typical AIX shared libraries.
12224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12226 # We preserve .a as extension for shared libraries through AIX4.2
12227 # and later when we are not doing run time linking.
12228 library_names_spec='${libname}${release}.a $libname.a'
12229 soname_spec='${libname}${release}${shared_ext}$major'
12231 shlibpath_var=LIBPATH
12236 library_names_spec='$libname.ixlibrary $libname.a'
12237 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12238 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'
12242 library_names_spec='${libname}${shared_ext}'
12243 dynamic_linker="$host_os ld.so"
12244 shlibpath_var=LIBRARY_PATH
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251 soname_spec='${libname}${release}${shared_ext}$major'
12252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12253 shlibpath_var=LD_LIBRARY_PATH
12254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12256 # the default ld.so.conf also contains /usr/contrib/lib and
12257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12258 # libtool to hard-code these into programs
12261 cygwin* | mingw* | pw32*)
12262 version_type=windows
12267 case $GCC,$host_os in
12268 yes,cygwin* | yes,mingw* | yes,pw32*)
12269 library_names_spec='$libname.dll.a'
12270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12271 postinstall_cmds='base_file=`basename \${file}`~
12272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12273 dldir=$destdir/`dirname \$dlpath`~
12274 test -d \$dldir || mkdir -p \$dldir~
12275 $install_prog $dir/$dlname \$dldir/$dlname~
12276 chmod a+x \$dldir/$dlname'
12277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12278 dlpath=$dir/\$dldll~
12280 shlibpath_overrides_runpath=yes
12284 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12285 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12286 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12289 # MinGW DLLs use traditional 'lib' prefix
12290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12292 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12293 # It is most probably a Windows format PATH printed by
12294 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12295 # path with ; separators, and with drive letters. We can handle the
12296 # drive letters (cygwin fileutils understands them), so leave them,
12297 # especially as we might pass files found there to a mingw objdump,
12298 # which wouldn't understand a cygwinified path. Ahh.
12299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12305 # pw32 DLLs use 'pw' prefix rather than 'lib'
12306 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12312 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12315 dynamic_linker='Win32 ld.exe'
12316 # FIXME: first we should search . and the directory the executable is in
12320 darwin* | rhapsody*)
12321 dynamic_linker="$host_os dyld"
12322 version_type=darwin
12325 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12326 soname_spec='${libname}${release}${major}$shared_ext'
12327 shlibpath_overrides_runpath=yes
12328 shlibpath_var=DYLD_LIBRARY_PATH
12329 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12330 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12331 if test "$GCC" = yes; then
12332 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"`
12334 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12344 soname_spec='${libname}${release}${shared_ext}$major'
12345 shlibpath_var=LD_LIBRARY_PATH
12356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12357 soname_spec='${libname}${release}${shared_ext}$major'
12358 shlibpath_var=LD_LIBRARY_PATH
12359 shlibpath_overrides_runpath=no
12360 hardcode_into_libs=yes
12361 dynamic_linker='GNU ld.so'
12364 freebsd* | dragonfly*)
12365 # DragonFly does not have aout. When/if they implement a new
12366 # versioning mechanism, adjust this.
12367 if test -x /usr/bin/objformat; then
12368 objformat=`/usr/bin/objformat`
12371 freebsd[123]*) objformat=aout ;;
12372 *) objformat=elf ;;
12375 version_type=freebsd-$objformat
12376 case $version_type in
12378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12387 shlibpath_var=LD_LIBRARY_PATH
12390 shlibpath_overrides_runpath=yes
12392 freebsd3.[01]* | freebsdelf3.[01]*)
12393 shlibpath_overrides_runpath=yes
12394 hardcode_into_libs=yes
12397 shlibpath_overrides_runpath=no
12398 hardcode_into_libs=yes
12407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12408 soname_spec='${libname}${release}${shared_ext}$major'
12409 shlibpath_var=LD_LIBRARY_PATH
12410 hardcode_into_libs=yes
12413 hpux9* | hpux10* | hpux11*)
12414 # Give a soname corresponding to the major version so that dld.sl refuses to
12415 # link against other versions.
12422 hardcode_into_libs=yes
12423 dynamic_linker="$host_os dld.so"
12424 shlibpath_var=LD_LIBRARY_PATH
12425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427 soname_spec='${libname}${release}${shared_ext}$major'
12428 if test "X$HPUX_IA64_MODE" = X32; then
12429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12437 hardcode_into_libs=yes
12438 dynamic_linker="$host_os dld.sl"
12439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12442 soname_spec='${libname}${release}${shared_ext}$major'
12443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12448 dynamic_linker="$host_os dld.sl"
12449 shlibpath_var=SHLIB_PATH
12450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452 soname_spec='${libname}${release}${shared_ext}$major'
12455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12456 postinstall_cmds='chmod 555 $lib'
12459 irix5* | irix6* | nonstopux*)
12461 nonstopux*) version_type=nonstopux ;;
12463 if test "$lt_cv_prog_gnu_ld" = yes; then
12471 soname_spec='${libname}${release}${shared_ext}$major'
12472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12474 irix5* | nonstopux*)
12475 libsuff= shlibsuff=
12478 case $LD in # libtool.m4 will add one of these switches to LD
12479 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12480 libsuff= shlibsuff= libmagic=32-bit;;
12481 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12482 libsuff=32 shlibsuff=N32 libmagic=N32;;
12483 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12484 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12485 *) libsuff= shlibsuff= libmagic=never-match;;
12489 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12490 shlibpath_overrides_runpath=no
12491 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12492 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12493 hardcode_into_libs=yes
12496 # No shared lib support for Linux oldld, aout, or coff.
12497 linux*oldld* | linux*aout* | linux*coff*)
12501 # This must be Linux ELF.
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507 soname_spec='${libname}${release}${shared_ext}$major'
12508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12509 shlibpath_var=LD_LIBRARY_PATH
12510 shlibpath_overrides_runpath=no
12511 # This implies no fast_install, which is unacceptable.
12512 # Some rework will be needed to allow for fast_install
12513 # before this can be enabled.
12514 hardcode_into_libs=yes
12516 # Append ld.so.conf contents to the search path
12517 if test -f /etc/ld.so.conf; then
12518 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' ' '`
12519 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12522 # We used to test for /lib/ld.so.1 and disable shared libraries on
12523 # powerpc, because MkLinux only supported shared libraries with the
12524 # GNU dynamic linker. Since this was broken with cross compilers,
12525 # most powerpc-linux boxes support dynamic linking these days and
12526 # people can always --disable-shared, the test was removed, and we
12527 # assume the GNU/Linux dynamic linker is in use.
12528 dynamic_linker='GNU/Linux ld.so'
12535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12536 soname_spec='${libname}${release}${shared_ext}$major'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 shlibpath_overrides_runpath=no
12539 hardcode_into_libs=yes
12540 dynamic_linker='GNU ld.so'
12547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12550 dynamic_linker='NetBSD (a.out) ld.so'
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 dynamic_linker='NetBSD ld.elf_so'
12556 shlibpath_var=LD_LIBRARY_PATH
12557 shlibpath_overrides_runpath=yes
12558 hardcode_into_libs=yes
12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 shlibpath_overrides_runpath=yes
12572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12573 soname_spec='${libname}${release}${shared_ext}$major'
12574 shlibpath_var=LD_LIBRARY_PATH
12575 shlibpath_overrides_runpath=yes
12581 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12583 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12584 *) need_version=no ;;
12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12588 shlibpath_var=LD_LIBRARY_PATH
12589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12591 openbsd2.[89] | openbsd2.[89].*)
12592 shlibpath_overrides_runpath=no
12595 shlibpath_overrides_runpath=yes
12599 shlibpath_overrides_runpath=yes
12604 libname_spec='$name'
12607 library_names_spec='$libname${shared_ext} $libname.a'
12608 dynamic_linker='OS/2 ld.exe'
12609 shlibpath_var=LIBPATH
12612 osf3* | osf4* | osf5*)
12616 soname_spec='${libname}${release}${shared_ext}$major'
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12618 shlibpath_var=LD_LIBRARY_PATH
12619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 shlibpath_var=LD_LIBRARY_PATH
12634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12635 soname_spec='${libname}${release}${shared_ext}$major'
12636 shlibpath_var=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath=yes
12638 hardcode_into_libs=yes
12639 # ldd complains unless libraries are executable
12640 postinstall_cmds='chmod +x $lib'
12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 shlibpath_overrides_runpath=yes
12649 if test "$with_gnu_ld" = yes; then
12655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658 soname_spec='${libname}${release}${shared_ext}$major'
12659 shlibpath_var=LD_LIBRARY_PATH
12660 case $host_vendor in
12662 shlibpath_overrides_runpath=no
12664 export_dynamic_flag_spec='${wl}-Blargedynsym'
12665 runpath_var=LD_RUN_PATH
12673 shlibpath_overrides_runpath=no
12674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12680 if test -d /usr/nec ;then
12682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12683 soname_spec='$libname${shared_ext}.$major'
12684 shlibpath_var=LD_LIBRARY_PATH
12690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12691 soname_spec='${libname}${release}${shared_ext}$major'
12692 shlibpath_var=LD_LIBRARY_PATH
12699 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12700 echo "${ECHO_T}$dynamic_linker" >&6; }
12701 test "$dynamic_linker" = no && can_build_shared=no
12703 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12704 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12705 hardcode_action_CXX=
12706 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12707 test -n "$runpath_var_CXX" || \
12708 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12710 # We can hardcode non-existant directories.
12711 if test "$hardcode_direct_CXX" != no &&
12712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12713 # have to relink, otherwise we might link with an installed library
12714 # when we should be linking with a yet-to-be-installed one
12715 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12716 test "$hardcode_minus_L_CXX" != no; then
12717 # Linking always hardcodes the temporary library directory.
12718 hardcode_action_CXX=relink
12720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12721 hardcode_action_CXX=immediate
12724 # We cannot hardcode anything, or else we can only hardcode existing
12726 hardcode_action_CXX=unsupported
12728 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12729 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12731 if test "$hardcode_action_CXX" = relink; then
12732 # Fast installation is not supported
12733 enable_fast_install=no
12734 elif test "$shlibpath_overrides_runpath" = yes ||
12735 test "$enable_shared" = no; then
12736 # Fast installation is not necessary
12737 enable_fast_install=needless
12742 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12743 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12744 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12745 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12746 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12747 { echo "$as_me:$LINENO: result: yes" >&5
12748 echo "${ECHO_T}yes" >&6; }
12750 # FIXME - insert some real tests, host_os isn't really good enough
12753 if test -n "$STRIP" ; then
12754 striplib="$STRIP -x"
12755 { echo "$as_me:$LINENO: result: yes" >&5
12756 echo "${ECHO_T}yes" >&6; }
12758 { echo "$as_me:$LINENO: result: no" >&5
12759 echo "${ECHO_T}no" >&6; }
12763 { echo "$as_me:$LINENO: result: no" >&5
12764 echo "${ECHO_T}no" >&6; }
12769 if test "x$enable_dlopen" != xyes; then
12770 enable_dlopen=unknown
12771 enable_dlopen_self=unknown
12772 enable_dlopen_self_static=unknown
12779 lt_cv_dlopen="load_add_on"
12781 lt_cv_dlopen_self=yes
12785 lt_cv_dlopen="LoadLibrary"
12790 lt_cv_dlopen="dlopen"
12795 # if libdl is installed we need to link against it
12796 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12797 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12798 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 ac_check_lib_save_LIBS=$LIBS
12803 cat >conftest.$ac_ext <<_ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_link") 2>conftest.er1
12834 grep -v '^ *+' conftest.er1 >conftest.err
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } && {
12839 test -z "$ac_cxx_werror_flag" ||
12840 test ! -s conftest.err
12841 } && test -s conftest$ac_exeext &&
12842 $as_test_x conftest$ac_exeext; then
12843 ac_cv_lib_dl_dlopen=yes
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_cv_lib_dl_dlopen=no
12851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12852 conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12857 if test $ac_cv_lib_dl_dlopen = yes; then
12858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12861 lt_cv_dlopen="dyld"
12863 lt_cv_dlopen_self=yes
12870 { echo "$as_me:$LINENO: checking for shl_load" >&5
12871 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12872 if test "${ac_cv_func_shl_load+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12883 #define shl_load innocuous_shl_load
12885 /* System header to define __stub macros and hopefully few prototypes,
12886 which can conflict with char shl_load (); below.
12887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12888 <limits.h> exists even on freestanding compilers. */
12891 # include <limits.h>
12893 # include <assert.h>
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12905 /* The GNU C library defines this for functions which it implements
12906 to always fail with ENOSYS. Some functions are actually named
12907 something starting with __ and the normal name is an alias. */
12908 #if defined __stub_shl_load || defined __stub___shl_load
12915 return shl_load ();
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_link") 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } && {
12934 test -z "$ac_cxx_werror_flag" ||
12935 test ! -s conftest.err
12936 } && test -s conftest$ac_exeext &&
12937 $as_test_x conftest$ac_exeext; then
12938 ac_cv_func_shl_load=yes
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 ac_cv_func_shl_load=no
12946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12947 conftest$ac_exeext conftest.$ac_ext
12949 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12950 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12951 if test $ac_cv_func_shl_load = yes; then
12952 lt_cv_dlopen="shl_load"
12954 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12955 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12956 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 ac_check_lib_save_LIBS=$LIBS
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12978 return shl_load ();
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>conftest.er1
12992 grep -v '^ *+' conftest.er1 >conftest.err
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } && {
12997 test -z "$ac_cxx_werror_flag" ||
12998 test ! -s conftest.err
12999 } && test -s conftest$ac_exeext &&
13000 $as_test_x conftest$ac_exeext; then
13001 ac_cv_lib_dld_shl_load=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_cv_lib_dld_shl_load=no
13009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13013 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13014 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13015 if test $ac_cv_lib_dld_shl_load = yes; then
13016 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13018 { echo "$as_me:$LINENO: checking for dlopen" >&5
13019 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13020 if test "${ac_cv_func_dlopen+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 cat >conftest.$ac_ext <<_ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13031 #define dlopen innocuous_dlopen
13033 /* System header to define __stub macros and hopefully few prototypes,
13034 which can conflict with char dlopen (); below.
13035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13036 <limits.h> exists even on freestanding compilers. */
13039 # include <limits.h>
13041 # include <assert.h>
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13053 /* The GNU C library defines this for functions which it implements
13054 to always fail with ENOSYS. Some functions are actually named
13055 something starting with __ and the normal name is an alias. */
13056 #if defined __stub_dlopen || defined __stub___dlopen
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (ac_try="$ac_link"
13070 case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_link") 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } && {
13082 test -z "$ac_cxx_werror_flag" ||
13083 test ! -s conftest.err
13084 } && test -s conftest$ac_exeext &&
13085 $as_test_x conftest$ac_exeext; then
13086 ac_cv_func_dlopen=yes
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13091 ac_cv_func_dlopen=no
13094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13095 conftest$ac_exeext conftest.$ac_ext
13097 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13098 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13099 if test $ac_cv_func_dlopen = yes; then
13100 lt_cv_dlopen="dlopen"
13102 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13103 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13104 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 ac_check_lib_save_LIBS=$LIBS
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13116 /* Override any GCC internal prototype to avoid an error.
13117 Use char because int might match the return type of a GCC
13118 builtin and then its argument prototype would still apply. */
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (ac_try="$ac_link"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_link") 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } && {
13145 test -z "$ac_cxx_werror_flag" ||
13146 test ! -s conftest.err
13147 } && test -s conftest$ac_exeext &&
13148 $as_test_x conftest$ac_exeext; then
13149 ac_cv_lib_dl_dlopen=yes
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ac_cv_lib_dl_dlopen=no
13157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13158 conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13161 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13162 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13163 if test $ac_cv_lib_dl_dlopen = yes; then
13164 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13166 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13167 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13168 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lsvld $LIBS"
13173 cat >conftest.$ac_ext <<_ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (ac_try="$ac_link"
13197 case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13204 grep -v '^ *+' conftest.er1 >conftest.err
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } && {
13209 test -z "$ac_cxx_werror_flag" ||
13210 test ! -s conftest.err
13211 } && test -s conftest$ac_exeext &&
13212 $as_test_x conftest$ac_exeext; then
13213 ac_cv_lib_svld_dlopen=yes
13215 echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13218 ac_cv_lib_svld_dlopen=no
13221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13222 conftest$ac_exeext conftest.$ac_ext
13223 LIBS=$ac_check_lib_save_LIBS
13225 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13226 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13227 if test $ac_cv_lib_svld_dlopen = yes; then
13228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13230 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13231 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13232 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 ac_check_lib_save_LIBS=$LIBS
13237 cat >conftest.$ac_ext <<_ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13254 return dld_link ();
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_link") 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_cxx_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest$ac_exeext &&
13276 $as_test_x conftest$ac_exeext; then
13277 ac_cv_lib_dld_dld_link=yes
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_cv_lib_dld_dld_link=no
13285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13289 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13291 if test $ac_cv_lib_dld_dld_link = yes; then
13292 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13313 if test "x$lt_cv_dlopen" != xno; then
13319 case $lt_cv_dlopen in
13321 save_CPPFLAGS="$CPPFLAGS"
13322 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13324 save_LDFLAGS="$LDFLAGS"
13325 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13328 LIBS="$lt_cv_dlopen_libs $LIBS"
13330 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13331 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13332 if test "${lt_cv_dlopen_self+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 if test "$cross_compiling" = yes; then :
13336 lt_cv_dlopen_self=cross
13338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13339 lt_status=$lt_dlunknown
13340 cat > conftest.$ac_ext <<EOF
13341 #line 13341 "configure"
13342 #include "confdefs.h"
13351 # define LT_DLGLOBAL RTLD_GLOBAL
13354 # define LT_DLGLOBAL DL_GLOBAL
13356 # define LT_DLGLOBAL 0
13360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13361 find out it does not work in some platform. */
13362 #ifndef LT_DLLAZY_OR_NOW
13364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13367 # define LT_DLLAZY_OR_NOW DL_LAZY
13370 # define LT_DLLAZY_OR_NOW RTLD_NOW
13373 # define LT_DLLAZY_OR_NOW DL_NOW
13375 # define LT_DLLAZY_OR_NOW 0
13383 extern "C" void exit (int);
13386 void fnord() { int i=42;}
13389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13390 int status = $lt_dlunknown;
13394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13396 /* dlclose (self); */
13402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13403 (eval $ac_link) 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13407 (./conftest; exit; ) >&5 2>/dev/null
13409 case x$lt_status in
13410 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13411 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13412 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13415 # compilation failed
13416 lt_cv_dlopen_self=no
13423 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13424 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13426 if test "x$lt_cv_dlopen_self" = xyes; then
13427 LDFLAGS="$LDFLAGS $link_static_flag"
13428 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13429 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13430 if test "${lt_cv_dlopen_self_static+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 if test "$cross_compiling" = yes; then :
13434 lt_cv_dlopen_self_static=cross
13436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13437 lt_status=$lt_dlunknown
13438 cat > conftest.$ac_ext <<EOF
13439 #line 13439 "configure"
13440 #include "confdefs.h"
13449 # define LT_DLGLOBAL RTLD_GLOBAL
13452 # define LT_DLGLOBAL DL_GLOBAL
13454 # define LT_DLGLOBAL 0
13458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13459 find out it does not work in some platform. */
13460 #ifndef LT_DLLAZY_OR_NOW
13462 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13465 # define LT_DLLAZY_OR_NOW DL_LAZY
13468 # define LT_DLLAZY_OR_NOW RTLD_NOW
13471 # define LT_DLLAZY_OR_NOW DL_NOW
13473 # define LT_DLLAZY_OR_NOW 0
13481 extern "C" void exit (int);
13484 void fnord() { int i=42;}
13487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13488 int status = $lt_dlunknown;
13492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13494 /* dlclose (self); */
13500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501 (eval $ac_link) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13505 (./conftest; exit; ) >&5 2>/dev/null
13507 case x$lt_status in
13508 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13509 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13510 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13513 # compilation failed
13514 lt_cv_dlopen_self_static=no
13521 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13522 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13525 CPPFLAGS="$save_CPPFLAGS"
13526 LDFLAGS="$save_LDFLAGS"
13531 case $lt_cv_dlopen_self in
13532 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13533 *) enable_dlopen_self=unknown ;;
13536 case $lt_cv_dlopen_self_static in
13537 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13538 *) enable_dlopen_self_static=unknown ;;
13543 # The else clause should only fire when bootstrapping the
13544 # libtool distribution, otherwise you forgot to ship ltmain.sh
13545 # with your package, and you will get complaints that there are
13546 # no rules to generate ltmain.sh.
13547 if test -f "$ltmain"; then
13548 # See if we are running on zsh, and set the options which allow our commands through
13549 # without removal of \ escapes.
13550 if test -n "${ZSH_VERSION+set}" ; then
13551 setopt NO_GLOB_SUBST
13553 # Now quote all the things that may contain metacharacters while being
13554 # careful not to overquote the AC_SUBSTed values. We take copies of the
13555 # variables and quote the copies for generation of the libtool script.
13556 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13558 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13559 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13560 deplibs_check_method reload_flag reload_cmds need_locks \
13561 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13562 lt_cv_sys_global_symbol_to_c_name_address \
13563 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13564 old_postinstall_cmds old_postuninstall_cmds \
13568 lt_prog_compiler_wl_CXX \
13569 lt_prog_compiler_pic_CXX \
13570 lt_prog_compiler_static_CXX \
13571 lt_prog_compiler_no_builtin_flag_CXX \
13572 export_dynamic_flag_spec_CXX \
13573 thread_safe_flag_spec_CXX \
13574 whole_archive_flag_spec_CXX \
13575 enable_shared_with_static_runtimes_CXX \
13576 old_archive_cmds_CXX \
13577 old_archive_from_new_cmds_CXX \
13578 predep_objects_CXX \
13579 postdep_objects_CXX \
13582 compiler_lib_search_path_CXX \
13584 archive_expsym_cmds_CXX \
13585 postinstall_cmds_CXX \
13586 postuninstall_cmds_CXX \
13587 old_archive_from_expsyms_cmds_CXX \
13588 allow_undefined_flag_CXX \
13589 no_undefined_flag_CXX \
13590 export_symbols_cmds_CXX \
13591 hardcode_libdir_flag_spec_CXX \
13592 hardcode_libdir_flag_spec_ld_CXX \
13593 hardcode_libdir_separator_CXX \
13594 hardcode_automatic_CXX \
13596 module_expsym_cmds_CXX \
13597 lt_cv_prog_compiler_c_o_CXX \
13598 exclude_expsyms_CXX \
13599 include_expsyms_CXX; do
13602 old_archive_cmds_CXX | \
13603 old_archive_from_new_cmds_CXX | \
13604 archive_cmds_CXX | \
13605 archive_expsym_cmds_CXX | \
13606 module_cmds_CXX | \
13607 module_expsym_cmds_CXX | \
13608 old_archive_from_expsyms_cmds_CXX | \
13609 export_symbols_cmds_CXX | \
13610 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13611 postinstall_cmds | postuninstall_cmds | \
13612 old_postinstall_cmds | old_postuninstall_cmds | \
13613 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13614 # Double-quote double-evaled strings.
13615 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13618 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13624 *'\$0 --fallback-echo"')
13625 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13631 cat <<__EOF__ >> "$cfgfile"
13632 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13636 # Shell to use when invoking shell scripts.
13639 # Whether or not to build shared libraries.
13640 build_libtool_libs=$enable_shared
13642 # Whether or not to build static libraries.
13643 build_old_libs=$enable_static
13645 # Whether or not to add -lc for building shared libraries.
13646 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13648 # Whether or not to disallow shared libs when runtime libs are static
13649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13651 # Whether or not to optimize for fast installation.
13652 fast_install=$enable_fast_install
13655 host_alias=$host_alias
13659 # The build system.
13660 build_alias=$build_alias
13664 # An echo program that does not interpret backslashes.
13669 AR_FLAGS=$lt_AR_FLAGS
13674 # A language-specific compiler.
13675 CC=$lt_compiler_CXX
13677 # Is the compiler the GNU C compiler?
13683 # The linker used to build libraries.
13686 # Whether we need hard or soft links.
13689 # A BSD-compatible nm program.
13692 # A symbol stripping program
13695 # Used to examine libraries when file_magic_cmd begins "file"
13696 MAGIC_CMD=$MAGIC_CMD
13698 # Used on cygwin: DLL creation program.
13701 # Used on cygwin: object dumper.
13704 # Used on cygwin: assembler.
13707 # The name of the directory that contains temporary libtool files.
13710 # How to create reloadable object files.
13711 reload_flag=$lt_reload_flag
13712 reload_cmds=$lt_reload_cmds
13714 # How to pass a linker flag through the compiler.
13715 wl=$lt_lt_prog_compiler_wl_CXX
13717 # Object file suffix (normally "o").
13718 objext="$ac_objext"
13720 # Old archive suffix (normally "a").
13723 # Shared library suffix (normally ".so").
13724 shrext_cmds='$shrext_cmds'
13726 # Executable file suffix (normally "").
13729 # Additional compiler flags for building library objects.
13730 pic_flag=$lt_lt_prog_compiler_pic_CXX
13733 # What is the maximum length of a command?
13734 max_cmd_len=$lt_cv_sys_max_cmd_len
13736 # Does compiler simultaneously support -c and -o options?
13737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13739 # Must we lock files when doing compilation?
13740 need_locks=$lt_need_locks
13742 # Do we need the lib prefix for modules?
13743 need_lib_prefix=$need_lib_prefix
13745 # Do we need a version for libraries?
13746 need_version=$need_version
13748 # Whether dlopen is supported.
13749 dlopen_support=$enable_dlopen
13751 # Whether dlopen of programs is supported.
13752 dlopen_self=$enable_dlopen_self
13754 # Whether dlopen of statically linked programs is supported.
13755 dlopen_self_static=$enable_dlopen_self_static
13757 # Compiler flag to prevent dynamic linking.
13758 link_static_flag=$lt_lt_prog_compiler_static_CXX
13760 # Compiler flag to turn off builtin functions.
13761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13763 # Compiler flag to allow reflexive dlopens.
13764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13766 # Compiler flag to generate shared objects directly from archives.
13767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13769 # Compiler flag to generate thread-safe objects.
13770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13772 # Library versioning type.
13773 version_type=$version_type
13775 # Format of library name prefix.
13776 libname_spec=$lt_libname_spec
13778 # List of archive names. First name is the real one, the rest are links.
13779 # The last name is the one that the linker finds with -lNAME.
13780 library_names_spec=$lt_library_names_spec
13782 # The coded name of the library, if different from the real name.
13783 soname_spec=$lt_soname_spec
13785 # Commands used to build and install an old-style archive.
13787 old_archive_cmds=$lt_old_archive_cmds_CXX
13788 old_postinstall_cmds=$lt_old_postinstall_cmds
13789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13791 # Create an old-style archive from a shared archive.
13792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13794 # Create a temporary old-style archive to link instead of a shared archive.
13795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13797 # Commands used to build and install a shared archive.
13798 archive_cmds=$lt_archive_cmds_CXX
13799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13800 postinstall_cmds=$lt_postinstall_cmds
13801 postuninstall_cmds=$lt_postuninstall_cmds
13803 # Commands used to build a loadable module (assumed same as above if empty)
13804 module_cmds=$lt_module_cmds_CXX
13805 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13807 # Commands to strip libraries.
13808 old_striplib=$lt_old_striplib
13809 striplib=$lt_striplib
13811 # Dependencies to place before the objects being linked to create a
13813 predep_objects=$lt_predep_objects_CXX
13815 # Dependencies to place after the objects being linked to create a
13817 postdep_objects=$lt_postdep_objects_CXX
13819 # Dependencies to place before the objects being linked to create a
13821 predeps=$lt_predeps_CXX
13823 # Dependencies to place after the objects being linked to create a
13825 postdeps=$lt_postdeps_CXX
13827 # The library search path used internally by the compiler when linking
13828 # a shared library.
13829 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13831 # Method to check whether dependent libraries are shared objects.
13832 deplibs_check_method=$lt_deplibs_check_method
13834 # Command to use when deplibs_check_method == file_magic.
13835 file_magic_cmd=$lt_file_magic_cmd
13837 # Flag that allows shared libraries with undefined symbols to be built.
13838 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13840 # Flag that forces no undefined symbols.
13841 no_undefined_flag=$lt_no_undefined_flag_CXX
13843 # Commands used to finish a libtool library installation in a directory.
13844 finish_cmds=$lt_finish_cmds
13846 # Same as above, but a single script fragment to be evaled but not shown.
13847 finish_eval=$lt_finish_eval
13849 # Take the output of nm and produce a listing of raw symbols and C names.
13850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13852 # Transform the output of nm in a proper C declaration
13853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13855 # Transform the output of nm in a C name address pair
13856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13858 # This is the shared library runtime path variable.
13859 runpath_var=$runpath_var
13861 # This is the shared library path variable.
13862 shlibpath_var=$shlibpath_var
13864 # Is shlibpath searched before the hard-coded library search path?
13865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13867 # How to hardcode a shared library path into an executable.
13868 hardcode_action=$hardcode_action_CXX
13870 # Whether we should hardcode library paths into libraries.
13871 hardcode_into_libs=$hardcode_into_libs
13873 # Flag to hardcode \$libdir into a binary during linking.
13874 # This must work even if \$libdir does not exist.
13875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13877 # If ld is used when linking, flag to hardcode \$libdir into
13878 # a binary during linking. This must work even if \$libdir does
13880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13882 # Whether we need a single -rpath flag with a separated argument.
13883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13886 # resulting binary.
13887 hardcode_direct=$hardcode_direct_CXX
13889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13890 # resulting binary.
13891 hardcode_minus_L=$hardcode_minus_L_CXX
13893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13894 # the resulting binary.
13895 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13897 # Set to yes if building a shared library automatically hardcodes DIR into the library
13898 # and all subsequent libraries and executables linked against it.
13899 hardcode_automatic=$hardcode_automatic_CXX
13901 # Variables whose values should be saved in libtool wrapper scripts and
13902 # restored at relink time.
13903 variables_saved_for_relink="$variables_saved_for_relink"
13905 # Whether libtool must link a program against all its dependency libraries.
13906 link_all_deplibs=$link_all_deplibs_CXX
13908 # Compile-time system search path for libraries
13909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13911 # Run-time system search path for libraries
13912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13914 # Fix the shell variable \$srcfile for the compiler.
13915 fix_srcfile_path="$fix_srcfile_path_CXX"
13917 # Set to yes if exported symbols are required.
13918 always_export_symbols=$always_export_symbols_CXX
13920 # The commands to list exported symbols.
13921 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13923 # The commands to extract the exported symbol list from a shared archive.
13924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13926 # Symbols that should not be listed in the preloaded symbols.
13927 exclude_expsyms=$lt_exclude_expsyms_CXX
13929 # Symbols that must always be exported.
13930 include_expsyms=$lt_include_expsyms_CXX
13932 # ### END LIBTOOL TAG CONFIG: $tagname
13938 # If there is no Makefile yet, we rely on a make rule to execute
13939 # `config.status --recheck' to rerun these tests and create the
13940 # libtool script then.
13941 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13942 if test -f "$ltmain_in"; then
13943 test -f Makefile && make "$ltmain"
13949 ac_cpp='$CPP $CPPFLAGS'
13950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13958 with_gnu_ldcxx=$with_gnu_ld
13959 with_gnu_ld=$lt_save_with_gnu_ld
13960 lt_cv_path_LDCXX=$lt_cv_path_LD
13961 lt_cv_path_LD=$lt_save_path_LD
13962 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13963 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13971 if test -n "$F77" && test "X$F77" != "Xno"; then
13974 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13975 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13976 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13979 archive_cmds_need_lc_F77=no
13980 allow_undefined_flag_F77=
13981 always_export_symbols_F77=no
13982 archive_expsym_cmds_F77=
13983 export_dynamic_flag_spec_F77=
13984 hardcode_direct_F77=no
13985 hardcode_libdir_flag_spec_F77=
13986 hardcode_libdir_flag_spec_ld_F77=
13987 hardcode_libdir_separator_F77=
13988 hardcode_minus_L_F77=no
13989 hardcode_automatic_F77=no
13991 module_expsym_cmds_F77=
13992 link_all_deplibs_F77=unknown
13993 old_archive_cmds_F77=$old_archive_cmds
13994 no_undefined_flag_F77=
13995 whole_archive_flag_spec_F77=
13996 enable_shared_with_static_runtimes_F77=no
13998 # Source file extension for f77 test sources.
14001 # Object file extension for compiled f77 test sources.
14005 # Code to be used in simple compile tests
14006 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14008 # Code to be used in simple link tests
14009 lt_simple_link_test_code=" program t\n end\n"
14011 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14013 # If no C compiler was specified, use CC.
14016 # Allow CC to be a program name with arguments.
14020 # save warnings/boilerplate of simple test code
14021 ac_outfile=conftest.$ac_objext
14022 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14024 _lt_compiler_boilerplate=`cat conftest.err`
14027 ac_outfile=conftest.$ac_objext
14028 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14030 _lt_linker_boilerplate=`cat conftest.err`
14034 # Allow CC to be a program name with arguments.
14039 for cc_temp in $compiler""; do
14041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14050 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14051 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14052 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14053 echo "${ECHO_T}$can_build_shared" >&6; }
14055 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14056 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14057 test "$can_build_shared" = "no" && enable_shared=no
14059 # On AIX, shared libraries and static libraries use the same namespace, and
14060 # are all built from PIC.
14063 test "$enable_shared" = yes && enable_static=no
14064 if test -n "$RANLIB"; then
14065 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14066 postinstall_cmds='$RANLIB $lib'
14070 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14071 test "$enable_shared" = yes && enable_static=no
14075 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14076 echo "${ECHO_T}$enable_shared" >&6; }
14078 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14079 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14080 # Make sure either enable_shared or enable_static is yes.
14081 test "$enable_shared" = yes || enable_static=yes
14082 { echo "$as_me:$LINENO: result: $enable_static" >&5
14083 echo "${ECHO_T}$enable_static" >&6; }
14085 test "$ld_shlibs_F77" = no && can_build_shared=no
14090 lt_prog_compiler_wl_F77=
14091 lt_prog_compiler_pic_F77=
14092 lt_prog_compiler_static_F77=
14094 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14095 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14097 if test "$GCC" = yes; then
14098 lt_prog_compiler_wl_F77='-Wl,'
14099 lt_prog_compiler_static_F77='-static'
14103 # All AIX code is PIC.
14104 if test "$host_cpu" = ia64; then
14105 # AIX 5 now supports IA64 processor
14106 lt_prog_compiler_static_F77='-Bstatic'
14111 # FIXME: we need at least 68020 code to build shared libraries, but
14112 # adding the `-m68020' flag to GCC prevents building anything better,
14114 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14117 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14118 # PIC is the default for these OSes.
14121 mingw* | pw32* | os2*)
14122 # This hack is so that the source file can tell whether it is being
14123 # built for inclusion in a dll (and should export symbols for example).
14124 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14127 darwin* | rhapsody*)
14128 # PIC is the default on this platform
14129 # Common symbols not allowed in MH_DYLIB files
14130 lt_prog_compiler_pic_F77='-fno-common'
14134 # Just because we use GCC doesn't mean we suddenly get shared libraries
14135 # on systems that don't support them.
14136 lt_prog_compiler_can_build_shared_F77=no
14141 if test -d /usr/nec; then
14142 lt_prog_compiler_pic_F77=-Kconform_pic
14147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14148 # not for PA HP-UX.
14154 lt_prog_compiler_pic_F77='-fPIC'
14160 lt_prog_compiler_pic_F77='-fPIC'
14164 # PORTME Check for flag to pass linker flags through the system compiler.
14167 lt_prog_compiler_wl_F77='-Wl,'
14168 if test "$host_cpu" = ia64; then
14169 # AIX 5 now supports IA64 processor
14170 lt_prog_compiler_static_F77='-Bstatic'
14172 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14176 # PIC is the default on this platform
14177 # Common symbols not allowed in MH_DYLIB files
14178 case $cc_basename in
14180 lt_prog_compiler_pic_F77='-qnocommon'
14181 lt_prog_compiler_wl_F77='-Wl,'
14186 mingw* | pw32* | os2*)
14187 # This hack is so that the source file can tell whether it is being
14188 # built for inclusion in a dll (and should export symbols for example).
14189 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14192 hpux9* | hpux10* | hpux11*)
14193 lt_prog_compiler_wl_F77='-Wl,'
14194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14195 # not for PA HP-UX.
14201 lt_prog_compiler_pic_F77='+Z'
14204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14205 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14208 irix5* | irix6* | nonstopux*)
14209 lt_prog_compiler_wl_F77='-Wl,'
14210 # PIC (with -KPIC) is the default.
14211 lt_prog_compiler_static_F77='-non_shared'
14215 lt_prog_compiler_pic_F77='-KPIC'
14216 lt_prog_compiler_static_F77='-Bstatic'
14220 case $cc_basename in
14222 lt_prog_compiler_wl_F77='-Wl,'
14223 lt_prog_compiler_pic_F77='-KPIC'
14224 lt_prog_compiler_static_F77='-static'
14226 pgcc* | pgf77* | pgf90* | pgf95*)
14227 # Portland Group compilers (*not* the Pentium gcc compiler,
14228 # which looks to be a dead project)
14229 lt_prog_compiler_wl_F77='-Wl,'
14230 lt_prog_compiler_pic_F77='-fpic'
14231 lt_prog_compiler_static_F77='-Bstatic'
14234 lt_prog_compiler_wl_F77='-Wl,'
14235 # All Alpha code is PIC.
14236 lt_prog_compiler_static_F77='-non_shared'
14241 osf3* | osf4* | osf5*)
14242 lt_prog_compiler_wl_F77='-Wl,'
14243 # All OSF/1 code is PIC.
14244 lt_prog_compiler_static_F77='-non_shared'
14248 lt_prog_compiler_pic_F77='-Kpic'
14249 lt_prog_compiler_static_F77='-dn'
14253 lt_prog_compiler_pic_F77='-KPIC'
14254 lt_prog_compiler_static_F77='-Bstatic'
14255 case $cc_basename in
14256 f77* | f90* | f95*)
14257 lt_prog_compiler_wl_F77='-Qoption ld ';;
14259 lt_prog_compiler_wl_F77='-Wl,';;
14264 lt_prog_compiler_wl_F77='-Qoption ld '
14265 lt_prog_compiler_pic_F77='-PIC'
14266 lt_prog_compiler_static_F77='-Bstatic'
14269 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14270 lt_prog_compiler_wl_F77='-Wl,'
14271 lt_prog_compiler_pic_F77='-KPIC'
14272 lt_prog_compiler_static_F77='-Bstatic'
14276 if test -d /usr/nec ;then
14277 lt_prog_compiler_pic_F77='-Kconform_pic'
14278 lt_prog_compiler_static_F77='-Bstatic'
14283 lt_prog_compiler_wl_F77='-Wl,'
14284 lt_prog_compiler_can_build_shared_F77=no
14288 lt_prog_compiler_pic_F77='-pic'
14289 lt_prog_compiler_static_F77='-Bstatic'
14293 lt_prog_compiler_can_build_shared_F77=no
14298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14299 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14302 # Check to make sure the PIC flag actually works.
14304 if test -n "$lt_prog_compiler_pic_F77"; then
14306 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14307 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14308 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 lt_prog_compiler_pic_works_F77=no
14312 ac_outfile=conftest.$ac_objext
14313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14314 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14315 # Insert the option either (1) after the last *FLAGS variable, or
14316 # (2) before a word containing "conftest.", or (3) at the end.
14317 # Note that $ac_compile itself does not contain backslashes and begins
14318 # with a dollar sign (not a hyphen), so the echo should work correctly.
14319 # The option is referenced via a variable to avoid confusing sed.
14320 lt_compile=`echo "$ac_compile" | $SED \
14321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14323 -e 's:$: $lt_compiler_flag:'`
14324 (eval echo "\"\$as_me:14324: $lt_compile\"" >&5)
14325 (eval "$lt_compile" 2>conftest.err)
14327 cat conftest.err >&5
14328 echo "$as_me:14328: \$? = $ac_status" >&5
14329 if (exit $ac_status) && test -s "$ac_outfile"; then
14330 # The compiler can only warn and ignore the option if not recognized
14331 # So say no if there are warnings other than the usual output.
14332 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14333 $SED '/^$/d' conftest.err >conftest.er2
14334 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14335 lt_prog_compiler_pic_works_F77=yes
14341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14342 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14344 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14345 case $lt_prog_compiler_pic_F77 in
14347 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14350 lt_prog_compiler_pic_F77=
14351 lt_prog_compiler_can_build_shared_F77=no
14356 # For platforms which do not support PIC, -DPIC is meaningless:
14358 lt_prog_compiler_pic_F77=
14361 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14365 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14366 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14367 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 lt_cv_prog_compiler_c_o_F77=no
14371 $rm -r conftest 2>/dev/null
14375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14377 lt_compiler_flag="-o out/conftest2.$ac_objext"
14378 # Insert the option either (1) after the last *FLAGS variable, or
14379 # (2) before a word containing "conftest.", or (3) at the end.
14380 # Note that $ac_compile itself does not contain backslashes and begins
14381 # with a dollar sign (not a hyphen), so the echo should work correctly.
14382 lt_compile=`echo "$ac_compile" | $SED \
14383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14385 -e 's:$: $lt_compiler_flag:'`
14386 (eval echo "\"\$as_me:14386: $lt_compile\"" >&5)
14387 (eval "$lt_compile" 2>out/conftest.err)
14389 cat out/conftest.err >&5
14390 echo "$as_me:14390: \$? = $ac_status" >&5
14391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14393 # The compiler can only warn and ignore the option if not recognized
14394 # So say no if there are warnings
14395 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14396 $SED '/^$/d' out/conftest.err >out/conftest.er2
14397 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14398 lt_cv_prog_compiler_c_o_F77=yes
14403 # SGI C++ compiler will create directory out/ii_files/ for
14404 # template instantiation
14405 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14406 $rm out/* && rmdir out
14412 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14413 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14416 hard_links="nottested"
14417 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14418 # do not overwrite the value of need_locks provided by the user
14419 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14420 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14425 ln conftest.a conftest.b 2>&5 || hard_links=no
14426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14427 { echo "$as_me:$LINENO: result: $hard_links" >&5
14428 echo "${ECHO_T}$hard_links" >&6; }
14429 if test "$hard_links" = no; then
14430 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14431 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14438 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14439 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14442 allow_undefined_flag_F77=
14443 enable_shared_with_static_runtimes_F77=no
14445 archive_expsym_cmds_F77=
14446 old_archive_From_new_cmds_F77=
14447 old_archive_from_expsyms_cmds_F77=
14448 export_dynamic_flag_spec_F77=
14449 whole_archive_flag_spec_F77=
14450 thread_safe_flag_spec_F77=
14451 hardcode_libdir_flag_spec_F77=
14452 hardcode_libdir_flag_spec_ld_F77=
14453 hardcode_libdir_separator_F77=
14454 hardcode_direct_F77=no
14455 hardcode_minus_L_F77=no
14456 hardcode_shlibpath_var_F77=unsupported
14457 link_all_deplibs_F77=unknown
14458 hardcode_automatic_F77=no
14460 module_expsym_cmds_F77=
14461 always_export_symbols_F77=no
14462 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14463 # include_expsyms should be a list of space-separated symbols to be *always*
14464 # included in the symbol list
14465 include_expsyms_F77=
14466 # exclude_expsyms can be an extended regexp of symbols to exclude
14467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14469 # as well as any symbol that contains `d'.
14470 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14472 # platforms (ab)use it in PIC code, but their linkers get confused if
14473 # the symbol is explicitly referenced. Since portable code cannot
14474 # rely on this symbol name, it's probably fine to never include it in
14475 # preloaded symbol tables.
14476 extract_expsyms_cmds=
14477 # Just being paranoid about ensuring that cc_basename is set.
14478 for cc_temp in $compiler""; do
14480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14489 cygwin* | mingw* | pw32*)
14490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14491 # When not using gcc, we currently assume that we are using
14492 # Microsoft Visual C++.
14493 if test "$GCC" != yes; then
14503 if test "$with_gnu_ld" = yes; then
14504 # If archive_cmds runs LD, not CC, wlarc should be empty
14507 # Set some defaults for GNU ld with shared library support. These
14508 # are reset later if shared libraries are not supported. Putting them
14509 # here allows them to be overridden if necessary.
14510 runpath_var=LD_RUN_PATH
14511 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14512 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14513 # ancient GNU ld didn't support --whole-archive et. al.
14514 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14515 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14517 whole_archive_flag_spec_F77=
14519 supports_anon_versioning=no
14520 case `$LD -v 2>/dev/null` in
14521 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14524 *\ 2.11.*) ;; # other 2.11 versions
14525 *) supports_anon_versioning=yes ;;
14528 # See if GNU ld supports shared libraries.
14530 aix3* | aix4* | aix5*)
14531 # On AIX/PPC, the GNU linker is very broken
14532 if test "$host_cpu" != ia64; then
14536 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14537 *** to be unable to reliably create shared libraries on AIX.
14538 *** Therefore, libtool is disabling shared libraries support. If you
14539 *** really care for shared libraries, you may want to modify your PATH
14540 *** so that a non-GNU linker is found, and then restart.
14547 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)'
14548 hardcode_libdir_flag_spec_F77='-L$libdir'
14549 hardcode_minus_L_F77=yes
14551 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14552 # that the semantics of dynamic libraries on AmigaOS, at least up
14553 # to version 4, is to share data among multiple programs linked
14554 # with the same dynamic library. Since this doesn't match the
14555 # behavior of shared libraries on other platforms, we can't use
14561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14562 allow_undefined_flag_F77=unsupported
14563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14564 # support --undefined. This deserves some investigation. FIXME
14565 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14571 cygwin* | mingw* | pw32*)
14572 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14573 # as there is no search path for DLLs.
14574 hardcode_libdir_flag_spec_F77='-L$libdir'
14575 allow_undefined_flag_F77=unsupported
14576 always_export_symbols_F77=no
14577 enable_shared_with_static_runtimes_F77=yes
14578 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14580 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14581 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14582 # If the export-symbols file already is a .def file (1st line
14583 # is EXPORTS), use it as is; otherwise, prepend...
14584 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14585 cp $export_symbols $output_objdir/$soname.def;
14587 echo EXPORTS > $output_objdir/$soname.def;
14588 cat $export_symbols >> $output_objdir/$soname.def;
14590 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14599 case $cc_basename,$host_cpu in
14600 pgcc*) # Portland Group C compiler
14601 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'
14602 tmp_addflag=' $pic_flag'
14604 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14605 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'
14606 tmp_addflag=' $pic_flag -Mnomain' ;;
14607 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14608 tmp_addflag=' -i_dynamic' ;;
14609 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14610 tmp_addflag=' -i_dynamic -nofor_main' ;;
14611 ifc* | ifort*) # Intel Fortran compiler
14612 tmp_addflag=' -nofor_main' ;;
14614 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14616 if test $supports_anon_versioning = yes; then
14617 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14619 $echo "local: *; };" >> $output_objdir/$libname.ver~
14620 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14629 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14632 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14633 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14638 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14643 *** create shared libraries on Solaris systems. Therefore, libtool
14644 *** is disabling shared libraries support. We urge you to upgrade GNU
14645 *** binutils to release 2.9.1 or newer. Another option is to modify
14646 *** your PATH or compiler configuration so that the native linker is
14647 *** used, and then restart.
14650 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14652 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14659 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14661 hardcode_direct_F77=yes
14662 hardcode_shlibpath_var_F77=no
14666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14667 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14668 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14675 if test "$ld_shlibs_F77" = no; then
14677 hardcode_libdir_flag_spec_F77=
14678 export_dynamic_flag_spec_F77=
14679 whole_archive_flag_spec_F77=
14682 # PORTME fill in a description of your system's linker (not GNU ld)
14685 allow_undefined_flag_F77=unsupported
14686 always_export_symbols_F77=yes
14687 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'
14688 # Note: this linker hardcodes the directories in LIBPATH if there
14689 # are no directories specified by -L.
14690 hardcode_minus_L_F77=yes
14691 if test "$GCC" = yes && test -z "$link_static_flag"; then
14692 # Neither direct hardcoding nor static linking is supported with a
14694 hardcode_direct_F77=unsupported
14699 if test "$host_cpu" = ia64; then
14700 # On IA64, the linker does run time linking by default, so we don't
14701 # have to do anything special.
14702 aix_use_runtimelinking=no
14703 exp_sym_flag='-Bexport'
14706 # If we're using GNU nm, then we don't want the "-C" option.
14707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14708 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14709 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'
14711 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'
14713 aix_use_runtimelinking=no
14715 # Test if we are trying to use run time linking or normal
14716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14717 # need to do runtime linking.
14718 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14719 for ld_flag in $LDFLAGS; do
14720 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14721 aix_use_runtimelinking=yes
14727 exp_sym_flag='-bexport'
14728 no_entry_flag='-bnoentry'
14731 # When large executables or shared objects are built, AIX ld can
14732 # have problems creating the table of contents. If linking a library
14733 # or program results in "error TOC overflow" add -mminimal-toc to
14734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14737 archive_cmds_F77=''
14738 hardcode_direct_F77=yes
14739 hardcode_libdir_separator_F77=':'
14740 link_all_deplibs_F77=yes
14742 if test "$GCC" = yes; then
14743 case $host_os in aix4.[012]|aix4.[012].*)
14744 # We only want to do this on AIX 4.2 and lower, the check
14745 # below for broken collect2 doesn't work under 4.3+
14746 collect2name=`${CC} -print-prog-name=collect2`
14747 if test -f "$collect2name" && \
14748 strings "$collect2name" | grep resolve_lib_name >/dev/null
14750 # We have reworked collect2
14751 hardcode_direct_F77=yes
14753 # We have old collect2
14754 hardcode_direct_F77=unsupported
14755 # It fails to find uninstalled libraries when the uninstalled
14756 # path is not listed in the libpath. Setting hardcode_minus_L
14757 # to unsupported forces relinking
14758 hardcode_minus_L_F77=yes
14759 hardcode_libdir_flag_spec_F77='-L$libdir'
14760 hardcode_libdir_separator_F77=
14763 shared_flag='-shared'
14764 if test "$aix_use_runtimelinking" = yes; then
14765 shared_flag="$shared_flag "'${wl}-G'
14769 if test "$host_cpu" = ia64; then
14770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14771 # chokes on -Wl,-G. The following line is correct:
14774 if test "$aix_use_runtimelinking" = yes; then
14775 shared_flag='${wl}-G'
14777 shared_flag='${wl}-bM:SRE'
14782 # It seems that -bexpall does not export symbols beginning with
14783 # underscore (_), so it is better to generate a list of symbols to export.
14784 always_export_symbols_F77=yes
14785 if test "$aix_use_runtimelinking" = yes; then
14786 # Warning - without using the other runtime loading flags (-brtl),
14787 # -berok will link without error, but may produce a broken library.
14788 allow_undefined_flag_F77='-berok'
14789 # Determine the default libpath from the value encoded in an empty executable.
14790 cat >conftest.$ac_ext <<_ACEOF
14795 rm -f conftest.$ac_objext conftest$ac_exeext
14796 if { (ac_try="$ac_link"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_link") 2>conftest.er1
14804 grep -v '^ *+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } && {
14809 test -z "$ac_f77_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest$ac_exeext &&
14812 $as_test_x conftest$ac_exeext; then
14814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14816 # Check for a 64-bit object if we didn't find anything.
14817 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; }
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14827 conftest$ac_exeext conftest.$ac_ext
14828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14830 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14831 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"
14833 if test "$host_cpu" = ia64; then
14834 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14835 allow_undefined_flag_F77="-z nodefs"
14836 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"
14838 # Determine the default libpath from the value encoded in an empty executable.
14839 cat >conftest.$ac_ext <<_ACEOF
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_link") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1 >conftest.err
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } && {
14858 test -z "$ac_f77_werror_flag" ||
14859 test ! -s conftest.err
14860 } && test -s conftest$ac_exeext &&
14861 $as_test_x conftest$ac_exeext; then
14863 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14865 # Check for a 64-bit object if we didn't find anything.
14866 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; }
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14876 conftest$ac_exeext conftest.$ac_ext
14877 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14879 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14880 # Warning - without using the other run time loading flags,
14881 # -berok will link without error, but may produce a broken library.
14882 no_undefined_flag_F77=' ${wl}-bernotok'
14883 allow_undefined_flag_F77=' ${wl}-berok'
14884 # -bexpall does not export symbols beginning with underscore (_)
14885 always_export_symbols_F77=yes
14886 # Exported symbols can be pulled into shared objects from archives
14887 whole_archive_flag_spec_F77=' '
14888 archive_cmds_need_lc_F77=yes
14889 # This is similar to how AIX traditionally builds its shared libraries.
14890 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'
14896 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)'
14897 hardcode_libdir_flag_spec_F77='-L$libdir'
14898 hardcode_minus_L_F77=yes
14899 # see comment about different semantics on the GNU ld section
14904 export_dynamic_flag_spec_F77=-rdynamic
14907 cygwin* | mingw* | pw32*)
14908 # When not using gcc, we currently assume that we are using
14909 # Microsoft Visual C++.
14910 # hardcode_libdir_flag_spec is actually meaningless, as there is
14911 # no search path for DLLs.
14912 hardcode_libdir_flag_spec_F77=' '
14913 allow_undefined_flag_F77=unsupported
14914 # Tell ltmain to make .lib files, not .a files.
14916 # Tell ltmain to make .dll files, not .so files.
14918 # FIXME: Setting linknames here is a bad hack.
14919 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14920 # The linker will automatically build a .lib file if we build a DLL.
14921 old_archive_From_new_cmds_F77='true'
14922 # FIXME: Should let the user specify the lib program.
14923 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14924 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14925 enable_shared_with_static_runtimes_F77=yes
14928 darwin* | rhapsody*)
14930 rhapsody* | darwin1.[012])
14931 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14934 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14935 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14937 case ${MACOSX_DEPLOYMENT_TARGET} in
14939 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14942 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14948 archive_cmds_need_lc_F77=no
14949 hardcode_direct_F77=no
14950 hardcode_automatic_F77=yes
14951 hardcode_shlibpath_var_F77=unsupported
14952 whole_archive_flag_spec_F77=''
14953 link_all_deplibs_F77=yes
14954 if test "$GCC" = yes ; then
14955 output_verbose_link_cmd='echo'
14956 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14957 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14958 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14959 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}'
14960 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}'
14962 case $cc_basename in
14964 output_verbose_link_cmd='echo'
14965 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14966 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14967 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14968 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}'
14969 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}'
14979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14980 hardcode_libdir_flag_spec_F77='-L$libdir'
14981 hardcode_shlibpath_var_F77=no
14988 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14989 # support. Future versions do this automatically, but an explicit c++rt0.o
14990 # does not break anything, and helps significantly (at the cost of a little
14993 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14994 hardcode_libdir_flag_spec_F77='-R$libdir'
14995 hardcode_direct_F77=yes
14996 hardcode_shlibpath_var_F77=no
14999 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15001 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15002 hardcode_direct_F77=yes
15003 hardcode_minus_L_F77=yes
15004 hardcode_shlibpath_var_F77=no
15007 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15008 freebsd* | kfreebsd*-gnu | dragonfly*)
15009 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15010 hardcode_libdir_flag_spec_F77='-R$libdir'
15011 hardcode_direct_F77=yes
15012 hardcode_shlibpath_var_F77=no
15016 if test "$GCC" = yes; then
15017 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'
15019 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'
15021 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15022 hardcode_libdir_separator_F77=:
15023 hardcode_direct_F77=yes
15025 # hardcode_minus_L: Not really in the search PATH,
15026 # but as the default location of the library.
15027 hardcode_minus_L_F77=yes
15028 export_dynamic_flag_spec_F77='${wl}-E'
15032 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15035 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15044 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15047 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15051 if test "$with_gnu_ld" = no; then
15054 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15055 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15056 hardcode_libdir_separator_F77=:
15057 hardcode_direct_F77=no
15058 hardcode_shlibpath_var_F77=no
15061 hardcode_libdir_flag_spec_F77='-L$libdir'
15062 hardcode_direct_F77=no
15063 hardcode_shlibpath_var_F77=no
15065 # hardcode_minus_L: Not really in the search PATH,
15066 # but as the default location of the library.
15067 hardcode_minus_L_F77=yes
15070 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15071 hardcode_libdir_separator_F77=:
15072 hardcode_direct_F77=yes
15073 export_dynamic_flag_spec_F77='${wl}-E'
15075 # hardcode_minus_L: Not really in the search PATH,
15076 # but as the default location of the library.
15077 hardcode_minus_L_F77=yes
15083 irix5* | irix6* | nonstopux*)
15084 if test "$GCC" = yes; then
15085 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'
15087 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'
15088 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15090 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15091 hardcode_libdir_separator_F77=:
15092 link_all_deplibs_F77=yes
15096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15097 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15099 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15101 hardcode_libdir_flag_spec_F77='-R$libdir'
15102 hardcode_direct_F77=yes
15103 hardcode_shlibpath_var_F77=no
15107 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15108 hardcode_direct_F77=yes
15109 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15110 hardcode_libdir_separator_F77=:
15111 hardcode_shlibpath_var_F77=no
15115 hardcode_direct_F77=yes
15116 hardcode_shlibpath_var_F77=no
15117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15118 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15119 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15120 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15121 export_dynamic_flag_spec_F77='${wl}-E'
15124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15125 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15126 hardcode_libdir_flag_spec_F77='-R$libdir'
15129 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15130 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15137 hardcode_libdir_flag_spec_F77='-L$libdir'
15138 hardcode_minus_L_F77=yes
15139 allow_undefined_flag_F77=unsupported
15140 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'
15141 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15145 if test "$GCC" = yes; then
15146 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15147 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'
15149 allow_undefined_flag_F77=' -expect_unresolved \*'
15150 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'
15152 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15153 hardcode_libdir_separator_F77=:
15156 osf4* | osf5*) # as osf3* with the addition of -msym flag
15157 if test "$GCC" = yes; then
15158 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15159 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'
15160 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15162 allow_undefined_flag_F77=' -expect_unresolved \*'
15163 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'
15164 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~
15165 $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'
15167 # Both c and cxx compiler support -rpath directly
15168 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15170 hardcode_libdir_separator_F77=:
15174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15175 hardcode_shlibpath_var_F77=no
15176 export_dynamic_flag_spec_F77='${wl}-Bexport'
15177 runpath_var=LD_RUN_PATH
15178 hardcode_runpath_var=yes
15182 no_undefined_flag_F77=' -z text'
15183 if test "$GCC" = yes; then
15185 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15186 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15187 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15190 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15191 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15192 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15194 hardcode_libdir_flag_spec_F77='-R$libdir'
15195 hardcode_shlibpath_var_F77=no
15197 solaris2.[0-5] | solaris2.[0-5].*) ;;
15199 # The compiler driver will combine linker options so we
15200 # cannot just pass the convience library names through
15201 # without $wl, iff we do not link with $LD.
15202 # Luckily, gcc supports the same syntax we need for Sun Studio.
15203 # Supported since Solaris 2.6 (maybe 2.5.1?)
15206 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15208 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' ;;
15211 link_all_deplibs_F77=yes
15215 if test "x$host_vendor" = xsequent; then
15216 # Use $CC to link under sequent, because it throws in some extra .o
15217 # files that make .init and .fini sections work.
15218 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15220 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15222 hardcode_libdir_flag_spec_F77='-L$libdir'
15223 hardcode_direct_F77=yes
15224 hardcode_minus_L_F77=yes
15225 hardcode_shlibpath_var_F77=no
15229 case $host_vendor in
15231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15232 hardcode_direct_F77=yes # is this really true???
15235 ## LD is ld it makes a PLAMLIB
15236 ## CC just makes a GrossModule.
15237 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15238 reload_cmds_F77='$CC -r -o $output$reload_objs'
15239 hardcode_direct_F77=no
15242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15243 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15246 runpath_var='LD_RUN_PATH'
15247 hardcode_shlibpath_var_F77=no
15251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15252 hardcode_shlibpath_var_F77=no
15253 export_dynamic_flag_spec_F77='-Bexport'
15257 if test -d /usr/nec; then
15258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15259 hardcode_shlibpath_var_F77=no
15260 runpath_var=LD_RUN_PATH
15261 hardcode_runpath_var=yes
15267 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15268 hardcode_direct_F77=yes
15269 hardcode_minus_L_F77=no
15270 hardcode_shlibpath_var_F77=no
15271 hardcode_runpath_var=yes
15272 runpath_var=LD_RUN_PATH
15275 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15276 no_undefined_flag_F77='${wl}-z ${wl}text'
15277 if test "$GCC" = yes; then
15278 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15280 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15282 runpath_var='LD_RUN_PATH'
15283 hardcode_shlibpath_var_F77=no
15287 no_undefined_flag_F77=' -z text'
15288 # $CC -shared without GNU ld will not create a library from C++
15289 # object files and a static libstdc++, better avoid it by now
15290 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15291 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15293 hardcode_libdir_flag_spec_F77=
15294 hardcode_shlibpath_var_F77=no
15295 runpath_var='LD_RUN_PATH'
15299 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15300 hardcode_libdir_flag_spec_F77='-L$libdir'
15301 hardcode_shlibpath_var_F77=no
15310 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15311 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15312 test "$ld_shlibs_F77" = no && can_build_shared=no
15314 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15315 if test "$GCC" = yes; then
15316 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15320 # Do we need to explicitly link libc?
15322 case "x$archive_cmds_need_lc_F77" in
15324 # Assume -lc should be added
15325 archive_cmds_need_lc_F77=yes
15327 if test "$enable_shared" = yes && test "$GCC" = yes; then
15328 case $archive_cmds_F77 in
15330 # FIXME: we may have to deal with multi-command sequences.
15333 # Test whether the compiler implicitly links with -lc since on some
15334 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15335 # to ld, don't add -lc before -lgcc.
15336 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15337 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15339 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } 2>conftest.err; then
15348 libobjs=conftest.$ac_objext
15350 wl=$lt_prog_compiler_wl_F77
15356 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15357 allow_undefined_flag_F77=
15358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15359 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }
15364 archive_cmds_need_lc_F77=no
15366 archive_cmds_need_lc_F77=yes
15368 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15370 cat conftest.err 1>&5
15373 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15374 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15381 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15383 library_names_spec=
15384 libname_spec='lib$name'
15388 postuninstall_cmds=
15392 shlibpath_overrides_runpath=unknown
15394 dynamic_linker="$host_os ld.so"
15395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15396 if test "$GCC" = yes; then
15397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15399 # if the path contains ";" then we assume it to be the separator
15400 # otherwise default to the standard path separator (i.e. ":") - it is
15401 # assumed that no part of a normal pathname contains ";" but that should
15402 # okay in the real world where ";" in dirpaths is itself problematic.
15403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15410 need_lib_prefix=unknown
15411 hardcode_into_libs=no
15413 # when you set need_version to no, make sure it does not cause -set_version
15414 # flags to be left without arguments
15415 need_version=unknown
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15421 shlibpath_var=LIBPATH
15423 # AIX 3 has no versioning support, so we append a major version to the name.
15424 soname_spec='${libname}${release}${shared_ext}$major'
15431 hardcode_into_libs=yes
15432 if test "$host_cpu" = ia64; then
15433 # AIX 5 supports IA64
15434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15435 shlibpath_var=LD_LIBRARY_PATH
15437 # With GCC up to 2.95.x, collect2 would create an import file
15438 # for dependence libraries. The import file would start with
15439 # the line `#! .'. This would cause the generated library to
15440 # depend on `.', always an invalid library. This was fixed in
15441 # development snapshots of GCC prior to 3.0.
15443 aix4 | aix4.[01] | aix4.[01].*)
15444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15446 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15449 can_build_shared=no
15453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15454 # soname into executable. Probably we can add versioning support to
15455 # collect2, so additional links can be useful in future.
15456 if test "$aix_use_runtimelinking" = yes; then
15457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15458 # instead of lib<name>.a to let people know that these are not
15459 # typical AIX shared libraries.
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15462 # We preserve .a as extension for shared libraries through AIX4.2
15463 # and later when we are not doing run time linking.
15464 library_names_spec='${libname}${release}.a $libname.a'
15465 soname_spec='${libname}${release}${shared_ext}$major'
15467 shlibpath_var=LIBPATH
15472 library_names_spec='$libname.ixlibrary $libname.a'
15473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15474 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'
15478 library_names_spec='${libname}${shared_ext}'
15479 dynamic_linker="$host_os ld.so"
15480 shlibpath_var=LIBRARY_PATH
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15492 # the default ld.so.conf also contains /usr/contrib/lib and
15493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15494 # libtool to hard-code these into programs
15497 cygwin* | mingw* | pw32*)
15498 version_type=windows
15503 case $GCC,$host_os in
15504 yes,cygwin* | yes,mingw* | yes,pw32*)
15505 library_names_spec='$libname.dll.a'
15506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15507 postinstall_cmds='base_file=`basename \${file}`~
15508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15509 dldir=$destdir/`dirname \$dlpath`~
15510 test -d \$dldir || mkdir -p \$dldir~
15511 $install_prog $dir/$dlname \$dldir/$dlname~
15512 chmod a+x \$dldir/$dlname'
15513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15514 dlpath=$dir/\$dldll~
15516 shlibpath_overrides_runpath=yes
15520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15525 # MinGW DLLs use traditional 'lib' prefix
15526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15529 # It is most probably a Windows format PATH printed by
15530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15531 # path with ; separators, and with drive letters. We can handle the
15532 # drive letters (cygwin fileutils understands them), so leave them,
15533 # especially as we might pass files found there to a mingw objdump,
15534 # which wouldn't understand a cygwinified path. Ahh.
15535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15541 # pw32 DLLs use 'pw' prefix rather than 'lib'
15542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15551 dynamic_linker='Win32 ld.exe'
15552 # FIXME: first we should search . and the directory the executable is in
15556 darwin* | rhapsody*)
15557 dynamic_linker="$host_os dyld"
15558 version_type=darwin
15561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15562 soname_spec='${libname}${release}${major}$shared_ext'
15563 shlibpath_overrides_runpath=yes
15564 shlibpath_var=DYLD_LIBRARY_PATH
15565 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15567 if test "$GCC" = yes; then
15568 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"`
15570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 shlibpath_var=LD_LIBRARY_PATH
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 shlibpath_overrides_runpath=no
15596 hardcode_into_libs=yes
15597 dynamic_linker='GNU ld.so'
15600 freebsd* | dragonfly*)
15601 # DragonFly does not have aout. When/if they implement a new
15602 # versioning mechanism, adjust this.
15603 if test -x /usr/bin/objformat; then
15604 objformat=`/usr/bin/objformat`
15607 freebsd[123]*) objformat=aout ;;
15608 *) objformat=elf ;;
15611 version_type=freebsd-$objformat
15612 case $version_type in
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15623 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes
15628 freebsd3.[01]* | freebsdelf3.[01]*)
15629 shlibpath_overrides_runpath=yes
15630 hardcode_into_libs=yes
15633 shlibpath_overrides_runpath=no
15634 hardcode_into_libs=yes
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 hardcode_into_libs=yes
15649 hpux9* | hpux10* | hpux11*)
15650 # Give a soname corresponding to the major version so that dld.sl refuses to
15651 # link against other versions.
15658 hardcode_into_libs=yes
15659 dynamic_linker="$host_os dld.so"
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 if test "X$HPUX_IA64_MODE" = X32; then
15665 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15667 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15673 hardcode_into_libs=yes
15674 dynamic_linker="$host_os dld.sl"
15675 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15684 dynamic_linker="$host_os dld.sl"
15685 shlibpath_var=SHLIB_PATH
15686 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 soname_spec='${libname}${release}${shared_ext}$major'
15691 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15692 postinstall_cmds='chmod 555 $lib'
15695 irix5* | irix6* | nonstopux*)
15697 nonstopux*) version_type=nonstopux ;;
15699 if test "$lt_cv_prog_gnu_ld" = yes; then
15707 soname_spec='${libname}${release}${shared_ext}$major'
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15710 irix5* | nonstopux*)
15711 libsuff= shlibsuff=
15714 case $LD in # libtool.m4 will add one of these switches to LD
15715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15716 libsuff= shlibsuff= libmagic=32-bit;;
15717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15718 libsuff=32 shlibsuff=N32 libmagic=N32;;
15719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15720 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15721 *) libsuff= shlibsuff= libmagic=never-match;;
15725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15726 shlibpath_overrides_runpath=no
15727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15729 hardcode_into_libs=yes
15732 # No shared lib support for Linux oldld, aout, or coff.
15733 linux*oldld* | linux*aout* | linux*coff*)
15737 # This must be Linux ELF.
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15745 shlibpath_var=LD_LIBRARY_PATH
15746 shlibpath_overrides_runpath=no
15747 # This implies no fast_install, which is unacceptable.
15748 # Some rework will be needed to allow for fast_install
15749 # before this can be enabled.
15750 hardcode_into_libs=yes
15752 # Append ld.so.conf contents to the search path
15753 if test -f /etc/ld.so.conf; then
15754 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' ' '`
15755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15758 # We used to test for /lib/ld.so.1 and disable shared libraries on
15759 # powerpc, because MkLinux only supported shared libraries with the
15760 # GNU dynamic linker. Since this was broken with cross compilers,
15761 # most powerpc-linux boxes support dynamic linking these days and
15762 # people can always --disable-shared, the test was removed, and we
15763 # assume the GNU/Linux dynamic linker is in use.
15764 dynamic_linker='GNU/Linux ld.so'
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=no
15775 hardcode_into_libs=yes
15776 dynamic_linker='GNU ld.so'
15783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15786 dynamic_linker='NetBSD (a.out) ld.so'
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 dynamic_linker='NetBSD ld.elf_so'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 shlibpath_overrides_runpath=yes
15794 hardcode_into_libs=yes
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 shlibpath_overrides_runpath=yes
15808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15809 soname_spec='${libname}${release}${shared_ext}$major'
15810 shlibpath_var=LD_LIBRARY_PATH
15811 shlibpath_overrides_runpath=yes
15817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15820 *) need_version=no ;;
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15827 openbsd2.[89] | openbsd2.[89].*)
15828 shlibpath_overrides_runpath=no
15831 shlibpath_overrides_runpath=yes
15835 shlibpath_overrides_runpath=yes
15840 libname_spec='$name'
15843 library_names_spec='$libname${shared_ext} $libname.a'
15844 dynamic_linker='OS/2 ld.exe'
15845 shlibpath_var=LIBPATH
15848 osf3* | osf4* | osf5*)
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15861 soname_spec='${libname}${release}${shared_ext}$major'
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15863 shlibpath_var=LD_LIBRARY_PATH
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 soname_spec='${libname}${release}${shared_ext}$major'
15872 shlibpath_var=LD_LIBRARY_PATH
15873 shlibpath_overrides_runpath=yes
15874 hardcode_into_libs=yes
15875 # ldd complains unless libraries are executable
15876 postinstall_cmds='chmod +x $lib'
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 shlibpath_overrides_runpath=yes
15885 if test "$with_gnu_ld" = yes; then
15891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 case $host_vendor in
15898 shlibpath_overrides_runpath=no
15900 export_dynamic_flag_spec='${wl}-Blargedynsym'
15901 runpath_var=LD_RUN_PATH
15909 shlibpath_overrides_runpath=no
15910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15916 if test -d /usr/nec ;then
15918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15919 soname_spec='$libname${shared_ext}.$major'
15920 shlibpath_var=LD_LIBRARY_PATH
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15935 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15936 echo "${ECHO_T}$dynamic_linker" >&6; }
15937 test "$dynamic_linker" = no && can_build_shared=no
15939 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15940 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15941 hardcode_action_F77=
15942 if test -n "$hardcode_libdir_flag_spec_F77" || \
15943 test -n "$runpath_var_F77" || \
15944 test "X$hardcode_automatic_F77" = "Xyes" ; then
15946 # We can hardcode non-existant directories.
15947 if test "$hardcode_direct_F77" != no &&
15948 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15949 # have to relink, otherwise we might link with an installed library
15950 # when we should be linking with a yet-to-be-installed one
15951 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15952 test "$hardcode_minus_L_F77" != no; then
15953 # Linking always hardcodes the temporary library directory.
15954 hardcode_action_F77=relink
15956 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15957 hardcode_action_F77=immediate
15960 # We cannot hardcode anything, or else we can only hardcode existing
15962 hardcode_action_F77=unsupported
15964 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15965 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15967 if test "$hardcode_action_F77" = relink; then
15968 # Fast installation is not supported
15969 enable_fast_install=no
15970 elif test "$shlibpath_overrides_runpath" = yes ||
15971 test "$enable_shared" = no; then
15972 # Fast installation is not necessary
15973 enable_fast_install=needless
15978 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15979 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15980 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15981 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15982 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15983 { echo "$as_me:$LINENO: result: yes" >&5
15984 echo "${ECHO_T}yes" >&6; }
15986 # FIXME - insert some real tests, host_os isn't really good enough
15989 if test -n "$STRIP" ; then
15990 striplib="$STRIP -x"
15991 { echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6; }
15994 { echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6; }
15999 { echo "$as_me:$LINENO: result: no" >&5
16000 echo "${ECHO_T}no" >&6; }
16007 # The else clause should only fire when bootstrapping the
16008 # libtool distribution, otherwise you forgot to ship ltmain.sh
16009 # with your package, and you will get complaints that there are
16010 # no rules to generate ltmain.sh.
16011 if test -f "$ltmain"; then
16012 # See if we are running on zsh, and set the options which allow our commands through
16013 # without removal of \ escapes.
16014 if test -n "${ZSH_VERSION+set}" ; then
16015 setopt NO_GLOB_SUBST
16017 # Now quote all the things that may contain metacharacters while being
16018 # careful not to overquote the AC_SUBSTed values. We take copies of the
16019 # variables and quote the copies for generation of the libtool script.
16020 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16022 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16023 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16024 deplibs_check_method reload_flag reload_cmds need_locks \
16025 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16026 lt_cv_sys_global_symbol_to_c_name_address \
16027 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16028 old_postinstall_cmds old_postuninstall_cmds \
16032 lt_prog_compiler_wl_F77 \
16033 lt_prog_compiler_pic_F77 \
16034 lt_prog_compiler_static_F77 \
16035 lt_prog_compiler_no_builtin_flag_F77 \
16036 export_dynamic_flag_spec_F77 \
16037 thread_safe_flag_spec_F77 \
16038 whole_archive_flag_spec_F77 \
16039 enable_shared_with_static_runtimes_F77 \
16040 old_archive_cmds_F77 \
16041 old_archive_from_new_cmds_F77 \
16042 predep_objects_F77 \
16043 postdep_objects_F77 \
16046 compiler_lib_search_path_F77 \
16048 archive_expsym_cmds_F77 \
16049 postinstall_cmds_F77 \
16050 postuninstall_cmds_F77 \
16051 old_archive_from_expsyms_cmds_F77 \
16052 allow_undefined_flag_F77 \
16053 no_undefined_flag_F77 \
16054 export_symbols_cmds_F77 \
16055 hardcode_libdir_flag_spec_F77 \
16056 hardcode_libdir_flag_spec_ld_F77 \
16057 hardcode_libdir_separator_F77 \
16058 hardcode_automatic_F77 \
16060 module_expsym_cmds_F77 \
16061 lt_cv_prog_compiler_c_o_F77 \
16062 exclude_expsyms_F77 \
16063 include_expsyms_F77; do
16066 old_archive_cmds_F77 | \
16067 old_archive_from_new_cmds_F77 | \
16068 archive_cmds_F77 | \
16069 archive_expsym_cmds_F77 | \
16070 module_cmds_F77 | \
16071 module_expsym_cmds_F77 | \
16072 old_archive_from_expsyms_cmds_F77 | \
16073 export_symbols_cmds_F77 | \
16074 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16075 postinstall_cmds | postuninstall_cmds | \
16076 old_postinstall_cmds | old_postuninstall_cmds | \
16077 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16078 # Double-quote double-evaled strings.
16079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16088 *'\$0 --fallback-echo"')
16089 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16095 cat <<__EOF__ >> "$cfgfile"
16096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16100 # Shell to use when invoking shell scripts.
16103 # Whether or not to build shared libraries.
16104 build_libtool_libs=$enable_shared
16106 # Whether or not to build static libraries.
16107 build_old_libs=$enable_static
16109 # Whether or not to add -lc for building shared libraries.
16110 build_libtool_need_lc=$archive_cmds_need_lc_F77
16112 # Whether or not to disallow shared libs when runtime libs are static
16113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16115 # Whether or not to optimize for fast installation.
16116 fast_install=$enable_fast_install
16119 host_alias=$host_alias
16123 # The build system.
16124 build_alias=$build_alias
16128 # An echo program that does not interpret backslashes.
16133 AR_FLAGS=$lt_AR_FLAGS
16138 # A language-specific compiler.
16139 CC=$lt_compiler_F77
16141 # Is the compiler the GNU C compiler?
16147 # The linker used to build libraries.
16150 # Whether we need hard or soft links.
16153 # A BSD-compatible nm program.
16156 # A symbol stripping program
16159 # Used to examine libraries when file_magic_cmd begins "file"
16160 MAGIC_CMD=$MAGIC_CMD
16162 # Used on cygwin: DLL creation program.
16165 # Used on cygwin: object dumper.
16168 # Used on cygwin: assembler.
16171 # The name of the directory that contains temporary libtool files.
16174 # How to create reloadable object files.
16175 reload_flag=$lt_reload_flag
16176 reload_cmds=$lt_reload_cmds
16178 # How to pass a linker flag through the compiler.
16179 wl=$lt_lt_prog_compiler_wl_F77
16181 # Object file suffix (normally "o").
16182 objext="$ac_objext"
16184 # Old archive suffix (normally "a").
16187 # Shared library suffix (normally ".so").
16188 shrext_cmds='$shrext_cmds'
16190 # Executable file suffix (normally "").
16193 # Additional compiler flags for building library objects.
16194 pic_flag=$lt_lt_prog_compiler_pic_F77
16197 # What is the maximum length of a command?
16198 max_cmd_len=$lt_cv_sys_max_cmd_len
16200 # Does compiler simultaneously support -c and -o options?
16201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16203 # Must we lock files when doing compilation?
16204 need_locks=$lt_need_locks
16206 # Do we need the lib prefix for modules?
16207 need_lib_prefix=$need_lib_prefix
16209 # Do we need a version for libraries?
16210 need_version=$need_version
16212 # Whether dlopen is supported.
16213 dlopen_support=$enable_dlopen
16215 # Whether dlopen of programs is supported.
16216 dlopen_self=$enable_dlopen_self
16218 # Whether dlopen of statically linked programs is supported.
16219 dlopen_self_static=$enable_dlopen_self_static
16221 # Compiler flag to prevent dynamic linking.
16222 link_static_flag=$lt_lt_prog_compiler_static_F77
16224 # Compiler flag to turn off builtin functions.
16225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16227 # Compiler flag to allow reflexive dlopens.
16228 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16230 # Compiler flag to generate shared objects directly from archives.
16231 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16233 # Compiler flag to generate thread-safe objects.
16234 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16236 # Library versioning type.
16237 version_type=$version_type
16239 # Format of library name prefix.
16240 libname_spec=$lt_libname_spec
16242 # List of archive names. First name is the real one, the rest are links.
16243 # The last name is the one that the linker finds with -lNAME.
16244 library_names_spec=$lt_library_names_spec
16246 # The coded name of the library, if different from the real name.
16247 soname_spec=$lt_soname_spec
16249 # Commands used to build and install an old-style archive.
16251 old_archive_cmds=$lt_old_archive_cmds_F77
16252 old_postinstall_cmds=$lt_old_postinstall_cmds
16253 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16255 # Create an old-style archive from a shared archive.
16256 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16258 # Create a temporary old-style archive to link instead of a shared archive.
16259 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16261 # Commands used to build and install a shared archive.
16262 archive_cmds=$lt_archive_cmds_F77
16263 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16264 postinstall_cmds=$lt_postinstall_cmds
16265 postuninstall_cmds=$lt_postuninstall_cmds
16267 # Commands used to build a loadable module (assumed same as above if empty)
16268 module_cmds=$lt_module_cmds_F77
16269 module_expsym_cmds=$lt_module_expsym_cmds_F77
16271 # Commands to strip libraries.
16272 old_striplib=$lt_old_striplib
16273 striplib=$lt_striplib
16275 # Dependencies to place before the objects being linked to create a
16277 predep_objects=$lt_predep_objects_F77
16279 # Dependencies to place after the objects being linked to create a
16281 postdep_objects=$lt_postdep_objects_F77
16283 # Dependencies to place before the objects being linked to create a
16285 predeps=$lt_predeps_F77
16287 # Dependencies to place after the objects being linked to create a
16289 postdeps=$lt_postdeps_F77
16291 # The library search path used internally by the compiler when linking
16292 # a shared library.
16293 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16295 # Method to check whether dependent libraries are shared objects.
16296 deplibs_check_method=$lt_deplibs_check_method
16298 # Command to use when deplibs_check_method == file_magic.
16299 file_magic_cmd=$lt_file_magic_cmd
16301 # Flag that allows shared libraries with undefined symbols to be built.
16302 allow_undefined_flag=$lt_allow_undefined_flag_F77
16304 # Flag that forces no undefined symbols.
16305 no_undefined_flag=$lt_no_undefined_flag_F77
16307 # Commands used to finish a libtool library installation in a directory.
16308 finish_cmds=$lt_finish_cmds
16310 # Same as above, but a single script fragment to be evaled but not shown.
16311 finish_eval=$lt_finish_eval
16313 # Take the output of nm and produce a listing of raw symbols and C names.
16314 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16316 # Transform the output of nm in a proper C declaration
16317 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16319 # Transform the output of nm in a C name address pair
16320 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16322 # This is the shared library runtime path variable.
16323 runpath_var=$runpath_var
16325 # This is the shared library path variable.
16326 shlibpath_var=$shlibpath_var
16328 # Is shlibpath searched before the hard-coded library search path?
16329 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16331 # How to hardcode a shared library path into an executable.
16332 hardcode_action=$hardcode_action_F77
16334 # Whether we should hardcode library paths into libraries.
16335 hardcode_into_libs=$hardcode_into_libs
16337 # Flag to hardcode \$libdir into a binary during linking.
16338 # This must work even if \$libdir does not exist.
16339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16341 # If ld is used when linking, flag to hardcode \$libdir into
16342 # a binary during linking. This must work even if \$libdir does
16344 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16346 # Whether we need a single -rpath flag with a separated argument.
16347 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16349 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16350 # resulting binary.
16351 hardcode_direct=$hardcode_direct_F77
16353 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16354 # resulting binary.
16355 hardcode_minus_L=$hardcode_minus_L_F77
16357 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16358 # the resulting binary.
16359 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16361 # Set to yes if building a shared library automatically hardcodes DIR into the library
16362 # and all subsequent libraries and executables linked against it.
16363 hardcode_automatic=$hardcode_automatic_F77
16365 # Variables whose values should be saved in libtool wrapper scripts and
16366 # restored at relink time.
16367 variables_saved_for_relink="$variables_saved_for_relink"
16369 # Whether libtool must link a program against all its dependency libraries.
16370 link_all_deplibs=$link_all_deplibs_F77
16372 # Compile-time system search path for libraries
16373 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16375 # Run-time system search path for libraries
16376 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16378 # Fix the shell variable \$srcfile for the compiler.
16379 fix_srcfile_path="$fix_srcfile_path_F77"
16381 # Set to yes if exported symbols are required.
16382 always_export_symbols=$always_export_symbols_F77
16384 # The commands to list exported symbols.
16385 export_symbols_cmds=$lt_export_symbols_cmds_F77
16387 # The commands to extract the exported symbol list from a shared archive.
16388 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16390 # Symbols that should not be listed in the preloaded symbols.
16391 exclude_expsyms=$lt_exclude_expsyms_F77
16393 # Symbols that must always be exported.
16394 include_expsyms=$lt_include_expsyms_F77
16396 # ### END LIBTOOL TAG CONFIG: $tagname
16402 # If there is no Makefile yet, we rely on a make rule to execute
16403 # `config.status --recheck' to rerun these tests and create the
16404 # libtool script then.
16405 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16406 if test -f "$ltmain_in"; then
16407 test -f Makefile && make "$ltmain"
16413 ac_cpp='$CPP $CPPFLAGS'
16414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16426 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16429 # Source file extension for Java test sources.
16432 # Object file extension for compiled Java test sources.
16436 # Code to be used in simple compile tests
16437 lt_simple_compile_test_code="class foo {}\n"
16439 # Code to be used in simple link tests
16440 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16442 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16444 # If no C compiler was specified, use CC.
16447 # Allow CC to be a program name with arguments.
16451 # save warnings/boilerplate of simple test code
16452 ac_outfile=conftest.$ac_objext
16453 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16454 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16455 _lt_compiler_boilerplate=`cat conftest.err`
16458 ac_outfile=conftest.$ac_objext
16459 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16460 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16461 _lt_linker_boilerplate=`cat conftest.err`
16465 # Allow CC to be a program name with arguments.
16470 for cc_temp in $compiler""; do
16472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16478 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16481 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16482 archive_cmds_need_lc_GCJ=no
16484 old_archive_cmds_GCJ=$old_archive_cmds
16487 lt_prog_compiler_no_builtin_flag_GCJ=
16489 if test "$GCC" = yes; then
16490 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16493 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16494 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16495 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 lt_cv_prog_compiler_rtti_exceptions=no
16499 ac_outfile=conftest.$ac_objext
16500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16501 lt_compiler_flag="-fno-rtti -fno-exceptions"
16502 # Insert the option either (1) after the last *FLAGS variable, or
16503 # (2) before a word containing "conftest.", or (3) at the end.
16504 # Note that $ac_compile itself does not contain backslashes and begins
16505 # with a dollar sign (not a hyphen), so the echo should work correctly.
16506 # The option is referenced via a variable to avoid confusing sed.
16507 lt_compile=`echo "$ac_compile" | $SED \
16508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16510 -e 's:$: $lt_compiler_flag:'`
16511 (eval echo "\"\$as_me:16511: $lt_compile\"" >&5)
16512 (eval "$lt_compile" 2>conftest.err)
16514 cat conftest.err >&5
16515 echo "$as_me:16515: \$? = $ac_status" >&5
16516 if (exit $ac_status) && test -s "$ac_outfile"; then
16517 # The compiler can only warn and ignore the option if not recognized
16518 # So say no if there are warnings other than the usual output.
16519 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16520 $SED '/^$/d' conftest.err >conftest.er2
16521 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16522 lt_cv_prog_compiler_rtti_exceptions=yes
16528 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16529 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16531 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16532 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16539 lt_prog_compiler_wl_GCJ=
16540 lt_prog_compiler_pic_GCJ=
16541 lt_prog_compiler_static_GCJ=
16543 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16546 if test "$GCC" = yes; then
16547 lt_prog_compiler_wl_GCJ='-Wl,'
16548 lt_prog_compiler_static_GCJ='-static'
16552 # All AIX code is PIC.
16553 if test "$host_cpu" = ia64; then
16554 # AIX 5 now supports IA64 processor
16555 lt_prog_compiler_static_GCJ='-Bstatic'
16560 # FIXME: we need at least 68020 code to build shared libraries, but
16561 # adding the `-m68020' flag to GCC prevents building anything better,
16563 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16566 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16567 # PIC is the default for these OSes.
16570 mingw* | pw32* | os2*)
16571 # This hack is so that the source file can tell whether it is being
16572 # built for inclusion in a dll (and should export symbols for example).
16573 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16576 darwin* | rhapsody*)
16577 # PIC is the default on this platform
16578 # Common symbols not allowed in MH_DYLIB files
16579 lt_prog_compiler_pic_GCJ='-fno-common'
16583 # Just because we use GCC doesn't mean we suddenly get shared libraries
16584 # on systems that don't support them.
16585 lt_prog_compiler_can_build_shared_GCJ=no
16590 if test -d /usr/nec; then
16591 lt_prog_compiler_pic_GCJ=-Kconform_pic
16596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16597 # not for PA HP-UX.
16603 lt_prog_compiler_pic_GCJ='-fPIC'
16609 lt_prog_compiler_pic_GCJ='-fPIC'
16613 # PORTME Check for flag to pass linker flags through the system compiler.
16616 lt_prog_compiler_wl_GCJ='-Wl,'
16617 if test "$host_cpu" = ia64; then
16618 # AIX 5 now supports IA64 processor
16619 lt_prog_compiler_static_GCJ='-Bstatic'
16621 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16625 # PIC is the default on this platform
16626 # Common symbols not allowed in MH_DYLIB files
16627 case $cc_basename in
16629 lt_prog_compiler_pic_GCJ='-qnocommon'
16630 lt_prog_compiler_wl_GCJ='-Wl,'
16635 mingw* | pw32* | os2*)
16636 # This hack is so that the source file can tell whether it is being
16637 # built for inclusion in a dll (and should export symbols for example).
16638 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16641 hpux9* | hpux10* | hpux11*)
16642 lt_prog_compiler_wl_GCJ='-Wl,'
16643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16644 # not for PA HP-UX.
16650 lt_prog_compiler_pic_GCJ='+Z'
16653 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16654 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16657 irix5* | irix6* | nonstopux*)
16658 lt_prog_compiler_wl_GCJ='-Wl,'
16659 # PIC (with -KPIC) is the default.
16660 lt_prog_compiler_static_GCJ='-non_shared'
16664 lt_prog_compiler_pic_GCJ='-KPIC'
16665 lt_prog_compiler_static_GCJ='-Bstatic'
16669 case $cc_basename in
16671 lt_prog_compiler_wl_GCJ='-Wl,'
16672 lt_prog_compiler_pic_GCJ='-KPIC'
16673 lt_prog_compiler_static_GCJ='-static'
16675 pgcc* | pgf77* | pgf90* | pgf95*)
16676 # Portland Group compilers (*not* the Pentium gcc compiler,
16677 # which looks to be a dead project)
16678 lt_prog_compiler_wl_GCJ='-Wl,'
16679 lt_prog_compiler_pic_GCJ='-fpic'
16680 lt_prog_compiler_static_GCJ='-Bstatic'
16683 lt_prog_compiler_wl_GCJ='-Wl,'
16684 # All Alpha code is PIC.
16685 lt_prog_compiler_static_GCJ='-non_shared'
16690 osf3* | osf4* | osf5*)
16691 lt_prog_compiler_wl_GCJ='-Wl,'
16692 # All OSF/1 code is PIC.
16693 lt_prog_compiler_static_GCJ='-non_shared'
16697 lt_prog_compiler_pic_GCJ='-Kpic'
16698 lt_prog_compiler_static_GCJ='-dn'
16702 lt_prog_compiler_pic_GCJ='-KPIC'
16703 lt_prog_compiler_static_GCJ='-Bstatic'
16704 case $cc_basename in
16705 f77* | f90* | f95*)
16706 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16708 lt_prog_compiler_wl_GCJ='-Wl,';;
16713 lt_prog_compiler_wl_GCJ='-Qoption ld '
16714 lt_prog_compiler_pic_GCJ='-PIC'
16715 lt_prog_compiler_static_GCJ='-Bstatic'
16718 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16719 lt_prog_compiler_wl_GCJ='-Wl,'
16720 lt_prog_compiler_pic_GCJ='-KPIC'
16721 lt_prog_compiler_static_GCJ='-Bstatic'
16725 if test -d /usr/nec ;then
16726 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16727 lt_prog_compiler_static_GCJ='-Bstatic'
16732 lt_prog_compiler_wl_GCJ='-Wl,'
16733 lt_prog_compiler_can_build_shared_GCJ=no
16737 lt_prog_compiler_pic_GCJ='-pic'
16738 lt_prog_compiler_static_GCJ='-Bstatic'
16742 lt_prog_compiler_can_build_shared_GCJ=no
16747 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16748 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16751 # Check to make sure the PIC flag actually works.
16753 if test -n "$lt_prog_compiler_pic_GCJ"; then
16755 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16756 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16757 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 lt_prog_compiler_pic_works_GCJ=no
16761 ac_outfile=conftest.$ac_objext
16762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16763 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16764 # Insert the option either (1) after the last *FLAGS variable, or
16765 # (2) before a word containing "conftest.", or (3) at the end.
16766 # Note that $ac_compile itself does not contain backslashes and begins
16767 # with a dollar sign (not a hyphen), so the echo should work correctly.
16768 # The option is referenced via a variable to avoid confusing sed.
16769 lt_compile=`echo "$ac_compile" | $SED \
16770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16772 -e 's:$: $lt_compiler_flag:'`
16773 (eval echo "\"\$as_me:16773: $lt_compile\"" >&5)
16774 (eval "$lt_compile" 2>conftest.err)
16776 cat conftest.err >&5
16777 echo "$as_me:16777: \$? = $ac_status" >&5
16778 if (exit $ac_status) && test -s "$ac_outfile"; then
16779 # The compiler can only warn and ignore the option if not recognized
16780 # So say no if there are warnings other than the usual output.
16781 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16782 $SED '/^$/d' conftest.err >conftest.er2
16783 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16784 lt_prog_compiler_pic_works_GCJ=yes
16790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16791 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16793 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16794 case $lt_prog_compiler_pic_GCJ in
16796 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16799 lt_prog_compiler_pic_GCJ=
16800 lt_prog_compiler_can_build_shared_GCJ=no
16805 # For platforms which do not support PIC, -DPIC is meaningless:
16807 lt_prog_compiler_pic_GCJ=
16810 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16814 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16816 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 lt_cv_prog_compiler_c_o_GCJ=no
16820 $rm -r conftest 2>/dev/null
16824 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16826 lt_compiler_flag="-o out/conftest2.$ac_objext"
16827 # Insert the option either (1) after the last *FLAGS variable, or
16828 # (2) before a word containing "conftest.", or (3) at the end.
16829 # Note that $ac_compile itself does not contain backslashes and begins
16830 # with a dollar sign (not a hyphen), so the echo should work correctly.
16831 lt_compile=`echo "$ac_compile" | $SED \
16832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16834 -e 's:$: $lt_compiler_flag:'`
16835 (eval echo "\"\$as_me:16835: $lt_compile\"" >&5)
16836 (eval "$lt_compile" 2>out/conftest.err)
16838 cat out/conftest.err >&5
16839 echo "$as_me:16839: \$? = $ac_status" >&5
16840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16842 # The compiler can only warn and ignore the option if not recognized
16843 # So say no if there are warnings
16844 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16845 $SED '/^$/d' out/conftest.err >out/conftest.er2
16846 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16847 lt_cv_prog_compiler_c_o_GCJ=yes
16852 # SGI C++ compiler will create directory out/ii_files/ for
16853 # template instantiation
16854 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16855 $rm out/* && rmdir out
16861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16865 hard_links="nottested"
16866 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16867 # do not overwrite the value of need_locks provided by the user
16868 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16874 ln conftest.a conftest.b 2>&5 || hard_links=no
16875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16876 { echo "$as_me:$LINENO: result: $hard_links" >&5
16877 echo "${ECHO_T}$hard_links" >&6; }
16878 if test "$hard_links" = no; then
16879 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16891 allow_undefined_flag_GCJ=
16892 enable_shared_with_static_runtimes_GCJ=no
16894 archive_expsym_cmds_GCJ=
16895 old_archive_From_new_cmds_GCJ=
16896 old_archive_from_expsyms_cmds_GCJ=
16897 export_dynamic_flag_spec_GCJ=
16898 whole_archive_flag_spec_GCJ=
16899 thread_safe_flag_spec_GCJ=
16900 hardcode_libdir_flag_spec_GCJ=
16901 hardcode_libdir_flag_spec_ld_GCJ=
16902 hardcode_libdir_separator_GCJ=
16903 hardcode_direct_GCJ=no
16904 hardcode_minus_L_GCJ=no
16905 hardcode_shlibpath_var_GCJ=unsupported
16906 link_all_deplibs_GCJ=unknown
16907 hardcode_automatic_GCJ=no
16909 module_expsym_cmds_GCJ=
16910 always_export_symbols_GCJ=no
16911 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16912 # include_expsyms should be a list of space-separated symbols to be *always*
16913 # included in the symbol list
16914 include_expsyms_GCJ=
16915 # exclude_expsyms can be an extended regexp of symbols to exclude
16916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16918 # as well as any symbol that contains `d'.
16919 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16921 # platforms (ab)use it in PIC code, but their linkers get confused if
16922 # the symbol is explicitly referenced. Since portable code cannot
16923 # rely on this symbol name, it's probably fine to never include it in
16924 # preloaded symbol tables.
16925 extract_expsyms_cmds=
16926 # Just being paranoid about ensuring that cc_basename is set.
16927 for cc_temp in $compiler""; do
16929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16938 cygwin* | mingw* | pw32*)
16939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16940 # When not using gcc, we currently assume that we are using
16941 # Microsoft Visual C++.
16942 if test "$GCC" != yes; then
16952 if test "$with_gnu_ld" = yes; then
16953 # If archive_cmds runs LD, not CC, wlarc should be empty
16956 # Set some defaults for GNU ld with shared library support. These
16957 # are reset later if shared libraries are not supported. Putting them
16958 # here allows them to be overridden if necessary.
16959 runpath_var=LD_RUN_PATH
16960 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16961 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16962 # ancient GNU ld didn't support --whole-archive et. al.
16963 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16964 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16966 whole_archive_flag_spec_GCJ=
16968 supports_anon_versioning=no
16969 case `$LD -v 2>/dev/null` in
16970 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16973 *\ 2.11.*) ;; # other 2.11 versions
16974 *) supports_anon_versioning=yes ;;
16977 # See if GNU ld supports shared libraries.
16979 aix3* | aix4* | aix5*)
16980 # On AIX/PPC, the GNU linker is very broken
16981 if test "$host_cpu" != ia64; then
16985 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16986 *** to be unable to reliably create shared libraries on AIX.
16987 *** Therefore, libtool is disabling shared libraries support. If you
16988 *** really care for shared libraries, you may want to modify your PATH
16989 *** so that a non-GNU linker is found, and then restart.
16996 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)'
16997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16998 hardcode_minus_L_GCJ=yes
17000 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17001 # that the semantics of dynamic libraries on AmigaOS, at least up
17002 # to version 4, is to share data among multiple programs linked
17003 # with the same dynamic library. Since this doesn't match the
17004 # behavior of shared libraries on other platforms, we can't use
17010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17011 allow_undefined_flag_GCJ=unsupported
17012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17013 # support --undefined. This deserves some investigation. FIXME
17014 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020 cygwin* | mingw* | pw32*)
17021 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17022 # as there is no search path for DLLs.
17023 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17024 allow_undefined_flag_GCJ=unsupported
17025 always_export_symbols_GCJ=no
17026 enable_shared_with_static_runtimes_GCJ=yes
17027 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17029 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17031 # If the export-symbols file already is a .def file (1st line
17032 # is EXPORTS), use it as is; otherwise, prepend...
17033 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17034 cp $export_symbols $output_objdir/$soname.def;
17036 echo EXPORTS > $output_objdir/$soname.def;
17037 cat $export_symbols >> $output_objdir/$soname.def;
17039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17046 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17048 case $cc_basename,$host_cpu in
17049 pgcc*) # Portland Group C compiler
17050 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'
17051 tmp_addflag=' $pic_flag'
17053 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17054 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'
17055 tmp_addflag=' $pic_flag -Mnomain' ;;
17056 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17057 tmp_addflag=' -i_dynamic' ;;
17058 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17059 tmp_addflag=' -i_dynamic -nofor_main' ;;
17060 ifc* | ifort*) # Intel Fortran compiler
17061 tmp_addflag=' -nofor_main' ;;
17063 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17065 if test $supports_anon_versioning = yes; then
17066 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17067 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17068 $echo "local: *; };" >> $output_objdir/$libname.ver~
17069 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17078 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17081 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17082 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17087 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17091 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17092 *** create shared libraries on Solaris systems. Therefore, libtool
17093 *** is disabling shared libraries support. We urge you to upgrade GNU
17094 *** binutils to release 2.9.1 or newer. Another option is to modify
17095 *** your PATH or compiler configuration so that the native linker is
17096 *** used, and then restart.
17099 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17100 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17101 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17108 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17110 hardcode_direct_GCJ=yes
17111 hardcode_shlibpath_var_GCJ=no
17115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17116 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17117 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17124 if test "$ld_shlibs_GCJ" = no; then
17126 hardcode_libdir_flag_spec_GCJ=
17127 export_dynamic_flag_spec_GCJ=
17128 whole_archive_flag_spec_GCJ=
17131 # PORTME fill in a description of your system's linker (not GNU ld)
17134 allow_undefined_flag_GCJ=unsupported
17135 always_export_symbols_GCJ=yes
17136 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'
17137 # Note: this linker hardcodes the directories in LIBPATH if there
17138 # are no directories specified by -L.
17139 hardcode_minus_L_GCJ=yes
17140 if test "$GCC" = yes && test -z "$link_static_flag"; then
17141 # Neither direct hardcoding nor static linking is supported with a
17143 hardcode_direct_GCJ=unsupported
17148 if test "$host_cpu" = ia64; then
17149 # On IA64, the linker does run time linking by default, so we don't
17150 # have to do anything special.
17151 aix_use_runtimelinking=no
17152 exp_sym_flag='-Bexport'
17155 # If we're using GNU nm, then we don't want the "-C" option.
17156 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17157 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17158 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'
17160 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'
17162 aix_use_runtimelinking=no
17164 # Test if we are trying to use run time linking or normal
17165 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17166 # need to do runtime linking.
17167 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17168 for ld_flag in $LDFLAGS; do
17169 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17170 aix_use_runtimelinking=yes
17176 exp_sym_flag='-bexport'
17177 no_entry_flag='-bnoentry'
17180 # When large executables or shared objects are built, AIX ld can
17181 # have problems creating the table of contents. If linking a library
17182 # or program results in "error TOC overflow" add -mminimal-toc to
17183 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17184 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17186 archive_cmds_GCJ=''
17187 hardcode_direct_GCJ=yes
17188 hardcode_libdir_separator_GCJ=':'
17189 link_all_deplibs_GCJ=yes
17191 if test "$GCC" = yes; then
17192 case $host_os in aix4.[012]|aix4.[012].*)
17193 # We only want to do this on AIX 4.2 and lower, the check
17194 # below for broken collect2 doesn't work under 4.3+
17195 collect2name=`${CC} -print-prog-name=collect2`
17196 if test -f "$collect2name" && \
17197 strings "$collect2name" | grep resolve_lib_name >/dev/null
17199 # We have reworked collect2
17200 hardcode_direct_GCJ=yes
17202 # We have old collect2
17203 hardcode_direct_GCJ=unsupported
17204 # It fails to find uninstalled libraries when the uninstalled
17205 # path is not listed in the libpath. Setting hardcode_minus_L
17206 # to unsupported forces relinking
17207 hardcode_minus_L_GCJ=yes
17208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17209 hardcode_libdir_separator_GCJ=
17212 shared_flag='-shared'
17213 if test "$aix_use_runtimelinking" = yes; then
17214 shared_flag="$shared_flag "'${wl}-G'
17218 if test "$host_cpu" = ia64; then
17219 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17220 # chokes on -Wl,-G. The following line is correct:
17223 if test "$aix_use_runtimelinking" = yes; then
17224 shared_flag='${wl}-G'
17226 shared_flag='${wl}-bM:SRE'
17231 # It seems that -bexpall does not export symbols beginning with
17232 # underscore (_), so it is better to generate a list of symbols to export.
17233 always_export_symbols_GCJ=yes
17234 if test "$aix_use_runtimelinking" = yes; then
17235 # Warning - without using the other runtime loading flags (-brtl),
17236 # -berok will link without error, but may produce a broken library.
17237 allow_undefined_flag_GCJ='-berok'
17238 # Determine the default libpath from the value encoded in an empty executable.
17239 cat >conftest.$ac_ext <<_ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } && {
17268 test -z "$ac_c_werror_flag" ||
17269 test ! -s conftest.err
17270 } && test -s conftest$ac_exeext &&
17271 $as_test_x conftest$ac_exeext; then
17273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17275 # Check for a 64-bit object if we didn't find anything.
17276 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; }
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286 conftest$ac_exeext conftest.$ac_ext
17287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17289 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17290 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"
17292 if test "$host_cpu" = ia64; then
17293 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17294 allow_undefined_flag_GCJ="-z nodefs"
17295 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"
17297 # Determine the default libpath from the value encoded in an empty executable.
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (ac_try="$ac_link"
17315 case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_link") 2>conftest.er1
17322 grep -v '^ *+' conftest.er1 >conftest.err
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && {
17327 test -z "$ac_c_werror_flag" ||
17328 test ! -s conftest.err
17329 } && test -s conftest$ac_exeext &&
17330 $as_test_x conftest$ac_exeext; then
17332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17334 # Check for a 64-bit object if we didn't find anything.
17335 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; }
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17348 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17349 # Warning - without using the other run time loading flags,
17350 # -berok will link without error, but may produce a broken library.
17351 no_undefined_flag_GCJ=' ${wl}-bernotok'
17352 allow_undefined_flag_GCJ=' ${wl}-berok'
17353 # -bexpall does not export symbols beginning with underscore (_)
17354 always_export_symbols_GCJ=yes
17355 # Exported symbols can be pulled into shared objects from archives
17356 whole_archive_flag_spec_GCJ=' '
17357 archive_cmds_need_lc_GCJ=yes
17358 # This is similar to how AIX traditionally builds its shared libraries.
17359 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'
17365 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)'
17366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367 hardcode_minus_L_GCJ=yes
17368 # see comment about different semantics on the GNU ld section
17373 export_dynamic_flag_spec_GCJ=-rdynamic
17376 cygwin* | mingw* | pw32*)
17377 # When not using gcc, we currently assume that we are using
17378 # Microsoft Visual C++.
17379 # hardcode_libdir_flag_spec is actually meaningless, as there is
17380 # no search path for DLLs.
17381 hardcode_libdir_flag_spec_GCJ=' '
17382 allow_undefined_flag_GCJ=unsupported
17383 # Tell ltmain to make .lib files, not .a files.
17385 # Tell ltmain to make .dll files, not .so files.
17387 # FIXME: Setting linknames here is a bad hack.
17388 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17389 # The linker will automatically build a .lib file if we build a DLL.
17390 old_archive_From_new_cmds_GCJ='true'
17391 # FIXME: Should let the user specify the lib program.
17392 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17393 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17394 enable_shared_with_static_runtimes_GCJ=yes
17397 darwin* | rhapsody*)
17399 rhapsody* | darwin1.[012])
17400 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17403 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17404 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17406 case ${MACOSX_DEPLOYMENT_TARGET} in
17408 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17411 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17417 archive_cmds_need_lc_GCJ=no
17418 hardcode_direct_GCJ=no
17419 hardcode_automatic_GCJ=yes
17420 hardcode_shlibpath_var_GCJ=unsupported
17421 whole_archive_flag_spec_GCJ=''
17422 link_all_deplibs_GCJ=yes
17423 if test "$GCC" = yes ; then
17424 output_verbose_link_cmd='echo'
17425 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17426 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17427 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17428 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}'
17429 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17431 case $cc_basename in
17433 output_verbose_link_cmd='echo'
17434 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17435 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17437 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}'
17438 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}'
17448 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450 hardcode_shlibpath_var_GCJ=no
17457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17458 # support. Future versions do this automatically, but an explicit c++rt0.o
17459 # does not break anything, and helps significantly (at the cost of a little
17462 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464 hardcode_direct_GCJ=yes
17465 hardcode_shlibpath_var_GCJ=no
17468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17470 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17471 hardcode_direct_GCJ=yes
17472 hardcode_minus_L_GCJ=yes
17473 hardcode_shlibpath_var_GCJ=no
17476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17477 freebsd* | kfreebsd*-gnu | dragonfly*)
17478 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17479 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17480 hardcode_direct_GCJ=yes
17481 hardcode_shlibpath_var_GCJ=no
17485 if test "$GCC" = yes; then
17486 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'
17488 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'
17490 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17491 hardcode_libdir_separator_GCJ=:
17492 hardcode_direct_GCJ=yes
17494 # hardcode_minus_L: Not really in the search PATH,
17495 # but as the default location of the library.
17496 hardcode_minus_L_GCJ=yes
17497 export_dynamic_flag_spec_GCJ='${wl}-E'
17501 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17504 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17507 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17513 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17516 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17520 if test "$with_gnu_ld" = no; then
17523 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17524 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17525 hardcode_libdir_separator_GCJ=:
17526 hardcode_direct_GCJ=no
17527 hardcode_shlibpath_var_GCJ=no
17530 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17531 hardcode_direct_GCJ=no
17532 hardcode_shlibpath_var_GCJ=no
17534 # hardcode_minus_L: Not really in the search PATH,
17535 # but as the default location of the library.
17536 hardcode_minus_L_GCJ=yes
17539 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17540 hardcode_libdir_separator_GCJ=:
17541 hardcode_direct_GCJ=yes
17542 export_dynamic_flag_spec_GCJ='${wl}-E'
17544 # hardcode_minus_L: Not really in the search PATH,
17545 # but as the default location of the library.
17546 hardcode_minus_L_GCJ=yes
17552 irix5* | irix6* | nonstopux*)
17553 if test "$GCC" = yes; then
17554 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'
17556 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'
17557 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17559 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17560 hardcode_libdir_separator_GCJ=:
17561 link_all_deplibs_GCJ=yes
17565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17566 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17568 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17570 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17571 hardcode_direct_GCJ=yes
17572 hardcode_shlibpath_var_GCJ=no
17576 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17577 hardcode_direct_GCJ=yes
17578 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17579 hardcode_libdir_separator_GCJ=:
17580 hardcode_shlibpath_var_GCJ=no
17584 hardcode_direct_GCJ=yes
17585 hardcode_shlibpath_var_GCJ=no
17586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17587 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17590 export_dynamic_flag_spec_GCJ='${wl}-E'
17593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17594 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17595 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17598 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17606 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17607 hardcode_minus_L_GCJ=yes
17608 allow_undefined_flag_GCJ=unsupported
17609 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'
17610 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17614 if test "$GCC" = yes; then
17615 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17616 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'
17618 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17619 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'
17621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17622 hardcode_libdir_separator_GCJ=:
17625 osf4* | osf5*) # as osf3* with the addition of -msym flag
17626 if test "$GCC" = yes; then
17627 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17628 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'
17629 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17631 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17632 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'
17633 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~
17634 $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'
17636 # Both c and cxx compiler support -rpath directly
17637 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17639 hardcode_libdir_separator_GCJ=:
17643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17644 hardcode_shlibpath_var_GCJ=no
17645 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17646 runpath_var=LD_RUN_PATH
17647 hardcode_runpath_var=yes
17651 no_undefined_flag_GCJ=' -z text'
17652 if test "$GCC" = yes; then
17654 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17655 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17656 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17659 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17660 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17663 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17664 hardcode_shlibpath_var_GCJ=no
17666 solaris2.[0-5] | solaris2.[0-5].*) ;;
17668 # The compiler driver will combine linker options so we
17669 # cannot just pass the convience library names through
17670 # without $wl, iff we do not link with $LD.
17671 # Luckily, gcc supports the same syntax we need for Sun Studio.
17672 # Supported since Solaris 2.6 (maybe 2.5.1?)
17675 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17677 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' ;;
17680 link_all_deplibs_GCJ=yes
17684 if test "x$host_vendor" = xsequent; then
17685 # Use $CC to link under sequent, because it throws in some extra .o
17686 # files that make .init and .fini sections work.
17687 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17689 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17691 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692 hardcode_direct_GCJ=yes
17693 hardcode_minus_L_GCJ=yes
17694 hardcode_shlibpath_var_GCJ=no
17698 case $host_vendor in
17700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_direct_GCJ=yes # is this really true???
17704 ## LD is ld it makes a PLAMLIB
17705 ## CC just makes a GrossModule.
17706 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17707 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17708 hardcode_direct_GCJ=no
17711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17712 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17715 runpath_var='LD_RUN_PATH'
17716 hardcode_shlibpath_var_GCJ=no
17720 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17721 hardcode_shlibpath_var_GCJ=no
17722 export_dynamic_flag_spec_GCJ='-Bexport'
17726 if test -d /usr/nec; then
17727 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728 hardcode_shlibpath_var_GCJ=no
17729 runpath_var=LD_RUN_PATH
17730 hardcode_runpath_var=yes
17736 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17737 hardcode_direct_GCJ=yes
17738 hardcode_minus_L_GCJ=no
17739 hardcode_shlibpath_var_GCJ=no
17740 hardcode_runpath_var=yes
17741 runpath_var=LD_RUN_PATH
17744 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17745 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17746 if test "$GCC" = yes; then
17747 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17749 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17751 runpath_var='LD_RUN_PATH'
17752 hardcode_shlibpath_var_GCJ=no
17756 no_undefined_flag_GCJ=' -z text'
17757 # $CC -shared without GNU ld will not create a library from C++
17758 # object files and a static libstdc++, better avoid it by now
17759 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17760 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17761 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17762 hardcode_libdir_flag_spec_GCJ=
17763 hardcode_shlibpath_var_GCJ=no
17764 runpath_var='LD_RUN_PATH'
17768 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17770 hardcode_shlibpath_var_GCJ=no
17779 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17780 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17781 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17783 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17784 if test "$GCC" = yes; then
17785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17789 # Do we need to explicitly link libc?
17791 case "x$archive_cmds_need_lc_GCJ" in
17793 # Assume -lc should be added
17794 archive_cmds_need_lc_GCJ=yes
17796 if test "$enable_shared" = yes && test "$GCC" = yes; then
17797 case $archive_cmds_GCJ in
17799 # FIXME: we may have to deal with multi-command sequences.
17802 # Test whether the compiler implicitly links with -lc since on some
17803 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17804 # to ld, don't add -lc before -lgcc.
17805 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17806 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811 (eval $ac_compile) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } 2>conftest.err; then
17817 libobjs=conftest.$ac_objext
17819 wl=$lt_prog_compiler_wl_GCJ
17825 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17826 allow_undefined_flag_GCJ=
17827 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17828 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }
17833 archive_cmds_need_lc_GCJ=no
17835 archive_cmds_need_lc_GCJ=yes
17837 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17839 cat conftest.err 1>&5
17842 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17843 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17850 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17851 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17852 library_names_spec=
17853 libname_spec='lib$name'
17857 postuninstall_cmds=
17861 shlibpath_overrides_runpath=unknown
17863 dynamic_linker="$host_os ld.so"
17864 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17865 if test "$GCC" = yes; then
17866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17867 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17868 # if the path contains ";" then we assume it to be the separator
17869 # otherwise default to the standard path separator (i.e. ":") - it is
17870 # assumed that no part of a normal pathname contains ";" but that should
17871 # okay in the real world where ";" in dirpaths is itself problematic.
17872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17877 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17879 need_lib_prefix=unknown
17880 hardcode_into_libs=no
17882 # when you set need_version to no, make sure it does not cause -set_version
17883 # flags to be left without arguments
17884 need_version=unknown
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17890 shlibpath_var=LIBPATH
17892 # AIX 3 has no versioning support, so we append a major version to the name.
17893 soname_spec='${libname}${release}${shared_ext}$major'
17900 hardcode_into_libs=yes
17901 if test "$host_cpu" = ia64; then
17902 # AIX 5 supports IA64
17903 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17904 shlibpath_var=LD_LIBRARY_PATH
17906 # With GCC up to 2.95.x, collect2 would create an import file
17907 # for dependence libraries. The import file would start with
17908 # the line `#! .'. This would cause the generated library to
17909 # depend on `.', always an invalid library. This was fixed in
17910 # development snapshots of GCC prior to 3.0.
17912 aix4 | aix4.[01] | aix4.[01].*)
17913 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17915 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17918 can_build_shared=no
17922 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17923 # soname into executable. Probably we can add versioning support to
17924 # collect2, so additional links can be useful in future.
17925 if test "$aix_use_runtimelinking" = yes; then
17926 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17927 # instead of lib<name>.a to let people know that these are not
17928 # typical AIX shared libraries.
17929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931 # We preserve .a as extension for shared libraries through AIX4.2
17932 # and later when we are not doing run time linking.
17933 library_names_spec='${libname}${release}.a $libname.a'
17934 soname_spec='${libname}${release}${shared_ext}$major'
17936 shlibpath_var=LIBPATH
17941 library_names_spec='$libname.ixlibrary $libname.a'
17942 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17943 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'
17947 library_names_spec='${libname}${shared_ext}'
17948 dynamic_linker="$host_os ld.so"
17949 shlibpath_var=LIBRARY_PATH
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17956 soname_spec='${libname}${release}${shared_ext}$major'
17957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17961 # the default ld.so.conf also contains /usr/contrib/lib and
17962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17963 # libtool to hard-code these into programs
17966 cygwin* | mingw* | pw32*)
17967 version_type=windows
17972 case $GCC,$host_os in
17973 yes,cygwin* | yes,mingw* | yes,pw32*)
17974 library_names_spec='$libname.dll.a'
17975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17976 postinstall_cmds='base_file=`basename \${file}`~
17977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17978 dldir=$destdir/`dirname \$dlpath`~
17979 test -d \$dldir || mkdir -p \$dldir~
17980 $install_prog $dir/$dlname \$dldir/$dlname~
17981 chmod a+x \$dldir/$dlname'
17982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17983 dlpath=$dir/\$dldll~
17985 shlibpath_overrides_runpath=yes
17989 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17990 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17991 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17994 # MinGW DLLs use traditional 'lib' prefix
17995 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17996 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17997 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17998 # It is most probably a Windows format PATH printed by
17999 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18000 # path with ; separators, and with drive letters. We can handle the
18001 # drive letters (cygwin fileutils understands them), so leave them,
18002 # especially as we might pass files found there to a mingw objdump,
18003 # which wouldn't understand a cygwinified path. Ahh.
18004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18010 # pw32 DLLs use 'pw' prefix rather than 'lib'
18011 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18017 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18020 dynamic_linker='Win32 ld.exe'
18021 # FIXME: first we should search . and the directory the executable is in
18025 darwin* | rhapsody*)
18026 dynamic_linker="$host_os dyld"
18027 version_type=darwin
18030 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18031 soname_spec='${libname}${release}${major}$shared_ext'
18032 shlibpath_overrides_runpath=yes
18033 shlibpath_var=DYLD_LIBRARY_PATH
18034 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18035 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18036 if test "$GCC" = yes; then
18037 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"`
18039 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18049 soname_spec='${libname}${release}${shared_ext}$major'
18050 shlibpath_var=LD_LIBRARY_PATH
18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18062 soname_spec='${libname}${release}${shared_ext}$major'
18063 shlibpath_var=LD_LIBRARY_PATH
18064 shlibpath_overrides_runpath=no
18065 hardcode_into_libs=yes
18066 dynamic_linker='GNU ld.so'
18069 freebsd* | dragonfly*)
18070 # DragonFly does not have aout. When/if they implement a new
18071 # versioning mechanism, adjust this.
18072 if test -x /usr/bin/objformat; then
18073 objformat=`/usr/bin/objformat`
18076 freebsd[123]*) objformat=aout ;;
18077 *) objformat=elf ;;
18080 version_type=freebsd-$objformat
18081 case $version_type in
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18092 shlibpath_var=LD_LIBRARY_PATH
18095 shlibpath_overrides_runpath=yes
18097 freebsd3.[01]* | freebsdelf3.[01]*)
18098 shlibpath_overrides_runpath=yes
18099 hardcode_into_libs=yes
18102 shlibpath_overrides_runpath=no
18103 hardcode_into_libs=yes
18112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 shlibpath_var=LD_LIBRARY_PATH
18115 hardcode_into_libs=yes
18118 hpux9* | hpux10* | hpux11*)
18119 # Give a soname corresponding to the major version so that dld.sl refuses to
18120 # link against other versions.
18127 hardcode_into_libs=yes
18128 dynamic_linker="$host_os dld.so"
18129 shlibpath_var=LD_LIBRARY_PATH
18130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18132 soname_spec='${libname}${release}${shared_ext}$major'
18133 if test "X$HPUX_IA64_MODE" = X32; then
18134 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18136 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18142 hardcode_into_libs=yes
18143 dynamic_linker="$host_os dld.sl"
18144 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18147 soname_spec='${libname}${release}${shared_ext}$major'
18148 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18153 dynamic_linker="$host_os dld.sl"
18154 shlibpath_var=SHLIB_PATH
18155 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec='${libname}${release}${shared_ext}$major'
18160 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18161 postinstall_cmds='chmod 555 $lib'
18164 irix5* | irix6* | nonstopux*)
18166 nonstopux*) version_type=nonstopux ;;
18168 if test "$lt_cv_prog_gnu_ld" = yes; then
18176 soname_spec='${libname}${release}${shared_ext}$major'
18177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18179 irix5* | nonstopux*)
18180 libsuff= shlibsuff=
18183 case $LD in # libtool.m4 will add one of these switches to LD
18184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18185 libsuff= shlibsuff= libmagic=32-bit;;
18186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18187 libsuff=32 shlibsuff=N32 libmagic=N32;;
18188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18190 *) libsuff= shlibsuff= libmagic=never-match;;
18194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18195 shlibpath_overrides_runpath=no
18196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18198 hardcode_into_libs=yes
18201 # No shared lib support for Linux oldld, aout, or coff.
18202 linux*oldld* | linux*aout* | linux*coff*)
18206 # This must be Linux ELF.
18211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 shlibpath_overrides_runpath=no
18216 # This implies no fast_install, which is unacceptable.
18217 # Some rework will be needed to allow for fast_install
18218 # before this can be enabled.
18219 hardcode_into_libs=yes
18221 # Append ld.so.conf contents to the search path
18222 if test -f /etc/ld.so.conf; then
18223 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' ' '`
18224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18227 # We used to test for /lib/ld.so.1 and disable shared libraries on
18228 # powerpc, because MkLinux only supported shared libraries with the
18229 # GNU dynamic linker. Since this was broken with cross compilers,
18230 # most powerpc-linux boxes support dynamic linking these days and
18231 # people can always --disable-shared, the test was removed, and we
18232 # assume the GNU/Linux dynamic linker is in use.
18233 dynamic_linker='GNU/Linux ld.so'
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18241 soname_spec='${libname}${release}${shared_ext}$major'
18242 shlibpath_var=LD_LIBRARY_PATH
18243 shlibpath_overrides_runpath=no
18244 hardcode_into_libs=yes
18245 dynamic_linker='GNU ld.so'
18252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18255 dynamic_linker='NetBSD (a.out) ld.so'
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 dynamic_linker='NetBSD ld.elf_so'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 shlibpath_overrides_runpath=yes
18263 hardcode_into_libs=yes
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 shlibpath_overrides_runpath=yes
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278 soname_spec='${libname}${release}${shared_ext}$major'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 shlibpath_overrides_runpath=yes
18286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18289 *) need_version=no ;;
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18293 shlibpath_var=LD_LIBRARY_PATH
18294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18296 openbsd2.[89] | openbsd2.[89].*)
18297 shlibpath_overrides_runpath=no
18300 shlibpath_overrides_runpath=yes
18304 shlibpath_overrides_runpath=yes
18309 libname_spec='$name'
18312 library_names_spec='$libname${shared_ext} $libname.a'
18313 dynamic_linker='OS/2 ld.exe'
18314 shlibpath_var=LIBPATH
18317 osf3* | osf4* | osf5*)
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18323 shlibpath_var=LD_LIBRARY_PATH
18324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332 shlibpath_var=LD_LIBRARY_PATH
18339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18340 soname_spec='${libname}${release}${shared_ext}$major'
18341 shlibpath_var=LD_LIBRARY_PATH
18342 shlibpath_overrides_runpath=yes
18343 hardcode_into_libs=yes
18344 # ldd complains unless libraries are executable
18345 postinstall_cmds='chmod +x $lib'
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18351 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18352 shlibpath_var=LD_LIBRARY_PATH
18353 shlibpath_overrides_runpath=yes
18354 if test "$with_gnu_ld" = yes; then
18360 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18363 soname_spec='${libname}${release}${shared_ext}$major'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 case $host_vendor in
18367 shlibpath_overrides_runpath=no
18369 export_dynamic_flag_spec='${wl}-Blargedynsym'
18370 runpath_var=LD_RUN_PATH
18378 shlibpath_overrides_runpath=no
18379 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18385 if test -d /usr/nec ;then
18387 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18388 soname_spec='$libname${shared_ext}.$major'
18389 shlibpath_var=LD_LIBRARY_PATH
18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 shlibpath_var=LD_LIBRARY_PATH
18404 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18405 echo "${ECHO_T}$dynamic_linker" >&6; }
18406 test "$dynamic_linker" = no && can_build_shared=no
18408 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18410 hardcode_action_GCJ=
18411 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18412 test -n "$runpath_var_GCJ" || \
18413 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18415 # We can hardcode non-existant directories.
18416 if test "$hardcode_direct_GCJ" != no &&
18417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18418 # have to relink, otherwise we might link with an installed library
18419 # when we should be linking with a yet-to-be-installed one
18420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18421 test "$hardcode_minus_L_GCJ" != no; then
18422 # Linking always hardcodes the temporary library directory.
18423 hardcode_action_GCJ=relink
18425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18426 hardcode_action_GCJ=immediate
18429 # We cannot hardcode anything, or else we can only hardcode existing
18431 hardcode_action_GCJ=unsupported
18433 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18434 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18436 if test "$hardcode_action_GCJ" = relink; then
18437 # Fast installation is not supported
18438 enable_fast_install=no
18439 elif test "$shlibpath_overrides_runpath" = yes ||
18440 test "$enable_shared" = no; then
18441 # Fast installation is not necessary
18442 enable_fast_install=needless
18447 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18448 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18449 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18450 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18451 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18452 { echo "$as_me:$LINENO: result: yes" >&5
18453 echo "${ECHO_T}yes" >&6; }
18455 # FIXME - insert some real tests, host_os isn't really good enough
18458 if test -n "$STRIP" ; then
18459 striplib="$STRIP -x"
18460 { echo "$as_me:$LINENO: result: yes" >&5
18461 echo "${ECHO_T}yes" >&6; }
18463 { echo "$as_me:$LINENO: result: no" >&5
18464 echo "${ECHO_T}no" >&6; }
18468 { echo "$as_me:$LINENO: result: no" >&5
18469 echo "${ECHO_T}no" >&6; }
18474 if test "x$enable_dlopen" != xyes; then
18475 enable_dlopen=unknown
18476 enable_dlopen_self=unknown
18477 enable_dlopen_self_static=unknown
18484 lt_cv_dlopen="load_add_on"
18486 lt_cv_dlopen_self=yes
18490 lt_cv_dlopen="LoadLibrary"
18495 lt_cv_dlopen="dlopen"
18500 # if libdl is installed we need to link against it
18501 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 ac_check_lib_save_LIBS=$LIBS
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18515 /* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18530 rm -f conftest.$ac_objext conftest$ac_exeext
18531 if { (ac_try="$ac_link"
18532 case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_link") 2>conftest.er1
18539 grep -v '^ *+' conftest.er1 >conftest.err
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } && {
18544 test -z "$ac_c_werror_flag" ||
18545 test ! -s conftest.err
18546 } && test -s conftest$ac_exeext &&
18547 $as_test_x conftest$ac_exeext; then
18548 ac_cv_lib_dl_dlopen=yes
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18553 ac_cv_lib_dl_dlopen=no
18556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18557 conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_lib_save_LIBS
18560 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18562 if test $ac_cv_lib_dl_dlopen = yes; then
18563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18566 lt_cv_dlopen="dyld"
18568 lt_cv_dlopen_self=yes
18575 { echo "$as_me:$LINENO: checking for shl_load" >&5
18576 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18577 if test "${ac_cv_func_shl_load+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18588 #define shl_load innocuous_shl_load
18590 /* System header to define __stub macros and hopefully few prototypes,
18591 which can conflict with char shl_load (); below.
18592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18593 <limits.h> exists even on freestanding compilers. */
18596 # include <limits.h>
18598 # include <assert.h>
18603 /* Override any GCC internal prototype to avoid an error.
18604 Use char because int might match the return type of a GCC
18605 builtin and then its argument prototype would still apply. */
18610 /* The GNU C library defines this for functions which it implements
18611 to always fail with ENOSYS. Some functions are actually named
18612 something starting with __ and the normal name is an alias. */
18613 #if defined __stub_shl_load || defined __stub___shl_load
18620 return shl_load ();
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (ac_try="$ac_link"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_link") 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && {
18639 test -z "$ac_c_werror_flag" ||
18640 test ! -s conftest.err
18641 } && test -s conftest$ac_exeext &&
18642 $as_test_x conftest$ac_exeext; then
18643 ac_cv_func_shl_load=yes
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_cv_func_shl_load=no
18651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18652 conftest$ac_exeext conftest.$ac_ext
18654 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18655 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18656 if test $ac_cv_func_shl_load = yes; then
18657 lt_cv_dlopen="shl_load"
18659 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18660 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18661 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 ac_check_lib_save_LIBS=$LIBS
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 /* Override any GCC internal prototype to avoid an error.
18674 Use char because int might match the return type of a GCC
18675 builtin and then its argument prototype would still apply. */
18683 return shl_load ();
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_link") 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest$ac_exeext &&
18705 $as_test_x conftest$ac_exeext; then
18706 ac_cv_lib_dld_shl_load=yes
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_lib_dld_shl_load=no
18714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18715 conftest$ac_exeext conftest.$ac_ext
18716 LIBS=$ac_check_lib_save_LIBS
18718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18719 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18720 if test $ac_cv_lib_dld_shl_load = yes; then
18721 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18723 { echo "$as_me:$LINENO: checking for dlopen" >&5
18724 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18725 if test "${ac_cv_func_dlopen+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18728 cat >conftest.$ac_ext <<_ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18736 #define dlopen innocuous_dlopen
18738 /* System header to define __stub macros and hopefully few prototypes,
18739 which can conflict with char dlopen (); below.
18740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18741 <limits.h> exists even on freestanding compilers. */
18744 # include <limits.h>
18746 # include <assert.h>
18751 /* Override any GCC internal prototype to avoid an error.
18752 Use char because int might match the return type of a GCC
18753 builtin and then its argument prototype would still apply. */
18758 /* The GNU C library defines this for functions which it implements
18759 to always fail with ENOSYS. Some functions are actually named
18760 something starting with __ and the normal name is an alias. */
18761 #if defined __stub_dlopen || defined __stub___dlopen
18773 rm -f conftest.$ac_objext conftest$ac_exeext
18774 if { (ac_try="$ac_link"
18775 case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_link") 2>conftest.er1
18782 grep -v '^ *+' conftest.er1 >conftest.err
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } && {
18787 test -z "$ac_c_werror_flag" ||
18788 test ! -s conftest.err
18789 } && test -s conftest$ac_exeext &&
18790 $as_test_x conftest$ac_exeext; then
18791 ac_cv_func_dlopen=yes
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 ac_cv_func_dlopen=no
18799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800 conftest$ac_exeext conftest.$ac_ext
18802 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18803 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18804 if test $ac_cv_func_dlopen = yes; then
18805 lt_cv_dlopen="dlopen"
18807 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18808 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 ac_check_lib_save_LIBS=$LIBS
18814 cat >conftest.$ac_ext <<_ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18821 /* Override any GCC internal prototype to avoid an error.
18822 Use char because int might match the return type of a GCC
18823 builtin and then its argument prototype would still apply. */
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_link") 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } && {
18850 test -z "$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18852 } && test -s conftest$ac_exeext &&
18853 $as_test_x conftest$ac_exeext; then
18854 ac_cv_lib_dl_dlopen=yes
18856 echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 ac_cv_lib_dl_dlopen=no
18862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18863 conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18866 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18867 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18868 if test $ac_cv_lib_dl_dlopen = yes; then
18869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18871 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18872 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18873 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18876 ac_check_lib_save_LIBS=$LIBS
18877 LIBS="-lsvld $LIBS"
18878 cat >conftest.$ac_ext <<_ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18885 /* Override any GCC internal prototype to avoid an error.
18886 Use char because int might match the return type of a GCC
18887 builtin and then its argument prototype would still apply. */
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_link") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } && {
18914 test -z "$ac_c_werror_flag" ||
18915 test ! -s conftest.err
18916 } && test -s conftest$ac_exeext &&
18917 $as_test_x conftest$ac_exeext; then
18918 ac_cv_lib_svld_dlopen=yes
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 ac_cv_lib_svld_dlopen=no
18926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18927 conftest$ac_exeext conftest.$ac_ext
18928 LIBS=$ac_check_lib_save_LIBS
18930 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18931 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18932 if test $ac_cv_lib_svld_dlopen = yes; then
18933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18935 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18936 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18937 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 ac_check_lib_save_LIBS=$LIBS
18942 cat >conftest.$ac_ext <<_ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18949 /* Override any GCC internal prototype to avoid an error.
18950 Use char because int might match the return type of a GCC
18951 builtin and then its argument prototype would still apply. */
18959 return dld_link ();
18964 rm -f conftest.$ac_objext conftest$ac_exeext
18965 if { (ac_try="$ac_link"
18966 case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_link") 2>conftest.er1
18973 grep -v '^ *+' conftest.er1 >conftest.err
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } && {
18978 test -z "$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 } && test -s conftest$ac_exeext &&
18981 $as_test_x conftest$ac_exeext; then
18982 ac_cv_lib_dld_dld_link=yes
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 ac_cv_lib_dld_dld_link=no
18990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18991 conftest$ac_exeext conftest.$ac_ext
18992 LIBS=$ac_check_lib_save_LIBS
18994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18995 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18996 if test $ac_cv_lib_dld_dld_link = yes; then
18997 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19018 if test "x$lt_cv_dlopen" != xno; then
19024 case $lt_cv_dlopen in
19026 save_CPPFLAGS="$CPPFLAGS"
19027 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19029 save_LDFLAGS="$LDFLAGS"
19030 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19033 LIBS="$lt_cv_dlopen_libs $LIBS"
19035 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19036 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19037 if test "${lt_cv_dlopen_self+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 if test "$cross_compiling" = yes; then :
19041 lt_cv_dlopen_self=cross
19043 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19044 lt_status=$lt_dlunknown
19045 cat > conftest.$ac_ext <<EOF
19046 #line 19046 "configure"
19047 #include "confdefs.h"
19056 # define LT_DLGLOBAL RTLD_GLOBAL
19059 # define LT_DLGLOBAL DL_GLOBAL
19061 # define LT_DLGLOBAL 0
19065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19066 find out it does not work in some platform. */
19067 #ifndef LT_DLLAZY_OR_NOW
19069 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19072 # define LT_DLLAZY_OR_NOW DL_LAZY
19075 # define LT_DLLAZY_OR_NOW RTLD_NOW
19078 # define LT_DLLAZY_OR_NOW DL_NOW
19080 # define LT_DLLAZY_OR_NOW 0
19088 extern "C" void exit (int);
19091 void fnord() { int i=42;}
19094 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19095 int status = $lt_dlunknown;
19099 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19100 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19101 /* dlclose (self); */
19107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19108 (eval $ac_link) 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19112 (./conftest; exit; ) >&5 2>/dev/null
19114 case x$lt_status in
19115 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19116 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19117 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19120 # compilation failed
19121 lt_cv_dlopen_self=no
19128 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19129 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19131 if test "x$lt_cv_dlopen_self" = xyes; then
19132 LDFLAGS="$LDFLAGS $link_static_flag"
19133 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19134 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19135 if test "${lt_cv_dlopen_self_static+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 if test "$cross_compiling" = yes; then :
19139 lt_cv_dlopen_self_static=cross
19141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19142 lt_status=$lt_dlunknown
19143 cat > conftest.$ac_ext <<EOF
19144 #line 19144 "configure"
19145 #include "confdefs.h"
19154 # define LT_DLGLOBAL RTLD_GLOBAL
19157 # define LT_DLGLOBAL DL_GLOBAL
19159 # define LT_DLGLOBAL 0
19163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19164 find out it does not work in some platform. */
19165 #ifndef LT_DLLAZY_OR_NOW
19167 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19170 # define LT_DLLAZY_OR_NOW DL_LAZY
19173 # define LT_DLLAZY_OR_NOW RTLD_NOW
19176 # define LT_DLLAZY_OR_NOW DL_NOW
19178 # define LT_DLLAZY_OR_NOW 0
19186 extern "C" void exit (int);
19189 void fnord() { int i=42;}
19192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19193 int status = $lt_dlunknown;
19197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19198 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19199 /* dlclose (self); */
19205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19206 (eval $ac_link) 2>&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19210 (./conftest; exit; ) >&5 2>/dev/null
19212 case x$lt_status in
19213 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19214 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19215 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19218 # compilation failed
19219 lt_cv_dlopen_self_static=no
19226 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19227 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19230 CPPFLAGS="$save_CPPFLAGS"
19231 LDFLAGS="$save_LDFLAGS"
19236 case $lt_cv_dlopen_self in
19237 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19238 *) enable_dlopen_self=unknown ;;
19241 case $lt_cv_dlopen_self_static in
19242 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19243 *) enable_dlopen_self_static=unknown ;;
19248 # The else clause should only fire when bootstrapping the
19249 # libtool distribution, otherwise you forgot to ship ltmain.sh
19250 # with your package, and you will get complaints that there are
19251 # no rules to generate ltmain.sh.
19252 if test -f "$ltmain"; then
19253 # See if we are running on zsh, and set the options which allow our commands through
19254 # without removal of \ escapes.
19255 if test -n "${ZSH_VERSION+set}" ; then
19256 setopt NO_GLOB_SUBST
19258 # Now quote all the things that may contain metacharacters while being
19259 # careful not to overquote the AC_SUBSTed values. We take copies of the
19260 # variables and quote the copies for generation of the libtool script.
19261 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19263 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19264 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19265 deplibs_check_method reload_flag reload_cmds need_locks \
19266 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19267 lt_cv_sys_global_symbol_to_c_name_address \
19268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19269 old_postinstall_cmds old_postuninstall_cmds \
19273 lt_prog_compiler_wl_GCJ \
19274 lt_prog_compiler_pic_GCJ \
19275 lt_prog_compiler_static_GCJ \
19276 lt_prog_compiler_no_builtin_flag_GCJ \
19277 export_dynamic_flag_spec_GCJ \
19278 thread_safe_flag_spec_GCJ \
19279 whole_archive_flag_spec_GCJ \
19280 enable_shared_with_static_runtimes_GCJ \
19281 old_archive_cmds_GCJ \
19282 old_archive_from_new_cmds_GCJ \
19283 predep_objects_GCJ \
19284 postdep_objects_GCJ \
19287 compiler_lib_search_path_GCJ \
19289 archive_expsym_cmds_GCJ \
19290 postinstall_cmds_GCJ \
19291 postuninstall_cmds_GCJ \
19292 old_archive_from_expsyms_cmds_GCJ \
19293 allow_undefined_flag_GCJ \
19294 no_undefined_flag_GCJ \
19295 export_symbols_cmds_GCJ \
19296 hardcode_libdir_flag_spec_GCJ \
19297 hardcode_libdir_flag_spec_ld_GCJ \
19298 hardcode_libdir_separator_GCJ \
19299 hardcode_automatic_GCJ \
19301 module_expsym_cmds_GCJ \
19302 lt_cv_prog_compiler_c_o_GCJ \
19303 exclude_expsyms_GCJ \
19304 include_expsyms_GCJ; do
19307 old_archive_cmds_GCJ | \
19308 old_archive_from_new_cmds_GCJ | \
19309 archive_cmds_GCJ | \
19310 archive_expsym_cmds_GCJ | \
19311 module_cmds_GCJ | \
19312 module_expsym_cmds_GCJ | \
19313 old_archive_from_expsyms_cmds_GCJ | \
19314 export_symbols_cmds_GCJ | \
19315 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19316 postinstall_cmds | postuninstall_cmds | \
19317 old_postinstall_cmds | old_postuninstall_cmds | \
19318 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19319 # Double-quote double-evaled strings.
19320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19329 *'\$0 --fallback-echo"')
19330 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19336 cat <<__EOF__ >> "$cfgfile"
19337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19341 # Shell to use when invoking shell scripts.
19344 # Whether or not to build shared libraries.
19345 build_libtool_libs=$enable_shared
19347 # Whether or not to build static libraries.
19348 build_old_libs=$enable_static
19350 # Whether or not to add -lc for building shared libraries.
19351 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19353 # Whether or not to disallow shared libs when runtime libs are static
19354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19356 # Whether or not to optimize for fast installation.
19357 fast_install=$enable_fast_install
19360 host_alias=$host_alias
19364 # The build system.
19365 build_alias=$build_alias
19369 # An echo program that does not interpret backslashes.
19374 AR_FLAGS=$lt_AR_FLAGS
19379 # A language-specific compiler.
19380 CC=$lt_compiler_GCJ
19382 # Is the compiler the GNU C compiler?
19388 # The linker used to build libraries.
19391 # Whether we need hard or soft links.
19394 # A BSD-compatible nm program.
19397 # A symbol stripping program
19400 # Used to examine libraries when file_magic_cmd begins "file"
19401 MAGIC_CMD=$MAGIC_CMD
19403 # Used on cygwin: DLL creation program.
19406 # Used on cygwin: object dumper.
19409 # Used on cygwin: assembler.
19412 # The name of the directory that contains temporary libtool files.
19415 # How to create reloadable object files.
19416 reload_flag=$lt_reload_flag
19417 reload_cmds=$lt_reload_cmds
19419 # How to pass a linker flag through the compiler.
19420 wl=$lt_lt_prog_compiler_wl_GCJ
19422 # Object file suffix (normally "o").
19423 objext="$ac_objext"
19425 # Old archive suffix (normally "a").
19428 # Shared library suffix (normally ".so").
19429 shrext_cmds='$shrext_cmds'
19431 # Executable file suffix (normally "").
19434 # Additional compiler flags for building library objects.
19435 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19438 # What is the maximum length of a command?
19439 max_cmd_len=$lt_cv_sys_max_cmd_len
19441 # Does compiler simultaneously support -c and -o options?
19442 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19444 # Must we lock files when doing compilation?
19445 need_locks=$lt_need_locks
19447 # Do we need the lib prefix for modules?
19448 need_lib_prefix=$need_lib_prefix
19450 # Do we need a version for libraries?
19451 need_version=$need_version
19453 # Whether dlopen is supported.
19454 dlopen_support=$enable_dlopen
19456 # Whether dlopen of programs is supported.
19457 dlopen_self=$enable_dlopen_self
19459 # Whether dlopen of statically linked programs is supported.
19460 dlopen_self_static=$enable_dlopen_self_static
19462 # Compiler flag to prevent dynamic linking.
19463 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19465 # Compiler flag to turn off builtin functions.
19466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19468 # Compiler flag to allow reflexive dlopens.
19469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19471 # Compiler flag to generate shared objects directly from archives.
19472 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19474 # Compiler flag to generate thread-safe objects.
19475 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19477 # Library versioning type.
19478 version_type=$version_type
19480 # Format of library name prefix.
19481 libname_spec=$lt_libname_spec
19483 # List of archive names. First name is the real one, the rest are links.
19484 # The last name is the one that the linker finds with -lNAME.
19485 library_names_spec=$lt_library_names_spec
19487 # The coded name of the library, if different from the real name.
19488 soname_spec=$lt_soname_spec
19490 # Commands used to build and install an old-style archive.
19492 old_archive_cmds=$lt_old_archive_cmds_GCJ
19493 old_postinstall_cmds=$lt_old_postinstall_cmds
19494 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19496 # Create an old-style archive from a shared archive.
19497 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19499 # Create a temporary old-style archive to link instead of a shared archive.
19500 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19502 # Commands used to build and install a shared archive.
19503 archive_cmds=$lt_archive_cmds_GCJ
19504 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19505 postinstall_cmds=$lt_postinstall_cmds
19506 postuninstall_cmds=$lt_postuninstall_cmds
19508 # Commands used to build a loadable module (assumed same as above if empty)
19509 module_cmds=$lt_module_cmds_GCJ
19510 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19512 # Commands to strip libraries.
19513 old_striplib=$lt_old_striplib
19514 striplib=$lt_striplib
19516 # Dependencies to place before the objects being linked to create a
19518 predep_objects=$lt_predep_objects_GCJ
19520 # Dependencies to place after the objects being linked to create a
19522 postdep_objects=$lt_postdep_objects_GCJ
19524 # Dependencies to place before the objects being linked to create a
19526 predeps=$lt_predeps_GCJ
19528 # Dependencies to place after the objects being linked to create a
19530 postdeps=$lt_postdeps_GCJ
19532 # The library search path used internally by the compiler when linking
19533 # a shared library.
19534 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19536 # Method to check whether dependent libraries are shared objects.
19537 deplibs_check_method=$lt_deplibs_check_method
19539 # Command to use when deplibs_check_method == file_magic.
19540 file_magic_cmd=$lt_file_magic_cmd
19542 # Flag that allows shared libraries with undefined symbols to be built.
19543 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19545 # Flag that forces no undefined symbols.
19546 no_undefined_flag=$lt_no_undefined_flag_GCJ
19548 # Commands used to finish a libtool library installation in a directory.
19549 finish_cmds=$lt_finish_cmds
19551 # Same as above, but a single script fragment to be evaled but not shown.
19552 finish_eval=$lt_finish_eval
19554 # Take the output of nm and produce a listing of raw symbols and C names.
19555 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19557 # Transform the output of nm in a proper C declaration
19558 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19560 # Transform the output of nm in a C name address pair
19561 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19563 # This is the shared library runtime path variable.
19564 runpath_var=$runpath_var
19566 # This is the shared library path variable.
19567 shlibpath_var=$shlibpath_var
19569 # Is shlibpath searched before the hard-coded library search path?
19570 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19572 # How to hardcode a shared library path into an executable.
19573 hardcode_action=$hardcode_action_GCJ
19575 # Whether we should hardcode library paths into libraries.
19576 hardcode_into_libs=$hardcode_into_libs
19578 # Flag to hardcode \$libdir into a binary during linking.
19579 # This must work even if \$libdir does not exist.
19580 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19582 # If ld is used when linking, flag to hardcode \$libdir into
19583 # a binary during linking. This must work even if \$libdir does
19585 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19587 # Whether we need a single -rpath flag with a separated argument.
19588 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19590 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19591 # resulting binary.
19592 hardcode_direct=$hardcode_direct_GCJ
19594 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19595 # resulting binary.
19596 hardcode_minus_L=$hardcode_minus_L_GCJ
19598 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19599 # the resulting binary.
19600 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19602 # Set to yes if building a shared library automatically hardcodes DIR into the library
19603 # and all subsequent libraries and executables linked against it.
19604 hardcode_automatic=$hardcode_automatic_GCJ
19606 # Variables whose values should be saved in libtool wrapper scripts and
19607 # restored at relink time.
19608 variables_saved_for_relink="$variables_saved_for_relink"
19610 # Whether libtool must link a program against all its dependency libraries.
19611 link_all_deplibs=$link_all_deplibs_GCJ
19613 # Compile-time system search path for libraries
19614 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19616 # Run-time system search path for libraries
19617 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19619 # Fix the shell variable \$srcfile for the compiler.
19620 fix_srcfile_path="$fix_srcfile_path_GCJ"
19622 # Set to yes if exported symbols are required.
19623 always_export_symbols=$always_export_symbols_GCJ
19625 # The commands to list exported symbols.
19626 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19628 # The commands to extract the exported symbol list from a shared archive.
19629 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19631 # Symbols that should not be listed in the preloaded symbols.
19632 exclude_expsyms=$lt_exclude_expsyms_GCJ
19634 # Symbols that must always be exported.
19635 include_expsyms=$lt_include_expsyms_GCJ
19637 # ### END LIBTOOL TAG CONFIG: $tagname
19643 # If there is no Makefile yet, we rely on a make rule to execute
19644 # `config.status --recheck' to rerun these tests and create the
19645 # libtool script then.
19646 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19647 if test -f "$ltmain_in"; then
19648 test -f Makefile && make "$ltmain"
19654 ac_cpp='$CPP $CPPFLAGS'
19655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669 # Source file extension for RC test sources.
19672 # Object file extension for compiled RC test sources.
19676 # Code to be used in simple compile tests
19677 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19679 # Code to be used in simple link tests
19680 lt_simple_link_test_code="$lt_simple_compile_test_code"
19682 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19684 # If no C compiler was specified, use CC.
19687 # Allow CC to be a program name with arguments.
19691 # save warnings/boilerplate of simple test code
19692 ac_outfile=conftest.$ac_objext
19693 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19695 _lt_compiler_boilerplate=`cat conftest.err`
19698 ac_outfile=conftest.$ac_objext
19699 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19701 _lt_linker_boilerplate=`cat conftest.err`
19705 # Allow CC to be a program name with arguments.
19710 for cc_temp in $compiler""; do
19712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19720 lt_cv_prog_compiler_c_o_RC=yes
19722 # The else clause should only fire when bootstrapping the
19723 # libtool distribution, otherwise you forgot to ship ltmain.sh
19724 # with your package, and you will get complaints that there are
19725 # no rules to generate ltmain.sh.
19726 if test -f "$ltmain"; then
19727 # See if we are running on zsh, and set the options which allow our commands through
19728 # without removal of \ escapes.
19729 if test -n "${ZSH_VERSION+set}" ; then
19730 setopt NO_GLOB_SUBST
19732 # Now quote all the things that may contain metacharacters while being
19733 # careful not to overquote the AC_SUBSTed values. We take copies of the
19734 # variables and quote the copies for generation of the libtool script.
19735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19739 deplibs_check_method reload_flag reload_cmds need_locks \
19740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19741 lt_cv_sys_global_symbol_to_c_name_address \
19742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19743 old_postinstall_cmds old_postuninstall_cmds \
19747 lt_prog_compiler_wl_RC \
19748 lt_prog_compiler_pic_RC \
19749 lt_prog_compiler_static_RC \
19750 lt_prog_compiler_no_builtin_flag_RC \
19751 export_dynamic_flag_spec_RC \
19752 thread_safe_flag_spec_RC \
19753 whole_archive_flag_spec_RC \
19754 enable_shared_with_static_runtimes_RC \
19755 old_archive_cmds_RC \
19756 old_archive_from_new_cmds_RC \
19757 predep_objects_RC \
19758 postdep_objects_RC \
19761 compiler_lib_search_path_RC \
19763 archive_expsym_cmds_RC \
19764 postinstall_cmds_RC \
19765 postuninstall_cmds_RC \
19766 old_archive_from_expsyms_cmds_RC \
19767 allow_undefined_flag_RC \
19768 no_undefined_flag_RC \
19769 export_symbols_cmds_RC \
19770 hardcode_libdir_flag_spec_RC \
19771 hardcode_libdir_flag_spec_ld_RC \
19772 hardcode_libdir_separator_RC \
19773 hardcode_automatic_RC \
19775 module_expsym_cmds_RC \
19776 lt_cv_prog_compiler_c_o_RC \
19777 exclude_expsyms_RC \
19778 include_expsyms_RC; do
19781 old_archive_cmds_RC | \
19782 old_archive_from_new_cmds_RC | \
19783 archive_cmds_RC | \
19784 archive_expsym_cmds_RC | \
19786 module_expsym_cmds_RC | \
19787 old_archive_from_expsyms_cmds_RC | \
19788 export_symbols_cmds_RC | \
19789 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19790 postinstall_cmds | postuninstall_cmds | \
19791 old_postinstall_cmds | old_postuninstall_cmds | \
19792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19793 # Double-quote double-evaled strings.
19794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19803 *'\$0 --fallback-echo"')
19804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19810 cat <<__EOF__ >> "$cfgfile"
19811 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19815 # Shell to use when invoking shell scripts.
19818 # Whether or not to build shared libraries.
19819 build_libtool_libs=$enable_shared
19821 # Whether or not to build static libraries.
19822 build_old_libs=$enable_static
19824 # Whether or not to add -lc for building shared libraries.
19825 build_libtool_need_lc=$archive_cmds_need_lc_RC
19827 # Whether or not to disallow shared libs when runtime libs are static
19828 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19830 # Whether or not to optimize for fast installation.
19831 fast_install=$enable_fast_install
19834 host_alias=$host_alias
19838 # The build system.
19839 build_alias=$build_alias
19843 # An echo program that does not interpret backslashes.
19848 AR_FLAGS=$lt_AR_FLAGS
19853 # A language-specific compiler.
19856 # Is the compiler the GNU C compiler?
19862 # The linker used to build libraries.
19865 # Whether we need hard or soft links.
19868 # A BSD-compatible nm program.
19871 # A symbol stripping program
19874 # Used to examine libraries when file_magic_cmd begins "file"
19875 MAGIC_CMD=$MAGIC_CMD
19877 # Used on cygwin: DLL creation program.
19880 # Used on cygwin: object dumper.
19883 # Used on cygwin: assembler.
19886 # The name of the directory that contains temporary libtool files.
19889 # How to create reloadable object files.
19890 reload_flag=$lt_reload_flag
19891 reload_cmds=$lt_reload_cmds
19893 # How to pass a linker flag through the compiler.
19894 wl=$lt_lt_prog_compiler_wl_RC
19896 # Object file suffix (normally "o").
19897 objext="$ac_objext"
19899 # Old archive suffix (normally "a").
19902 # Shared library suffix (normally ".so").
19903 shrext_cmds='$shrext_cmds'
19905 # Executable file suffix (normally "").
19908 # Additional compiler flags for building library objects.
19909 pic_flag=$lt_lt_prog_compiler_pic_RC
19912 # What is the maximum length of a command?
19913 max_cmd_len=$lt_cv_sys_max_cmd_len
19915 # Does compiler simultaneously support -c and -o options?
19916 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19918 # Must we lock files when doing compilation?
19919 need_locks=$lt_need_locks
19921 # Do we need the lib prefix for modules?
19922 need_lib_prefix=$need_lib_prefix
19924 # Do we need a version for libraries?
19925 need_version=$need_version
19927 # Whether dlopen is supported.
19928 dlopen_support=$enable_dlopen
19930 # Whether dlopen of programs is supported.
19931 dlopen_self=$enable_dlopen_self
19933 # Whether dlopen of statically linked programs is supported.
19934 dlopen_self_static=$enable_dlopen_self_static
19936 # Compiler flag to prevent dynamic linking.
19937 link_static_flag=$lt_lt_prog_compiler_static_RC
19939 # Compiler flag to turn off builtin functions.
19940 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19942 # Compiler flag to allow reflexive dlopens.
19943 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19945 # Compiler flag to generate shared objects directly from archives.
19946 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19948 # Compiler flag to generate thread-safe objects.
19949 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19951 # Library versioning type.
19952 version_type=$version_type
19954 # Format of library name prefix.
19955 libname_spec=$lt_libname_spec
19957 # List of archive names. First name is the real one, the rest are links.
19958 # The last name is the one that the linker finds with -lNAME.
19959 library_names_spec=$lt_library_names_spec
19961 # The coded name of the library, if different from the real name.
19962 soname_spec=$lt_soname_spec
19964 # Commands used to build and install an old-style archive.
19966 old_archive_cmds=$lt_old_archive_cmds_RC
19967 old_postinstall_cmds=$lt_old_postinstall_cmds
19968 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19970 # Create an old-style archive from a shared archive.
19971 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19973 # Create a temporary old-style archive to link instead of a shared archive.
19974 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19976 # Commands used to build and install a shared archive.
19977 archive_cmds=$lt_archive_cmds_RC
19978 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19979 postinstall_cmds=$lt_postinstall_cmds
19980 postuninstall_cmds=$lt_postuninstall_cmds
19982 # Commands used to build a loadable module (assumed same as above if empty)
19983 module_cmds=$lt_module_cmds_RC
19984 module_expsym_cmds=$lt_module_expsym_cmds_RC
19986 # Commands to strip libraries.
19987 old_striplib=$lt_old_striplib
19988 striplib=$lt_striplib
19990 # Dependencies to place before the objects being linked to create a
19992 predep_objects=$lt_predep_objects_RC
19994 # Dependencies to place after the objects being linked to create a
19996 postdep_objects=$lt_postdep_objects_RC
19998 # Dependencies to place before the objects being linked to create a
20000 predeps=$lt_predeps_RC
20002 # Dependencies to place after the objects being linked to create a
20004 postdeps=$lt_postdeps_RC
20006 # The library search path used internally by the compiler when linking
20007 # a shared library.
20008 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20010 # Method to check whether dependent libraries are shared objects.
20011 deplibs_check_method=$lt_deplibs_check_method
20013 # Command to use when deplibs_check_method == file_magic.
20014 file_magic_cmd=$lt_file_magic_cmd
20016 # Flag that allows shared libraries with undefined symbols to be built.
20017 allow_undefined_flag=$lt_allow_undefined_flag_RC
20019 # Flag that forces no undefined symbols.
20020 no_undefined_flag=$lt_no_undefined_flag_RC
20022 # Commands used to finish a libtool library installation in a directory.
20023 finish_cmds=$lt_finish_cmds
20025 # Same as above, but a single script fragment to be evaled but not shown.
20026 finish_eval=$lt_finish_eval
20028 # Take the output of nm and produce a listing of raw symbols and C names.
20029 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20031 # Transform the output of nm in a proper C declaration
20032 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20034 # Transform the output of nm in a C name address pair
20035 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20037 # This is the shared library runtime path variable.
20038 runpath_var=$runpath_var
20040 # This is the shared library path variable.
20041 shlibpath_var=$shlibpath_var
20043 # Is shlibpath searched before the hard-coded library search path?
20044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20046 # How to hardcode a shared library path into an executable.
20047 hardcode_action=$hardcode_action_RC
20049 # Whether we should hardcode library paths into libraries.
20050 hardcode_into_libs=$hardcode_into_libs
20052 # Flag to hardcode \$libdir into a binary during linking.
20053 # This must work even if \$libdir does not exist.
20054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20056 # If ld is used when linking, flag to hardcode \$libdir into
20057 # a binary during linking. This must work even if \$libdir does
20059 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20061 # Whether we need a single -rpath flag with a separated argument.
20062 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20064 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20065 # resulting binary.
20066 hardcode_direct=$hardcode_direct_RC
20068 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20069 # resulting binary.
20070 hardcode_minus_L=$hardcode_minus_L_RC
20072 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20073 # the resulting binary.
20074 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20076 # Set to yes if building a shared library automatically hardcodes DIR into the library
20077 # and all subsequent libraries and executables linked against it.
20078 hardcode_automatic=$hardcode_automatic_RC
20080 # Variables whose values should be saved in libtool wrapper scripts and
20081 # restored at relink time.
20082 variables_saved_for_relink="$variables_saved_for_relink"
20084 # Whether libtool must link a program against all its dependency libraries.
20085 link_all_deplibs=$link_all_deplibs_RC
20087 # Compile-time system search path for libraries
20088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20090 # Run-time system search path for libraries
20091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20093 # Fix the shell variable \$srcfile for the compiler.
20094 fix_srcfile_path="$fix_srcfile_path_RC"
20096 # Set to yes if exported symbols are required.
20097 always_export_symbols=$always_export_symbols_RC
20099 # The commands to list exported symbols.
20100 export_symbols_cmds=$lt_export_symbols_cmds_RC
20102 # The commands to extract the exported symbol list from a shared archive.
20103 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20105 # Symbols that should not be listed in the preloaded symbols.
20106 exclude_expsyms=$lt_exclude_expsyms_RC
20108 # Symbols that must always be exported.
20109 include_expsyms=$lt_include_expsyms_RC
20111 # ### END LIBTOOL TAG CONFIG: $tagname
20117 # If there is no Makefile yet, we rely on a make rule to execute
20118 # `config.status --recheck' to rerun these tests and create the
20119 # libtool script then.
20120 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20121 if test -f "$ltmain_in"; then
20122 test -f Makefile && make "$ltmain"
20128 ac_cpp='$CPP $CPPFLAGS'
20129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20138 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20139 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20140 { (exit 1); exit 1; }; }
20144 # Append the new tag name to the list of available tags.
20145 if test -n "$tagname" ; then
20146 available_tags="$available_tags $tagname"
20152 # Now substitute the updated list of available tags.
20153 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20154 mv "${ofile}T" "$ofile"
20158 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20159 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20160 { (exit 1); exit 1; }; }
20166 # This can be used to rebuild libtool when needed
20167 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20169 # Always use our own libtool.
20170 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20172 # Prevent multiple expansion
20197 for ac_header in libintl.h
20199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 ac_res=`eval echo '${'$as_ac_Header'}'`
20207 { echo "$as_me:$LINENO: result: $ac_res" >&5
20208 echo "${ECHO_T}$ac_res" >&6; }
20210 # Is the header compilable?
20211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20213 cat >conftest.$ac_ext <<_ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 $ac_includes_default
20220 #include <$ac_header>
20222 rm -f conftest.$ac_objext
20223 if { (ac_try="$ac_compile"
20224 case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_compile") 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } && {
20236 test -z "$ac_c_werror_flag" ||
20237 test ! -s conftest.err
20238 } && test -s conftest.$ac_objext; then
20239 ac_header_compiler=yes
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 ac_header_compiler=no
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20249 echo "${ECHO_T}$ac_header_compiler" >&6; }
20251 # Is the header present?
20252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 #include <$ac_header>
20262 if { (ac_try="$ac_cpp conftest.$ac_ext"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20270 grep -v '^ *+' conftest.er1 >conftest.err
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } >/dev/null && {
20275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20276 test ! -s conftest.err
20278 ac_header_preproc=yes
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 ac_header_preproc=no
20286 rm -f conftest.err conftest.$ac_ext
20287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20288 echo "${ECHO_T}$ac_header_preproc" >&6; }
20290 # So? What about this header?
20291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20297 ac_header_preproc=yes
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 eval "$as_ac_Header=\$ac_header_preproc"
20322 ac_res=`eval echo '${'$as_ac_Header'}'`
20323 { echo "$as_me:$LINENO: result: $ac_res" >&5
20324 echo "${ECHO_T}$ac_res" >&6; }
20327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20328 cat >>confdefs.h <<_ACEOF
20329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20337 GETTEXT_PACKAGE=$PACKAGE_NAME
20341 for ac_header in locale.h
20343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 ac_res=`eval echo '${'$as_ac_Header'}'`
20351 { echo "$as_me:$LINENO: result: $ac_res" >&5
20352 echo "${ECHO_T}$ac_res" >&6; }
20354 # Is the header compilable?
20355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20363 $ac_includes_default
20364 #include <$ac_header>
20366 rm -f conftest.$ac_objext
20367 if { (ac_try="$ac_compile"
20368 case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_compile") 2>conftest.er1
20375 grep -v '^ *+' conftest.er1 >conftest.err
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } && {
20380 test -z "$ac_c_werror_flag" ||
20381 test ! -s conftest.err
20382 } && test -s conftest.$ac_objext; then
20383 ac_header_compiler=yes
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_header_compiler=no
20391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20393 echo "${ECHO_T}$ac_header_compiler" >&6; }
20395 # Is the header present?
20396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 #include <$ac_header>
20406 if { (ac_try="$ac_cpp conftest.$ac_ext"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } >/dev/null && {
20419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20422 ac_header_preproc=yes
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_header_preproc=no
20430 rm -f conftest.err conftest.$ac_ext
20431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20432 echo "${ECHO_T}$ac_header_preproc" >&6; }
20434 # So? What about this header?
20435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20441 ac_header_preproc=yes
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 eval "$as_ac_Header=\$ac_header_preproc"
20466 ac_res=`eval echo '${'$as_ac_Header'}'`
20467 { echo "$as_me:$LINENO: result: $ac_res" >&5
20468 echo "${ECHO_T}$ac_res" >&6; }
20471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20472 cat >>confdefs.h <<_ACEOF
20473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20480 if test $ac_cv_header_locale_h = yes; then
20481 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20482 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
20483 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 #include <locale.h>
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (ac_try="$ac_link"
20503 case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_link") 2>conftest.er1
20510 grep -v '^ *+' conftest.er1 >conftest.err
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } && {
20515 test -z "$ac_c_werror_flag" ||
20516 test ! -s conftest.err
20517 } && test -s conftest$ac_exeext &&
20518 $as_test_x conftest$ac_exeext; then
20519 am_cv_val_LC_MESSAGES=yes
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 am_cv_val_LC_MESSAGES=no
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528 conftest$ac_exeext conftest.$ac_ext
20530 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20531 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
20532 if test $am_cv_val_LC_MESSAGES = yes; then
20534 cat >>confdefs.h <<\_ACEOF
20535 #define HAVE_LC_MESSAGES 1
20543 gt_cv_have_gettext=no
20549 if test "${ac_cv_header_libintl_h+set}" = set; then
20550 { echo "$as_me:$LINENO: checking for libintl.h" >&5
20551 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
20552 if test "${ac_cv_header_libintl_h+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20556 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
20558 # Is the header compilable?
20559 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
20560 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 $ac_includes_default
20568 #include <libintl.h>
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577 (eval "$ac_compile") 2>conftest.er1
20579 grep -v '^ *+' conftest.er1 >conftest.err
20581 cat conftest.err >&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } && {
20584 test -z "$ac_c_werror_flag" ||
20585 test ! -s conftest.err
20586 } && test -s conftest.$ac_objext; then
20587 ac_header_compiler=yes
20589 echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20592 ac_header_compiler=no
20595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20597 echo "${ECHO_T}$ac_header_compiler" >&6; }
20599 # Is the header present?
20600 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
20601 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
20602 cat >conftest.$ac_ext <<_ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 #include <libintl.h>
20610 if { (ac_try="$ac_cpp conftest.$ac_ext"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20618 grep -v '^ *+' conftest.er1 >conftest.err
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } >/dev/null && {
20623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20626 ac_header_preproc=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_header_preproc=no
20634 rm -f conftest.err conftest.$ac_ext
20635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20636 echo "${ECHO_T}$ac_header_preproc" >&6; }
20638 # So? What about this header?
20639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20641 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20642 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20644 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20645 ac_header_preproc=yes
20648 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20649 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
20651 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
20652 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20653 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
20655 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20656 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20657 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20659 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20663 { echo "$as_me:$LINENO: checking for libintl.h" >&5
20664 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
20665 if test "${ac_cv_header_libintl_h+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 ac_cv_header_libintl_h=$ac_header_preproc
20670 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20671 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
20674 if test $ac_cv_header_libintl_h = yes; then
20675 gt_cv_func_dgettext_libintl="no"
20676 libintl_extra_libs=""
20679 # First check in libc
20681 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20682 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
20683 if test "${gt_cv_func_ngettext_libc+set}" = set; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20686 cat >conftest.$ac_ext <<_ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20693 #include <libintl.h>
20698 return !ngettext ("","", 1)
20703 rm -f conftest.$ac_objext conftest$ac_exeext
20704 if { (ac_try="$ac_link"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_link") 2>conftest.er1
20712 grep -v '^ *+' conftest.er1 >conftest.err
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } && {
20717 test -z "$ac_c_werror_flag" ||
20718 test ! -s conftest.err
20719 } && test -s conftest$ac_exeext &&
20720 $as_test_x conftest$ac_exeext; then
20721 gt_cv_func_ngettext_libc=yes
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 gt_cv_func_ngettext_libc=no
20729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20730 conftest$ac_exeext conftest.$ac_ext
20733 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20734 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
20736 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20737 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20738 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
20739 if test "${gt_cv_func_dgettext_libc+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20749 #include <libintl.h>
20754 return !dgettext ("","")
20759 rm -f conftest.$ac_objext conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_link") 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && {
20773 test -z "$ac_c_werror_flag" ||
20774 test ! -s conftest.err
20775 } && test -s conftest$ac_exeext &&
20776 $as_test_x conftest$ac_exeext; then
20777 gt_cv_func_dgettext_libc=yes
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20782 gt_cv_func_dgettext_libc=no
20785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20786 conftest$ac_exeext conftest.$ac_ext
20789 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20790 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
20793 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20795 for ac_func in bind_textdomain_codeset
20797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20801 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 cat >conftest.$ac_ext <<_ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20811 #define $ac_func innocuous_$ac_func
20813 /* System header to define __stub macros and hopefully few prototypes,
20814 which can conflict with char $ac_func (); below.
20815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20816 <limits.h> exists even on freestanding compilers. */
20819 # include <limits.h>
20821 # include <assert.h>
20826 /* Override any GCC internal prototype to avoid an error.
20827 Use char because int might match the return type of a GCC
20828 builtin and then its argument prototype would still apply. */
20833 /* The GNU C library defines this for functions which it implements
20834 to always fail with ENOSYS. Some functions are actually named
20835 something starting with __ and the normal name is an alias. */
20836 #if defined __stub_$ac_func || defined __stub___$ac_func
20843 return $ac_func ();
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_link") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest$ac_exeext &&
20865 $as_test_x conftest$ac_exeext; then
20866 eval "$as_ac_var=yes"
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 eval "$as_ac_var=no"
20874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20875 conftest$ac_exeext conftest.$ac_ext
20877 ac_res=`eval echo '${'$as_ac_var'}'`
20878 { echo "$as_me:$LINENO: result: $ac_res" >&5
20879 echo "${ECHO_T}$ac_res" >&6; }
20880 if test `eval echo '${'$as_ac_var'}'` = yes; then
20881 cat >>confdefs.h <<_ACEOF
20882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20891 # If we don't have everything we want, check in libintl
20893 if test "$gt_cv_func_dgettext_libc" != "yes" \
20894 || test "$gt_cv_func_ngettext_libc" != "yes" \
20895 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
20897 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
20898 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
20899 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 ac_check_lib_save_LIBS=$LIBS
20903 LIBS="-lintl $LIBS"
20904 cat >conftest.$ac_ext <<_ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20911 /* Override any GCC internal prototype to avoid an error.
20912 Use char because int might match the return type of a GCC
20913 builtin and then its argument prototype would still apply. */
20917 char bindtextdomain ();
20921 return bindtextdomain ();
20926 rm -f conftest.$ac_objext conftest$ac_exeext
20927 if { (ac_try="$ac_link"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_link") 2>conftest.er1
20935 grep -v '^ *+' conftest.er1 >conftest.err
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest$ac_exeext &&
20943 $as_test_x conftest$ac_exeext; then
20944 ac_cv_lib_intl_bindtextdomain=yes
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 ac_cv_lib_intl_bindtextdomain=no
20952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20953 conftest$ac_exeext conftest.$ac_ext
20954 LIBS=$ac_check_lib_save_LIBS
20956 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
20957 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
20958 if test $ac_cv_lib_intl_bindtextdomain = yes; then
20959 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20960 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
20961 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20964 ac_check_lib_save_LIBS=$LIBS
20965 LIBS="-lintl $LIBS"
20966 cat >conftest.$ac_ext <<_ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20973 /* Override any GCC internal prototype to avoid an error.
20974 Use char because int might match the return type of a GCC
20975 builtin and then its argument prototype would still apply. */
20983 return ngettext ();
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_link") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest$ac_exeext &&
21005 $as_test_x conftest$ac_exeext; then
21006 ac_cv_lib_intl_ngettext=yes
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_cv_lib_intl_ngettext=no
21014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21015 conftest$ac_exeext conftest.$ac_ext
21016 LIBS=$ac_check_lib_save_LIBS
21018 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21019 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21020 if test $ac_cv_lib_intl_ngettext = yes; then
21021 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21022 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21023 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 ac_check_lib_save_LIBS=$LIBS
21027 LIBS="-lintl $LIBS"
21028 cat >conftest.$ac_ext <<_ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21035 /* Override any GCC internal prototype to avoid an error.
21036 Use char because int might match the return type of a GCC
21037 builtin and then its argument prototype would still apply. */
21045 return dgettext ();
21050 rm -f conftest.$ac_objext conftest$ac_exeext
21051 if { (ac_try="$ac_link"
21052 case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_link") 2>conftest.er1
21059 grep -v '^ *+' conftest.er1 >conftest.err
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } && {
21064 test -z "$ac_c_werror_flag" ||
21065 test ! -s conftest.err
21066 } && test -s conftest$ac_exeext &&
21067 $as_test_x conftest$ac_exeext; then
21068 ac_cv_lib_intl_dgettext=yes
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_cv_lib_intl_dgettext=no
21076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21077 conftest$ac_exeext conftest.$ac_ext
21078 LIBS=$ac_check_lib_save_LIBS
21080 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21081 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21082 if test $ac_cv_lib_intl_dgettext = yes; then
21083 gt_cv_func_dgettext_libintl=yes
21091 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21092 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21093 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
21094 { echo "$as_me:$LINENO: result: " >&5
21095 echo "${ECHO_T}" >&6; }
21096 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21097 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21098 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21099 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 ac_check_lib_save_LIBS=$LIBS
21102 LIBS="-lintl -liconv $LIBS"
21103 cat >conftest.$ac_ext <<_ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21110 /* Override any GCC internal prototype to avoid an error.
21111 Use char because int might match the return type of a GCC
21112 builtin and then its argument prototype would still apply. */
21120 return ngettext ();
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_link") 2>conftest.er1
21134 grep -v '^ *+' conftest.er1 >conftest.err
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest$ac_exeext &&
21142 $as_test_x conftest$ac_exeext; then
21143 ac_cv_lib_intl_ngettext=yes
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 ac_cv_lib_intl_ngettext=no
21151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21152 conftest$ac_exeext conftest.$ac_ext
21153 LIBS=$ac_check_lib_save_LIBS
21155 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21156 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21157 if test $ac_cv_lib_intl_ngettext = yes; then
21158 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21159 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
21160 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 ac_check_lib_save_LIBS=$LIBS
21164 LIBS="-lintl -liconv $LIBS"
21165 cat >conftest.$ac_ext <<_ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21172 /* Override any GCC internal prototype to avoid an error.
21173 Use char because int might match the return type of a GCC
21174 builtin and then its argument prototype would still apply. */
21182 return dcgettext ();
21187 rm -f conftest.$ac_objext conftest$ac_exeext
21188 if { (ac_try="$ac_link"
21189 case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194 (eval "$ac_link") 2>conftest.er1
21196 grep -v '^ *+' conftest.er1 >conftest.err
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } && {
21201 test -z "$ac_c_werror_flag" ||
21202 test ! -s conftest.err
21203 } && test -s conftest$ac_exeext &&
21204 $as_test_x conftest$ac_exeext; then
21205 ac_cv_lib_intl_dcgettext=yes
21207 echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_cv_lib_intl_dcgettext=no
21213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21214 conftest$ac_exeext conftest.$ac_ext
21215 LIBS=$ac_check_lib_save_LIBS
21217 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21218 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
21219 if test $ac_cv_lib_intl_dcgettext = yes; then
21220 gt_cv_func_dgettext_libintl=yes
21221 libintl_extra_libs=-liconv
21233 # If we found libintl, then check in it for bind_textdomain_codeset();
21234 # we'll prefer libc if neither have bind_textdomain_codeset(),
21235 # and both have dgettext and ngettext
21237 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21238 glib_save_LIBS="$LIBS"
21239 LIBS="$LIBS -lintl $libintl_extra_libs"
21240 unset ac_cv_func_bind_textdomain_codeset
21242 for ac_func in bind_textdomain_codeset
21244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21258 #define $ac_func innocuous_$ac_func
21260 /* System header to define __stub macros and hopefully few prototypes,
21261 which can conflict with char $ac_func (); below.
21262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21263 <limits.h> exists even on freestanding compilers. */
21266 # include <limits.h>
21268 # include <assert.h>
21273 /* Override any GCC internal prototype to avoid an error.
21274 Use char because int might match the return type of a GCC
21275 builtin and then its argument prototype would still apply. */
21280 /* The GNU C library defines this for functions which it implements
21281 to always fail with ENOSYS. Some functions are actually named
21282 something starting with __ and the normal name is an alias. */
21283 #if defined __stub_$ac_func || defined __stub___$ac_func
21290 return $ac_func ();
21295 rm -f conftest.$ac_objext conftest$ac_exeext
21296 if { (ac_try="$ac_link"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_link") 2>conftest.er1
21304 grep -v '^ *+' conftest.er1 >conftest.err
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest$ac_exeext &&
21312 $as_test_x conftest$ac_exeext; then
21313 eval "$as_ac_var=yes"
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 eval "$as_ac_var=no"
21321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21322 conftest$ac_exeext conftest.$ac_ext
21324 ac_res=`eval echo '${'$as_ac_var'}'`
21325 { echo "$as_me:$LINENO: result: $ac_res" >&5
21326 echo "${ECHO_T}$ac_res" >&6; }
21327 if test `eval echo '${'$as_ac_var'}'` = yes; then
21328 cat >>confdefs.h <<_ACEOF
21329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21335 LIBS="$glib_save_LIBS"
21337 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21338 gt_cv_func_dgettext_libc=no
21340 if test "$gt_cv_func_dgettext_libc" = "yes" \
21341 && test "$gt_cv_func_ngettext_libc" = "yes"; then
21342 gt_cv_func_dgettext_libintl=no
21348 if test "$gt_cv_func_dgettext_libc" = "yes" \
21349 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
21350 gt_cv_have_gettext=yes
21353 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21354 INTLLIBS="-lintl $libintl_extra_libs"
21357 if test "$gt_cv_have_gettext" = "yes"; then
21359 cat >>confdefs.h <<\_ACEOF
21360 #define HAVE_GETTEXT 1
21363 # Extract the first word of "msgfmt", so it can be a program name with args.
21364 set dummy msgfmt; ac_word=$2
21365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21367 if test "${ac_cv_path_MSGFMT+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21376 for ac_dir in $PATH; do
21377 test -z "$ac_dir" && ac_dir=.
21378 if test -f $ac_dir/$ac_word; then
21379 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
21380 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
21386 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
21390 MSGFMT="$ac_cv_path_MSGFMT"
21391 if test "$MSGFMT" != "no"; then
21392 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21393 echo "${ECHO_T}$MSGFMT" >&6; }
21395 { echo "$as_me:$LINENO: result: no" >&5
21396 echo "${ECHO_T}no" >&6; }
21398 if test "$MSGFMT" != "no"; then
21399 glib_save_LIBS="$LIBS"
21400 LIBS="$LIBS $INTLLIBS"
21402 for ac_func in dcgettext
21404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21418 #define $ac_func innocuous_$ac_func
21420 /* System header to define __stub macros and hopefully few prototypes,
21421 which can conflict with char $ac_func (); below.
21422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21423 <limits.h> exists even on freestanding compilers. */
21426 # include <limits.h>
21428 # include <assert.h>
21433 /* Override any GCC internal prototype to avoid an error.
21434 Use char because int might match the return type of a GCC
21435 builtin and then its argument prototype would still apply. */
21440 /* The GNU C library defines this for functions which it implements
21441 to always fail with ENOSYS. Some functions are actually named
21442 something starting with __ and the normal name is an alias. */
21443 #if defined __stub_$ac_func || defined __stub___$ac_func
21450 return $ac_func ();
21455 rm -f conftest.$ac_objext conftest$ac_exeext
21456 if { (ac_try="$ac_link"
21457 case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_link") 2>conftest.er1
21464 grep -v '^ *+' conftest.er1 >conftest.err
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest$ac_exeext &&
21472 $as_test_x conftest$ac_exeext; then
21473 eval "$as_ac_var=yes"
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478 eval "$as_ac_var=no"
21481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482 conftest$ac_exeext conftest.$ac_ext
21484 ac_res=`eval echo '${'$as_ac_var'}'`
21485 { echo "$as_me:$LINENO: result: $ac_res" >&5
21486 echo "${ECHO_T}$ac_res" >&6; }
21487 if test `eval echo '${'$as_ac_var'}'` = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21496 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
21497 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
21498 cat >conftest.foo <<_ACEOF
21502 "Content-Type: text/plain; charset=UTF-8\n"
21503 "Project-Id-Version: test 1.0\n"
21504 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
21505 "Last-Translator: test <foo@bar.xx>\n"
21506 "Language-Team: C <LL@li.org>\n"
21507 "MIME-Version: 1.0\n"
21508 "Content-Transfer-Encoding: 8bit\n"
21511 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
21512 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; then
21516 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
21517 echo "${ECHO_T}yes" >&6; }
21518 else { echo "$as_me:$LINENO: result: no" >&5
21519 echo "${ECHO_T}no" >&6; }
21520 echo "$as_me: failed input was:" >&5
21521 sed 's/^/| /' conftest.foo >&5
21524 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21525 set dummy gmsgfmt; ac_word=$2
21526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21528 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21537 for as_dir in $PATH
21540 test -z "$as_dir" && as_dir=.
21541 for ac_exec_ext in '' $ac_executable_extensions; do
21542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21543 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21551 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21555 GMSGFMT=$ac_cv_path_GMSGFMT
21556 if test -n "$GMSGFMT"; then
21557 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21558 echo "${ECHO_T}$GMSGFMT" >&6; }
21560 { echo "$as_me:$LINENO: result: no" >&5
21561 echo "${ECHO_T}no" >&6; }
21565 # Extract the first word of "xgettext", so it can be a program name with args.
21566 set dummy xgettext; ac_word=$2
21567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21569 if test "${ac_cv_path_XGETTEXT+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21572 case "$XGETTEXT" in
21574 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21578 for ac_dir in $PATH; do
21579 test -z "$ac_dir" && ac_dir=.
21580 if test -f $ac_dir/$ac_word; then
21581 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
21582 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
21588 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21592 XGETTEXT="$ac_cv_path_XGETTEXT"
21593 if test "$XGETTEXT" != ":"; then
21594 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21595 echo "${ECHO_T}$XGETTEXT" >&6; }
21597 { echo "$as_me:$LINENO: result: no" >&5
21598 echo "${ECHO_T}no" >&6; }
21601 cat >conftest.$ac_ext <<_ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21611 extern int _nl_msg_cat_cntr;
21612 return _nl_msg_cat_cntr
21617 rm -f conftest.$ac_objext conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_link") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest$ac_exeext &&
21634 $as_test_x conftest$ac_exeext; then
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21643 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21644 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
21645 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 cat >conftest.$ac_ext <<_ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21656 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21658 /* System header to define __stub macros and hopefully few prototypes,
21659 which can conflict with char bind_textdomain_codeset (); below.
21660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21661 <limits.h> exists even on freestanding compilers. */
21664 # include <limits.h>
21666 # include <assert.h>
21669 #undef bind_textdomain_codeset
21671 /* Override any GCC internal prototype to avoid an error.
21672 Use char because int might match the return type of a GCC
21673 builtin and then its argument prototype would still apply. */
21677 char bind_textdomain_codeset ();
21678 /* The GNU C library defines this for functions which it implements
21679 to always fail with ENOSYS. Some functions are actually named
21680 something starting with __ and the normal name is an alias. */
21681 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
21688 return bind_textdomain_codeset ();
21693 rm -f conftest.$ac_objext conftest$ac_exeext
21694 if { (ac_try="$ac_link"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_link") 2>conftest.er1
21702 grep -v '^ *+' conftest.er1 >conftest.err
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest$ac_exeext &&
21710 $as_test_x conftest$ac_exeext; then
21711 ac_cv_func_bind_textdomain_codeset=yes
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21716 ac_cv_func_bind_textdomain_codeset=no
21719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21720 conftest$ac_exeext conftest.$ac_ext
21722 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21723 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
21724 if test $ac_cv_func_bind_textdomain_codeset = yes; then
21740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741 conftest$ac_exeext conftest.$ac_ext
21742 LIBS="$glib_save_LIBS"
21745 gt_cv_have_gettext=no
21753 if test "$gt_cv_have_gettext" = "yes" ; then
21755 cat >>confdefs.h <<\_ACEOF
21756 #define ENABLE_NLS 1
21761 if test "$XGETTEXT" != ":"; then
21762 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21765 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21766 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
21771 # We need to process the po/ directory.
21774 ac_config_commands="$ac_config_commands default-1"
21777 for lang in $ALL_LINGUAS; do
21778 GMOFILES="$GMOFILES $lang.gmo"
21779 POFILES="$POFILES $lang.po"
21794 if test "$gt_cv_have_gettext" = "yes"; then
21795 if test "x$ALL_LINGUAS" = "x"; then
21798 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
21799 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
21801 for presentlang in $ALL_LINGUAS; do
21803 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21804 desiredlanguages="$LINGUAS"
21806 desiredlanguages="$ALL_LINGUAS"
21808 for desiredlang in $desiredlanguages; do
21809 # Use the presentlang catalog if desiredlang is
21810 # a. equal to presentlang, or
21811 # b. a variant of presentlang (because in this case,
21812 # presentlang can be used as a fallback for messages
21813 # which are not translated in the desiredlang catalog).
21814 case "$desiredlang" in
21815 "$presentlang"*) useit=yes;;
21818 if test $useit = yes; then
21819 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
21822 LINGUAS=$NEW_LINGUAS
21823 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
21824 echo "${ECHO_T}$LINGUAS" >&6; }
21827 if test -n "$LINGUAS"; then
21828 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
21833 if test -n "$ac_aux_dir"; then
21834 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
21836 if test -z "$MKINSTALLDIRS"; then
21837 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21841 test -d po || mkdir po
21842 if test "x$srcdir" != "x."; then
21843 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
21844 posrcprefix="$srcdir/"
21846 posrcprefix="../$srcdir/"
21852 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
21853 < $srcdir/po/POTFILES.in > po/POTFILES
21856 #FLAGS="$CXXFLAGS -Werror -Wall -Wcast-align -Wmissing-declarations"
21858 # Check whether --enable-debug was given.
21859 if test "${enable_debug+set}" = set; then
21860 enableval=$enable_debug; case "${enableval}" in
21861 yes) debug=true ; CFLAGS="-ggdb -O0 $CFLAGS" ;;
21863 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
21864 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
21865 { (exit 1); exit 1; }; } ;;
21873 if test x$debug = xtrue; then
21884 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21885 if test -n "$ac_tool_prefix"; then
21886 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21887 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 case $PKG_CONFIG in
21895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21899 for as_dir in $PATH
21902 test -z "$as_dir" && as_dir=.
21903 for ac_exec_ext in '' $ac_executable_extensions; do
21904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21916 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21917 if test -n "$PKG_CONFIG"; then
21918 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21919 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21921 { echo "$as_me:$LINENO: result: no" >&5
21922 echo "${ECHO_T}no" >&6; }
21927 if test -z "$ac_cv_path_PKG_CONFIG"; then
21928 ac_pt_PKG_CONFIG=$PKG_CONFIG
21929 # Extract the first word of "pkg-config", so it can be a program name with args.
21930 set dummy pkg-config; ac_word=$2
21931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21933 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 case $ac_pt_PKG_CONFIG in
21938 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21942 for as_dir in $PATH
21945 test -z "$as_dir" && as_dir=.
21946 for ac_exec_ext in '' $ac_executable_extensions; do
21947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21948 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21959 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21960 if test -n "$ac_pt_PKG_CONFIG"; then
21961 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21962 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21964 { echo "$as_me:$LINENO: result: no" >&5
21965 echo "${ECHO_T}no" >&6; }
21968 if test "x$ac_pt_PKG_CONFIG" = x; then
21971 case $cross_compiling:$ac_tool_warned in
21973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21974 whose name does not start with the host triplet. If you think this
21975 configuration is useful to you, please write to autoconf@gnu.org." >&5
21976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21977 whose name does not start with the host triplet. If you think this
21978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21979 ac_tool_warned=yes ;;
21981 PKG_CONFIG=$ac_pt_PKG_CONFIG
21984 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21988 if test -n "$PKG_CONFIG"; then
21989 _pkg_min_version=0.9.0
21990 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21991 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21992 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21993 { echo "$as_me:$LINENO: result: yes" >&5
21994 echo "${ECHO_T}yes" >&6; }
21996 { echo "$as_me:$LINENO: result: no" >&5
21997 echo "${ECHO_T}no" >&6; }
22004 { echo "$as_me:$LINENO: checking for LIBHILDONDESKTOP" >&5
22005 echo $ECHO_N "checking for LIBHILDONDESKTOP... $ECHO_C" >&6; }
22007 if test -n "$PKG_CONFIG"; then
22008 if test -n "$LIBHILDONDESKTOP_CFLAGS"; then
22009 pkg_cv_LIBHILDONDESKTOP_CFLAGS="$LIBHILDONDESKTOP_CFLAGS"
22011 if test -n "$PKG_CONFIG" && \
22012 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libhildondesktop-1\"") >&5
22013 ($PKG_CONFIG --exists --print-errors "libhildondesktop-1") 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; then
22017 pkg_cv_LIBHILDONDESKTOP_CFLAGS=`$PKG_CONFIG --cflags "libhildondesktop-1" 2>/dev/null`
22025 if test -n "$PKG_CONFIG"; then
22026 if test -n "$LIBHILDONDESKTOP_LIBS"; then
22027 pkg_cv_LIBHILDONDESKTOP_LIBS="$LIBHILDONDESKTOP_LIBS"
22029 if test -n "$PKG_CONFIG" && \
22030 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libhildondesktop-1\"") >&5
22031 ($PKG_CONFIG --exists --print-errors "libhildondesktop-1") 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; then
22035 pkg_cv_LIBHILDONDESKTOP_LIBS=`$PKG_CONFIG --libs "libhildondesktop-1" 2>/dev/null`
22046 if test $pkg_failed = yes; then
22048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22049 _pkg_short_errors_supported=yes
22051 _pkg_short_errors_supported=no
22053 if test $_pkg_short_errors_supported = yes; then
22054 LIBHILDONDESKTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libhildondesktop-1"`
22056 LIBHILDONDESKTOP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libhildondesktop-1"`
22058 # Put the nasty error message in config.log where it belongs
22059 echo "$LIBHILDONDESKTOP_PKG_ERRORS" >&5
22061 { { echo "$as_me:$LINENO: error: Package requirements (libhildondesktop-1) were not met:
22063 $LIBHILDONDESKTOP_PKG_ERRORS
22065 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22066 installed software in a non-standard prefix.
22068 Alternatively, you may set the environment variables LIBHILDONDESKTOP_CFLAGS
22069 and LIBHILDONDESKTOP_LIBS to avoid the need to call pkg-config.
22070 See the pkg-config man page for more details.
22072 echo "$as_me: error: Package requirements (libhildondesktop-1) were not met:
22074 $LIBHILDONDESKTOP_PKG_ERRORS
22076 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22077 installed software in a non-standard prefix.
22079 Alternatively, you may set the environment variables LIBHILDONDESKTOP_CFLAGS
22080 and LIBHILDONDESKTOP_LIBS to avoid the need to call pkg-config.
22081 See the pkg-config man page for more details.
22083 { (exit 1); exit 1; }; }
22084 elif test $pkg_failed = untried; then
22085 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22086 is in your PATH or set the PKG_CONFIG environment variable to the full
22087 path to pkg-config.
22089 Alternatively, you may set the environment variables LIBHILDONDESKTOP_CFLAGS
22090 and LIBHILDONDESKTOP_LIBS to avoid the need to call pkg-config.
22091 See the pkg-config man page for more details.
22093 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22094 See \`config.log' for more details." >&5
22095 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22096 is in your PATH or set the PKG_CONFIG environment variable to the full
22097 path to pkg-config.
22099 Alternatively, you may set the environment variables LIBHILDONDESKTOP_CFLAGS
22100 and LIBHILDONDESKTOP_LIBS to avoid the need to call pkg-config.
22101 See the pkg-config man page for more details.
22103 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22104 See \`config.log' for more details." >&2;}
22105 { (exit 1); exit 1; }; }
22107 LIBHILDONDESKTOP_CFLAGS=$pkg_cv_LIBHILDONDESKTOP_CFLAGS
22108 LIBHILDONDESKTOP_LIBS=$pkg_cv_LIBHILDONDESKTOP_LIBS
22109 { echo "$as_me:$LINENO: result: yes" >&5
22110 echo "${ECHO_T}yes" >&6; }
22112 cat >>confdefs.h <<\_ACEOF
22113 #define HAVE_LIBHILDONDESKTOP
22122 { echo "$as_me:$LINENO: checking for CONIC" >&5
22123 echo $ECHO_N "checking for CONIC... $ECHO_C" >&6; }
22125 if test -n "$PKG_CONFIG"; then
22126 if test -n "$CONIC_CFLAGS"; then
22127 pkg_cv_CONIC_CFLAGS="$CONIC_CFLAGS"
22129 if test -n "$PKG_CONFIG" && \
22130 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"conic\"") >&5
22131 ($PKG_CONFIG --exists --print-errors "conic") 2>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; then
22135 pkg_cv_CONIC_CFLAGS=`$PKG_CONFIG --cflags "conic" 2>/dev/null`
22143 if test -n "$PKG_CONFIG"; then
22144 if test -n "$CONIC_LIBS"; then
22145 pkg_cv_CONIC_LIBS="$CONIC_LIBS"
22147 if test -n "$PKG_CONFIG" && \
22148 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"conic\"") >&5
22149 ($PKG_CONFIG --exists --print-errors "conic") 2>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; then
22153 pkg_cv_CONIC_LIBS=`$PKG_CONFIG --libs "conic" 2>/dev/null`
22164 if test $pkg_failed = yes; then
22166 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22167 _pkg_short_errors_supported=yes
22169 _pkg_short_errors_supported=no
22171 if test $_pkg_short_errors_supported = yes; then
22172 CONIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "conic"`
22174 CONIC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "conic"`
22176 # Put the nasty error message in config.log where it belongs
22177 echo "$CONIC_PKG_ERRORS" >&5
22179 { { echo "$as_me:$LINENO: error: Package requirements (conic) were not met:
22183 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22184 installed software in a non-standard prefix.
22186 Alternatively, you may set the environment variables CONIC_CFLAGS
22187 and CONIC_LIBS to avoid the need to call pkg-config.
22188 See the pkg-config man page for more details.
22190 echo "$as_me: error: Package requirements (conic) were not met:
22194 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22195 installed software in a non-standard prefix.
22197 Alternatively, you may set the environment variables CONIC_CFLAGS
22198 and CONIC_LIBS to avoid the need to call pkg-config.
22199 See the pkg-config man page for more details.
22201 { (exit 1); exit 1; }; }
22202 elif test $pkg_failed = untried; then
22203 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22204 is in your PATH or set the PKG_CONFIG environment variable to the full
22205 path to pkg-config.
22207 Alternatively, you may set the environment variables CONIC_CFLAGS
22208 and CONIC_LIBS to avoid the need to call pkg-config.
22209 See the pkg-config man page for more details.
22211 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22212 See \`config.log' for more details." >&5
22213 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22214 is in your PATH or set the PKG_CONFIG environment variable to the full
22215 path to pkg-config.
22217 Alternatively, you may set the environment variables CONIC_CFLAGS
22218 and CONIC_LIBS to avoid the need to call pkg-config.
22219 See the pkg-config man page for more details.
22221 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22222 See \`config.log' for more details." >&2;}
22223 { (exit 1); exit 1; }; }
22225 CONIC_CFLAGS=$pkg_cv_CONIC_CFLAGS
22226 CONIC_LIBS=$pkg_cv_CONIC_LIBS
22227 { echo "$as_me:$LINENO: result: yes" >&5
22228 echo "${ECHO_T}yes" >&6; }
22235 # FIXME: We only use the DBus definition header files from the libmaesync
22236 # package so we should not link with the shared object.
22240 { echo "$as_me:$LINENO: checking for STATUSBAR_SYNC" >&5
22241 echo $ECHO_N "checking for STATUSBAR_SYNC... $ECHO_C" >&6; }
22243 if test -n "$PKG_CONFIG"; then
22244 if test -n "$STATUSBAR_SYNC_CFLAGS"; then
22245 pkg_cv_STATUSBAR_SYNC_CFLAGS="$STATUSBAR_SYNC_CFLAGS"
22247 if test -n "$PKG_CONFIG" && \
22248 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
22252 gconf-2.0 >= 2.16.0
22254 ($PKG_CONFIG --exists --print-errors "
22258 gconf-2.0 >= 2.16.0
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; then
22263 pkg_cv_STATUSBAR_SYNC_CFLAGS=`$PKG_CONFIG --cflags "
22267 gconf-2.0 >= 2.16.0
22276 if test -n "$PKG_CONFIG"; then
22277 if test -n "$STATUSBAR_SYNC_LIBS"; then
22278 pkg_cv_STATUSBAR_SYNC_LIBS="$STATUSBAR_SYNC_LIBS"
22280 if test -n "$PKG_CONFIG" && \
22281 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
22285 gconf-2.0 >= 2.16.0
22287 ($PKG_CONFIG --exists --print-errors "
22291 gconf-2.0 >= 2.16.0
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; then
22296 pkg_cv_STATUSBAR_SYNC_LIBS=`$PKG_CONFIG --libs "
22300 gconf-2.0 >= 2.16.0
22312 if test $pkg_failed = yes; then
22314 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22315 _pkg_short_errors_supported=yes
22317 _pkg_short_errors_supported=no
22319 if test $_pkg_short_errors_supported = yes; then
22320 STATUSBAR_SYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
22324 gconf-2.0 >= 2.16.0
22327 STATUSBAR_SYNC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
22331 gconf-2.0 >= 2.16.0
22334 # Put the nasty error message in config.log where it belongs
22335 echo "$STATUSBAR_SYNC_PKG_ERRORS" >&5
22337 { { echo "$as_me:$LINENO: error: Package requirements (
22341 gconf-2.0 >= 2.16.0
22344 $STATUSBAR_SYNC_PKG_ERRORS
22346 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22347 installed software in a non-standard prefix.
22349 Alternatively, you may set the environment variables STATUSBAR_SYNC_CFLAGS
22350 and STATUSBAR_SYNC_LIBS to avoid the need to call pkg-config.
22351 See the pkg-config man page for more details.
22353 echo "$as_me: error: Package requirements (
22357 gconf-2.0 >= 2.16.0
22360 $STATUSBAR_SYNC_PKG_ERRORS
22362 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22363 installed software in a non-standard prefix.
22365 Alternatively, you may set the environment variables STATUSBAR_SYNC_CFLAGS
22366 and STATUSBAR_SYNC_LIBS to avoid the need to call pkg-config.
22367 See the pkg-config man page for more details.
22369 { (exit 1); exit 1; }; }
22370 elif test $pkg_failed = untried; then
22371 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22372 is in your PATH or set the PKG_CONFIG environment variable to the full
22373 path to pkg-config.
22375 Alternatively, you may set the environment variables STATUSBAR_SYNC_CFLAGS
22376 and STATUSBAR_SYNC_LIBS to avoid the need to call pkg-config.
22377 See the pkg-config man page for more details.
22379 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22380 See \`config.log' for more details." >&5
22381 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22382 is in your PATH or set the PKG_CONFIG environment variable to the full
22383 path to pkg-config.
22385 Alternatively, you may set the environment variables STATUSBAR_SYNC_CFLAGS
22386 and STATUSBAR_SYNC_LIBS to avoid the need to call pkg-config.
22387 See the pkg-config man page for more details.
22389 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22390 See \`config.log' for more details." >&2;}
22391 { (exit 1); exit 1; }; }
22393 STATUSBAR_SYNC_CFLAGS=$pkg_cv_STATUSBAR_SYNC_CFLAGS
22394 STATUSBAR_SYNC_LIBS=$pkg_cv_STATUSBAR_SYNC_LIBS
22395 { echo "$as_me:$LINENO: result: yes" >&5
22396 echo "${ECHO_T}yes" >&6; }
22402 pixmapsdir=${datadir}/pixmaps/hiro-vpn/
22404 hildonpixmapdir=`$PKG_CONFIG --variable=hildonpixmapdir hildon-base`
22407 hildondesktoplibdir=`pkg-config libhildondesktop-1 --variable=hildondesktoplibdir`
22410 hildonstatusmenudesktopentrydir=`pkg-config libhildondesktop-1 --variable=hildonstatusmenudesktopentrydir`
22414 # The localisation with the gettext package.
22416 localedir=/usr/share/locale
22417 GETTEXT_PACKAGE="vpngui"
22420 cat >>confdefs.h <<_ACEOF
22421 #define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
22424 ALL_LINGUAS="en_GB en_US"
22428 for ac_header in locale.h
22430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 ac_res=`eval echo '${'$as_ac_Header'}'`
22438 { echo "$as_me:$LINENO: result: $ac_res" >&5
22439 echo "${ECHO_T}$ac_res" >&6; }
22441 # Is the header compilable?
22442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22444 cat >conftest.$ac_ext <<_ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22450 $ac_includes_default
22451 #include <$ac_header>
22453 rm -f conftest.$ac_objext
22454 if { (ac_try="$ac_compile"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_compile") 2>conftest.er1
22462 grep -v '^ *+' conftest.er1 >conftest.err
22464 cat conftest.err >&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest.$ac_objext; then
22470 ac_header_compiler=yes
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22475 ac_header_compiler=no
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22480 echo "${ECHO_T}$ac_header_compiler" >&6; }
22482 # Is the header present?
22483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22485 cat >conftest.$ac_ext <<_ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491 #include <$ac_header>
22493 if { (ac_try="$ac_cpp conftest.$ac_ext"
22494 case "(($ac_try" in
22495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496 *) ac_try_echo=$ac_try;;
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22501 grep -v '^ *+' conftest.er1 >conftest.err
22503 cat conftest.err >&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } >/dev/null && {
22506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22507 test ! -s conftest.err
22509 ac_header_preproc=yes
22511 echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22514 ac_header_preproc=no
22517 rm -f conftest.err conftest.$ac_ext
22518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22519 echo "${ECHO_T}$ac_header_preproc" >&6; }
22521 # So? What about this header?
22522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22528 ac_header_preproc=yes
22531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22551 eval "$as_ac_Header=\$ac_header_preproc"
22553 ac_res=`eval echo '${'$as_ac_Header'}'`
22554 { echo "$as_me:$LINENO: result: $ac_res" >&5
22555 echo "${ECHO_T}$ac_res" >&6; }
22558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22559 cat >>confdefs.h <<_ACEOF
22560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22567 if test $ac_cv_header_locale_h = yes; then
22568 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22569 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22570 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 #include <locale.h>
22588 rm -f conftest.$ac_objext conftest$ac_exeext
22589 if { (ac_try="$ac_link"
22590 case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595 (eval "$ac_link") 2>conftest.er1
22597 grep -v '^ *+' conftest.er1 >conftest.err
22599 cat conftest.err >&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } && {
22602 test -z "$ac_c_werror_flag" ||
22603 test ! -s conftest.err
22604 } && test -s conftest$ac_exeext &&
22605 $as_test_x conftest$ac_exeext; then
22606 am_cv_val_LC_MESSAGES=yes
22608 echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22611 am_cv_val_LC_MESSAGES=no
22614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22615 conftest$ac_exeext conftest.$ac_ext
22617 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22618 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
22619 if test $am_cv_val_LC_MESSAGES = yes; then
22621 cat >>confdefs.h <<\_ACEOF
22622 #define HAVE_LC_MESSAGES 1
22630 gt_cv_have_gettext=no
22636 if test "${ac_cv_header_libintl_h+set}" = set; then
22637 { echo "$as_me:$LINENO: checking for libintl.h" >&5
22638 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22639 if test "${ac_cv_header_libintl_h+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22642 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22643 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22645 # Is the header compilable?
22646 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
22647 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654 $ac_includes_default
22655 #include <libintl.h>
22657 rm -f conftest.$ac_objext
22658 if { (ac_try="$ac_compile"
22659 case "(($ac_try" in
22660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661 *) ac_try_echo=$ac_try;;
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664 (eval "$ac_compile") 2>conftest.er1
22666 grep -v '^ *+' conftest.er1 >conftest.err
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } && {
22671 test -z "$ac_c_werror_flag" ||
22672 test ! -s conftest.err
22673 } && test -s conftest.$ac_objext; then
22674 ac_header_compiler=yes
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22679 ac_header_compiler=no
22682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22684 echo "${ECHO_T}$ac_header_compiler" >&6; }
22686 # Is the header present?
22687 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
22688 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #include <libintl.h>
22697 if { (ac_try="$ac_cpp conftest.$ac_ext"
22698 case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22705 grep -v '^ *+' conftest.er1 >conftest.err
22707 cat conftest.err >&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } >/dev/null && {
22710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22713 ac_header_preproc=yes
22715 echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22718 ac_header_preproc=no
22721 rm -f conftest.err conftest.$ac_ext
22722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22723 echo "${ECHO_T}$ac_header_preproc" >&6; }
22725 # So? What about this header?
22726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22728 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22729 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22730 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22731 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22732 ac_header_preproc=yes
22735 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22736 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22737 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
22738 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
22739 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22740 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22741 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
22742 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22743 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22744 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22745 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22746 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22750 { echo "$as_me:$LINENO: checking for libintl.h" >&5
22751 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22752 if test "${ac_cv_header_libintl_h+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 ac_cv_header_libintl_h=$ac_header_preproc
22757 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22758 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22761 if test $ac_cv_header_libintl_h = yes; then
22762 gt_cv_func_dgettext_libintl="no"
22763 libintl_extra_libs=""
22766 # First check in libc
22768 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
22769 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
22770 if test "${gt_cv_func_ngettext_libc+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 cat >conftest.$ac_ext <<_ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22780 #include <libintl.h>
22785 return !ngettext ("","", 1)
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_link") 2>conftest.er1
22799 grep -v '^ *+' conftest.er1 >conftest.err
22801 cat conftest.err >&5
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } && {
22804 test -z "$ac_c_werror_flag" ||
22805 test ! -s conftest.err
22806 } && test -s conftest$ac_exeext &&
22807 $as_test_x conftest$ac_exeext; then
22808 gt_cv_func_ngettext_libc=yes
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 gt_cv_func_ngettext_libc=no
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817 conftest$ac_exeext conftest.$ac_ext
22820 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
22821 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
22823 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22824 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
22825 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
22826 if test "${gt_cv_func_dgettext_libc+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 cat >conftest.$ac_ext <<_ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22836 #include <libintl.h>
22841 return !dgettext ("","")
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_link") 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest$ac_exeext &&
22863 $as_test_x conftest$ac_exeext; then
22864 gt_cv_func_dgettext_libc=yes
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 gt_cv_func_dgettext_libc=no
22872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22873 conftest$ac_exeext conftest.$ac_ext
22876 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
22877 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
22880 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22882 for ac_func in bind_textdomain_codeset
22884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22890 cat >conftest.$ac_ext <<_ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22898 #define $ac_func innocuous_$ac_func
22900 /* System header to define __stub macros and hopefully few prototypes,
22901 which can conflict with char $ac_func (); below.
22902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22903 <limits.h> exists even on freestanding compilers. */
22906 # include <limits.h>
22908 # include <assert.h>
22913 /* Override any GCC internal prototype to avoid an error.
22914 Use char because int might match the return type of a GCC
22915 builtin and then its argument prototype would still apply. */
22920 /* The GNU C library defines this for functions which it implements
22921 to always fail with ENOSYS. Some functions are actually named
22922 something starting with __ and the normal name is an alias. */
22923 #if defined __stub_$ac_func || defined __stub___$ac_func
22930 return $ac_func ();
22935 rm -f conftest.$ac_objext conftest$ac_exeext
22936 if { (ac_try="$ac_link"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_link") 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && {
22949 test -z "$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22951 } && test -s conftest$ac_exeext &&
22952 $as_test_x conftest$ac_exeext; then
22953 eval "$as_ac_var=yes"
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 eval "$as_ac_var=no"
22961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22962 conftest$ac_exeext conftest.$ac_ext
22964 ac_res=`eval echo '${'$as_ac_var'}'`
22965 { echo "$as_me:$LINENO: result: $ac_res" >&5
22966 echo "${ECHO_T}$ac_res" >&6; }
22967 if test `eval echo '${'$as_ac_var'}'` = yes; then
22968 cat >>confdefs.h <<_ACEOF
22969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22978 # If we don't have everything we want, check in libintl
22980 if test "$gt_cv_func_dgettext_libc" != "yes" \
22981 || test "$gt_cv_func_ngettext_libc" != "yes" \
22982 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
22984 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
22985 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
22986 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22989 ac_check_lib_save_LIBS=$LIBS
22990 LIBS="-lintl $LIBS"
22991 cat >conftest.$ac_ext <<_ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22998 /* Override any GCC internal prototype to avoid an error.
22999 Use char because int might match the return type of a GCC
23000 builtin and then its argument prototype would still apply. */
23004 char bindtextdomain ();
23008 return bindtextdomain ();
23013 rm -f conftest.$ac_objext conftest$ac_exeext
23014 if { (ac_try="$ac_link"
23015 case "(($ac_try" in
23016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017 *) ac_try_echo=$ac_try;;
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020 (eval "$ac_link") 2>conftest.er1
23022 grep -v '^ *+' conftest.er1 >conftest.err
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } && {
23027 test -z "$ac_c_werror_flag" ||
23028 test ! -s conftest.err
23029 } && test -s conftest$ac_exeext &&
23030 $as_test_x conftest$ac_exeext; then
23031 ac_cv_lib_intl_bindtextdomain=yes
23033 echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23036 ac_cv_lib_intl_bindtextdomain=no
23039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23040 conftest$ac_exeext conftest.$ac_ext
23041 LIBS=$ac_check_lib_save_LIBS
23043 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
23044 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
23045 if test $ac_cv_lib_intl_bindtextdomain = yes; then
23046 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23047 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23048 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23051 ac_check_lib_save_LIBS=$LIBS
23052 LIBS="-lintl $LIBS"
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23060 /* Override any GCC internal prototype to avoid an error.
23061 Use char because int might match the return type of a GCC
23062 builtin and then its argument prototype would still apply. */
23070 return ngettext ();
23075 rm -f conftest.$ac_objext conftest$ac_exeext
23076 if { (ac_try="$ac_link"
23077 case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_link") 2>conftest.er1
23084 grep -v '^ *+' conftest.er1 >conftest.err
23086 cat conftest.err >&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); } && {
23089 test -z "$ac_c_werror_flag" ||
23090 test ! -s conftest.err
23091 } && test -s conftest$ac_exeext &&
23092 $as_test_x conftest$ac_exeext; then
23093 ac_cv_lib_intl_ngettext=yes
23095 echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23098 ac_cv_lib_intl_ngettext=no
23101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23102 conftest$ac_exeext conftest.$ac_ext
23103 LIBS=$ac_check_lib_save_LIBS
23105 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23106 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23107 if test $ac_cv_lib_intl_ngettext = yes; then
23108 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23109 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
23110 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 ac_check_lib_save_LIBS=$LIBS
23114 LIBS="-lintl $LIBS"
23115 cat >conftest.$ac_ext <<_ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23122 /* Override any GCC internal prototype to avoid an error.
23123 Use char because int might match the return type of a GCC
23124 builtin and then its argument prototype would still apply. */
23132 return dgettext ();
23137 rm -f conftest.$ac_objext conftest$ac_exeext
23138 if { (ac_try="$ac_link"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_link") 2>conftest.er1
23146 grep -v '^ *+' conftest.er1 >conftest.err
23148 cat conftest.err >&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest$ac_exeext &&
23154 $as_test_x conftest$ac_exeext; then
23155 ac_cv_lib_intl_dgettext=yes
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ac_cv_lib_intl_dgettext=no
23163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23164 conftest$ac_exeext conftest.$ac_ext
23165 LIBS=$ac_check_lib_save_LIBS
23167 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23168 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23169 if test $ac_cv_lib_intl_dgettext = yes; then
23170 gt_cv_func_dgettext_libintl=yes
23178 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
23179 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
23180 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
23181 { echo "$as_me:$LINENO: result: " >&5
23182 echo "${ECHO_T}" >&6; }
23183 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23184 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23185 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 ac_check_lib_save_LIBS=$LIBS
23189 LIBS="-lintl -liconv $LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23197 /* Override any GCC internal prototype to avoid an error.
23198 Use char because int might match the return type of a GCC
23199 builtin and then its argument prototype would still apply. */
23207 return ngettext ();
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216 *) ac_try_echo=$ac_try;;
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219 (eval "$ac_link") 2>conftest.er1
23221 grep -v '^ *+' conftest.er1 >conftest.err
23223 cat conftest.err >&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); } && {
23226 test -z "$ac_c_werror_flag" ||
23227 test ! -s conftest.err
23228 } && test -s conftest$ac_exeext &&
23229 $as_test_x conftest$ac_exeext; then
23230 ac_cv_lib_intl_ngettext=yes
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 ac_cv_lib_intl_ngettext=no
23238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23239 conftest$ac_exeext conftest.$ac_ext
23240 LIBS=$ac_check_lib_save_LIBS
23242 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23243 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23244 if test $ac_cv_lib_intl_ngettext = yes; then
23245 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
23246 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
23247 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 ac_check_lib_save_LIBS=$LIBS
23251 LIBS="-lintl -liconv $LIBS"
23252 cat >conftest.$ac_ext <<_ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23259 /* Override any GCC internal prototype to avoid an error.
23260 Use char because int might match the return type of a GCC
23261 builtin and then its argument prototype would still apply. */
23269 return dcgettext ();
23274 rm -f conftest.$ac_objext conftest$ac_exeext
23275 if { (ac_try="$ac_link"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_link") 2>conftest.er1
23283 grep -v '^ *+' conftest.er1 >conftest.err
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } && {
23288 test -z "$ac_c_werror_flag" ||
23289 test ! -s conftest.err
23290 } && test -s conftest$ac_exeext &&
23291 $as_test_x conftest$ac_exeext; then
23292 ac_cv_lib_intl_dcgettext=yes
23294 echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23297 ac_cv_lib_intl_dcgettext=no
23300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23301 conftest$ac_exeext conftest.$ac_ext
23302 LIBS=$ac_check_lib_save_LIBS
23304 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
23305 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
23306 if test $ac_cv_lib_intl_dcgettext = yes; then
23307 gt_cv_func_dgettext_libintl=yes
23308 libintl_extra_libs=-liconv
23320 # If we found libintl, then check in it for bind_textdomain_codeset();
23321 # we'll prefer libc if neither have bind_textdomain_codeset(),
23322 # and both have dgettext and ngettext
23324 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
23325 glib_save_LIBS="$LIBS"
23326 LIBS="$LIBS -lintl $libintl_extra_libs"
23327 unset ac_cv_func_bind_textdomain_codeset
23329 for ac_func in bind_textdomain_codeset
23331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23345 #define $ac_func innocuous_$ac_func
23347 /* System header to define __stub macros and hopefully few prototypes,
23348 which can conflict with char $ac_func (); below.
23349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23350 <limits.h> exists even on freestanding compilers. */
23353 # include <limits.h>
23355 # include <assert.h>
23360 /* Override any GCC internal prototype to avoid an error.
23361 Use char because int might match the return type of a GCC
23362 builtin and then its argument prototype would still apply. */
23367 /* The GNU C library defines this for functions which it implements
23368 to always fail with ENOSYS. Some functions are actually named
23369 something starting with __ and the normal name is an alias. */
23370 #if defined __stub_$ac_func || defined __stub___$ac_func
23377 return $ac_func ();
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (ac_try="$ac_link"
23384 case "(($ac_try" in
23385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386 *) ac_try_echo=$ac_try;;
23388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23389 (eval "$ac_link") 2>conftest.er1
23391 grep -v '^ *+' conftest.er1 >conftest.err
23393 cat conftest.err >&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } && {
23396 test -z "$ac_c_werror_flag" ||
23397 test ! -s conftest.err
23398 } && test -s conftest$ac_exeext &&
23399 $as_test_x conftest$ac_exeext; then
23400 eval "$as_ac_var=yes"
23402 echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23405 eval "$as_ac_var=no"
23408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23409 conftest$ac_exeext conftest.$ac_ext
23411 ac_res=`eval echo '${'$as_ac_var'}'`
23412 { echo "$as_me:$LINENO: result: $ac_res" >&5
23413 echo "${ECHO_T}$ac_res" >&6; }
23414 if test `eval echo '${'$as_ac_var'}'` = yes; then
23415 cat >>confdefs.h <<_ACEOF
23416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23422 LIBS="$glib_save_LIBS"
23424 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
23425 gt_cv_func_dgettext_libc=no
23427 if test "$gt_cv_func_dgettext_libc" = "yes" \
23428 && test "$gt_cv_func_ngettext_libc" = "yes"; then
23429 gt_cv_func_dgettext_libintl=no
23435 if test "$gt_cv_func_dgettext_libc" = "yes" \
23436 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
23437 gt_cv_have_gettext=yes
23440 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
23441 INTLLIBS="-lintl $libintl_extra_libs"
23444 if test "$gt_cv_have_gettext" = "yes"; then
23446 cat >>confdefs.h <<\_ACEOF
23447 #define HAVE_GETTEXT 1
23450 # Extract the first word of "msgfmt", so it can be a program name with args.
23451 set dummy msgfmt; ac_word=$2
23452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23454 if test "${ac_cv_path_MSGFMT+set}" = set; then
23455 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23463 for ac_dir in $PATH; do
23464 test -z "$ac_dir" && ac_dir=.
23465 if test -f $ac_dir/$ac_word; then
23466 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
23467 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
23473 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
23477 MSGFMT="$ac_cv_path_MSGFMT"
23478 if test "$MSGFMT" != "no"; then
23479 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
23480 echo "${ECHO_T}$MSGFMT" >&6; }
23482 { echo "$as_me:$LINENO: result: no" >&5
23483 echo "${ECHO_T}no" >&6; }
23485 if test "$MSGFMT" != "no"; then
23486 glib_save_LIBS="$LIBS"
23487 LIBS="$LIBS $INTLLIBS"
23489 for ac_func in dcgettext
23491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23497 cat >conftest.$ac_ext <<_ACEOF
23500 cat confdefs.h >>conftest.$ac_ext
23501 cat >>conftest.$ac_ext <<_ACEOF
23502 /* end confdefs.h. */
23503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23505 #define $ac_func innocuous_$ac_func
23507 /* System header to define __stub macros and hopefully few prototypes,
23508 which can conflict with char $ac_func (); below.
23509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23510 <limits.h> exists even on freestanding compilers. */
23513 # include <limits.h>
23515 # include <assert.h>
23520 /* Override any GCC internal prototype to avoid an error.
23521 Use char because int might match the return type of a GCC
23522 builtin and then its argument prototype would still apply. */
23527 /* The GNU C library defines this for functions which it implements
23528 to always fail with ENOSYS. Some functions are actually named
23529 something starting with __ and the normal name is an alias. */
23530 #if defined __stub_$ac_func || defined __stub___$ac_func
23537 return $ac_func ();
23542 rm -f conftest.$ac_objext conftest$ac_exeext
23543 if { (ac_try="$ac_link"
23544 case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549 (eval "$ac_link") 2>conftest.er1
23551 grep -v '^ *+' conftest.er1 >conftest.err
23553 cat conftest.err >&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } && {
23556 test -z "$ac_c_werror_flag" ||
23557 test ! -s conftest.err
23558 } && test -s conftest$ac_exeext &&
23559 $as_test_x conftest$ac_exeext; then
23560 eval "$as_ac_var=yes"
23562 echo "$as_me: failed program was:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23565 eval "$as_ac_var=no"
23568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23569 conftest$ac_exeext conftest.$ac_ext
23571 ac_res=`eval echo '${'$as_ac_var'}'`
23572 { echo "$as_me:$LINENO: result: $ac_res" >&5
23573 echo "${ECHO_T}$ac_res" >&6; }
23574 if test `eval echo '${'$as_ac_var'}'` = yes; then
23575 cat >>confdefs.h <<_ACEOF
23576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23583 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
23584 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
23585 cat >conftest.foo <<_ACEOF
23589 "Content-Type: text/plain; charset=UTF-8\n"
23590 "Project-Id-Version: test 1.0\n"
23591 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
23592 "Last-Translator: test <foo@bar.xx>\n"
23593 "Language-Team: C <LL@li.org>\n"
23594 "MIME-Version: 1.0\n"
23595 "Content-Transfer-Encoding: 8bit\n"
23598 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
23599 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); }; then
23603 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
23604 echo "${ECHO_T}yes" >&6; }
23605 else { echo "$as_me:$LINENO: result: no" >&5
23606 echo "${ECHO_T}no" >&6; }
23607 echo "$as_me: failed input was:" >&5
23608 sed 's/^/| /' conftest.foo >&5
23611 # Extract the first word of "gmsgfmt", so it can be a program name with args.
23612 set dummy gmsgfmt; ac_word=$2
23613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23615 if test "${ac_cv_path_GMSGFMT+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23620 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23624 for as_dir in $PATH
23627 test -z "$as_dir" && as_dir=.
23628 for ac_exec_ext in '' $ac_executable_extensions; do
23629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23630 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23638 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23642 GMSGFMT=$ac_cv_path_GMSGFMT
23643 if test -n "$GMSGFMT"; then
23644 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23645 echo "${ECHO_T}$GMSGFMT" >&6; }
23647 { echo "$as_me:$LINENO: result: no" >&5
23648 echo "${ECHO_T}no" >&6; }
23652 # Extract the first word of "xgettext", so it can be a program name with args.
23653 set dummy xgettext; ac_word=$2
23654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23656 if test "${ac_cv_path_XGETTEXT+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 case "$XGETTEXT" in
23661 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23665 for ac_dir in $PATH; do
23666 test -z "$ac_dir" && ac_dir=.
23667 if test -f $ac_dir/$ac_word; then
23668 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
23669 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
23675 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23679 XGETTEXT="$ac_cv_path_XGETTEXT"
23680 if test "$XGETTEXT" != ":"; then
23681 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23682 echo "${ECHO_T}$XGETTEXT" >&6; }
23684 { echo "$as_me:$LINENO: result: no" >&5
23685 echo "${ECHO_T}no" >&6; }
23688 cat >conftest.$ac_ext <<_ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23698 extern int _nl_msg_cat_cntr;
23699 return _nl_msg_cat_cntr
23704 rm -f conftest.$ac_objext conftest$ac_exeext
23705 if { (ac_try="$ac_link"
23706 case "(($ac_try" in
23707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708 *) ac_try_echo=$ac_try;;
23710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711 (eval "$ac_link") 2>conftest.er1
23713 grep -v '^ *+' conftest.er1 >conftest.err
23715 cat conftest.err >&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } && {
23718 test -z "$ac_c_werror_flag" ||
23719 test ! -s conftest.err
23720 } && test -s conftest$ac_exeext &&
23721 $as_test_x conftest$ac_exeext; then
23725 echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23730 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
23731 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
23732 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23735 cat >conftest.$ac_ext <<_ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23741 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
23742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23743 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
23745 /* System header to define __stub macros and hopefully few prototypes,
23746 which can conflict with char bind_textdomain_codeset (); below.
23747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23748 <limits.h> exists even on freestanding compilers. */
23751 # include <limits.h>
23753 # include <assert.h>
23756 #undef bind_textdomain_codeset
23758 /* Override any GCC internal prototype to avoid an error.
23759 Use char because int might match the return type of a GCC
23760 builtin and then its argument prototype would still apply. */
23764 char bind_textdomain_codeset ();
23765 /* The GNU C library defines this for functions which it implements
23766 to always fail with ENOSYS. Some functions are actually named
23767 something starting with __ and the normal name is an alias. */
23768 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
23775 return bind_textdomain_codeset ();
23780 rm -f conftest.$ac_objext conftest$ac_exeext
23781 if { (ac_try="$ac_link"
23782 case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_link") 2>conftest.er1
23789 grep -v '^ *+' conftest.er1 >conftest.err
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && {
23794 test -z "$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 } && test -s conftest$ac_exeext &&
23797 $as_test_x conftest$ac_exeext; then
23798 ac_cv_func_bind_textdomain_codeset=yes
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 ac_cv_func_bind_textdomain_codeset=no
23806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23807 conftest$ac_exeext conftest.$ac_ext
23809 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
23810 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
23811 if test $ac_cv_func_bind_textdomain_codeset = yes; then
23827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23828 conftest$ac_exeext conftest.$ac_ext
23829 LIBS="$glib_save_LIBS"
23832 gt_cv_have_gettext=no
23840 if test "$gt_cv_have_gettext" = "yes" ; then
23842 cat >>confdefs.h <<\_ACEOF
23843 #define ENABLE_NLS 1
23848 if test "$XGETTEXT" != ":"; then
23849 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
23852 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
23853 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
23858 # We need to process the po/ directory.
23861 ac_config_commands="$ac_config_commands default-2"
23864 for lang in $ALL_LINGUAS; do
23865 GMOFILES="$GMOFILES $lang.gmo"
23866 POFILES="$POFILES $lang.po"
23881 if test "$gt_cv_have_gettext" = "yes"; then
23882 if test "x$ALL_LINGUAS" = "x"; then
23885 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
23886 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
23888 for presentlang in $ALL_LINGUAS; do
23890 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
23891 desiredlanguages="$LINGUAS"
23893 desiredlanguages="$ALL_LINGUAS"
23895 for desiredlang in $desiredlanguages; do
23896 # Use the presentlang catalog if desiredlang is
23897 # a. equal to presentlang, or
23898 # b. a variant of presentlang (because in this case,
23899 # presentlang can be used as a fallback for messages
23900 # which are not translated in the desiredlang catalog).
23901 case "$desiredlang" in
23902 "$presentlang"*) useit=yes;;
23905 if test $useit = yes; then
23906 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
23909 LINGUAS=$NEW_LINGUAS
23910 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
23911 echo "${ECHO_T}$LINGUAS" >&6; }
23914 if test -n "$LINGUAS"; then
23915 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
23920 if test -n "$ac_aux_dir"; then
23921 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
23923 if test -z "$MKINSTALLDIRS"; then
23924 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
23928 test -d po || mkdir po
23929 if test "x$srcdir" != "x."; then
23930 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
23931 posrcprefix="$srcdir/"
23933 posrcprefix="../$srcdir/"
23939 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
23940 < $srcdir/po/POTFILES.in > po/POTFILES
23943 ac_config_files="$ac_config_files Makefile src/Makefile"
23946 cat >confcache <<\_ACEOF
23947 # This file is a shell script that caches the results of configure
23948 # tests run on this system so they can be shared between configure
23949 # scripts and configure runs, see configure's option --config-cache.
23950 # It is not useful on other systems. If it contains results you don't
23951 # want to keep, you may remove or edit it.
23953 # config.status only pays attention to the cache file if you give it
23954 # the --recheck option to rerun configure.
23956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23958 # following values.
23962 # The following way of writing the cache mishandles newlines in values,
23963 # but we know of no workaround that is simple, portable, and efficient.
23964 # So, we kill variables containing newlines.
23965 # Ultrix sh set writes to stderr and can't be redirected directly,
23966 # and sets the high bit in the cache file unless we assign to the vars.
23968 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23969 eval ac_val=\$$ac_var
23973 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23974 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23977 _ | IFS | as_nl) ;; #(
23978 *) $as_unset $ac_var ;;
23984 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23985 *${as_nl}ac_space=\ *)
23986 # `set' does not quote correctly, so add quotes (double-quote
23987 # substitution turns \\\\ into \\, and sed turns \\ into \).
23990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23993 # `set' quotes correctly as required by POSIX, so do not add quotes.
23994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24003 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24005 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24008 if test -w "$cache_file"; then
24009 test "x$cache_file" != "x/dev/null" &&
24010 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24011 echo "$as_me: updating cache $cache_file" >&6;}
24012 cat confcache >$cache_file
24014 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24015 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24021 # Let make expand exec_prefix.
24022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24024 DEFS=-DHAVE_CONFIG_H
24028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24029 # 1. Remove the extension, and $U if already installed.
24030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24031 ac_i=`echo "$ac_i" | sed "$ac_script"`
24032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24033 # will be set to the directory where LIBOBJS objects are built.
24034 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24035 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24037 LIBOBJS=$ac_libobjs
24039 LTLIBOBJS=$ac_ltlibobjs
24042 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24043 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24044 Usually this means the macro was only invoked conditionally." >&5
24045 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24046 Usually this means the macro was only invoked conditionally." >&2;}
24047 { (exit 1); exit 1; }; }
24049 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24050 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24051 Usually this means the macro was only invoked conditionally." >&5
24052 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24053 Usually this means the macro was only invoked conditionally." >&2;}
24054 { (exit 1); exit 1; }; }
24056 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24057 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24058 Usually this means the macro was only invoked conditionally." >&5
24059 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24060 Usually this means the macro was only invoked conditionally." >&2;}
24061 { (exit 1); exit 1; }; }
24063 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
24064 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
24065 Usually this means the macro was only invoked conditionally." >&5
24066 echo "$as_me: error: conditional \"DEBUG\" was never defined.
24067 Usually this means the macro was only invoked conditionally." >&2;}
24068 { (exit 1); exit 1; }; }
24071 : ${CONFIG_STATUS=./config.status}
24072 ac_clean_files_save=$ac_clean_files
24073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24074 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24075 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24076 cat >$CONFIG_STATUS <<_ACEOF
24078 # Generated by $as_me.
24079 # Run this file to recreate the current configuration.
24080 # Compiler output produced by configure, useful for debugging
24081 # configure, is in config.log if it exists.
24084 ac_cs_recheck=false
24086 SHELL=\${CONFIG_SHELL-$SHELL}
24089 cat >>$CONFIG_STATUS <<\_ACEOF
24090 ## --------------------- ##
24091 ## M4sh Initialization. ##
24092 ## --------------------- ##
24094 # Be more Bourne compatible
24095 DUALCASE=1; export DUALCASE # for MKS sh
24096 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24099 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24100 # is contrary to our usage. Disable this feature.
24101 alias -g '${1+"$@"}'='"$@"'
24102 setopt NO_GLOB_SUBST
24104 case `(set -o) 2>/dev/null` in
24105 *posix*) set -o posix ;;
24114 # Avoid depending upon Character Ranges.
24115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24118 as_cr_digits='0123456789'
24119 as_cr_alnum=$as_cr_Letters$as_cr_digits
24121 # The user is always right.
24122 if test "${PATH_SEPARATOR+set}" != set; then
24123 echo "#! /bin/sh" >conf$$.sh
24124 echo "exit 0" >>conf$$.sh
24126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24134 # Support unset when possible.
24135 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24143 # We need space, tab and new line, in precisely that order. Quoting is
24144 # there to prevent editors from complaining about space-tab.
24145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24146 # splitting by setting IFS to empty value.)
24151 # Find who we are. Look in the path if we contain no directory separator.
24153 *[\\/]* ) as_myself=$0 ;;
24154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24155 for as_dir in $PATH
24158 test -z "$as_dir" && as_dir=.
24159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24165 # We did not find ourselves, most probably we were run as `sh COMMAND'
24166 # in which case we are not to be found in the path.
24167 if test "x$as_myself" = x; then
24170 if test ! -f "$as_myself"; then
24171 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24172 { (exit 1); exit 1; }
24175 # Work around bugs in pre-3.0 UWIN ksh.
24176 for as_var in ENV MAIL MAILPATH
24177 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24185 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24186 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24187 LC_TELEPHONE LC_TIME
24189 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24190 eval $as_var=C; export $as_var
24192 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24196 # Required to use basename.
24197 if expr a : '\(a\)' >/dev/null 2>&1 &&
24198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24205 as_basename=basename
24211 # Name of the executable.
24212 as_me=`$as_basename -- "$0" ||
24213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24214 X"$0" : 'X\(//\)$' \| \
24215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24217 sed '/^.*\/\([^/][^/]*\)\/*$/{
24236 as_lineno_1=$LINENO
24237 as_lineno_2=$LINENO
24238 test "x$as_lineno_1" != "x$as_lineno_2" &&
24239 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24241 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24242 # uniformly replaced by the line number. The first 'sed' inserts a
24243 # line-number line after each line using $LINENO; the second 'sed'
24244 # does the real work. The second script uses 'N' to pair each
24245 # line-number line with the line containing $LINENO, and appends
24246 # trailing '-' during substitution so that $LINENO is not a special
24247 # case at line end.
24248 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24249 # scripts with optimization help from Paolo Bonzini. Blame Lee
24250 # E. McMahon (1931-1989) for sed's syntax. :-)
24262 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24265 ' >$as_me.lineno &&
24266 chmod +x "$as_me.lineno" ||
24267 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24268 { (exit 1); exit 1; }; }
24270 # Don't try to exec as it changes $[0], causing all sort of problems
24271 # (the dirname of $[0] is not the place where we might find the
24272 # original and so on. Autoconf is especially sensitive to this).
24273 . "./$as_me.lineno"
24274 # Exit status is that of the last command.
24279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24285 ECHO_C= ECHO_N= ECHO_T=
24286 case `echo -n x` in
24288 case `echo 'x\c'` in
24289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24296 if expr a : '\(a\)' >/dev/null 2>&1 &&
24297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24303 rm -f conf$$ conf$$.exe conf$$.file
24304 if test -d conf$$.dir; then
24305 rm -f conf$$.dir/conf$$.file
24311 if ln -s conf$$.file conf$$ 2>/dev/null; then
24313 # ... but there are two gotchas:
24314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24316 # In both cases, we have to default to `cp -p'.
24317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24319 elif ln conf$$.file conf$$ 2>/dev/null; then
24324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24325 rmdir conf$$.dir 2>/dev/null
24327 if mkdir -p . 2>/dev/null; then
24330 test -d ./-p && rmdir ./-p
24334 if test -x / >/dev/null 2>&1; then
24335 as_test_x='test -x'
24337 if ls -dL / >/dev/null 2>&1; then
24344 if test -d "$1"; then
24350 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24351 ???[sx]*):;;*)false;;esac;fi
24355 as_executable_p=$as_test_x
24357 # Sed expression to map a string onto a valid CPP name.
24358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24360 # Sed expression to map a string onto a valid variable name.
24361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24366 # Save the log message, to keep $[0] and so on meaningful, and to
24367 # report actual input values of CONFIG_FILES etc. instead of their
24368 # values after options handling.
24370 This file was extended by osso-statusbar-sync $as_me 0.1, which was
24371 generated by GNU Autoconf 2.61. Invocation command line was
24373 CONFIG_FILES = $CONFIG_FILES
24374 CONFIG_HEADERS = $CONFIG_HEADERS
24375 CONFIG_LINKS = $CONFIG_LINKS
24376 CONFIG_COMMANDS = $CONFIG_COMMANDS
24379 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24384 cat >>$CONFIG_STATUS <<_ACEOF
24385 # Files that config.status was made for.
24386 config_files="$ac_config_files"
24387 config_headers="$ac_config_headers"
24388 config_commands="$ac_config_commands"
24392 cat >>$CONFIG_STATUS <<\_ACEOF
24394 \`$as_me' instantiates files from templates according to the
24395 current configuration.
24397 Usage: $0 [OPTIONS] [FILE]...
24399 -h, --help print this help, then exit
24400 -V, --version print version number and configuration settings, then exit
24401 -q, --quiet do not print progress messages
24402 -d, --debug don't remove temporary files
24403 --recheck update $as_me by reconfiguring in the same conditions
24404 --file=FILE[:TEMPLATE]
24405 instantiate the configuration file FILE
24406 --header=FILE[:TEMPLATE]
24407 instantiate the configuration header FILE
24409 Configuration files:
24412 Configuration headers:
24415 Configuration commands:
24418 Report bugs to <bug-autoconf@gnu.org>."
24421 cat >>$CONFIG_STATUS <<_ACEOF
24423 osso-statusbar-sync config.status 0.1
24424 configured by $0, generated by GNU Autoconf 2.61,
24425 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24427 Copyright (C) 2006 Free Software Foundation, Inc.
24428 This config.status script is free software; the Free Software Foundation
24429 gives unlimited permission to copy, distribute and modify it."
24436 cat >>$CONFIG_STATUS <<\_ACEOF
24437 # If no file are specified by the user, then we need to provide default
24438 # value. By we need to know if files were specified by the user.
24444 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24445 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24456 # Handling of the options.
24457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24459 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24460 echo "$ac_cs_version"; exit ;;
24461 --debug | --debu | --deb | --de | --d | -d )
24463 --file | --fil | --fi | --f )
24465 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24466 ac_need_defaults=false;;
24467 --header | --heade | --head | --hea )
24469 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24470 ac_need_defaults=false;;
24472 # Conflict between --help and --header
24473 { echo "$as_me: error: ambiguous option: $1
24474 Try \`$0 --help' for more information." >&2
24475 { (exit 1); exit 1; }; };;
24476 --help | --hel | -h )
24477 echo "$ac_cs_usage"; exit ;;
24478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24479 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24482 # This is an error.
24483 -*) { echo "$as_me: error: unrecognized option: $1
24484 Try \`$0 --help' for more information." >&2
24485 { (exit 1); exit 1; }; } ;;
24487 *) ac_config_targets="$ac_config_targets $1"
24488 ac_need_defaults=false ;;
24494 ac_configure_extra_args=
24496 if $ac_cs_silent; then
24498 ac_configure_extra_args="$ac_configure_extra_args --silent"
24502 cat >>$CONFIG_STATUS <<_ACEOF
24503 if \$ac_cs_recheck; then
24504 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24505 CONFIG_SHELL=$SHELL
24506 export CONFIG_SHELL
24507 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24511 cat >>$CONFIG_STATUS <<\_ACEOF
24515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24516 ## Running $as_me. ##
24522 cat >>$CONFIG_STATUS <<_ACEOF
24526 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24532 cat >>$CONFIG_STATUS <<\_ACEOF
24534 # Handling of arguments.
24535 for ac_config_target in $ac_config_targets
24537 case $ac_config_target in
24538 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24539 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24540 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24541 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
24542 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24543 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24545 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24546 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24547 { (exit 1); exit 1; }; };;
24552 # If the user did not use the arguments to specify the items to instantiate,
24553 # then the envvar interface is used. Set only those that are not.
24554 # We use the long form for the default assignment because of an extremely
24555 # bizarre bug on SunOS 4.1.3.
24556 if $ac_need_defaults; then
24557 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24558 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24562 # Have a temporary directory for convenience. Make it in the build tree
24563 # simply because there is no reason against having it here, and in addition,
24564 # creating and moving files from /tmp can sometimes cause problems.
24565 # Hook for its removal unless debugging.
24566 # Note that there is a small window in which the directory will not be cleaned:
24567 # after its creation but before its name has been assigned to `$tmp'.
24571 trap 'exit_status=$?
24572 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24574 trap '{ (exit 1); exit 1; }' 1 2 13 15
24576 # Create a (secure) tmp directory for tmp files.
24579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24580 test -n "$tmp" && test -d "$tmp"
24583 tmp=./conf$$-$RANDOM
24584 (umask 077 && mkdir "$tmp")
24587 echo "$me: cannot create a temporary directory in ." >&2
24588 { (exit 1); exit 1; }
24592 # Set up the sed scripts for CONFIG_FILES section.
24595 # No need to generate the scripts if there are no CONFIG_FILES.
24596 # This happens for instance when ./config.status config.h
24597 if test -n "$CONFIG_FILES"; then
24604 for ac_last_try in false false false false false :; do
24605 cat >conf$$subs.sed <<_ACEOF
24606 SHELL!$SHELL$ac_delim
24607 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24608 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24609 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24610 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24611 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24612 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24613 exec_prefix!$exec_prefix$ac_delim
24614 prefix!$prefix$ac_delim
24615 program_transform_name!$program_transform_name$ac_delim
24616 bindir!$bindir$ac_delim
24617 sbindir!$sbindir$ac_delim
24618 libexecdir!$libexecdir$ac_delim
24619 datarootdir!$datarootdir$ac_delim
24620 datadir!$datadir$ac_delim
24621 sysconfdir!$sysconfdir$ac_delim
24622 sharedstatedir!$sharedstatedir$ac_delim
24623 localstatedir!$localstatedir$ac_delim
24624 includedir!$includedir$ac_delim
24625 oldincludedir!$oldincludedir$ac_delim
24626 docdir!$docdir$ac_delim
24627 infodir!$infodir$ac_delim
24628 htmldir!$htmldir$ac_delim
24629 dvidir!$dvidir$ac_delim
24630 pdfdir!$pdfdir$ac_delim
24631 psdir!$psdir$ac_delim
24632 libdir!$libdir$ac_delim
24633 localedir!$localedir$ac_delim
24634 mandir!$mandir$ac_delim
24635 DEFS!$DEFS$ac_delim
24636 ECHO_C!$ECHO_C$ac_delim
24637 ECHO_N!$ECHO_N$ac_delim
24638 ECHO_T!$ECHO_T$ac_delim
24639 LIBS!$LIBS$ac_delim
24640 build_alias!$build_alias$ac_delim
24641 host_alias!$host_alias$ac_delim
24642 target_alias!$target_alias$ac_delim
24643 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24644 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24645 INSTALL_DATA!$INSTALL_DATA$ac_delim
24646 CYGPATH_W!$CYGPATH_W$ac_delim
24647 PACKAGE!$PACKAGE$ac_delim
24648 VERSION!$VERSION$ac_delim
24649 ACLOCAL!$ACLOCAL$ac_delim
24650 AUTOCONF!$AUTOCONF$ac_delim
24651 AUTOMAKE!$AUTOMAKE$ac_delim
24652 AUTOHEADER!$AUTOHEADER$ac_delim
24653 MAKEINFO!$MAKEINFO$ac_delim
24654 AMTAR!$AMTAR$ac_delim
24655 install_sh!$install_sh$ac_delim
24656 STRIP!$STRIP$ac_delim
24657 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24658 mkdir_p!$mkdir_p$ac_delim
24660 SET_MAKE!$SET_MAKE$ac_delim
24661 am__leading_dot!$am__leading_dot$ac_delim
24663 CFLAGS!$CFLAGS$ac_delim
24664 LDFLAGS!$LDFLAGS$ac_delim
24665 CPPFLAGS!$CPPFLAGS$ac_delim
24666 ac_ct_CC!$ac_ct_CC$ac_delim
24667 EXEEXT!$EXEEXT$ac_delim
24668 OBJEXT!$OBJEXT$ac_delim
24669 DEPDIR!$DEPDIR$ac_delim
24670 am__include!$am__include$ac_delim
24671 am__quote!$am__quote$ac_delim
24672 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24673 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24674 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24675 CCDEPMODE!$CCDEPMODE$ac_delim
24676 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24677 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24680 CXXFLAGS!$CXXFLAGS$ac_delim
24681 ac_ct_CXX!$ac_ct_CXX$ac_delim
24682 CXXDEPMODE!$CXXDEPMODE$ac_delim
24683 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24684 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24685 build!$build$ac_delim
24686 build_cpu!$build_cpu$ac_delim
24687 build_vendor!$build_vendor$ac_delim
24688 build_os!$build_os$ac_delim
24689 host!$host$ac_delim
24690 host_cpu!$host_cpu$ac_delim
24691 host_vendor!$host_vendor$ac_delim
24692 host_os!$host_os$ac_delim
24693 GREP!$GREP$ac_delim
24694 EGREP!$EGREP$ac_delim
24695 LN_S!$LN_S$ac_delim
24696 ECHO!$ECHO$ac_delim
24698 RANLIB!$RANLIB$ac_delim
24699 CXXCPP!$CXXCPP$ac_delim
24701 FFLAGS!$FFLAGS$ac_delim
24702 ac_ct_F77!$ac_ct_F77$ac_delim
24705 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24707 elif $ac_last_try; then
24708 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24709 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24710 { (exit 1); exit 1; }; }
24712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24716 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24717 if test -n "$ac_eof"; then
24718 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24719 ac_eof=`expr $ac_eof + 1`
24722 cat >>$CONFIG_STATUS <<_ACEOF
24723 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24727 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24728 s/^/s,@/; s/!/@,|#_!!_#|/
24731 s/'"$ac_delim"'$/,g/; t
24733 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24734 ' >>$CONFIG_STATUS <conf$$subs.sed
24735 rm -f conf$$subs.sed
24736 cat >>$CONFIG_STATUS <<_ACEOF
24742 for ac_last_try in false false false false false :; do
24743 cat >conf$$subs.sed <<_ACEOF
24744 LIBTOOL!$LIBTOOL$ac_delim
24745 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
24746 USE_NLS!$USE_NLS$ac_delim
24747 MSGFMT!$MSGFMT$ac_delim
24748 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
24749 GMSGFMT!$GMSGFMT$ac_delim
24750 XGETTEXT!$XGETTEXT$ac_delim
24751 CATALOGS!$CATALOGS$ac_delim
24752 CATOBJEXT!$CATOBJEXT$ac_delim
24753 DATADIRNAME!$DATADIRNAME$ac_delim
24754 GMOFILES!$GMOFILES$ac_delim
24755 INSTOBJEXT!$INSTOBJEXT$ac_delim
24756 INTLLIBS!$INTLLIBS$ac_delim
24757 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
24758 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
24759 POFILES!$POFILES$ac_delim
24760 POSUB!$POSUB$ac_delim
24761 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
24762 DEBUG_TRUE!$DEBUG_TRUE$ac_delim
24763 DEBUG_FALSE!$DEBUG_FALSE$ac_delim
24764 PKG_CONFIG!$PKG_CONFIG$ac_delim
24765 LIBHILDONDESKTOP_CFLAGS!$LIBHILDONDESKTOP_CFLAGS$ac_delim
24766 LIBHILDONDESKTOP_LIBS!$LIBHILDONDESKTOP_LIBS$ac_delim
24767 CONIC_CFLAGS!$CONIC_CFLAGS$ac_delim
24768 CONIC_LIBS!$CONIC_LIBS$ac_delim
24769 STATUSBAR_SYNC_CFLAGS!$STATUSBAR_SYNC_CFLAGS$ac_delim
24770 STATUSBAR_SYNC_LIBS!$STATUSBAR_SYNC_LIBS$ac_delim
24771 pixmapsdir!$pixmapsdir$ac_delim
24772 hildonpixmapdir!$hildonpixmapdir$ac_delim
24773 hildondesktoplibdir!$hildondesktoplibdir$ac_delim
24774 hildonstatusmenudesktopentrydir!$hildonstatusmenudesktopentrydir$ac_delim
24775 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
24776 LIBOBJS!$LIBOBJS$ac_delim
24777 LTLIBOBJS!$LTLIBOBJS$ac_delim
24780 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24782 elif $ac_last_try; then
24783 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24784 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24785 { (exit 1); exit 1; }; }
24787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24791 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24792 if test -n "$ac_eof"; then
24793 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24794 ac_eof=`expr $ac_eof + 1`
24797 cat >>$CONFIG_STATUS <<_ACEOF
24798 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24802 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24803 s/^/s,@/; s/!/@,|#_!!_#|/
24806 s/'"$ac_delim"'$/,g/; t
24808 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24809 ' >>$CONFIG_STATUS <conf$$subs.sed
24810 rm -f conf$$subs.sed
24811 cat >>$CONFIG_STATUS <<_ACEOF
24818 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24819 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24820 # trailing colons and then remove the whole line if VPATH becomes empty
24821 # (actually we leave an empty line to preserve line numbers).
24822 if test "x$srcdir" = x.; then
24823 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24824 s/:*\$(srcdir):*/:/
24825 s/:*\${srcdir}:*/:/
24827 s/^\([^=]*=[ ]*\):*/\1/
24833 cat >>$CONFIG_STATUS <<\_ACEOF
24834 fi # test -n "$CONFIG_FILES"
24837 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24840 :[FHLC]) ac_mode=$ac_tag; continue;;
24842 case $ac_mode$ac_tag in
24844 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24845 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24846 { (exit 1); exit 1; }; };;
24847 :[FH]-) ac_tag=-:-;;
24848 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24865 -) ac_f="$tmp/stdin";;
24866 *) # Look for the file first in the build tree, then in the source tree
24867 # (if the path is not absolute). The absolute path cannot be DOS-style,
24868 # because $ac_f cannot contain `:'.
24872 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24874 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24875 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24876 { (exit 1); exit 1; }; };;
24878 ac_file_inputs="$ac_file_inputs $ac_f"
24881 # Let's still pretend it is `configure' which instantiates (i.e., don't
24882 # use $as_me), people would be surprised to read:
24883 # /* config.h. Generated by config.status. */
24884 configure_input="Generated from "`IFS=:
24885 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24886 if test x"$ac_file" != x-; then
24887 configure_input="$ac_file. $configure_input"
24888 { echo "$as_me:$LINENO: creating $ac_file" >&5
24889 echo "$as_me: creating $ac_file" >&6;}
24893 *:-:* | *:-) cat >"$tmp/stdin";;
24898 ac_dir=`$as_dirname -- "$ac_file" ||
24899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24900 X"$ac_file" : 'X\(//\)[^/]' \| \
24901 X"$ac_file" : 'X\(//\)$' \| \
24902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24908 /^X\(\/\/\)[^/].*/{
24923 -*) as_dir=./$as_dir;;
24925 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24929 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24930 *) as_qdir=$as_dir;;
24932 as_dirs="'$as_qdir' $as_dirs"
24933 as_dir=`$as_dirname -- "$as_dir" ||
24934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24935 X"$as_dir" : 'X\(//\)[^/]' \| \
24936 X"$as_dir" : 'X\(//\)$' \| \
24937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24943 /^X\(\/\/\)[^/].*/{
24956 test -d "$as_dir" && break
24958 test -z "$as_dirs" || eval "mkdir $as_dirs"
24959 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24960 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24961 { (exit 1); exit 1; }; }; }
24965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24967 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24968 # A ".." for each directory in $ac_dir_suffix.
24969 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24970 case $ac_top_builddir_sub in
24971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24975 ac_abs_top_builddir=$ac_pwd
24976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24977 # for backward compatibility:
24978 ac_top_builddir=$ac_top_build_prefix
24981 .) # We are building in place.
24983 ac_top_srcdir=$ac_top_builddir_sub
24984 ac_abs_top_srcdir=$ac_pwd ;;
24985 [\\/]* | ?:[\\/]* ) # Absolute name.
24986 ac_srcdir=$srcdir$ac_dir_suffix;
24987 ac_top_srcdir=$srcdir
24988 ac_abs_top_srcdir=$srcdir ;;
24989 *) # Relative name.
24990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24991 ac_top_srcdir=$ac_top_build_prefix$srcdir
24992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25005 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25009 cat >>$CONFIG_STATUS <<\_ACEOF
25010 # If the template does not know about datarootdir, expand it.
25011 # FIXME: This hack should be removed a few years after 2.60.
25012 ac_datarootdir_hack=; ac_datarootdir_seen=
25014 case `sed -n '/datarootdir/ {
25023 ' $ac_file_inputs` in
25024 *datarootdir*) ac_datarootdir_seen=yes;;
25025 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25026 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25027 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25029 cat >>$CONFIG_STATUS <<_ACEOF
25030 ac_datarootdir_hack='
25031 s&@datadir@&$datadir&g
25032 s&@docdir@&$docdir&g
25033 s&@infodir@&$infodir&g
25034 s&@localedir@&$localedir&g
25035 s&@mandir@&$mandir&g
25036 s&\\\${datarootdir}&$datarootdir&g' ;;
25040 # Neutralize VPATH when `$srcdir' = `.'.
25041 # Shell code in configure.ac might set extrasub.
25042 # FIXME: do we really want to maintain this feature?
25043 cat >>$CONFIG_STATUS <<_ACEOF
25047 cat >>$CONFIG_STATUS <<\_ACEOF
25049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25050 s&@configure_input@&$configure_input&;t t
25051 s&@top_builddir@&$ac_top_builddir_sub&;t t
25052 s&@srcdir@&$ac_srcdir&;t t
25053 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25054 s&@top_srcdir@&$ac_top_srcdir&;t t
25055 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25056 s&@builddir@&$ac_builddir&;t t
25057 s&@abs_builddir@&$ac_abs_builddir&;t t
25058 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25059 s&@INSTALL@&$ac_INSTALL&;t t
25060 $ac_datarootdir_hack
25061 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25063 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25064 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25065 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25066 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25067 which seems to be undefined. Please make sure it is defined." >&5
25068 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25069 which seems to be undefined. Please make sure it is defined." >&2;}
25073 -) cat "$tmp/out"; rm -f "$tmp/out";;
25074 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25083 # Transform confdefs.h into a sed script `conftest.defines', that
25084 # substitutes the proper values into config.h.in to produce config.h.
25085 rm -f conftest.defines conftest.tail
25086 # First, append a space to every undef/define line, to ease matching.
25087 echo 's/$/ /' >conftest.defines
25088 # Then, protect against being on the right side of a sed subst, or in
25089 # an unquoted here document, in config.status. If some macros were
25090 # called several times there might be several #defines for the same
25091 # symbol, which is useless. But do not sort them, since the last
25092 # AC_DEFINE must be honored.
25093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25094 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25095 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25096 # PARAMS is the parameter list in the macro definition--in most cases, it's
25097 # just an empty string.
25098 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25099 ac_dB='\\)[ (].*,\\1define\\2'
25107 s/^[ ]*#[ ]*define[ ][ ]*//
25112 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25113 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25114 ' >>conftest.defines
25116 # Remove the space that was appended to ease matching.
25117 # Then replace #undef with comments. This is necessary, for
25118 # example, in the case of _POSIX_SOURCE, which is predefined and required
25119 # on some systems where configure will not decide to define it.
25120 # (The regexp can be short, since the line contains either #define or #undef.)
25122 s,^[ #]*u.*,/* & */,' >>conftest.defines
25124 # Break up conftest.defines:
25125 ac_max_sed_lines=50
25127 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25128 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25129 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25131 ac_in='$ac_file_inputs'
25132 ac_out='"$tmp/out1"'
25133 ac_nxt='"$tmp/out2"'
25137 # Write a here document:
25138 cat >>$CONFIG_STATUS <<_ACEOF
25139 # First, check the format of the line:
25140 cat >"\$tmp/defines.sed" <<\\CEOF
25141 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25142 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25146 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25148 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25149 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25150 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25151 grep . conftest.tail >/dev/null || break
25152 rm -f conftest.defines
25153 mv conftest.tail conftest.defines
25155 rm -f conftest.defines conftest.tail
25157 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25158 cat >>$CONFIG_STATUS <<\_ACEOF
25159 if test x"$ac_file" != x-; then
25160 echo "/* $configure_input */" >"$tmp/config.h"
25161 cat "$ac_result" >>"$tmp/config.h"
25162 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25163 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25164 echo "$as_me: $ac_file is unchanged" >&6;}
25167 mv "$tmp/config.h" $ac_file
25170 echo "/* $configure_input */"
25174 # Compute $ac_file's index in $config_headers.
25176 for _am_header in $config_headers :; do
25177 case $_am_header in
25178 $ac_file | $ac_file:* )
25181 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25184 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25185 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25186 X$ac_file : 'X\(//\)[^/]' \| \
25187 X$ac_file : 'X\(//\)$' \| \
25188 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25194 /^X\(\/\/\)[^/].*/{
25206 s/.*/./; q'`/stamp-h$_am_stamp_count
25209 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25210 echo "$as_me: executing $ac_file commands" >&6;}
25215 case $ac_file$ac_mode in
25216 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25217 # Strip MF so we end up with the name of the file.
25218 mf=`echo "$mf" | sed -e 's/:.*$//'`
25219 # Check whether this is an Automake generated Makefile or not.
25220 # We used to match only the files named `Makefile.in', but
25221 # some people rename them; so instead we look at the file content.
25222 # Grep'ing the first line is not enough: some people post-process
25223 # each Makefile.in and add a new line on top of each file to say so.
25224 # So let's grep whole file.
25225 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25226 dirpart=`$as_dirname -- "$mf" ||
25227 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25228 X"$mf" : 'X\(//\)[^/]' \| \
25229 X"$mf" : 'X\(//\)$' \| \
25230 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25236 /^X\(\/\/\)[^/].*/{
25252 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25253 # Extract the definition of DEP_FILES from the Makefile without
25255 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25256 test -z "$DEPDIR" && continue
25257 # When using ansi2knr, U may be empty or an underscore; expand it
25258 U=`sed -n 's/^U = //p' < "$mf"`
25259 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25260 # We invoke sed twice because it is the simplest approach to
25261 # changing $(DEPDIR) to its actual value in the expansion.
25262 for file in `sed -n '
25263 /^DEP_FILES = .*\\\\$/ {
25272 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25273 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25274 # Make sure the directory exists.
25275 test -f "$dirpart/$file" && continue
25276 fdir=`$as_dirname -- "$file" ||
25277 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25278 X"$file" : 'X\(//\)[^/]' \| \
25279 X"$file" : 'X\(//\)$' \| \
25280 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25286 /^X\(\/\/\)[^/].*/{
25299 { as_dir=$dirpart/$fdir
25301 -*) as_dir=./$as_dir;;
25303 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25307 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25308 *) as_qdir=$as_dir;;
25310 as_dirs="'$as_qdir' $as_dirs"
25311 as_dir=`$as_dirname -- "$as_dir" ||
25312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25313 X"$as_dir" : 'X\(//\)[^/]' \| \
25314 X"$as_dir" : 'X\(//\)$' \| \
25315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25321 /^X\(\/\/\)[^/].*/{
25334 test -d "$as_dir" && break
25336 test -z "$as_dirs" || eval "mkdir $as_dirs"
25337 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25338 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25339 { (exit 1); exit 1; }; }; }
25340 # echo "creating $dirpart/$file"
25341 echo '# dummy' > "$dirpart/$file"
25345 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
25346 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
25348 "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
25349 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
25356 { (exit 0); exit 0; }
25358 chmod +x $CONFIG_STATUS
25359 ac_clean_files=$ac_clean_files_save
25362 # configure is writing to config.log, and then calls config.status.
25363 # config.status does its own redirection, appending to config.log.
25364 # Unfortunately, on DOS this fails, as config.log is still kept open
25365 # by configure, so config.status won't be able to write to it; its
25366 # output is simply discarded. So we exec the FD to /dev/null,
25367 # effectively closing config.log, so it can be properly (re)opened and
25368 # appended to by config.status. When coming back to configure, we
25369 # need to make the FD available again.
25370 if test "$no_create" != yes; then
25372 ac_config_status_args=
25373 test "$silent" = yes &&
25374 ac_config_status_args="$ac_config_status_args --quiet"
25376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25379 # would make configure fail if this is the last instruction.
25380 $ac_cs_success || { (exit 1); exit 1; }