2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for syncevolution 0.9.2+1.0alpha1.
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='syncevolution'
728 PACKAGE_TARNAME='syncevolution'
729 PACKAGE_VERSION='0.9.2+1.0alpha1'
730 PACKAGE_STRING='syncevolution 0.9.2+1.0alpha1'
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
850 ENABLE_UNIT_TESTS_TRUE
851 ENABLE_UNIT_TESTS_FALSE
864 ENABLE_BLUETOOTH_TRUE
865 ENABLE_BLUETOOTH_FALSE
894 INTLTOOL_DESKTOP_RULE
895 INTLTOOL_DIRECTORY_RULE
902 INTLTOOL_SOUNDLIST_RULE
907 INTLTOOL_XML_NOMERGE_RULE
909 INTLTOOL_SCHEMAS_RULE
911 INTLTOOL_SERVICE_RULE
931 SYNCEVOLUTION_LOCALEDIR
994 SYNCEVOLUTION_CXXFLAGS
995 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
996 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
1002 ac_precious_vars='build_alias
1050 # Initialize some variables set by options.
1052 ac_init_version=false
1053 # The variables have the same names as the options, with
1054 # dashes changed to underlines.
1055 cache_file=/dev/null
1062 program_transform_name=s,x,x,
1070 # Installation directory options.
1071 # These are left unexpanded so users can "make install exec_prefix=/foo"
1072 # and all the variables that are supposed to be based on exec_prefix
1073 # by default will actually change.
1074 # Use braces instead of parens because sh, perl, etc. also accept them.
1075 # (The list follows the same order as the GNU Coding Standards.)
1076 bindir='${exec_prefix}/bin'
1077 sbindir='${exec_prefix}/sbin'
1078 libexecdir='${exec_prefix}/libexec'
1079 datarootdir='${prefix}/share'
1080 datadir='${datarootdir}'
1081 sysconfdir='${prefix}/etc'
1082 sharedstatedir='${prefix}/com'
1083 localstatedir='${prefix}/var'
1084 includedir='${prefix}/include'
1085 oldincludedir='/usr/include'
1086 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1087 infodir='${datarootdir}/info'
1092 libdir='${exec_prefix}/lib'
1093 localedir='${datarootdir}/locale'
1094 mandir='${datarootdir}/man'
1100 # If the previous option needs an argument, assign it.
1101 if test -n "$ac_prev"; then
1102 eval $ac_prev=\$ac_option
1108 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1112 # Accept the important Cygnus configure options, so we can diagnose typos.
1114 case $ac_dashdash$ac_option in
1118 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1120 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1121 bindir=$ac_optarg ;;
1123 -build | --build | --buil | --bui | --bu)
1124 ac_prev=build_alias ;;
1125 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1126 build_alias=$ac_optarg ;;
1128 -cache-file | --cache-file | --cache-fil | --cache-fi \
1129 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1130 ac_prev=cache_file ;;
1131 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1132 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1133 cache_file=$ac_optarg ;;
1135 --config-cache | -C)
1136 cache_file=config.cache ;;
1138 -datadir | --datadir | --datadi | --datad)
1140 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1141 datadir=$ac_optarg ;;
1143 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1144 | --dataroo | --dataro | --datar)
1145 ac_prev=datarootdir ;;
1146 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1147 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1148 datarootdir=$ac_optarg ;;
1150 -disable-* | --disable-*)
1151 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1157 eval enable_$ac_feature=no ;;
1159 -docdir | --docdir | --docdi | --doc | --do)
1161 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162 docdir=$ac_optarg ;;
1164 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1166 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167 dvidir=$ac_optarg ;;
1169 -enable-* | --enable-*)
1170 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1174 { (exit 1); exit 1; }; }
1175 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1176 eval enable_$ac_feature=\$ac_optarg ;;
1178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1180 | --exec | --exe | --ex)
1181 ac_prev=exec_prefix ;;
1182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1184 | --exec=* | --exe=* | --ex=*)
1185 exec_prefix=$ac_optarg ;;
1187 -gas | --gas | --ga | --g)
1188 # Obsolete; use --with-gas.
1191 -help | --help | --hel | --he | -h)
1192 ac_init_help=long ;;
1193 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1194 ac_init_help=recursive ;;
1195 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1196 ac_init_help=short ;;
1198 -host | --host | --hos | --ho)
1199 ac_prev=host_alias ;;
1200 -host=* | --host=* | --hos=* | --ho=*)
1201 host_alias=$ac_optarg ;;
1203 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1205 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1207 htmldir=$ac_optarg ;;
1209 -includedir | --includedir | --includedi | --included | --include \
1210 | --includ | --inclu | --incl | --inc)
1211 ac_prev=includedir ;;
1212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1213 | --includ=* | --inclu=* | --incl=* | --inc=*)
1214 includedir=$ac_optarg ;;
1216 -infodir | --infodir | --infodi | --infod | --info | --inf)
1218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1219 infodir=$ac_optarg ;;
1221 -libdir | --libdir | --libdi | --libd)
1223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1224 libdir=$ac_optarg ;;
1226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1227 | --libexe | --libex | --libe)
1228 ac_prev=libexecdir ;;
1229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1230 | --libexe=* | --libex=* | --libe=*)
1231 libexecdir=$ac_optarg ;;
1233 -localedir | --localedir | --localedi | --localed | --locale)
1234 ac_prev=localedir ;;
1235 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1236 localedir=$ac_optarg ;;
1238 -localstatedir | --localstatedir | --localstatedi | --localstated \
1239 | --localstate | --localstat | --localsta | --localst | --locals)
1240 ac_prev=localstatedir ;;
1241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1242 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1243 localstatedir=$ac_optarg ;;
1245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1248 mandir=$ac_optarg ;;
1250 -nfp | --nfp | --nf)
1251 # Obsolete; use --without-fp.
1254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1255 | --no-cr | --no-c | -n)
1258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1264 | --oldin | --oldi | --old | --ol | --o)
1265 ac_prev=oldincludedir ;;
1266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1269 oldincludedir=$ac_optarg ;;
1271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1274 prefix=$ac_optarg ;;
1276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1277 | --program-pre | --program-pr | --program-p)
1278 ac_prev=program_prefix ;;
1279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1281 program_prefix=$ac_optarg ;;
1283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1284 | --program-suf | --program-su | --program-s)
1285 ac_prev=program_suffix ;;
1286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1288 program_suffix=$ac_optarg ;;
1290 -program-transform-name | --program-transform-name \
1291 | --program-transform-nam | --program-transform-na \
1292 | --program-transform-n | --program-transform- \
1293 | --program-transform | --program-transfor \
1294 | --program-transfo | --program-transf \
1295 | --program-trans | --program-tran \
1296 | --progr-tra | --program-tr | --program-t)
1297 ac_prev=program_transform_name ;;
1298 -program-transform-name=* | --program-transform-name=* \
1299 | --program-transform-nam=* | --program-transform-na=* \
1300 | --program-transform-n=* | --program-transform-=* \
1301 | --program-transform=* | --program-transfor=* \
1302 | --program-transfo=* | --program-transf=* \
1303 | --program-trans=* | --program-tran=* \
1304 | --progr-tra=* | --program-tr=* | --program-t=*)
1305 program_transform_name=$ac_optarg ;;
1307 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1309 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1310 pdfdir=$ac_optarg ;;
1312 -psdir | --psdir | --psdi | --psd | --ps)
1314 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318 | -silent | --silent | --silen | --sile | --sil)
1321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1325 sbindir=$ac_optarg ;;
1327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1329 | --sharedst | --shareds | --shared | --share | --shar \
1331 ac_prev=sharedstatedir ;;
1332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1336 sharedstatedir=$ac_optarg ;;
1338 -site | --site | --sit)
1340 -site=* | --site=* | --sit=*)
1343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1346 srcdir=$ac_optarg ;;
1348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1349 | --syscon | --sysco | --sysc | --sys | --sy)
1350 ac_prev=sysconfdir ;;
1351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1353 sysconfdir=$ac_optarg ;;
1355 -target | --target | --targe | --targ | --tar | --ta | --t)
1356 ac_prev=target_alias ;;
1357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1358 target_alias=$ac_optarg ;;
1360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1363 -version | --version | --versio | --versi | --vers | -V)
1364 ac_init_version=: ;;
1367 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1368 # Reject names that are not valid shell variable names.
1369 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370 { echo "$as_me: error: invalid package name: $ac_package" >&2
1371 { (exit 1); exit 1; }; }
1372 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1373 eval with_$ac_package=\$ac_optarg ;;
1375 -without-* | --without-*)
1376 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379 { echo "$as_me: error: invalid package name: $ac_package" >&2
1380 { (exit 1); exit 1; }; }
1381 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1382 eval with_$ac_package=no ;;
1385 # Obsolete; use --with-x.
1388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1389 | --x-incl | --x-inc | --x-in | --x-i)
1390 ac_prev=x_includes ;;
1391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1393 x_includes=$ac_optarg ;;
1395 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1397 ac_prev=x_libraries ;;
1398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1400 x_libraries=$ac_optarg ;;
1402 -*) { echo "$as_me: error: unrecognized option: $ac_option
1403 Try \`$0 --help' for more information." >&2
1404 { (exit 1); exit 1; }; }
1408 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1411 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1412 { (exit 1); exit 1; }; }
1413 eval $ac_envvar=\$ac_optarg
1414 export $ac_envvar ;;
1417 # FIXME: should be removed in autoconf 3.0.
1418 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1419 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1420 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1421 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1427 if test -n "$ac_prev"; then
1428 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1429 { echo "$as_me: error: missing argument to $ac_option" >&2
1430 { (exit 1); exit 1; }; }
1433 # Be sure to have absolute directory names.
1434 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435 datadir sysconfdir sharedstatedir localstatedir includedir \
1436 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437 libdir localedir mandir
1439 eval ac_val=\$$ac_var
1441 [\\/$]* | ?:[\\/]* ) continue;;
1442 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1445 { (exit 1); exit 1; }; }
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1453 target=$target_alias
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x; then
1457 if test "x$build_alias" = x; then
1458 cross_compiling=maybe
1459 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1460 If a cross compiler is detected then cross compile mode will be used." >&2
1461 elif test "x$build_alias" != "x$host_alias"; then
1467 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1469 test "$silent" = yes && exec 6>/dev/null
1472 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1473 ac_ls_di=`ls -di .` &&
1474 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1475 { echo "$as_me: error: Working directory cannot be determined" >&2
1476 { (exit 1); exit 1; }; }
1477 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478 { echo "$as_me: error: pwd does not report name of working directory" >&2
1479 { (exit 1); exit 1; }; }
1482 # Find the source files, if location was not specified.
1483 if test -z "$srcdir"; then
1484 ac_srcdir_defaulted=yes
1485 # Try the directory containing this script, then the parent directory.
1486 ac_confdir=`$as_dirname -- "$0" ||
1487 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488 X"$0" : 'X\(//\)[^/]' \| \
1489 X"$0" : 'X\(//\)$' \| \
1490 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1514 ac_srcdir_defaulted=no
1516 if test ! -r "$srcdir/$ac_unique_file"; then
1517 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1519 { (exit 1); exit 1; }; }
1521 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1524 { (exit 1); exit 1; }; }
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 for ac_var in $ac_precious_vars; do
1537 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538 eval ac_env_${ac_var}_value=\$${ac_var}
1539 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544 # Report the --help message.
1546 if test "$ac_init_help" = "long"; then
1547 # Omit some internal or obsolete options to make the list less imposing.
1548 # This message is too long to be a string in the A/UX 3.1 sh.
1550 \`configure' configures syncevolution 0.9.2+1.0alpha1 to adapt to many kinds of systems.
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE. See below for descriptions of some of the useful variables.
1557 Defaults for the options are specified in brackets.
1560 -h, --help display this help and exit
1561 --help=short display options specific to this package
1562 --help=recursive display the short help of all the included packages
1563 -V, --version display version information and exit
1564 -q, --quiet, --silent do not print \`checking...' messages
1565 --cache-file=FILE cache test results in FILE [disabled]
1566 -C, --config-cache alias for \`--cache-file=config.cache'
1567 -n, --no-create do not create output files
1568 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1570 Installation directories:
1571 --prefix=PREFIX install architecture-independent files in PREFIX
1572 [$ac_default_prefix]
1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1581 For better control, use the options below.
1583 Fine tuning of the installation directories:
1584 --bindir=DIR user executables [EPREFIX/bin]
1585 --sbindir=DIR system admin executables [EPREFIX/sbin]
1586 --libexecdir=DIR program executables [EPREFIX/libexec]
1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1590 --libdir=DIR object code libraries [EPREFIX/lib]
1591 --includedir=DIR C header files [PREFIX/include]
1592 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1595 --infodir=DIR info documentation [DATAROOTDIR/info]
1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1597 --mandir=DIR man documentation [DATAROOTDIR/man]
1598 --docdir=DIR documentation root [DATAROOTDIR/doc/syncevolution]
1599 --htmldir=DIR html documentation [DOCDIR]
1600 --dvidir=DIR dvi documentation [DOCDIR]
1601 --pdfdir=DIR pdf documentation [DOCDIR]
1602 --psdir=DIR ps documentation [DOCDIR]
1608 --program-prefix=PREFIX prepend PREFIX to installed program names
1609 --program-suffix=SUFFIX append SUFFIX to installed program names
1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1613 --build=BUILD configure for building on BUILD [guessed]
1614 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1618 if test -n "$ac_init_help"; then
1619 case $ac_init_help in
1620 short | recursive ) echo "Configuration of syncevolution 0.9.2+1.0alpha1:";;
1625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1627 --enable-shared build backends as dynamically loadable modules
1628 --enable-static build backends also as static libraries
1629 --enable-unit-tests enables tests embedded in the source code of the
1630 library (changes content of executable)
1631 --enable-integration-tests
1632 enables tests outside of the library (can be used
1633 together with normal builds of the library)
1634 --enable-static-cxx build executables which contain libstdc++ instead of
1635 requiring suitable libstdc++.so to run
1636 --enable-evolution-compatibility
1637 build executables which only call Evolution via
1638 dlopen/dlsym: this avoids all hard dependencies on
1639 EDS shared objects, but might lead to crashes when
1641 --enable-developer-mode The dynamic loadble backend libraries is loaded from
1642 current build directory instead of the standard
1644 --enable-maemo enables some hacks which work around problems with
1645 the Maemo 2.0 until at least 3.0 EDS-Dbus
1646 --disable-dependency-tracking speeds up one-time build
1647 --enable-dependency-tracking do not reject slow dependency extractors
1648 --enable-libcurl enable libcurl as transport layer
1649 --enable-libsoup enable libsoup as transport layer
1650 --disable-ssl-certificate-check
1651 Disable SSL certificate checking in all server
1652 *templates*. Users can still choose to enable or
1653 disable it in their configuration. This is necessary
1654 on platforms where the transport library has
1655 problems verifying the server's certificate (libsoup
1657 http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1658 --enable-gui=gui type enables building the GTK+ UI that uses the
1659 SyncEvolution DBus API. Options: gtk, moblin, all
1660 (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1661 default for --enable-gui without type. No GUI is
1662 built when --enable-gui is not used. --enable-gui
1663 implies --enable-dbus.
1664 --enable-dbus-service enables building the dbus service executable and the
1665 wrapper library for it
1666 --disable-nls do not use Native Language Support
1667 --enable-addressbook enable access to Mac OS X address book (default off)
1668 --disable-ebook disable access to Evolution addressbooks (must be
1669 used to compile without it)
1670 --disable-ecal disable access to Evolution calendars and tasks
1671 (must be used to compile without it)
1672 --disable-file disable file-based backend which stores items in
1673 separate files in a fixed directory (default on)
1674 --enable-sqlite enable access to PIM data stored in SQLite files
1675 (experimental, default off)
1676 --enable-shared[=PKGS] build shared libraries [default=yes]
1677 --enable-static[=PKGS] build static libraries [default=yes]
1678 --enable-fast-install[=PKGS]
1679 optimize for fast installation [default=yes]
1680 --disable-libtool-lock avoid locking (might break parallel builds)
1683 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1684 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1685 --with-synthesis-src=<base directory|svn URL|git URL>
1686 Specifies location of the Synthesis root directory.
1687 Use this when the Synthesis library is to be
1688 compiled as part of the SyncEvolution compilation.
1689 In release versions of SyncEvolution, a copy of the
1690 Synthesis code is bundled under 'src/synthesis' and
1691 compiled unless something else is specified.
1692 --with-synthesis-src can be given a path to sources
1693 checked out already, a Subversion repository URL or
1694 a git repository URL. When given a repository URL,
1695 then the configure script will checkout the sources
1696 into 'src/synthesis-workdir' or update that working
1697 copy if the directory already exists. Default:
1698 bundled source in src/synthesis (in released
1699 SyncEvolution sources), otherwise.
1700 --with-syncml-engines=client|server|both
1701 Determines which kind of support for SyncML is
1702 compiled and linked into SyncEvolution. Default is
1703 both. Currently has no effect.
1704 --with-synthesis-username=<svn username>
1705 username to use when checking out
1706 --with-synthesis-src sources from Subversion,
1708 --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
1709 Identifies which source revision to use from
1710 --with-synthesis-src repository, empty string stands
1711 for latest. Default for default --synthesis-src:
1713 --with-ca-certificates=<colon separated list of files>
1714 Specifies location of one or more CA certificate
1715 files. This sets the default value for the
1716 SSLServerCertificates option. Default: empty when
1717 using libcurl (because it has its own default), a
1718 list of paths known to work for Debian and Red Hat
1720 --with-boost[=DIR] use boost (default is yes) - it is possible to
1721 specify the root directory for boost (optional)
1722 --with-boost-libdir=LIB_DIR
1723 Force given directory for boost libraries. Note that
1724 this will overwrite library path detection, so use
1725 this parameter only if default library detection
1726 fails and you know exactly where your boost
1727 libraries are located.
1728 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1729 --with-pic try to use only PIC/non-PIC objects [default=use
1731 --with-tags[=TAGS] include additional configurations [automatic]
1733 Some influential environment variables:
1734 CC C compiler command
1735 CFLAGS C compiler flags
1736 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1737 nonstandard directory <lib dir>
1738 LIBS libraries to pass to the linker, e.g. -l<library>
1739 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1740 you have headers in a nonstandard directory <include dir>
1742 PKG_CONFIG path to pkg-config utility
1744 C compiler flags for LIBSOUP, overriding pkg-config
1746 linker flags for LIBSOUP, overriding pkg-config
1748 C compiler flags for LIBOPENOBEX, overriding pkg-config
1750 linker flags for LIBOPENOBEX, overriding pkg-config
1752 C compiler flags for BLUEZ, overriding pkg-config
1753 BLUEZ_LIBS linker flags for BLUEZ, overriding pkg-config
1755 C compiler flags for KEYRING, overriding pkg-config
1757 linker flags for KEYRING, overriding pkg-config
1759 C compiler flags for KEYRING_2_20, overriding pkg-config
1761 linker flags for KEYRING_2_20, overriding pkg-config
1763 C compiler flags for DBUS_GLIB, overriding pkg-config
1765 linker flags for DBUS_GLIB, overriding pkg-config
1766 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1767 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1769 C compiler flags for UNIQUE, overriding pkg-config
1770 UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
1771 GUI_CFLAGS C compiler flags for GUI, overriding pkg-config
1772 GUI_LIBS linker flags for GUI, overriding pkg-config
1773 CXX C++ compiler command
1774 CXXFLAGS C++ compiler flags
1776 C compiler flags for SYNTHESIS, overriding pkg-config
1778 linker flags for SYNTHESIS, overriding pkg-config
1780 C compiler flags for EPACKAGE, overriding pkg-config
1782 linker flags for EPACKAGE, overriding pkg-config
1783 ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
1784 ECAL_LIBS linker flags for ECAL, overriding pkg-config
1786 C compiler flags for EBOOK, overriding pkg-config
1787 EBOOK_LIBS linker flags for EBOOK, overriding pkg-config
1789 C compiler flags for SQLITE, overriding pkg-config
1790 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1791 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1792 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1793 CXXCPP C++ preprocessor
1794 F77 Fortran 77 compiler command
1795 FFLAGS Fortran 77 compiler flags
1797 Use these variables to override the choices made by `configure' or to help
1798 it to find libraries and programs with nonstandard names/locations.
1804 if test "$ac_init_help" = "recursive"; then
1805 # If there are subdirs, report their specific --help.
1806 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1807 test -d "$ac_dir" || continue
1811 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1813 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1814 # A ".." for each directory in $ac_dir_suffix.
1815 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1816 case $ac_top_builddir_sub in
1817 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1818 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1821 ac_abs_top_builddir=$ac_pwd
1822 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1823 # for backward compatibility:
1824 ac_top_builddir=$ac_top_build_prefix
1827 .) # We are building in place.
1829 ac_top_srcdir=$ac_top_builddir_sub
1830 ac_abs_top_srcdir=$ac_pwd ;;
1831 [\\/]* | ?:[\\/]* ) # Absolute name.
1832 ac_srcdir=$srcdir$ac_dir_suffix;
1833 ac_top_srcdir=$srcdir
1834 ac_abs_top_srcdir=$srcdir ;;
1836 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1837 ac_top_srcdir=$ac_top_build_prefix$srcdir
1838 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1840 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1842 cd "$ac_dir" || { ac_status=$?; continue; }
1843 # Check for guested configure.
1844 if test -f "$ac_srcdir/configure.gnu"; then
1846 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1847 elif test -f "$ac_srcdir/configure"; then
1849 $SHELL "$ac_srcdir/configure" --help=recursive
1851 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1853 cd "$ac_pwd" || { ac_status=$?; break; }
1857 test -n "$ac_init_help" && exit $ac_status
1858 if $ac_init_version; then
1860 syncevolution configure 0.9.2+1.0alpha1
1861 generated by GNU Autoconf 2.61
1863 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1864 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1865 This configure script is free software; the Free Software Foundation
1866 gives unlimited permission to copy, distribute and modify it.
1870 cat >config.log <<_ACEOF
1871 This file contains any messages produced by compilers while
1872 running configure, to aid debugging if configure makes a mistake.
1874 It was created by syncevolution $as_me 0.9.2+1.0alpha1, which was
1875 generated by GNU Autoconf 2.61. Invocation command line was
1887 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1897 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1898 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1900 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1901 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1902 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 test -z "$as_dir" && as_dir=.
1911 echo "PATH: $as_dir"
1927 # Keep a trace of the command line.
1928 # Strip out --no-create and --no-recursion so they do not pile up.
1929 # Strip out --silent because we don't want to record it for future runs.
1930 # Also quote any args containing shell meta-characters.
1931 # Make two passes to allow for proper duplicate-argument suppression.
1935 ac_must_keep_next=false
1941 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943 | -silent | --silent | --silen | --sile | --sil)
1946 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1951 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1952 if test $ac_must_keep_next = true; then
1953 ac_must_keep_next=false # Got value, back to normal.
1956 *=* | --config-cache | -C | -disable-* | --disable-* \
1957 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959 | -with-* | --with-* | -without-* | --without-* | --x)
1960 case "$ac_configure_args0 " in
1961 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964 -* ) ac_must_keep_next=true ;;
1967 ac_configure_args="$ac_configure_args '$ac_arg'"
1972 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1973 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1975 # When interrupted or exit'd, cleanup temporary files, and complete
1976 # config.log. We remove comments because anyway the quotes in there
1977 # would cause problems or look ugly.
1978 # WARNING: Use '\'' to represent an apostrophe within the trap.
1979 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980 trap 'exit_status=$?
1981 # Save into config.log some information that might help in debugging.
1986 ## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##
1991 # The following way of writing the cache mishandles newlines in values,
1993 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1994 eval ac_val=\$$ac_var
1998 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1999 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2002 _ | IFS | as_nl) ;; #(
2003 *) $as_unset $ac_var ;;
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023 ## ----------------- ##
2024 ## Output variables. ##
2025 ## ----------------- ##
2028 for ac_var in $ac_subst_vars
2030 eval ac_val=\$$ac_var
2032 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 echo "$ac_var='\''$ac_val'\''"
2038 if test -n "$ac_subst_files"; then
2040 ## ------------------- ##
2041 ## File substitutions. ##
2042 ## ------------------- ##
2045 for ac_var in $ac_subst_files
2047 eval ac_val=\$$ac_var
2049 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 echo "$ac_var='\''$ac_val'\''"
2056 if test -s confdefs.h; then
2066 test "$ac_signal" != 0 &&
2067 echo "$as_me: caught signal $ac_signal"
2068 echo "$as_me: exit $exit_status"
2070 rm -f core *.core core.conftest.* &&
2071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 for ac_signal in 1 2 13 15; do
2075 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2080 rm -f -r conftest* confdefs.h
2082 # Predefined preprocessor variables.
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 # Let the site file select an alternate cache file if it wants to.
2110 # Prefer explicitly selected file to automatically selected ones.
2111 if test -n "$CONFIG_SITE"; then
2112 set x "$CONFIG_SITE"
2113 elif test "x$prefix" != xNONE; then
2114 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2116 set x "$ac_default_prefix/share/config.site" \
2117 "$ac_default_prefix/etc/config.site"
2122 if test -r "$ac_site_file"; then
2123 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2124 echo "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2130 if test -r "$cache_file"; then
2131 # Some versions of bash will fail to source /dev/null (special
2132 # files actually), so we avoid doing that.
2133 if test -f "$cache_file"; then
2134 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2135 echo "$as_me: loading cache $cache_file" >&6;}
2137 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138 *) . "./$cache_file";;
2142 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2143 echo "$as_me: creating cache $cache_file" >&6;}
2147 # Check that the precious variables saved in the cache have kept the same
2149 ac_cache_corrupted=false
2150 for ac_var in $ac_precious_vars; do
2151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2152 eval ac_new_set=\$ac_env_${ac_var}_set
2153 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2154 eval ac_new_val=\$ac_env_${ac_var}_value
2155 case $ac_old_set,$ac_new_set in
2157 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2158 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2159 ac_cache_corrupted=: ;;
2161 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2162 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2166 if test "x$ac_old_val" != "x$ac_new_val"; then
2167 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2168 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2169 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2170 echo "$as_me: former value: $ac_old_val" >&2;}
2171 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2172 echo "$as_me: current value: $ac_new_val" >&2;}
2173 ac_cache_corrupted=:
2176 # Pass precious variables to config.status.
2177 if test "$ac_new_set" = set; then
2179 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 *) ac_arg=$ac_var=$ac_new_val ;;
2182 case " $ac_configure_args " in
2183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2184 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2188 if $ac_cache_corrupted; then
2189 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2190 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2191 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2192 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2193 { (exit 1); exit 1; }; }
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227 am__api_version='1.10'
2230 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2231 if test -f "$ac_dir/install-sh"; then
2233 ac_install_sh="$ac_aux_dir/install-sh -c"
2235 elif test -f "$ac_dir/install.sh"; then
2237 ac_install_sh="$ac_aux_dir/install.sh -c"
2239 elif test -f "$ac_dir/shtool"; then
2241 ac_install_sh="$ac_aux_dir/shtool install -c"
2245 if test -z "$ac_aux_dir"; then
2246 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2247 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2248 { (exit 1); exit 1; }; }
2251 # These three variables are undocumented and unsupported,
2252 # and are intended to be withdrawn in a future Autoconf release.
2253 # They can cause serious problems if a builder's source tree is in a directory
2254 # whose full name contains unusual characters.
2255 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2256 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2257 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2260 # Find a good install program. We prefer a C program (faster),
2261 # so one script is as good as another. But avoid the broken or
2262 # incompatible versions:
2263 # SysV /etc/install, /usr/sbin/install
2264 # SunOS /usr/etc/install
2265 # IRIX /sbin/install
2267 # AmigaOS /C/install, which installs bootblocks on floppy discs
2268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2271 # OS/2's system install, which has a completely different semantic
2272 # ./install, which can be erroneously created by make from ./install.sh.
2273 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2274 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2275 if test -z "$INSTALL"; then
2276 if test "${ac_cv_path_install+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 # Account for people who put trailing slashes in PATH elements.
2286 ./ | .// | /cC/* | \
2287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2291 # OSF1 and SCO ODT 3.0 have their own names for install.
2292 # Don't use installbsd from OSF since it installs stuff as root
2294 for ac_prog in ginstall scoinst install; do
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2297 if test $ac_prog = install &&
2298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # AIX install. It has an incompatible calling convention.
2301 elif test $ac_prog = install &&
2302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303 # program-specific install script used by HP pwplus--don't use.
2306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2319 if test "${ac_cv_path_install+set}" = set; then
2320 INSTALL=$ac_cv_path_install
2322 # As a last resort, use the slow shell script. Don't cache a
2323 # value for INSTALL within a source directory, because that will
2324 # break other packages using the cache if that directory is
2325 # removed, or if the value is a relative name.
2326 INSTALL=$ac_install_sh
2329 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2330 echo "${ECHO_T}$INSTALL" >&6; }
2332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2333 # It thinks the first close brace ends the variable substitution.
2334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2340 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2341 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2344 echo timestamp > conftest.file
2345 # Do `set' in a subshell so we don't clobber the current shell's
2346 # arguments. Must try -L first in case configure is actually a
2347 # symlink; some systems play weird games with the mod time of symlinks
2348 # (eg FreeBSD returns the mod time of the symlink's containing
2351 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2352 if test "$*" = "X"; then
2354 set X `ls -t $srcdir/configure conftest.file`
2357 if test "$*" != "X $srcdir/configure conftest.file" \
2358 && test "$*" != "X conftest.file $srcdir/configure"; then
2360 # If neither matched, then we have a broken ls. This can happen
2361 # if, for instance, CONFIG_SHELL is bash and it inherits a
2362 # broken ls alias from the environment. This has actually
2363 # happened. Such a system could not be considered "sane".
2364 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2365 alias in your environment" >&5
2366 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2367 alias in your environment" >&2;}
2368 { (exit 1); exit 1; }; }
2371 test "$2" = conftest.file
2377 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2378 Check your system clock" >&5
2379 echo "$as_me: error: newly created file is older than distributed files!
2380 Check your system clock" >&2;}
2381 { (exit 1); exit 1; }; }
2383 { echo "$as_me:$LINENO: result: yes" >&5
2384 echo "${ECHO_T}yes" >&6; }
2385 test "$program_prefix" != NONE &&
2386 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2387 # Use a double $ so make ignores it.
2388 test "$program_suffix" != NONE &&
2389 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2390 # Double any \ or $. echo might interpret backslashes.
2391 # By default was `s,x,x', remove it if useless.
2392 cat <<\_ACEOF >conftest.sed
2393 s/[\\$]/&&/g;s/;s,x,x,$//
2395 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2398 # expand $ac_aux_dir to an absolute path
2399 am_aux_dir=`cd $ac_aux_dir && pwd`
2401 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2402 # Use eval to expand $SHELL
2403 if eval "$MISSING --run true"; then
2404 am_missing_run="$MISSING --run "
2407 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2408 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2411 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2412 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2413 if test -z "$MKDIR_P"; then
2414 if test "${ac_cv_path_mkdir+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2421 test -z "$as_dir" && as_dir=.
2422 for ac_prog in mkdir gmkdir; do
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2425 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2426 'mkdir (GNU coreutils) '* | \
2427 'mkdir (coreutils) '* | \
2428 'mkdir (fileutils) '4.1*)
2429 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2439 if test "${ac_cv_path_mkdir+set}" = set; then
2440 MKDIR_P="$ac_cv_path_mkdir -p"
2442 # As a last resort, use the slow shell script. Don't cache a
2443 # value for MKDIR_P within a source directory, because that will
2444 # break other packages using the cache if that directory is
2445 # removed, or if the value is a relative name.
2446 test -d ./--version && rmdir ./--version
2447 MKDIR_P="$ac_install_sh -d"
2450 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2451 echo "${ECHO_T}$MKDIR_P" >&6; }
2455 [\\/$]* | ?:[\\/]*) ;;
2456 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2459 for ac_prog in gawk mawk nawk awk
2461 # Extract the first word of "$ac_prog", so it can be a program name with args.
2462 set dummy $ac_prog; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_AWK+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$AWK"; then
2469 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_AWK="$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 if test -n "$AWK"; then
2490 { echo "$as_me:$LINENO: result: $AWK" >&5
2491 echo "${ECHO_T}$AWK" >&6; }
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2498 test -n "$AWK" && break
2501 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2502 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2503 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2504 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 cat >conftest.make <<\_ACEOF
2510 @echo '@@@%%%=$(MAKE)=@@@%%%'
2512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2513 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2515 eval ac_cv_prog_make_${ac_make}_set=yes;;
2517 eval ac_cv_prog_make_${ac_make}_set=no;;
2521 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2522 { echo "$as_me:$LINENO: result: yes" >&5
2523 echo "${ECHO_T}yes" >&6; }
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2528 SET_MAKE="MAKE=${MAKE-make}"
2531 rm -rf .tst 2>/dev/null
2532 mkdir .tst 2>/dev/null
2533 if test -d .tst; then
2538 rmdir .tst 2>/dev/null
2540 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2541 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2542 # is not polluted with repeated "-I."
2543 am__isrc=' -I$(srcdir)'
2544 # test to see if srcdir already configured
2545 if test -f $srcdir/config.status; then
2546 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2547 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2548 { (exit 1); exit 1; }; }
2552 # test whether we have cygpath
2553 if test -z "$CYGPATH_W"; then
2554 if (cygpath --version) >/dev/null 2>/dev/null; then
2555 CYGPATH_W='cygpath -w'
2562 # Define the identity of the package.
2563 PACKAGE='syncevolution'
2564 VERSION='0.9.2+1.0alpha1'
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE "$PACKAGE"
2572 cat >>confdefs.h <<_ACEOF
2573 #define VERSION "$VERSION"
2576 # Some tools Automake needs.
2578 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2581 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2584 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2587 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2590 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2592 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2594 # Installed binaries are usually stripped using `strip' when the user
2595 # run `make install-strip'. However `strip' might not be the right
2596 # tool to use in cross-compilation environments, therefore Automake
2597 # will honor the `STRIP' environment variable to overrule this program.
2598 if test "$cross_compiling" != no; then
2599 if test -n "$ac_tool_prefix"; then
2600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2601 set dummy ${ac_tool_prefix}strip; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_STRIP+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$STRIP"; then
2608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 STRIP=$ac_cv_prog_STRIP
2628 if test -n "$STRIP"; then
2629 { echo "$as_me:$LINENO: result: $STRIP" >&5
2630 echo "${ECHO_T}$STRIP" >&6; }
2632 { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2638 if test -z "$ac_cv_prog_STRIP"; then
2640 # Extract the first word of "strip", so it can be a program name with args.
2641 set dummy strip; ac_word=$2
2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 if test -n "$ac_ct_STRIP"; then
2648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_ac_ct_STRIP="strip"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2668 if test -n "$ac_ct_STRIP"; then
2669 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2670 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2672 { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2676 if test "x$ac_ct_STRIP" = x; then
2679 case $cross_compiling:$ac_tool_warned in
2681 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&5
2684 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet. If you think this
2686 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2687 ac_tool_warned=yes ;;
2692 STRIP="$ac_cv_prog_STRIP"
2696 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2698 # We need awk for the "check" target. The system "awk" is bad on
2700 # Always define AMTAR for backward compatibility.
2702 AMTAR=${AMTAR-"${am_missing_run}tar"}
2705 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2706 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2707 # Loop over all known methods to create a tar archive until one works.
2708 _am_tools='gnutar plaintar pax cpio none'
2709 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2710 # Do not fold the above two line into one, because Tru64 sh and
2711 # Solaris sh will not grok spaces in the rhs of `-'.
2712 for _am_tool in $_am_tools
2716 for _am_tar in tar gnutar gtar;
2718 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2719 ($_am_tar --version) >&5 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } && break
2724 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2725 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2726 am__untar="$_am_tar -xf -"
2729 # Must skip GNU tar: if it does not support --format= it doesn't create
2730 # ustar tarball either.
2731 (tar --version) >/dev/null 2>&1 && continue
2732 am__tar='tar chf - "$$tardir"'
2733 am__tar_='tar chf - "$tardir"'
2734 am__untar='tar xf -'
2737 am__tar='pax -L -x ustar -w "$$tardir"'
2738 am__tar_='pax -L -x ustar -w "$tardir"'
2742 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2743 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2744 am__untar='cpio -i -H ustar -d'
2753 # If the value was cached, stop now. We just wanted to have am__tar
2754 # and am__untar set.
2755 test -n "${am_cv_prog_tar_ustar}" && break
2757 # tar/untar a dummy directory, and stop if the command works
2760 echo GrepMe > conftest.dir/file
2761 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2762 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }
2767 if test -s conftest.tar; then
2768 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2769 ($am__untar <conftest.tar) >&5 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2778 if test "${am_cv_prog_tar_ustar+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 am_cv_prog_tar_ustar=$_am_tool
2784 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2785 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2794 ac_config_headers="$ac_config_headers config.h"
2799 DEVICE_TYPE=workstation
2802 # Check whether --with-synthesis-src was given.
2803 if test "${with_synthesis_src+set}" = set; then
2804 withval=$with_synthesis_src; SYNTHESISSRC="$withval"
2805 test "$SYNTHESISSRC" != "yes" || { { echo "$as_me:$LINENO: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&5
2806 echo "$as_me: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&2;}
2807 { (exit 1); exit 1; }; }
2809 SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
2814 # Check whether --with-syncml-engines was given.
2815 if test "${with_syncml_engines+set}" = set; then
2816 withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
2822 case $SYNCML_ENGINES in both|client)
2823 cat >>confdefs.h <<\_ACEOF
2824 #define ENABLE_SYNCML_CLIENT 1
2827 case $SYNCML_ENGINES in both|server)
2828 cat >>confdefs.h <<\_ACEOF
2829 #define ENABLE_SYNCML_SERVER 1
2832 case $SYNCML_ENGINES in both|server|client) true;; *) { { echo "$as_me:$LINENO: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&5
2833 echo "$as_me: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&2;}
2834 { (exit 1); exit 1; }; };; esac
2837 # Check whether --with-synthesis-username was given.
2838 if test "${with_synthesis_username+set}" = set; then
2839 withval=$with_synthesis_username; USERNAME="$withval"
2846 # Check whether --with-synthesis-revision was given.
2847 if test "${with_synthesis_revision+set}" = set; then
2848 withval=$with_synthesis_revision; REVISION="$withval"
2852 # Check whether --enable-shared was given.
2853 if test "${enable_shared+set}" = set; then
2854 enableval=$enable_shared; enable_shared="$enableval"
2860 # Check whether --enable-static was given.
2861 if test "${enable_static+set}" = set; then
2862 enableval=$enable_static; enable_static="$enableval"
2868 # Check whether --enable-unit-tests was given.
2869 if test "${enable_unit_tests+set}" = set; then
2870 enableval=$enable_unit_tests; enable_unit_tests="$enableval"
2872 enable_unit_tests="no"
2875 # Check whether --enable-integration-tests was given.
2876 if test "${enable_integration_tests+set}" = set; then
2877 enableval=$enable_integration_tests; enable_integration_tests="$enableval"
2879 enable_integration_tests="no"
2883 # Check whether --enable-static-cxx was given.
2884 if test "${enable_static_cxx+set}" = set; then
2885 enableval=$enable_static_cxx; enable_static_cxx="$enableval"
2887 enable_static_cxx="no"
2891 # Check whether --enable-evolution-compatibility was given.
2892 if test "${enable_evolution_compatibility+set}" = set; then
2893 enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
2895 enable_evolution_compatibility="no"
2899 # Check whether --enable-developer-mode was given.
2900 if test "${enable_developer_mode+set}" = set; then
2901 enableval=$enable_developer_mode; enable_developer_mode="$enableval"
2903 enable_developer_mode="no"
2908 # - set the (non-standard!) DBUS_DEFAULT_TIMEOUT
2909 # - wrap e_book_from_string() to fix invalid parameter
2910 # - don't use UTF-8 encoding in Perl script
2911 # Check whether --enable-maemo was given.
2912 if test "${enable_maemo+set}" = set; then
2913 enableval=$enable_maemo;
2914 cat >>confdefs.h <<\_ACEOF
2915 #define ENABLE_MAEMO 1
2919 MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
2924 DEPDIR="${am__leading_dot}deps"
2926 ac_config_commands="$ac_config_commands depfiles"
2929 am_make=${MAKE-make}
2930 cat > confinc << 'END'
2935 # If we don't find an include directive, just comment out the code.
2936 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2937 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2941 # First try GNU make style include.
2942 echo "include confinc" > confmf
2943 # We grep out `Entering directory' and `Leaving directory'
2944 # messages which can occur if `w' ends up in MAKEFLAGS.
2945 # In particular we don't look at `^make:' because GNU make might
2946 # be invoked under some other name (usually "gmake"), in which
2947 # case it prints its new name instead of `make'.
2948 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2953 # Now try BSD make style include.
2954 if test "$am__include" = "#"; then
2955 echo '.include "confinc"' > confmf
2956 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2957 am__include=.include
2964 { echo "$as_me:$LINENO: result: $_am_result" >&5
2965 echo "${ECHO_T}$_am_result" >&6; }
2966 rm -f confinc confmf
2968 # Check whether --enable-dependency-tracking was given.
2969 if test "${enable_dependency_tracking+set}" = set; then
2970 enableval=$enable_dependency_tracking;
2973 if test "x$enable_dependency_tracking" != xno; then
2974 am_depcomp="$ac_aux_dir/depcomp"
2977 if test "x$enable_dependency_tracking" != xno; then
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2993 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 if test -n "$CC"; then
3021 { echo "$as_me:$LINENO: result: $CC" >&5
3022 echo "${ECHO_T}$CC" >&6; }
3024 { echo "$as_me:$LINENO: result: no" >&5
3025 echo "${ECHO_T}no" >&6; }
3030 if test -z "$ac_cv_prog_CC"; then
3032 # Extract the first word of "gcc", so it can be a program name with args.
3033 set dummy gcc; ac_word=$2
3034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_ac_ct_CC="gcc"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3060 if test -n "$ac_ct_CC"; then
3061 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3062 echo "${ECHO_T}$ac_ct_CC" >&6; }
3064 { echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6; }
3068 if test "x$ac_ct_CC" = x; then
3071 case $cross_compiling:$ac_tool_warned in
3073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3074 whose name does not start with the host triplet. If you think this
3075 configuration is useful to you, please write to autoconf@gnu.org." >&5
3076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3077 whose name does not start with the host triplet. If you think this
3078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3079 ac_tool_warned=yes ;;
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}cc; ac_word=$2
3091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3093 if test "${ac_cv_prog_CC+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_CC="${ac_tool_prefix}cc"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$CC"; then
3118 { echo "$as_me:$LINENO: result: $CC" >&5
3119 echo "${ECHO_T}$CC" >&6; }
3121 { echo "$as_me:$LINENO: result: no" >&5
3122 echo "${ECHO_T}no" >&6; }
3128 if test -z "$CC"; then
3129 # Extract the first word of "cc", so it can be a program name with args.
3130 set dummy cc; ac_word=$2
3131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3148 ac_prog_rejected=yes
3152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test $ac_prog_rejected = yes; then
3160 # We found a bogon in the path, so make sure we never use it.
3161 set dummy $ac_cv_prog_CC
3163 if test $# != 0; then
3164 # We chose a different compiler from the bogus one.
3165 # However, it has the same basename, so the bogon will be chosen
3166 # first if we set CC to just the basename; use the full file name.
3168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174 if test -n "$CC"; then
3175 { echo "$as_me:$LINENO: result: $CC" >&5
3176 echo "${ECHO_T}$CC" >&6; }
3178 { echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6; }
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 for ac_prog in cl.exe
3188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3192 if test "${ac_cv_prog_CC+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$CC"; then
3217 { echo "$as_me:$LINENO: result: $CC" >&5
3218 echo "${ECHO_T}$CC" >&6; }
3220 { echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6; }
3225 test -n "$CC" && break
3228 if test -z "$CC"; then
3230 for ac_prog in cl.exe
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 if test -n "$ac_ct_CC"; then
3240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_ac_ct_CC="$ac_prog"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3262 echo "${ECHO_T}$ac_ct_CC" >&6; }
3264 { echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6; }
3269 test -n "$ac_ct_CC" && break
3272 if test "x$ac_ct_CC" = x; then
3275 case $cross_compiling:$ac_tool_warned in
3277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3278 whose name does not start with the host triplet. If you think this
3279 configuration is useful to you, please write to autoconf@gnu.org." >&5
3280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3281 whose name does not start with the host triplet. If you think this
3282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3283 ac_tool_warned=yes ;;
3292 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3293 See \`config.log' for more details." >&5
3294 echo "$as_me: error: no acceptable C compiler found in \$PATH
3295 See \`config.log' for more details." >&2;}
3296 { (exit 1); exit 1; }; }
3298 # Provide some information about the compiler.
3299 echo "$as_me:$LINENO: checking for C compiler version" >&5
3300 ac_compiler=`set X $ac_compile; echo $2`
3301 { (ac_try="$ac_compiler --version >&5"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_compiler --version >&5") 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }
3311 { (ac_try="$ac_compiler -v >&5"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compiler -v >&5") 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }
3321 { (ac_try="$ac_compiler -V >&5"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compiler -V >&5") 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3347 ac_clean_files_save=$ac_clean_files
3348 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3349 # Try to create an executable without -o first, disregard a.out.
3350 # It will help us diagnose broken compilers, and finding out an intuition
3352 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3353 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3354 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3356 # List of possible output files, starting from the most likely.
3357 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3358 # only as a last resort. b.out is created by i960 compilers.
3359 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3361 # The IRIX 6 linker writes into existing files which may not be
3362 # executable, retaining their permissions. Remove them first so a
3363 # subsequent execution test works.
3365 for ac_file in $ac_files
3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3369 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3374 if { (ac_try="$ac_link_default"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_link_default") 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; then
3384 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3385 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3386 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3387 # so that the user can short-circuit this test for compilers unknown to
3389 for ac_file in $ac_files ''
3391 test -f "$ac_file" || continue
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3396 # We found the default executable, but exeext='' is most
3400 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404 # We set ac_cv_exeext here because the later test for it is not
3405 # safe: cross compilers may not add the suffix if given an `-o'
3406 # argument, so we may need to know it at that point already.
3407 # Even if this section looks crufty: it has the advantage of
3414 test "$ac_cv_exeext" = no && ac_cv_exeext=
3420 { echo "$as_me:$LINENO: result: $ac_file" >&5
3421 echo "${ECHO_T}$ac_file" >&6; }
3422 if test -z "$ac_file"; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3427 See \`config.log' for more details." >&5
3428 echo "$as_me: error: C compiler cannot create executables
3429 See \`config.log' for more details." >&2;}
3430 { (exit 77); exit 77; }; }
3433 ac_exeext=$ac_cv_exeext
3435 # Check that the compiler produces executables we can run. If not, either
3436 # the compiler is broken, or we cross compile.
3437 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3438 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3439 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3440 # If not cross compiling, check that we can run a simple program.
3441 if test "$cross_compiling" != yes; then
3442 if { ac_try='./$ac_file'
3443 { (case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_try") 2>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3454 if test "$cross_compiling" = maybe; then
3457 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3458 If you meant to cross compile, use \`--host'.
3459 See \`config.log' for more details." >&5
3460 echo "$as_me: error: cannot run C compiled programs.
3461 If you meant to cross compile, use \`--host'.
3462 See \`config.log' for more details." >&2;}
3463 { (exit 1); exit 1; }; }
3467 { echo "$as_me:$LINENO: result: yes" >&5
3468 echo "${ECHO_T}yes" >&6; }
3470 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3471 ac_clean_files=$ac_clean_files_save
3472 # Check that the compiler produces executables we can run. If not, either
3473 # the compiler is broken, or we cross compile.
3474 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3475 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3476 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3477 echo "${ECHO_T}$cross_compiling" >&6; }
3479 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3480 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3481 if { (ac_try="$ac_link"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_link") 2>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; then
3491 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3492 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3493 # work properly (i.e., refer to `conftest.exe'), while it won't with
3495 for ac_file in conftest.exe conftest conftest.*; do
3496 test -f "$ac_file" || continue
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3505 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3506 See \`config.log' for more details." >&5
3507 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3508 See \`config.log' for more details." >&2;}
3509 { (exit 1); exit 1; }; }
3512 rm -f conftest$ac_cv_exeext
3513 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3514 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3516 rm -f conftest.$ac_ext
3517 EXEEXT=$ac_cv_exeext
3519 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3520 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3521 if test "${ac_cv_objext+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3539 rm -f conftest.o conftest.obj
3540 if { (ac_try="$ac_compile"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_compile") 2>&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; then
3550 for ac_file in conftest.o conftest.obj conftest.*; do
3551 test -f "$ac_file" || continue;
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3563 See \`config.log' for more details." >&5
3564 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details." >&2;}
3566 { (exit 1); exit 1; }; }
3569 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3571 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3572 echo "${ECHO_T}$ac_cv_objext" >&6; }
3573 OBJEXT=$ac_cv_objext
3575 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3576 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3577 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compile") 2>conftest.er1
3607 grep -v '^ *+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } && {
3612 test -z "$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 } && test -s conftest.$ac_objext; then
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3627 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3628 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3629 GCC=`test $ac_compiler_gnu = yes && echo yes`
3630 ac_test_CFLAGS=${CFLAGS+set}
3631 ac_save_CFLAGS=$CFLAGS
3632 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3633 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3634 if test "${ac_cv_prog_cc_g+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 ac_save_c_werror_flag=$ac_c_werror_flag
3638 ac_c_werror_flag=yes
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_compile") 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } && {
3670 test -z "$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 } && test -s conftest.$ac_objext; then
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3679 cat >conftest.$ac_ext <<_ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3694 rm -f conftest.$ac_objext
3695 if { (ac_try="$ac_compile"
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_c_werror_flag=$ac_save_c_werror_flag
3718 cat >conftest.$ac_ext <<_ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3733 rm -f conftest.$ac_objext
3734 if { (ac_try="$ac_compile"
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_compile") 2>conftest.er1
3742 grep -v '^ *+' conftest.er1 >conftest.err
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } && {
3747 test -z "$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3749 } && test -s conftest.$ac_objext; then
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 ac_c_werror_flag=$ac_save_c_werror_flag
3767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3768 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3769 if test "$ac_test_CFLAGS" = set; then
3770 CFLAGS=$ac_save_CFLAGS
3771 elif test $ac_cv_prog_cc_g = yes; then
3772 if test "$GCC" = yes; then
3778 if test "$GCC" = yes; then
3784 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3785 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3786 if test "${ac_cv_prog_cc_c89+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 ac_cv_prog_cc_c89=no
3791 cat >conftest.$ac_ext <<_ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3799 #include <sys/types.h>
3800 #include <sys/stat.h>
3801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3802 struct buf { int x; };
3803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3804 static char *e (p, i)
3810 static char *f (char * (*g) (char **, int), char **p, ...)
3815 s = g (p, va_arg (v,int));
3820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3821 function prototypes and stuff, but not '\xHH' hex character constants.
3822 These don't provoke an error unfortunately, instead are silently treated
3823 as 'x'. The following induces an error, until -std is added to get
3824 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3825 array size at least. It's necessary to write '\x00'==0 to get something
3826 that's true only with -std. */
3827 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3829 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3830 inside strings and character constants. */
3832 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3834 int test (int i, double x);
3835 struct s1 {int (*f) (int a);};
3836 struct s2 {int (*f) (double a);};
3837 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3843 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3848 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3849 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3851 CC="$ac_save_CC $ac_arg"
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && {
3866 test -z "$ac_c_werror_flag" ||
3867 test ! -s conftest.err
3868 } && test -s conftest.$ac_objext; then
3869 ac_cv_prog_cc_c89=$ac_arg
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3877 rm -f core conftest.err conftest.$ac_objext
3878 test "x$ac_cv_prog_cc_c89" != "xno" && break
3880 rm -f conftest.$ac_ext
3885 case "x$ac_cv_prog_cc_c89" in
3887 { echo "$as_me:$LINENO: result: none needed" >&5
3888 echo "${ECHO_T}none needed" >&6; } ;;
3890 { echo "$as_me:$LINENO: result: unsupported" >&5
3891 echo "${ECHO_T}unsupported" >&6; } ;;
3893 CC="$CC $ac_cv_prog_cc_c89"
3894 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3895 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 depcc="$CC" am_compiler_list=
3907 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3908 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3909 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3913 # We make a subdir and do the tests there. Otherwise we can end up
3914 # making bogus files that we don't know about and never remove. For
3915 # instance it was reported that on HP-UX the gcc test will end up
3916 # making a dummy file named `D' -- because `-MD' means `put the output
3919 # Copy depcomp to subdir because otherwise we won't find it if we're
3920 # using a relative directory.
3921 cp "$am_depcomp" conftest.dir
3923 # We will build objects and dependencies in a subdirectory because
3924 # it helps to detect inapplicable dependency modes. For instance
3925 # both Tru64's cc and ICC support -MD to output dependencies as a
3926 # side effect of compilation, but ICC will put the dependencies in
3927 # the current directory while Tru64 will put them in the object
3931 am_cv_CC_dependencies_compiler_type=none
3932 if test "$am_compiler_list" = ""; then
3933 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3935 for depmode in $am_compiler_list; do
3936 # Setup a source with many dependencies, because some compilers
3937 # like to wrap large dependency lists on column 80 (with \), and
3938 # we should not choose a depcomp mode which is confused by this.
3940 # We need to recreate these files for each test, as the compiler may
3941 # overwrite some of them when testing with obscure command lines.
3942 # This happens at least with the AIX C compiler.
3944 for i in 1 2 3 4 5 6; do
3945 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3946 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3947 # Solaris 8's {/usr,}/bin/sh.
3948 touch sub/conftst$i.h
3950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3954 # after this tag, mechanisms are not by side-effect, so they'll
3955 # only be used when explicitly requested
3956 if test "x$enable_dependency_tracking" = xyes; then
3964 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3965 # mode. It turns out that the SunPro C++ compiler does not properly
3966 # handle `-M -o', and we need to detect this.
3967 if depmode=$depmode \
3968 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3970 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3971 >/dev/null 2>conftest.err &&
3972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3974 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3976 # icc doesn't choke on unknown options, it will just issue warnings
3977 # or remarks (even with -Werror). So we grep stderr for any message
3978 # that says an option was ignored or not supported.
3979 # When given -MP, icc 7.0 and 7.1 complain thusly:
3980 # icc: Command line warning: ignoring option '-M'; no argument required
3981 # The diagnosis changed in icc 8.0:
3982 # icc: Command line remark: option '-MP' not supported
3983 if (grep 'ignoring option' conftest.err ||
3984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3985 am_cv_CC_dependencies_compiler_type=$depmode
3994 am_cv_CC_dependencies_compiler_type=none
3998 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3999 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4000 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4003 test "x$enable_dependency_tracking" != xno \
4004 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4006 am__fastdepCC_FALSE='#'
4008 am__fastdepCC_TRUE='#'
4009 am__fastdepCC_FALSE=
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4020 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4021 # On Suns, sometimes $CPP names a directory.
4022 if test -n "$CPP" && test -d "$CPP"; then
4025 if test -z "$CPP"; then
4026 if test "${ac_cv_prog_CPP+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 # Double quotes because CPP needs to be expanded
4030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4033 for ac_c_preproc_warn_flag in '' yes
4035 # Use a header file that comes with gcc, so configuring glibc
4036 # with a fresh cross-compiler works.
4037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038 # <limits.h> exists even on freestanding compilers.
4039 # On the NeXT, cc -E runs the code through the compiler's parser,
4040 # not just through cpp. "Syntax error" is here to catch this case.
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4048 # include <limits.h>
4050 # include <assert.h>
4054 if { (ac_try="$ac_cpp conftest.$ac_ext"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null && {
4067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 # Broken: fails on valid input.
4079 rm -f conftest.err conftest.$ac_ext
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat >conftest.$ac_ext <<_ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <ac_nonexistent.h>
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null && {
4104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4107 # Broken: success on invalid input.
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 # Passes both tests.
4118 rm -f conftest.err conftest.$ac_ext
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then
4135 { echo "$as_me:$LINENO: result: $CPP" >&5
4136 echo "${ECHO_T}$CPP" >&6; }
4138 for ac_c_preproc_warn_flag in '' yes
4140 # Use a header file that comes with gcc, so configuring glibc
4141 # with a fresh cross-compiler works.
4142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4143 # <limits.h> exists even on freestanding compilers.
4144 # On the NeXT, cc -E runs the code through the compiler's parser,
4145 # not just through cpp. "Syntax error" is here to catch this case.
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4153 # include <limits.h>
4155 # include <assert.h>
4159 if { (ac_try="$ac_cpp conftest.$ac_ext"
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } >/dev/null && {
4172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4173 test ! -s conftest.err
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 # Broken: fails on valid input.
4184 rm -f conftest.err conftest.$ac_ext
4186 # OK, works on sane cases. Now check whether nonexistent headers
4187 # can be detected and how.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 #include <ac_nonexistent.h>
4196 if { (ac_try="$ac_cpp conftest.$ac_ext"
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4204 grep -v '^ *+' conftest.er1 >conftest.err
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } >/dev/null && {
4209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4210 test ! -s conftest.err
4212 # Broken: success on invalid input.
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 # Passes both tests.
4223 rm -f conftest.err conftest.$ac_ext
4226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227 rm -f conftest.err conftest.$ac_ext
4228 if $ac_preproc_ok; then
4231 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4232 See \`config.log' for more details." >&5
4233 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4234 See \`config.log' for more details." >&2;}
4235 { (exit 1); exit 1; }; }
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4246 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4247 if test "${ac_cv_path_GREP+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 # Extract the first word of "grep ggrep" to use in msg output
4251 if test -z "$GREP"; then
4252 set dummy grep ggrep; ac_prog_name=$2
4253 if test "${ac_cv_path_GREP+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 ac_path_GREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in grep ggrep; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4267 # Check for GNU ac_path_GREP and select it if it is found.
4268 # Check for GNU $ac_path_GREP
4269 case `"$ac_path_GREP" --version 2>&1` in
4271 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4274 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 echo 'GREP' >> "conftest.nl"
4281 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 ac_count=`expr $ac_count + 1`
4284 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_GREP="$ac_path_GREP"
4287 ac_path_GREP_max=$ac_count
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296 $ac_path_GREP_found && break 3
4306 GREP="$ac_cv_path_GREP"
4307 if test -z "$GREP"; then
4308 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4309 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4310 { (exit 1); exit 1; }; }
4314 ac_cv_path_GREP=$GREP
4319 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4320 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4321 GREP="$ac_cv_path_GREP"
4324 { echo "$as_me:$LINENO: checking for egrep" >&5
4325 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4326 if test "${ac_cv_path_EGREP+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4330 then ac_cv_path_EGREP="$GREP -E"
4332 # Extract the first word of "egrep" to use in msg output
4333 if test -z "$EGREP"; then
4334 set dummy egrep; ac_prog_name=$2
4335 if test "${ac_cv_path_EGREP+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 ac_path_EGREP_found=false
4339 # Loop through the user's path and test for each of PROGNAME-LIST
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344 test -z "$as_dir" && as_dir=.
4345 for ac_prog in egrep; do
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4348 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4349 # Check for GNU ac_path_EGREP and select it if it is found.
4350 # Check for GNU $ac_path_EGREP
4351 case `"$ac_path_EGREP" --version 2>&1` in
4353 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4356 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4359 cat "conftest.in" "conftest.in" >"conftest.tmp"
4360 mv "conftest.tmp" "conftest.in"
4361 cp "conftest.in" "conftest.nl"
4362 echo 'EGREP' >> "conftest.nl"
4363 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365 ac_count=`expr $ac_count + 1`
4366 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4367 # Best one so far, save it but keep looking for a better one
4368 ac_cv_path_EGREP="$ac_path_EGREP"
4369 ac_path_EGREP_max=$ac_count
4371 # 10*(2^10) chars as input seems more than enough
4372 test $ac_count -gt 10 && break
4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378 $ac_path_EGREP_found && break 3
4388 EGREP="$ac_cv_path_EGREP"
4389 if test -z "$EGREP"; then
4390 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4391 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4392 { (exit 1); exit 1; }; }
4396 ac_cv_path_EGREP=$EGREP
4402 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4403 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4404 EGREP="$ac_cv_path_EGREP"
4407 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4409 if test "${ac_cv_header_stdc+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4431 rm -f conftest.$ac_objext
4432 if { (ac_try="$ac_compile"
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_compile") 2>conftest.er1
4440 grep -v '^ *+' conftest.er1 >conftest.err
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && {
4445 test -z "$ac_c_werror_flag" ||
4446 test ! -s conftest.err
4447 } && test -s conftest.$ac_objext; then
4448 ac_cv_header_stdc=yes
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 ac_cv_header_stdc=no
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 if test $ac_cv_header_stdc = yes; then
4459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4460 cat >conftest.$ac_ext <<_ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470 $EGREP "memchr" >/dev/null 2>&1; then
4473 ac_cv_header_stdc=no
4479 if test $ac_cv_header_stdc = yes; then
4480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "free" >/dev/null 2>&1; then
4494 ac_cv_header_stdc=no
4500 if test $ac_cv_header_stdc = yes; then
4501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502 if test "$cross_compiling" = yes; then
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4513 #if ((' ' & 0x0FF) == 0x020)
4514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4517 # define ISLOWER(c) \
4518 (('a' <= (c) && (c) <= 'i') \
4519 || ('j' <= (c) && (c) <= 'r') \
4520 || ('s' <= (c) && (c) <= 'z'))
4521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4529 for (i = 0; i < 256; i++)
4530 if (XOR (islower (i), ISLOWER (i))
4531 || toupper (i) != TOUPPER (i))
4536 rm -f conftest$ac_exeext
4537 if { (ac_try="$ac_link"
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_link") 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4547 { (case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_try") 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4558 echo "$as_me: program exited with status $ac_status" >&5
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_cv_header_stdc=no
4565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4571 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4572 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4573 if test $ac_cv_header_stdc = yes; then
4575 cat >>confdefs.h <<\_ACEOF
4576 #define STDC_HEADERS 1
4581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4592 inttypes.h stdint.h unistd.h
4594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 $ac_includes_default
4608 #include <$ac_header>
4610 rm -f conftest.$ac_objext
4611 if { (ac_try="$ac_compile"
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.$ac_objext; then
4627 eval "$as_ac_Header=yes"
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 eval "$as_ac_Header=no"
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 ac_res=`eval echo '${'$as_ac_Header'}'`
4638 { echo "$as_me:$LINENO: result: $ac_res" >&5
4639 echo "${ECHO_T}$ac_res" >&6; }
4640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4641 cat >>confdefs.h <<_ACEOF
4642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4652 for ac_header in signal.h dlfcn.h
4654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 ac_res=`eval echo '${'$as_ac_Header'}'`
4662 { echo "$as_me:$LINENO: result: $ac_res" >&5
4663 echo "${ECHO_T}$ac_res" >&6; }
4665 # Is the header compilable?
4666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 #include <$ac_header>
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && {
4691 test -z "$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 } && test -s conftest.$ac_objext; then
4694 ac_header_compiler=yes
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 ac_header_compiler=no
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4704 echo "${ECHO_T}$ac_header_compiler" >&6; }
4706 # Is the header present?
4707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 #include <$ac_header>
4717 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } >/dev/null && {
4730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4733 ac_header_preproc=yes
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4738 ac_header_preproc=no
4741 rm -f conftest.err conftest.$ac_ext
4742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4743 echo "${ECHO_T}$ac_header_preproc" >&6; }
4745 # So? What about this header?
4746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4752 ac_header_preproc=yes
4755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 eval "$as_ac_Header=\$ac_header_preproc"
4777 ac_res=`eval echo '${'$as_ac_Header'}'`
4778 { echo "$as_me:$LINENO: result: $ac_res" >&5
4779 echo "${ECHO_T}$ac_res" >&6; }
4782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4783 cat >>confdefs.h <<_ACEOF
4784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4793 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
4794 CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
4795 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
4796 { (exit 1); exit 1; }; }
4797 CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
4798 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
4799 { (exit 1); exit 1; }; }
4804 if test "$enable_unit_tests" = "yes"; then
4806 cat >>confdefs.h <<\_ACEOF
4807 #define ENABLE_UNIT_TESTS 1
4811 if test "$enable_unit_tests" = "yes"; then
4812 ENABLE_UNIT_TESTS_TRUE=
4813 ENABLE_UNIT_TESTS_FALSE='#'
4815 ENABLE_UNIT_TESTS_TRUE='#'
4816 ENABLE_UNIT_TESTS_FALSE=
4819 if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
4820 ENABLE_TESTING_TRUE=
4821 ENABLE_TESTING_FALSE='#'
4823 ENABLE_TESTING_TRUE='#'
4824 ENABLE_TESTING_FALSE=
4828 if test $enable_static_cxx == "yes"; then
4830 CORE_LDADD_DEP=libstdc++.a
4834 # Check for transport layer.
4835 # Both curl and libsoup can be enabled and disabled explicitly.
4836 # The default is to use libsoup if available, otherwise curl.
4838 { echo "$as_me:$LINENO: checking for libcurl" >&5
4839 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
4840 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
4841 LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
4842 { echo "$as_me:$LINENO: result: yes" >&5
4843 echo "${ECHO_T}yes" >&6; }
4846 { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4852 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4853 if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4855 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4885 if test -n "$PKG_CONFIG"; then
4886 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4887 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4889 { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4895 if test -z "$ac_cv_path_PKG_CONFIG"; then
4896 ac_pt_PKG_CONFIG=$PKG_CONFIG
4897 # Extract the first word of "pkg-config", so it can be a program name with args.
4898 set dummy pkg-config; ac_word=$2
4899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4901 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 case $ac_pt_PKG_CONFIG in
4906 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4928 if test -n "$ac_pt_PKG_CONFIG"; then
4929 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4930 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4932 { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4936 if test "x$ac_pt_PKG_CONFIG" = x; then
4939 case $cross_compiling:$ac_tool_warned in
4941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4942 whose name does not start with the host triplet. If you think this
4943 configuration is useful to you, please write to autoconf@gnu.org." >&5
4944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet. If you think this
4946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4947 ac_tool_warned=yes ;;
4949 PKG_CONFIG=$ac_pt_PKG_CONFIG
4952 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4956 if test -n "$PKG_CONFIG"; then
4957 _pkg_min_version=0.9.0
4958 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4959 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4960 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4961 { echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6; }
4964 { echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6; }
4972 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
4973 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
4975 if test -n "$PKG_CONFIG"; then
4976 if test -n "$LIBSOUP_CFLAGS"; then
4977 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
4979 if test -n "$PKG_CONFIG" && \
4980 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\"") >&5
4981 ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; then
4985 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
4993 if test -n "$PKG_CONFIG"; then
4994 if test -n "$LIBSOUP_LIBS"; then
4995 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
4997 if test -n "$PKG_CONFIG" && \
4998 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\"") >&5
4999 ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; then
5003 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
5014 if test $pkg_failed = yes; then
5016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5017 _pkg_short_errors_supported=yes
5019 _pkg_short_errors_supported=no
5021 if test $_pkg_short_errors_supported = yes; then
5022 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
5024 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
5026 # Put the nasty error message in config.log where it belongs
5027 echo "$LIBSOUP_PKG_ERRORS" >&5
5029 { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5033 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5034 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5036 if test -n "$PKG_CONFIG"; then
5037 if test -n "$LIBSOUP_CFLAGS"; then
5038 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5040 if test -n "$PKG_CONFIG" && \
5041 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5042 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; then
5046 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5054 if test -n "$PKG_CONFIG"; then
5055 if test -n "$LIBSOUP_LIBS"; then
5056 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5058 if test -n "$PKG_CONFIG" && \
5059 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5060 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; then
5064 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5075 if test $pkg_failed = yes; then
5077 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5078 _pkg_short_errors_supported=yes
5080 _pkg_short_errors_supported=no
5082 if test $_pkg_short_errors_supported = yes; then
5083 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5085 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5087 # Put the nasty error message in config.log where it belongs
5088 echo "$LIBSOUP_PKG_ERRORS" >&5
5090 { echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6; }
5093 elif test $pkg_failed = untried; then
5096 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5097 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5098 { echo "$as_me:$LINENO: result: yes" >&5
5099 echo "${ECHO_T}yes" >&6; }
5102 elif test $pkg_failed = untried; then
5105 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5106 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5108 if test -n "$PKG_CONFIG"; then
5109 if test -n "$LIBSOUP_CFLAGS"; then
5110 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5112 if test -n "$PKG_CONFIG" && \
5113 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5114 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; then
5118 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5126 if test -n "$PKG_CONFIG"; then
5127 if test -n "$LIBSOUP_LIBS"; then
5128 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5130 if test -n "$PKG_CONFIG" && \
5131 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5132 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; then
5136 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5147 if test $pkg_failed = yes; then
5149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5150 _pkg_short_errors_supported=yes
5152 _pkg_short_errors_supported=no
5154 if test $_pkg_short_errors_supported = yes; then
5155 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5157 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5159 # Put the nasty error message in config.log where it belongs
5160 echo "$LIBSOUP_PKG_ERRORS" >&5
5162 { echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6; }
5165 elif test $pkg_failed = untried; then
5168 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5169 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5170 { echo "$as_me:$LINENO: result: yes" >&5
5171 echo "${ECHO_T}yes" >&6; }
5175 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5176 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5177 { echo "$as_me:$LINENO: result: yes" >&5
5178 echo "${ECHO_T}yes" >&6; }
5181 cat >>confdefs.h <<\_ACEOF
5182 #define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1
5189 { echo "$as_me:$LINENO: checking for LIBOPENOBEX" >&5
5190 echo $ECHO_N "checking for LIBOPENOBEX... $ECHO_C" >&6; }
5192 if test -n "$PKG_CONFIG"; then
5193 if test -n "$LIBOPENOBEX_CFLAGS"; then
5194 pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
5196 if test -n "$PKG_CONFIG" && \
5197 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5198 ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; then
5202 pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
5210 if test -n "$PKG_CONFIG"; then
5211 if test -n "$LIBOPENOBEX_LIBS"; then
5212 pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
5214 if test -n "$PKG_CONFIG" && \
5215 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5216 ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; then
5220 pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
5231 if test $pkg_failed = yes; then
5233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5234 _pkg_short_errors_supported=yes
5236 _pkg_short_errors_supported=no
5238 if test $_pkg_short_errors_supported = yes; then
5239 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openobex"`
5241 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openobex"`
5243 # Put the nasty error message in config.log where it belongs
5244 echo "$LIBOPENOBEX_PKG_ERRORS" >&5
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5249 elif test $pkg_failed = untried; then
5252 LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
5253 LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
5254 { echo "$as_me:$LINENO: result: yes" >&5
5255 echo "${ECHO_T}yes" >&6; }
5258 if test $have_obex == "yes"; then
5260 cat >>confdefs.h <<\_ACEOF
5261 #define ENABLE_OBEX 1
5266 { echo "$as_me:$LINENO: checking for BLUEZ" >&5
5267 echo $ECHO_N "checking for BLUEZ... $ECHO_C" >&6; }
5269 if test -n "$PKG_CONFIG"; then
5270 if test -n "$BLUEZ_CFLAGS"; then
5271 pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
5273 if test -n "$PKG_CONFIG" && \
5274 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5275 ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; then
5279 pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
5287 if test -n "$PKG_CONFIG"; then
5288 if test -n "$BLUEZ_LIBS"; then
5289 pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
5291 if test -n "$PKG_CONFIG" && \
5292 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5293 ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; then
5297 pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
5308 if test $pkg_failed = yes; then
5310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5311 _pkg_short_errors_supported=yes
5313 _pkg_short_errors_supported=no
5315 if test $_pkg_short_errors_supported = yes; then
5316 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bluez"`
5318 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bluez"`
5320 # Put the nasty error message in config.log where it belongs
5321 echo "$BLUEZ_PKG_ERRORS" >&5
5323 { echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6; }
5326 elif test $pkg_failed = untried; then
5329 BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
5330 BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
5331 { echo "$as_me:$LINENO: result: yes" >&5
5332 echo "${ECHO_T}yes" >&6; }
5335 if test $have_bluez == "yes"; then
5337 cat >>confdefs.h <<\_ACEOF
5338 #define ENABLE_BLUETOOTH 1
5343 if test "$have_obex" = "yes"; then
5345 ENABLE_OBEX_FALSE='#'
5347 ENABLE_OBEX_TRUE='#'
5351 if test "$have_bluez" = "yes"; then
5352 ENABLE_BLUETOOTH_TRUE=
5353 ENABLE_BLUETOOTH_FALSE='#'
5355 ENABLE_BLUETOOTH_TRUE='#'
5356 ENABLE_BLUETOOTH_FALSE=
5369 # Check whether --with-ca-certificates was given.
5370 if test "${with_ca_certificates+set}" = set; then
5371 withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
5376 # choose default transport (mirrors code in EvolutionSyncClient::createTransportAgent())
5377 if test "$have_libsoup" = "yes"; then
5378 default_transport="libsoup"
5379 elif test "$have_libcurl" = "yes"; then
5380 default_transport="libcurl"
5383 # Check whether --enable-libcurl was given.
5384 if test "${enable_libcurl+set}" = set; then
5385 enableval=$enable_libcurl; if test "$enableval" = "yes"; then
5386 test "$have_libcurl" = "yes" || { { echo "$as_me:$LINENO: error: libcurl not found" >&5
5387 echo "$as_me: error: libcurl not found" >&2;}
5388 { (exit 1); exit 1; }; }
5389 TRANSPORT="$TRANSPORT libcurl"
5390 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5391 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5393 cat >>confdefs.h <<\_ACEOF
5394 #define ENABLE_LIBCURL 1
5398 libcurl_disabled="yes"
5401 if test "$have_libcurl" = "yes" && test "$default_transport" = "libcurl" ; then
5402 TRANSPORT="$TRANSPORT libcurl"
5403 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5404 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5406 cat >>confdefs.h <<\_ACEOF
5407 #define ENABLE_LIBCURL 1
5414 # Check whether --enable-libsoup was given.
5415 if test "${enable_libsoup+set}" = set; then
5416 enableval=$enable_libsoup; if test "$enableval" = "yes"; then
5417 test "$have_libsoup" = "yes" || { { echo "$as_me:$LINENO: error: libsoup not found" >&5
5418 echo "$as_me: error: libsoup not found" >&2;}
5419 { (exit 1); exit 1; }; }
5420 TRANSPORT="$TRANSPORT libsoup"
5421 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5422 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5424 cat >>confdefs.h <<\_ACEOF
5425 #define ENABLE_LIBSOUP 1
5429 libsoup_disabled="yes"
5432 if test "$have_libsoup" = "yes" && test "$default_transport" = "libsoup"; then
5433 TRANSPORT="$TRANSPORT libsoup"
5434 TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5435 TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5437 cat >>confdefs.h <<\_ACEOF
5438 #define ENABLE_LIBSOUP 1
5445 if test ! "$TRANSPORT" &&
5446 test "$libsoup_disabled" != "yes" &&
5447 test "$libcurl_disabled" != "yes" &&
5448 test "$have_bluez" != "yes" ; then
5449 { { echo "$as_me:$LINENO: error: no transport library found, configure with --disable-libcurl --disable-libsoup to continue anyway (only useful if users of libsyncevolution provide transport implementation)" >&5
5450 echo "$as_me: error: no transport library found, configure with --disable-libcurl --disable-libsoup to continue anyway (only useful if users of libsyncevolution provide transport implementation)" >&2;}
5451 { (exit 1); exit 1; }; }
5454 # for libsoup we must specify the SSL certificate file outself
5455 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
5456 # Debian and Red Hat paths
5457 CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
5460 cat >>confdefs.h <<_ACEOF
5461 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
5468 # Check whether --enable-ssl-certificate-check was given.
5469 if test "${enable_ssl_certificate_check+set}" = set; then
5470 enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
5472 enable_ssl_certificate_check="yes"
5475 if test "$enable_ssl_certificate_check" = "yes"; then
5477 cat >>confdefs.h <<\_ACEOF
5478 #define ENABLE_SSL_CERTIFICATE_CHECK 1
5483 # for dbus interface file mangling
5484 # Extract the first word of "xsltproc", so it can be a program name with args.
5485 set dummy xsltproc; ac_word=$2
5486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5488 if test "${ac_cv_path_XSLT+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
5504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 XSLT=$ac_cv_path_XSLT
5515 if test -n "$XSLT"; then
5516 { echo "$as_me:$LINENO: result: $XSLT" >&5
5517 echo "${ECHO_T}$XSLT" >&6; }
5519 { echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6; }
5525 # Check whether --enable-gui was given.
5526 if test "${enable_gui+set}" = set; then
5527 enableval=$enable_gui; if test "$enableval" = "gtk" ; then
5529 elif test "$enableval" = "yes" ; then
5531 elif test "$enableval" = "moblin" ; then
5533 elif test "$enableval" = "no" ; then
5535 elif test "$enableval" = "all" ; then
5538 { { echo "$as_me:$LINENO: error: Unknown gui type: '$enableval'" >&5
5539 echo "$as_me: error: Unknown gui type: '$enableval'" >&2;}
5540 { (exit 1); exit 1; }; }
5548 if test "$enable_gui" != "no"; then
5557 # Check whether --enable-dbus-service was given.
5558 if test "${enable_dbus_service+set}" = set; then
5559 enableval=$enable_dbus_service; enable_dbus_service="$enableval"
5561 if test $enable_gui == "no"; then
5562 enable_dbus_service="no"
5564 enable_dbus_service="yes"
5568 if test "$enable_dbus_service" = "yes"; then
5577 if test $enable_gui != "no" && test $enable_dbus_service == "no"; then
5578 { { echo "$as_me:$LINENO: error: cannot build GUI without building the D-Bus service" >&5
5579 echo "$as_me: error: cannot build GUI without building the D-Bus service" >&2;}
5580 { (exit 1); exit 1; }; }
5585 { echo "$as_me:$LINENO: checking for KEYRING" >&5
5586 echo $ECHO_N "checking for KEYRING... $ECHO_C" >&6; }
5588 if test -n "$PKG_CONFIG"; then
5589 if test -n "$KEYRING_CFLAGS"; then
5590 pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
5592 if test -n "$PKG_CONFIG" && \
5593 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5594 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; then
5598 pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
5606 if test -n "$PKG_CONFIG"; then
5607 if test -n "$KEYRING_LIBS"; then
5608 pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
5610 if test -n "$PKG_CONFIG" && \
5611 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5612 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; then
5616 pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
5627 if test $pkg_failed = yes; then
5629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5630 _pkg_short_errors_supported=yes
5632 _pkg_short_errors_supported=no
5634 if test $_pkg_short_errors_supported = yes; then
5635 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1"`
5637 KEYRING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1"`
5639 # Put the nasty error message in config.log where it belongs
5640 echo "$KEYRING_PKG_ERRORS" >&5
5642 { echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6; }
5645 elif test $pkg_failed = untried; then
5648 KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
5649 KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
5650 { echo "$as_me:$LINENO: result: yes" >&5
5651 echo "${ECHO_T}yes" >&6; }
5654 if test $HAVE_KEYRING == "yes"; then
5656 cat >>confdefs.h <<\_ACEOF
5657 #define USE_GNOME_KEYRING 1
5662 { echo "$as_me:$LINENO: checking for KEYRING_2_20" >&5
5663 echo $ECHO_N "checking for KEYRING_2_20... $ECHO_C" >&6; }
5665 if test -n "$PKG_CONFIG"; then
5666 if test -n "$KEYRING_2_20_CFLAGS"; then
5667 pkg_cv_KEYRING_2_20_CFLAGS="$KEYRING_2_20_CFLAGS"
5669 if test -n "$PKG_CONFIG" && \
5670 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
5671 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; then
5675 pkg_cv_KEYRING_2_20_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20 " 2>/dev/null`
5683 if test -n "$PKG_CONFIG"; then
5684 if test -n "$KEYRING_2_20_LIBS"; then
5685 pkg_cv_KEYRING_2_20_LIBS="$KEYRING_2_20_LIBS"
5687 if test -n "$PKG_CONFIG" && \
5688 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
5689 ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; then
5693 pkg_cv_KEYRING_2_20_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20 " 2>/dev/null`
5704 if test $pkg_failed = yes; then
5706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5707 _pkg_short_errors_supported=yes
5709 _pkg_short_errors_supported=no
5711 if test $_pkg_short_errors_supported = yes; then
5712 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
5714 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
5716 # Put the nasty error message in config.log where it belongs
5717 echo "$KEYRING_2_20_PKG_ERRORS" >&5
5719 { echo "$as_me:$LINENO: result: no" >&5
5720 echo "${ECHO_T}no" >&6; }
5722 elif test $pkg_failed = untried; then
5725 KEYRING_2_20_CFLAGS=$pkg_cv_KEYRING_2_20_CFLAGS
5726 KEYRING_2_20_LIBS=$pkg_cv_KEYRING_2_20_LIBS
5727 { echo "$as_me:$LINENO: result: yes" >&5
5728 echo "${ECHO_T}yes" >&6; }
5731 if test $KEYRING220 == "yes"; then
5733 cat >>confdefs.h <<\_ACEOF
5734 #define GNOME_KEYRING_220 1
5740 if test $enable_dbus_service == "yes"; then
5743 { echo "$as_me:$LINENO: checking for DBUS_GLIB" >&5
5744 echo $ECHO_N "checking for DBUS_GLIB... $ECHO_C" >&6; }
5746 if test -n "$PKG_CONFIG"; then
5747 if test -n "$DBUS_GLIB_CFLAGS"; then
5748 pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
5750 if test -n "$PKG_CONFIG" && \
5751 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
5752 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; then
5756 pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
5764 if test -n "$PKG_CONFIG"; then
5765 if test -n "$DBUS_GLIB_LIBS"; then
5766 pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
5768 if test -n "$PKG_CONFIG" && \
5769 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
5770 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; then
5774 pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
5785 if test $pkg_failed = yes; then
5787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5788 _pkg_short_errors_supported=yes
5790 _pkg_short_errors_supported=no
5792 if test $_pkg_short_errors_supported = yes; then
5793 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
5795 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
5797 # Put the nasty error message in config.log where it belongs
5798 echo "$DBUS_GLIB_PKG_ERRORS" >&5
5800 { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
5802 $DBUS_GLIB_PKG_ERRORS
5804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5805 installed software in a non-standard prefix.
5807 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
5808 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
5809 See the pkg-config man page for more details.
5811 echo "$as_me: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
5813 $DBUS_GLIB_PKG_ERRORS
5815 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5816 installed software in a non-standard prefix.
5818 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
5819 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
5820 See the pkg-config man page for more details.
5822 { (exit 1); exit 1; }; }
5823 elif test $pkg_failed = untried; then
5824 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5825 is in your PATH or set the PKG_CONFIG environment variable to the full
5828 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
5829 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
5830 See the pkg-config man page for more details.
5832 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5833 See \`config.log' for more details." >&5
5834 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5835 is in your PATH or set the PKG_CONFIG environment variable to the full
5838 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
5839 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
5840 See the pkg-config man page for more details.
5842 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5843 See \`config.log' for more details." >&2;}
5844 { (exit 1); exit 1; }; }
5846 DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
5847 DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
5848 { echo "$as_me:$LINENO: result: yes" >&5
5849 echo "${ECHO_T}yes" >&6; }
5852 # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
5853 set dummy dbus-binding-tool; ac_word=$2
5854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5856 if test "${ac_cv_path_DBUS_BINDING_TOOL+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 case $DBUS_BINDING_TOOL in
5861 ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
5883 if test -n "$DBUS_BINDING_TOOL"; then
5884 { echo "$as_me:$LINENO: result: $DBUS_BINDING_TOOL" >&5
5885 echo "${ECHO_T}$DBUS_BINDING_TOOL" >&6; }
5887 { echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6; }
5892 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
5893 set dummy glib-genmarshal; ac_word=$2
5894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5896 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 case $GLIB_GENMARSHAL in
5901 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
5912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
5923 if test -n "$GLIB_GENMARSHAL"; then
5924 { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
5925 echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; }
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5932 if test -z "$XSLT"; then
5933 { { echo "$as_me:$LINENO: error: xsltproc not found, is required for D-Bus service" >&5
5934 echo "$as_me: error: xsltproc not found, is required for D-Bus service" >&2;}
5935 { (exit 1); exit 1; }; }
5939 { echo "$as_me:$LINENO: checking for DBUS" >&5
5940 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
5942 if test -n "$PKG_CONFIG"; then
5943 if test -n "$DBUS_CFLAGS"; then
5944 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
5946 if test -n "$PKG_CONFIG" && \
5947 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
5948 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; then
5952 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
5960 if test -n "$PKG_CONFIG"; then
5961 if test -n "$DBUS_LIBS"; then
5962 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
5964 if test -n "$PKG_CONFIG" && \
5965 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
5966 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; then
5970 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
5981 if test $pkg_failed = yes; then
5983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5984 _pkg_short_errors_supported=yes
5986 _pkg_short_errors_supported=no
5988 if test $_pkg_short_errors_supported = yes; then
5989 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
5991 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
5993 # Put the nasty error message in config.log where it belongs
5994 echo "$DBUS_PKG_ERRORS" >&5
5996 { echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6; }
5998 { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
5999 echo "$as_me: error: libdbus-1 is required" >&2;}
6000 { (exit 1); exit 1; }; }
6001 elif test $pkg_failed = untried; then
6002 { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
6003 echo "$as_me: error: libdbus-1 is required" >&2;}
6004 { (exit 1); exit 1; }; }
6006 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
6007 DBUS_LIBS=$pkg_cv_DBUS_LIBS
6008 { echo "$as_me:$LINENO: result: yes" >&5
6009 echo "${ECHO_T}yes" >&6; }
6012 { echo "$as_me:$LINENO: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
6013 echo $ECHO_N "checking for dbus_watch_get_unix_fd in -ldbus-1... $ECHO_C" >&6; }
6014 if test "${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 ac_check_lib_save_LIBS=$LIBS
6018 LIBS="-ldbus-1 $LIBS"
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6026 /* Override any GCC internal prototype to avoid an error.
6027 Use char because int might match the return type of a GCC
6028 builtin and then its argument prototype would still apply. */
6032 char dbus_watch_get_unix_fd ();
6036 return dbus_watch_get_unix_fd ();
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (ac_try="$ac_link"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_link") 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && {
6055 test -z "$ac_c_werror_flag" ||
6056 test ! -s conftest.err
6057 } && test -s conftest$ac_exeext &&
6058 $as_test_x conftest$ac_exeext; then
6059 ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
6067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6068 conftest$ac_exeext conftest.$ac_ext
6069 LIBS=$ac_check_lib_save_LIBS
6071 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
6072 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
6073 if test $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd = yes; then
6077 cat >>confdefs.h <<\_ACEOF
6078 #define NEED_DBUS_WATCH_GET_UNIX_FD 1
6093 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
6096 cat >>confdefs.h <<_ACEOF
6097 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
6101 # decide which sync-ui(s) we are building:
6102 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
6104 all) GUI_PROGRAMS='sync-ui-gtk${EXEEXT} sync-ui-moblin${EXEEXT}'; GUI_DESKTOP_FILES="sync-gtk.desktop sync-moblin.desktop";;
6105 gtk|moblin) GUI_PROGRAMS='sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="sync.desktop";;
6106 no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
6107 *) { { echo "$as_me:$LINENO: error: Unknown enable_gui type: '$enable_gui'" >&5
6108 echo "$as_me: error: Unknown enable_gui type: '$enable_gui'" >&2;}
6109 { (exit 1); exit 1; }; }
6112 if test $enable_gui != "no"; then
6113 gui_modules="glib-2.0 dbus-glib-1 >= 0.60 gtk+-2.0 libglade-2.0 gio-2.0"
6114 if test $enable_gui == "moblin"; then
6116 cat >>confdefs.h <<\_ACEOF
6117 #define USE_MOBLIN_UX 1
6124 { echo "$as_me:$LINENO: checking for UNIQUE" >&5
6125 echo $ECHO_N "checking for UNIQUE... $ECHO_C" >&6; }
6127 if test -n "$PKG_CONFIG"; then
6128 if test -n "$UNIQUE_CFLAGS"; then
6129 pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
6131 if test -n "$PKG_CONFIG" && \
6132 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
6133 ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; then
6137 pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
6145 if test -n "$PKG_CONFIG"; then
6146 if test -n "$UNIQUE_LIBS"; then
6147 pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
6149 if test -n "$PKG_CONFIG" && \
6150 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
6151 ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; then
6155 pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
6166 if test $pkg_failed = yes; then
6168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6169 _pkg_short_errors_supported=yes
6171 _pkg_short_errors_supported=no
6173 if test $_pkg_short_errors_supported = yes; then
6174 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "unique-1.0"`
6176 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "unique-1.0"`
6178 # Put the nasty error message in config.log where it belongs
6179 echo "$UNIQUE_PKG_ERRORS" >&5
6181 { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6184 elif test $pkg_failed = untried; then
6187 UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
6188 UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
6189 { echo "$as_me:$LINENO: result: yes" >&5
6190 echo "${ECHO_T}yes" >&6; }
6193 if test $have_unique == "yes"; then
6194 gui_modules="$gui_modules unique-1.0"
6196 cat >>confdefs.h <<\_ACEOF
6197 #define ENABLE_UNIQUE 1
6203 { echo "$as_me:$LINENO: checking for GUI" >&5
6204 echo $ECHO_N "checking for GUI... $ECHO_C" >&6; }
6206 if test -n "$PKG_CONFIG"; then
6207 if test -n "$GUI_CFLAGS"; then
6208 pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
6210 if test -n "$PKG_CONFIG" && \
6211 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
6212 ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; then
6216 pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
6224 if test -n "$PKG_CONFIG"; then
6225 if test -n "$GUI_LIBS"; then
6226 pkg_cv_GUI_LIBS="$GUI_LIBS"
6228 if test -n "$PKG_CONFIG" && \
6229 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
6230 ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; then
6234 pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
6245 if test $pkg_failed = yes; then
6247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6248 _pkg_short_errors_supported=yes
6250 _pkg_short_errors_supported=no
6252 if test $_pkg_short_errors_supported = yes; then
6253 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$gui_modules"`
6255 GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$gui_modules"`
6257 # Put the nasty error message in config.log where it belongs
6258 echo "$GUI_PKG_ERRORS" >&5
6260 { { echo "$as_me:$LINENO: error: Package requirements ($gui_modules) were not met:
6264 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6265 installed software in a non-standard prefix.
6267 Alternatively, you may set the environment variables GUI_CFLAGS
6268 and GUI_LIBS to avoid the need to call pkg-config.
6269 See the pkg-config man page for more details.
6271 echo "$as_me: error: Package requirements ($gui_modules) were not met:
6275 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6276 installed software in a non-standard prefix.
6278 Alternatively, you may set the environment variables GUI_CFLAGS
6279 and GUI_LIBS to avoid the need to call pkg-config.
6280 See the pkg-config man page for more details.
6282 { (exit 1); exit 1; }; }
6283 elif test $pkg_failed = untried; then
6284 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6285 is in your PATH or set the PKG_CONFIG environment variable to the full
6288 Alternatively, you may set the environment variables GUI_CFLAGS
6289 and GUI_LIBS to avoid the need to call pkg-config.
6290 See the pkg-config man page for more details.
6292 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6293 See \`config.log' for more details." >&5
6294 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6295 is in your PATH or set the PKG_CONFIG environment variable to the full
6298 Alternatively, you may set the environment variables GUI_CFLAGS
6299 and GUI_LIBS to avoid the need to call pkg-config.
6300 See the pkg-config man page for more details.
6302 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6303 See \`config.log' for more details." >&2;}
6304 { (exit 1); exit 1; }; }
6306 GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
6307 GUI_LIBS=$pkg_cv_GUI_LIBS
6308 { echo "$as_me:$LINENO: result: yes" >&5
6309 echo "${ECHO_T}yes" >&6; }
6313 # Extract the first word of "gtk-builder-convert", so it can be a program name with args.
6314 set dummy gtk-builder-convert; ac_word=$2
6315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6317 if test "${ac_cv_path_GTK_BUILDER_CONV+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 case $GTK_BUILDER_CONV in
6322 ac_cv_path_GTK_BUILDER_CONV="$GTK_BUILDER_CONV" # Let the user override the test with a path.
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_path_GTK_BUILDER_CONV="$as_dir/$ac_word$ac_exec_ext"
6333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 GTK_BUILDER_CONV=$ac_cv_path_GTK_BUILDER_CONV
6344 if test -n "$GTK_BUILDER_CONV"; then
6345 { echo "$as_me:$LINENO: result: $GTK_BUILDER_CONV" >&5
6346 echo "${ECHO_T}$GTK_BUILDER_CONV" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6354 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6355 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6356 # Check whether --enable-nls was given.
6357 if test "${enable_nls+set}" = set; then
6358 enableval=$enable_nls; USE_NLS=$enableval
6363 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6364 echo "${ECHO_T}$USE_NLS" >&6; }
6369 case "$am__api_version" in
6371 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
6372 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
6373 { (exit 1); exit 1; }; }
6379 if test -n "0.37.1"; then
6380 { echo "$as_me:$LINENO: checking for intltool >= 0.37.1" >&5
6381 echo $ECHO_N "checking for intltool >= 0.37.1... $ECHO_C" >&6; }
6383 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6384 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6385 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6387 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6388 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
6389 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6390 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.37.1 or later." >&5
6391 echo "$as_me: error: Your intltool is too old. You need intltool 0.37.1 or later." >&2;}
6392 { (exit 1); exit 1; }; }
6395 # Extract the first word of "intltool-update", so it can be a program name with args.
6396 set dummy intltool-update; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 case $INTLTOOL_UPDATE in
6404 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6426 if test -n "$INTLTOOL_UPDATE"; then
6427 { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
6428 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
6430 { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6435 # Extract the first word of "intltool-merge", so it can be a program name with args.
6436 set dummy intltool-merge; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 case $INTLTOOL_MERGE in
6444 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6466 if test -n "$INTLTOOL_MERGE"; then
6467 { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
6468 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
6470 { echo "$as_me:$LINENO: result: no" >&5
6471 echo "${ECHO_T}no" >&6; }
6475 # Extract the first word of "intltool-extract", so it can be a program name with args.
6476 set dummy intltool-extract; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 case $INTLTOOL_EXTRACT in
6484 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6506 if test -n "$INTLTOOL_EXTRACT"; then
6507 { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
6508 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
6510 { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6515 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6516 { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
6517 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
6518 { (exit 1); exit 1; }; }
6521 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6522 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6523 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6524 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6525 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
6526 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6527 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6528 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6529 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6530 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6531 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6532 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
6533 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6534 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6535 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6536 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6537 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6538 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6539 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6637 # Check the gettext tools to make sure they are GNU
6638 # Extract the first word of "xgettext", so it can be a program name with args.
6639 set dummy xgettext; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 XGETTEXT=$ac_cv_path_XGETTEXT
6669 if test -n "$XGETTEXT"; then
6670 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6671 echo "${ECHO_T}$XGETTEXT" >&6; }
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6678 # Extract the first word of "msgmerge", so it can be a program name with args.
6679 set dummy msgmerge; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 MSGMERGE=$ac_cv_path_MSGMERGE
6709 if test -n "$MSGMERGE"; then
6710 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6711 echo "${ECHO_T}$MSGMERGE" >&6; }
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6718 # Extract the first word of "msgfmt", so it can be a program name with args.
6719 set dummy msgfmt; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_path_MSGFMT+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 MSGFMT=$ac_cv_path_MSGFMT
6749 if test -n "$MSGFMT"; then
6750 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6751 echo "${ECHO_T}$MSGFMT" >&6; }
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6759 set dummy gmsgfmt; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6789 GMSGFMT=$ac_cv_path_GMSGFMT
6790 if test -n "$GMSGFMT"; then
6791 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6792 echo "${ECHO_T}$GMSGFMT" >&6; }
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6799 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6800 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6801 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6802 { (exit 1); exit 1; }; }
6804 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6805 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6806 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6807 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6808 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6809 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6810 { (exit 1); exit 1; }; }
6813 # Extract the first word of "perl", so it can be a program name with args.
6814 set dummy perl; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 case $INTLTOOL_PERL in
6822 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6844 if test -n "$INTLTOOL_PERL"; then
6845 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6846 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 if test -z "$INTLTOOL_PERL"; then
6854 { { echo "$as_me:$LINENO: error: perl not found" >&5
6855 echo "$as_me: error: perl not found" >&2;}
6856 { (exit 1); exit 1; }; }
6858 { echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
6859 echo $ECHO_N "checking for perl >= 5.8.1... $ECHO_C" >&6; }
6860 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
6861 if test $? -ne 0; then
6862 { { echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
6863 echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
6864 { (exit 1); exit 1; }; }
6866 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
6867 { echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
6868 echo "${ECHO_T}$IT_PERL_VERSION" >&6; }
6870 if test "x" != "xno-xml"; then
6871 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
6872 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
6873 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6874 { echo "$as_me:$LINENO: result: ok" >&5
6875 echo "${ECHO_T}ok" >&6; }
6877 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
6878 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
6879 { (exit 1); exit 1; }; }
6883 # Substitute ALL_LINGUAS so we can use it in po/Makefile
6886 # Set DATADIRNAME correctly if it is not set yet
6887 # (copied from glib-gettext.m4)
6888 if test -z "$DATADIRNAME"; then
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6899 extern int _nl_msg_cat_cntr;
6900 return _nl_msg_cat_cntr
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest$ac_exeext &&
6922 $as_test_x conftest$ac_exeext; then
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6930 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6931 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6932 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6943 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6945 /* System header to define __stub macros and hopefully few prototypes,
6946 which can conflict with char bind_textdomain_codeset (); below.
6947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6948 <limits.h> exists even on freestanding compilers. */
6951 # include <limits.h>
6953 # include <assert.h>
6956 #undef bind_textdomain_codeset
6958 /* Override any GCC internal prototype to avoid an error.
6959 Use char because int might match the return type of a GCC
6960 builtin and then its argument prototype would still apply. */
6964 char bind_textdomain_codeset ();
6965 /* The GNU C library defines this for functions which it implements
6966 to always fail with ENOSYS. Some functions are actually named
6967 something starting with __ and the normal name is an alias. */
6968 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6975 return bind_textdomain_codeset ();
6980 rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (ac_try="$ac_link"
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_link") 2>conftest.er1
6989 grep -v '^ *+' conftest.er1 >conftest.err
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest$ac_exeext &&
6997 $as_test_x conftest$ac_exeext; then
6998 ac_cv_func_bind_textdomain_codeset=yes
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_cv_func_bind_textdomain_codeset=no
7006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7007 conftest$ac_exeext conftest.$ac_ext
7009 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7010 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7011 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7025 conftest$ac_exeext conftest.$ac_ext
7032 GETTEXT_PACKAGE=syncevolution
7034 cat >>confdefs.h <<_ACEOF
7035 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7040 for ac_header in locale.h
7042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_res=`eval echo '${'$as_ac_Header'}'`
7050 { echo "$as_me:$LINENO: result: $ac_res" >&5
7051 echo "${ECHO_T}$ac_res" >&6; }
7053 # Is the header compilable?
7054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7063 #include <$ac_header>
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7074 grep -v '^ *+' conftest.er1 >conftest.err
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_header_compiler=yes
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_header_compiler=no
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7092 echo "${ECHO_T}$ac_header_compiler" >&6; }
7094 # Is the header present?
7095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #include <$ac_header>
7105 if { (ac_try="$ac_cpp conftest.$ac_ext"
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null && {
7118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7121 ac_header_preproc=yes
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 ac_header_preproc=no
7129 rm -f conftest.err conftest.$ac_ext
7130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7131 echo "${ECHO_T}$ac_header_preproc" >&6; }
7133 # So? What about this header?
7134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7140 ac_header_preproc=yes
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 eval "$as_ac_Header=\$ac_header_preproc"
7165 ac_res=`eval echo '${'$as_ac_Header'}'`
7166 { echo "$as_me:$LINENO: result: $ac_res" >&5
7167 echo "${ECHO_T}$ac_res" >&6; }
7170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7171 cat >>confdefs.h <<_ACEOF
7172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7179 if test $ac_cv_header_locale_h = yes; then
7180 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7181 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
7182 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 cat >conftest.$ac_ext <<_ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7200 rm -f conftest.$ac_objext conftest$ac_exeext
7201 if { (ac_try="$ac_link"
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_link") 2>conftest.er1
7209 grep -v '^ *+' conftest.er1 >conftest.err
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest$ac_exeext &&
7217 $as_test_x conftest$ac_exeext; then
7218 am_cv_val_LC_MESSAGES=yes
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 am_cv_val_LC_MESSAGES=no
7226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7227 conftest$ac_exeext conftest.$ac_ext
7229 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7230 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
7231 if test $am_cv_val_LC_MESSAGES = yes; then
7233 cat >>confdefs.h <<\_ACEOF
7234 #define HAVE_LC_MESSAGES 1
7242 gt_cv_have_gettext=no
7248 if test "${ac_cv_header_libintl_h+set}" = set; then
7249 { echo "$as_me:$LINENO: checking for libintl.h" >&5
7250 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7251 if test "${ac_cv_header_libintl_h+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7255 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7257 # Is the header compilable?
7258 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
7259 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 $ac_includes_default
7267 #include <libintl.h>
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_compile") 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && {
7283 test -z "$ac_c_werror_flag" ||
7284 test ! -s conftest.err
7285 } && test -s conftest.$ac_objext; then
7286 ac_header_compiler=yes
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 ac_header_compiler=no
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7296 echo "${ECHO_T}$ac_header_compiler" >&6; }
7298 # Is the header present?
7299 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
7300 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <libintl.h>
7309 if { (ac_try="$ac_cpp conftest.$ac_ext"
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } >/dev/null && {
7322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7325 ac_header_preproc=yes
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 ac_header_preproc=no
7333 rm -f conftest.err conftest.$ac_ext
7334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7335 echo "${ECHO_T}$ac_header_preproc" >&6; }
7337 # So? What about this header?
7338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7340 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7341 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7343 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7344 ac_header_preproc=yes
7347 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7352 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7354 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7356 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7358 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7362 { echo "$as_me:$LINENO: checking for libintl.h" >&5
7363 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7364 if test "${ac_cv_header_libintl_h+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_cv_header_libintl_h=$ac_header_preproc
7369 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7370 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7373 if test $ac_cv_header_libintl_h = yes; then
7374 gt_cv_func_dgettext_libintl="no"
7375 libintl_extra_libs=""
7378 # First check in libc
7380 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
7381 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
7382 if test "${gt_cv_func_ngettext_libc+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 cat >conftest.$ac_ext <<_ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7392 #include <libintl.h>
7397 return !ngettext ("","", 1)
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_link") 2>conftest.er1
7411 grep -v '^ *+' conftest.er1 >conftest.err
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest$ac_exeext &&
7419 $as_test_x conftest$ac_exeext; then
7420 gt_cv_func_ngettext_libc=yes
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 gt_cv_func_ngettext_libc=no
7428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7429 conftest$ac_exeext conftest.$ac_ext
7432 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
7433 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
7435 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7436 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7437 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
7438 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 cat >conftest.$ac_ext <<_ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7448 #include <libintl.h>
7453 return !dgettext ("","")
7458 rm -f conftest.$ac_objext conftest$ac_exeext
7459 if { (ac_try="$ac_link"
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 (eval "$ac_link") 2>conftest.er1
7467 grep -v '^ *+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } && {
7472 test -z "$ac_c_werror_flag" ||
7473 test ! -s conftest.err
7474 } && test -s conftest$ac_exeext &&
7475 $as_test_x conftest$ac_exeext; then
7476 gt_cv_func_dgettext_libc=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 gt_cv_func_dgettext_libc=no
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485 conftest$ac_exeext conftest.$ac_ext
7488 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7489 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
7492 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7494 for ac_func in bind_textdomain_codeset
7496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7510 #define $ac_func innocuous_$ac_func
7512 /* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char $ac_func (); below.
7514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515 <limits.h> exists even on freestanding compilers. */
7518 # include <limits.h>
7520 # include <assert.h>
7525 /* Override any GCC internal prototype to avoid an error.
7526 Use char because int might match the return type of a GCC
7527 builtin and then its argument prototype would still apply. */
7532 /* The GNU C library defines this for functions which it implements
7533 to always fail with ENOSYS. Some functions are actually named
7534 something starting with __ and the normal name is an alias. */
7535 #if defined __stub_$ac_func || defined __stub___$ac_func
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_link") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest$ac_exeext &&
7564 $as_test_x conftest$ac_exeext; then
7565 eval "$as_ac_var=yes"
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 eval "$as_ac_var=no"
7573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7574 conftest$ac_exeext conftest.$ac_ext
7576 ac_res=`eval echo '${'$as_ac_var'}'`
7577 { echo "$as_me:$LINENO: result: $ac_res" >&5
7578 echo "${ECHO_T}$ac_res" >&6; }
7579 if test `eval echo '${'$as_ac_var'}'` = yes; then
7580 cat >>confdefs.h <<_ACEOF
7581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7590 # If we don't have everything we want, check in libintl
7592 if test "$gt_cv_func_dgettext_libc" != "yes" \
7593 || test "$gt_cv_func_ngettext_libc" != "yes" \
7594 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7596 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7597 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
7598 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_check_lib_save_LIBS=$LIBS
7603 cat >conftest.$ac_ext <<_ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7610 /* Override any GCC internal prototype to avoid an error.
7611 Use char because int might match the return type of a GCC
7612 builtin and then its argument prototype would still apply. */
7616 char bindtextdomain ();
7620 return bindtextdomain ();
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (ac_try="$ac_link"
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_link") 2>conftest.er1
7634 grep -v '^ *+' conftest.er1 >conftest.err
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest$ac_exeext &&
7642 $as_test_x conftest$ac_exeext; then
7643 ac_cv_lib_intl_bindtextdomain=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_cv_lib_intl_bindtextdomain=no
7651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7652 conftest$ac_exeext conftest.$ac_ext
7653 LIBS=$ac_check_lib_save_LIBS
7655 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7656 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
7657 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7658 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7659 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7660 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 ac_check_lib_save_LIBS=$LIBS
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7672 /* Override any GCC internal prototype to avoid an error.
7673 Use char because int might match the return type of a GCC
7674 builtin and then its argument prototype would still apply. */
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (ac_try="$ac_link"
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_link") 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest$ac_exeext &&
7704 $as_test_x conftest$ac_exeext; then
7705 ac_cv_lib_intl_ngettext=yes
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_cv_lib_intl_ngettext=no
7713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7714 conftest$ac_exeext conftest.$ac_ext
7715 LIBS=$ac_check_lib_save_LIBS
7717 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7718 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7719 if test $ac_cv_lib_intl_ngettext = yes; then
7720 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7721 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
7722 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_check_lib_save_LIBS=$LIBS
7727 cat >conftest.$ac_ext <<_ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7734 /* Override any GCC internal prototype to avoid an error.
7735 Use char because int might match the return type of a GCC
7736 builtin and then its argument prototype would still apply. */
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_link") 2>conftest.er1
7758 grep -v '^ *+' conftest.er1 >conftest.err
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest$ac_exeext &&
7766 $as_test_x conftest$ac_exeext; then
7767 ac_cv_lib_intl_dgettext=yes
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7772 ac_cv_lib_intl_dgettext=no
7775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7776 conftest$ac_exeext conftest.$ac_ext
7777 LIBS=$ac_check_lib_save_LIBS
7779 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7780 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
7781 if test $ac_cv_lib_intl_dgettext = yes; then
7782 gt_cv_func_dgettext_libintl=yes
7790 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7791 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7792 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
7793 { echo "$as_me:$LINENO: result: " >&5
7794 echo "${ECHO_T}" >&6; }
7795 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7796 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7797 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 ac_check_lib_save_LIBS=$LIBS
7801 LIBS="-lintl -liconv $LIBS"
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7809 /* Override any GCC internal prototype to avoid an error.
7810 Use char because int might match the return type of a GCC
7811 builtin and then its argument prototype would still apply. */
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (ac_try="$ac_link"
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_link") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1 >conftest.err
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest$ac_exeext &&
7841 $as_test_x conftest$ac_exeext; then
7842 ac_cv_lib_intl_ngettext=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ac_cv_lib_intl_ngettext=no
7850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7851 conftest$ac_exeext conftest.$ac_ext
7852 LIBS=$ac_check_lib_save_LIBS
7854 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7855 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7856 if test $ac_cv_lib_intl_ngettext = yes; then
7857 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7858 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
7859 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_check_lib_save_LIBS=$LIBS
7863 LIBS="-lintl -liconv $LIBS"
7864 cat >conftest.$ac_ext <<_ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7871 /* Override any GCC internal prototype to avoid an error.
7872 Use char because int might match the return type of a GCC
7873 builtin and then its argument prototype would still apply. */
7881 return dcgettext ();
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (ac_try="$ac_link"
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_link") 2>conftest.er1
7895 grep -v '^ *+' conftest.er1 >conftest.err
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } && {
7900 test -z "$ac_c_werror_flag" ||
7901 test ! -s conftest.err
7902 } && test -s conftest$ac_exeext &&
7903 $as_test_x conftest$ac_exeext; then
7904 ac_cv_lib_intl_dcgettext=yes
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_cv_lib_intl_dcgettext=no
7912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_lib_save_LIBS
7916 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7917 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
7918 if test $ac_cv_lib_intl_dcgettext = yes; then
7919 gt_cv_func_dgettext_libintl=yes
7920 libintl_extra_libs=-liconv
7932 # If we found libintl, then check in it for bind_textdomain_codeset();
7933 # we'll prefer libc if neither have bind_textdomain_codeset(),
7934 # and both have dgettext and ngettext
7936 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7937 glib_save_LIBS="$LIBS"
7938 LIBS="$LIBS -lintl $libintl_extra_libs"
7939 unset ac_cv_func_bind_textdomain_codeset
7941 for ac_func in bind_textdomain_codeset
7943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 cat >conftest.$ac_ext <<_ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7957 #define $ac_func innocuous_$ac_func
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char $ac_func (); below.
7961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7962 <limits.h> exists even on freestanding compilers. */
7965 # include <limits.h>
7967 # include <assert.h>
7972 /* Override any GCC internal prototype to avoid an error.
7973 Use char because int might match the return type of a GCC
7974 builtin and then its argument prototype would still apply. */
7979 /* The GNU C library defines this for functions which it implements
7980 to always fail with ENOSYS. Some functions are actually named
7981 something starting with __ and the normal name is an alias. */
7982 #if defined __stub_$ac_func || defined __stub___$ac_func
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (ac_try="$ac_link"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_link") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest$ac_exeext &&
8011 $as_test_x conftest$ac_exeext; then
8012 eval "$as_ac_var=yes"
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 eval "$as_ac_var=no"
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021 conftest$ac_exeext conftest.$ac_ext
8023 ac_res=`eval echo '${'$as_ac_var'}'`
8024 { echo "$as_me:$LINENO: result: $ac_res" >&5
8025 echo "${ECHO_T}$ac_res" >&6; }
8026 if test `eval echo '${'$as_ac_var'}'` = yes; then
8027 cat >>confdefs.h <<_ACEOF
8028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8034 LIBS="$glib_save_LIBS"
8036 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8037 gt_cv_func_dgettext_libc=no
8039 if test "$gt_cv_func_dgettext_libc" = "yes" \
8040 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8041 gt_cv_func_dgettext_libintl=no
8047 if test "$gt_cv_func_dgettext_libc" = "yes" \
8048 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8049 gt_cv_have_gettext=yes
8052 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8053 INTLLIBS="-lintl $libintl_extra_libs"
8056 if test "$gt_cv_have_gettext" = "yes"; then
8058 cat >>confdefs.h <<\_ACEOF
8059 #define HAVE_GETTEXT 1
8062 # Extract the first word of "msgfmt", so it can be a program name with args.
8063 set dummy msgfmt; ac_word=$2
8064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8066 if test "${ac_cv_path_MSGFMT+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8075 for ac_dir in $PATH; do
8076 test -z "$ac_dir" && ac_dir=.
8077 if test -f $ac_dir/$ac_word; then
8078 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8079 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8085 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8089 MSGFMT="$ac_cv_path_MSGFMT"
8090 if test "$MSGFMT" != "no"; then
8091 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8092 echo "${ECHO_T}$MSGFMT" >&6; }
8094 { echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6; }
8097 if test "$MSGFMT" != "no"; then
8098 glib_save_LIBS="$LIBS"
8099 LIBS="$LIBS $INTLLIBS"
8101 for ac_func in dcgettext
8103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8117 #define $ac_func innocuous_$ac_func
8119 /* System header to define __stub macros and hopefully few prototypes,
8120 which can conflict with char $ac_func (); below.
8121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8122 <limits.h> exists even on freestanding compilers. */
8125 # include <limits.h>
8127 # include <assert.h>
8132 /* Override any GCC internal prototype to avoid an error.
8133 Use char because int might match the return type of a GCC
8134 builtin and then its argument prototype would still apply. */
8139 /* The GNU C library defines this for functions which it implements
8140 to always fail with ENOSYS. Some functions are actually named
8141 something starting with __ and the normal name is an alias. */
8142 #if defined __stub_$ac_func || defined __stub___$ac_func
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>conftest.er1
8163 grep -v '^ *+' conftest.er1 >conftest.err
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest$ac_exeext &&
8171 $as_test_x conftest$ac_exeext; then
8172 eval "$as_ac_var=yes"
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 eval "$as_ac_var=no"
8180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8181 conftest$ac_exeext conftest.$ac_ext
8183 ac_res=`eval echo '${'$as_ac_var'}'`
8184 { echo "$as_me:$LINENO: result: $ac_res" >&5
8185 echo "${ECHO_T}$ac_res" >&6; }
8186 if test `eval echo '${'$as_ac_var'}'` = yes; then
8187 cat >>confdefs.h <<_ACEOF
8188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8195 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
8196 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
8197 cat >conftest.foo <<_ACEOF
8201 "Content-Type: text/plain; charset=UTF-8\n"
8202 "Project-Id-Version: test 1.0\n"
8203 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8204 "Last-Translator: test <foo@bar.xx>\n"
8205 "Language-Team: C <LL@li.org>\n"
8206 "MIME-Version: 1.0\n"
8207 "Content-Transfer-Encoding: 8bit\n"
8210 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
8211 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; then
8215 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
8216 echo "${ECHO_T}yes" >&6; }
8217 else { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8219 echo "$as_me: failed input was:" >&5
8220 sed 's/^/| /' conftest.foo >&5
8223 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8224 set dummy gmsgfmt; ac_word=$2
8225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8254 GMSGFMT=$ac_cv_path_GMSGFMT
8255 if test -n "$GMSGFMT"; then
8256 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8257 echo "${ECHO_T}$GMSGFMT" >&6; }
8259 { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8264 # Extract the first word of "xgettext", so it can be a program name with args.
8265 set dummy xgettext; ac_word=$2
8266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8268 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8277 for ac_dir in $PATH; do
8278 test -z "$ac_dir" && ac_dir=.
8279 if test -f $ac_dir/$ac_word; then
8280 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8281 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8287 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8291 XGETTEXT="$ac_cv_path_XGETTEXT"
8292 if test "$XGETTEXT" != ":"; then
8293 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8294 echo "${ECHO_T}$XGETTEXT" >&6; }
8296 { echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6; }
8300 cat >conftest.$ac_ext <<_ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8310 extern int _nl_msg_cat_cntr;
8311 return _nl_msg_cat_cntr
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_link") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest$ac_exeext &&
8333 $as_test_x conftest$ac_exeext; then
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8342 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8343 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
8344 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8355 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8357 /* System header to define __stub macros and hopefully few prototypes,
8358 which can conflict with char bind_textdomain_codeset (); below.
8359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8360 <limits.h> exists even on freestanding compilers. */
8363 # include <limits.h>
8365 # include <assert.h>
8368 #undef bind_textdomain_codeset
8370 /* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8376 char bind_textdomain_codeset ();
8377 /* The GNU C library defines this for functions which it implements
8378 to always fail with ENOSYS. Some functions are actually named
8379 something starting with __ and the normal name is an alias. */
8380 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8387 return bind_textdomain_codeset ();
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (ac_try="$ac_link"
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_link") 2>conftest.er1
8401 grep -v '^ *+' conftest.er1 >conftest.err
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && {
8406 test -z "$ac_c_werror_flag" ||
8407 test ! -s conftest.err
8408 } && test -s conftest$ac_exeext &&
8409 $as_test_x conftest$ac_exeext; then
8410 ac_cv_func_bind_textdomain_codeset=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_func_bind_textdomain_codeset=no
8418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8419 conftest$ac_exeext conftest.$ac_ext
8421 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8422 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
8423 if test $ac_cv_func_bind_textdomain_codeset = yes; then
8439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS="$glib_save_LIBS"
8444 gt_cv_have_gettext=no
8452 if test "$gt_cv_have_gettext" = "yes" ; then
8454 cat >>confdefs.h <<\_ACEOF
8455 #define ENABLE_NLS 1
8460 if test "$XGETTEXT" != ":"; then
8461 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8464 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8465 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8470 # We need to process the po/ directory.
8473 ac_config_commands="$ac_config_commands default-1"
8476 for lang in $ALL_LINGUAS; do
8477 GMOFILES="$GMOFILES $lang.gmo"
8478 POFILES="$POFILES $lang.po"
8493 if test "$gt_cv_have_gettext" = "yes"; then
8494 if test "x$ALL_LINGUAS" = "x"; then
8497 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8498 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
8500 for presentlang in $ALL_LINGUAS; do
8502 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8503 desiredlanguages="$LINGUAS"
8505 desiredlanguages="$ALL_LINGUAS"
8507 for desiredlang in $desiredlanguages; do
8508 # Use the presentlang catalog if desiredlang is
8509 # a. equal to presentlang, or
8510 # b. a variant of presentlang (because in this case,
8511 # presentlang can be used as a fallback for messages
8512 # which are not translated in the desiredlang catalog).
8513 case "$desiredlang" in
8514 "$presentlang"*) useit=yes;;
8517 if test $useit = yes; then
8518 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8521 LINGUAS=$NEW_LINGUAS
8522 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
8523 echo "${ECHO_T}$LINGUAS" >&6; }
8526 if test -n "$LINGUAS"; then
8527 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8532 if test -n "$ac_aux_dir"; then
8533 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8535 if test -z "$MKINSTALLDIRS"; then
8536 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8540 test -d po || mkdir po
8541 if test "x$srcdir" != "x."; then
8542 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8543 posrcprefix="$srcdir/"
8545 posrcprefix="../$srcdir/"
8551 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8552 < $srcdir/po/POTFILES.in > po/POTFILES
8554 SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
8556 INTLTOOL_UPDATE="true"
8567 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
8568 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
8569 # as Debian Etch backport.
8571 ac_cpp='$CXXCPP $CPPFLAGS'
8572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8575 if test -z "$CXX"; then
8576 if test -n "$CCC"; then
8579 if test -n "$ac_tool_prefix"; then
8580 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8586 if test "${ac_cv_prog_CXX+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 if test -n "$CXX"; then
8590 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 if test -n "$CXX"; then
8611 { echo "$as_me:$LINENO: result: $CXX" >&5
8612 echo "${ECHO_T}$CXX" >&6; }
8614 { echo "$as_me:$LINENO: result: no" >&5
8615 echo "${ECHO_T}no" >&6; }
8619 test -n "$CXX" && break
8622 if test -z "$CXX"; then
8624 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8626 # Extract the first word of "$ac_prog", so it can be a program name with args.
8627 set dummy $ac_prog; ac_word=$2
8628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8630 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 if test -n "$ac_ct_CXX"; then
8634 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 test -z "$as_dir" && as_dir=.
8641 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8643 ac_cv_prog_ac_ct_CXX="$ac_prog"
8644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8654 if test -n "$ac_ct_CXX"; then
8655 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8656 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8658 { echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6; }
8663 test -n "$ac_ct_CXX" && break
8666 if test "x$ac_ct_CXX" = x; then
8669 case $cross_compiling:$ac_tool_warned in
8671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8672 whose name does not start with the host triplet. If you think this
8673 configuration is useful to you, please write to autoconf@gnu.org." >&5
8674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8675 whose name does not start with the host triplet. If you think this
8676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8677 ac_tool_warned=yes ;;
8685 # Provide some information about the compiler.
8686 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8687 ac_compiler=`set X $ac_compile; echo $2`
8688 { (ac_try="$ac_compiler --version >&5"
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_compiler --version >&5") 2>&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }
8698 { (ac_try="$ac_compiler -v >&5"
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compiler -v >&5") 2>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }
8708 { (ac_try="$ac_compiler -V >&5"
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_compiler -V >&5") 2>&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }
8719 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8720 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8721 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8742 rm -f conftest.$ac_objext
8743 if { (ac_try="$ac_compile"
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_compile") 2>conftest.er1
8751 grep -v '^ *+' conftest.er1 >conftest.err
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } && {
8756 test -z "$ac_cxx_werror_flag" ||
8757 test ! -s conftest.err
8758 } && test -s conftest.$ac_objext; then
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8771 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8772 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8773 GXX=`test $ac_compiler_gnu = yes && echo yes`
8774 ac_test_CXXFLAGS=${CXXFLAGS+set}
8775 ac_save_CXXFLAGS=$CXXFLAGS
8776 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8777 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8778 if test "${ac_cv_prog_cxx_g+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8782 ac_cxx_werror_flag=yes
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8800 rm -f conftest.$ac_objext
8801 if { (ac_try="$ac_compile"
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_compile") 2>conftest.er1
8809 grep -v '^ *+' conftest.er1 >conftest.err
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } && {
8814 test -z "$ac_cxx_werror_flag" ||
8815 test ! -s conftest.err
8816 } && test -s conftest.$ac_objext; then
8817 ac_cv_prog_cxx_g=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_compile") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_cxx_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest.$ac_objext; then
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_cxx_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.$ac_objext; then
8894 ac_cv_prog_cxx_g=yes
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8911 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8912 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8913 if test "$ac_test_CXXFLAGS" = set; then
8914 CXXFLAGS=$ac_save_CXXFLAGS
8915 elif test $ac_cv_prog_cxx_g = yes; then
8916 if test "$GXX" = yes; then
8922 if test "$GXX" = yes; then
8929 ac_cpp='$CXXCPP $CPPFLAGS'
8930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8934 depcc="$CXX" am_compiler_list=
8936 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8937 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8938 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8942 # We make a subdir and do the tests there. Otherwise we can end up
8943 # making bogus files that we don't know about and never remove. For
8944 # instance it was reported that on HP-UX the gcc test will end up
8945 # making a dummy file named `D' -- because `-MD' means `put the output
8948 # Copy depcomp to subdir because otherwise we won't find it if we're
8949 # using a relative directory.
8950 cp "$am_depcomp" conftest.dir
8952 # We will build objects and dependencies in a subdirectory because
8953 # it helps to detect inapplicable dependency modes. For instance
8954 # both Tru64's cc and ICC support -MD to output dependencies as a
8955 # side effect of compilation, but ICC will put the dependencies in
8956 # the current directory while Tru64 will put them in the object
8960 am_cv_CXX_dependencies_compiler_type=none
8961 if test "$am_compiler_list" = ""; then
8962 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8964 for depmode in $am_compiler_list; do
8965 # Setup a source with many dependencies, because some compilers
8966 # like to wrap large dependency lists on column 80 (with \), and
8967 # we should not choose a depcomp mode which is confused by this.
8969 # We need to recreate these files for each test, as the compiler may
8970 # overwrite some of them when testing with obscure command lines.
8971 # This happens at least with the AIX C compiler.
8973 for i in 1 2 3 4 5 6; do
8974 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8975 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8976 # Solaris 8's {/usr,}/bin/sh.
8977 touch sub/conftst$i.h
8979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8983 # after this tag, mechanisms are not by side-effect, so they'll
8984 # only be used when explicitly requested
8985 if test "x$enable_dependency_tracking" = xyes; then
8993 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8994 # mode. It turns out that the SunPro C++ compiler does not properly
8995 # handle `-M -o', and we need to detect this.
8996 if depmode=$depmode \
8997 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8999 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9000 >/dev/null 2>conftest.err &&
9001 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9005 # icc doesn't choke on unknown options, it will just issue warnings
9006 # or remarks (even with -Werror). So we grep stderr for any message
9007 # that says an option was ignored or not supported.
9008 # When given -MP, icc 7.0 and 7.1 complain thusly:
9009 # icc: Command line warning: ignoring option '-M'; no argument required
9010 # The diagnosis changed in icc 8.0:
9011 # icc: Command line remark: option '-MP' not supported
9012 if (grep 'ignoring option' conftest.err ||
9013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9014 am_cv_CXX_dependencies_compiler_type=$depmode
9023 am_cv_CXX_dependencies_compiler_type=none
9027 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9028 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
9029 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9032 test "x$enable_dependency_tracking" != xno \
9033 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9034 am__fastdepCXX_TRUE=
9035 am__fastdepCXX_FALSE='#'
9037 am__fastdepCXX_TRUE='#'
9038 am__fastdepCXX_FALSE=
9045 # Check whether --with-boost was given.
9046 if test "${with_boost+set}" = set; then
9047 withval=$with_boost;
9048 if test "$withval" = "no"; then
9050 elif test "$withval" = "yes"; then
9055 ac_boost_path="$withval"
9065 # Check whether --with-boost-libdir was given.
9066 if test "${with_boost_libdir+set}" = set; then
9067 withval=$with_boost_libdir;
9070 ac_boost_lib_path="$withval"
9072 { { echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
9073 echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
9074 { (exit 1); exit 1; }; }
9078 ac_boost_lib_path=""
9083 if test "x$want_boost" = "xyes"; then
9084 boost_lib_version_req=1.34
9085 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
9086 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
9087 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
9088 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9089 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
9090 boost_lib_version_req_sub_minor="0"
9092 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
9093 { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
9094 echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
9097 if test "$ac_boost_path" != ""; then
9098 BOOST_LDFLAGS="-L$ac_boost_path/lib"
9099 BOOST_CPPFLAGS="-I$ac_boost_path/include"
9101 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
9102 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
9103 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
9104 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
9110 if test "$ac_boost_lib_path" != ""; then
9111 BOOST_LDFLAGS="-L$ac_boost_lib_path"
9114 CPPFLAGS_SAVED="$CPPFLAGS"
9115 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9118 LDFLAGS_SAVED="$LDFLAGS"
9119 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9123 ac_cpp='$CXXCPP $CPPFLAGS'
9124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 #include <boost/version.hpp>
9141 #if BOOST_VERSION >= $WANT_BOOST_VERSION
9142 // Everything is okay
9144 # error Boost version is too old
9151 rm -f conftest.$ac_objext
9152 if { (ac_try="$ac_compile"
9154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 *) ac_try_echo=$ac_try;;
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 (eval "$ac_compile") 2>conftest.er1
9160 grep -v '^ *+' conftest.er1 >conftest.err
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } && {
9165 test -z "$ac_cxx_werror_flag" ||
9166 test ! -s conftest.err
9167 } && test -s conftest.$ac_objext; then
9169 { echo "$as_me:$LINENO: result: yes" >&5
9170 echo "${ECHO_T}yes" >&6; }
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 ac_cpp='$CPP $CPPFLAGS'
9185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9192 if test "x$succeeded" != "xyes"; then
9194 if test "$ac_boost_path" != ""; then
9195 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9196 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9197 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9198 V_CHECK=`expr $_version_tmp \> $_version`
9199 if test "$V_CHECK" = "1" ; then
9200 _version=$_version_tmp
9202 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9203 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
9207 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
9208 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9209 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9210 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9211 V_CHECK=`expr $_version_tmp \> $_version`
9212 if test "$V_CHECK" = "1" ; then
9213 _version=$_version_tmp
9214 best_path=$ac_boost_path
9220 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9221 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
9222 if test "$ac_boost_lib_path" = ""
9224 BOOST_LDFLAGS="-L$best_path/lib"
9227 if test "x$BOOST_ROOT" != "x"; then
9228 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
9229 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
9230 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
9231 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
9232 V_CHECK=`expr $stage_version_shorten \>\= $_version`
9233 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
9234 { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
9235 echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
9236 BOOST_CPPFLAGS="-I$BOOST_ROOT"
9237 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
9243 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9245 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9249 ac_cpp='$CXXCPP $CPPFLAGS'
9250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9254 cat >conftest.$ac_ext <<_ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9261 #include <boost/version.hpp>
9267 #if BOOST_VERSION >= $WANT_BOOST_VERSION
9268 // Everything is okay
9270 # error Boost version is too old
9277 rm -f conftest.$ac_objext
9278 if { (ac_try="$ac_compile"
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_compile") 2>conftest.er1
9286 grep -v '^ *+' conftest.er1 >conftest.err
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && {
9291 test -z "$ac_cxx_werror_flag" ||
9292 test ! -s conftest.err
9293 } && test -s conftest.$ac_objext; then
9295 { echo "$as_me:$LINENO: result: yes" >&5
9296 echo "${ECHO_T}yes" >&6; }
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 ac_cpp='$CPP $CPPFLAGS'
9311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9317 if test "$succeeded" != "yes" ; then
9318 if test "$_version" = "0" ; then
9319 { { echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
9320 echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
9321 { (exit 1); exit 1; }; }
9323 { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
9324 echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
9330 cat >>confdefs.h <<\_ACEOF
9336 CPPFLAGS="$CPPFLAGS_SAVED"
9337 LDFLAGS="$LDFLAGS_SAVED"
9342 # absolute patch to source of Synthesis client library
9343 SYNTHESIS_SRC=no-synthesis-source
9345 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
9346 # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
9347 CLEAN_CLIENT_SRC=synthesis-workdir
9348 SYNTHESIS_SRC=$PWD/src/synthesis-workdir
9350 { echo "$as_me:$LINENO: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
9351 echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
9352 case "$SYNTHESISSRC" in
9353 *.git) protocol=git;;
9354 *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
9355 *) protocol="file";;
9361 # use existing copy of the sources
9363 case "$SYNTHESISSRC" in
9364 /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
9365 *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
9369 SYNTHESISSRCREV="$SYNTHESISSRC"
9370 if test "$REVISION"; then
9371 revarg="-r $REVISION "
9372 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
9375 SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
9378 if test -d $SYNTHESIS_SRC ; then
9379 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
9380 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
9381 { (exit 1); exit 1; }; }
9383 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
9384 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
9385 { (exit 1); exit 1; }; }
9389 if test -d $SYNTHESIS_SRC ; then
9390 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
9391 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
9392 { (exit 1); exit 1; }; }
9394 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: cloning $SYNTHESISSRC failed" >&5
9395 echo "$as_me: error: cloning $SYNTHESISSRC failed" >&2;}
9396 { (exit 1); exit 1; }; }
9398 if test "$REVISION"; then
9399 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
9400 ( set -x; cd $SYNTHESIS_SRC &&
9401 (git checkout "$REVISION" ||
9402 git checkout "tags/$REVISION" ||
9403 git checkout "origin/$REVISION") ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
9404 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
9405 { (exit 1); exit 1; }; }
9409 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
9410 # use existing copy of the sources; beware of
9411 # out-of-tree compilation
9413 /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
9414 *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
9416 elif test "$enable_shared" = "no"; then
9417 # link against engine
9420 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
9421 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
9423 if test -n "$PKG_CONFIG"; then
9424 if test -n "$SYNTHESIS_CFLAGS"; then
9425 pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
9427 if test -n "$PKG_CONFIG" && \
9428 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9429 ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; then
9433 pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
9441 if test -n "$PKG_CONFIG"; then
9442 if test -n "$SYNTHESIS_LIBS"; then
9443 pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
9445 if test -n "$PKG_CONFIG" && \
9446 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9447 ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; then
9451 pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
9462 if test $pkg_failed = yes; then
9464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9465 _pkg_short_errors_supported=yes
9467 _pkg_short_errors_supported=no
9469 if test $_pkg_short_errors_supported = yes; then
9470 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
9472 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
9474 # Put the nasty error message in config.log where it belongs
9475 echo "$SYNTHESIS_PKG_ERRORS" >&5
9477 { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
9479 $SYNTHESIS_PKG_ERRORS
9481 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9482 installed software in a non-standard prefix.
9484 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9485 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9486 See the pkg-config man page for more details.
9488 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
9490 $SYNTHESIS_PKG_ERRORS
9492 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9493 installed software in a non-standard prefix.
9495 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9496 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9497 See the pkg-config man page for more details.
9499 { (exit 1); exit 1; }; }
9500 elif test $pkg_failed = untried; then
9501 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
9502 is in your PATH or set the PKG_CONFIG environment variable to the full
9505 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9506 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9507 See the pkg-config man page for more details.
9509 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9510 See \`config.log' for more details." >&5
9511 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
9512 is in your PATH or set the PKG_CONFIG environment variable to the full
9515 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9516 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9517 See the pkg-config man page for more details.
9519 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9520 See \`config.log' for more details." >&2;}
9521 { (exit 1); exit 1; }; }
9523 SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
9524 SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
9525 { echo "$as_me:$LINENO: result: yes" >&5
9526 echo "${ECHO_T}yes" >&6; }
9529 SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis"
9531 # link against SDK alone, except in client-test
9532 #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
9533 #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
9535 # can't use the SDK alone because of sysync::SySyncDebugPuts()
9538 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
9539 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
9541 if test -n "$PKG_CONFIG"; then
9542 if test -n "$SYNTHESIS_CFLAGS"; then
9543 pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
9545 if test -n "$PKG_CONFIG" && \
9546 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9547 ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; then
9551 pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
9559 if test -n "$PKG_CONFIG"; then
9560 if test -n "$SYNTHESIS_LIBS"; then
9561 pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
9563 if test -n "$PKG_CONFIG" && \
9564 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9565 ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; then
9569 pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
9580 if test $pkg_failed = yes; then
9582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9583 _pkg_short_errors_supported=yes
9585 _pkg_short_errors_supported=no
9587 if test $_pkg_short_errors_supported = yes; then
9588 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
9590 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
9592 # Put the nasty error message in config.log where it belongs
9593 echo "$SYNTHESIS_PKG_ERRORS" >&5
9595 { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
9597 $SYNTHESIS_PKG_ERRORS
9599 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9600 installed software in a non-standard prefix.
9602 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9603 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9604 See the pkg-config man page for more details.
9606 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
9608 $SYNTHESIS_PKG_ERRORS
9610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9611 installed software in a non-standard prefix.
9613 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9614 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9615 See the pkg-config man page for more details.
9617 { (exit 1); exit 1; }; }
9618 elif test $pkg_failed = untried; then
9619 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
9620 is in your PATH or set the PKG_CONFIG environment variable to the full
9623 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9624 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9625 See the pkg-config man page for more details.
9627 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9628 See \`config.log' for more details." >&5
9629 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
9630 is in your PATH or set the PKG_CONFIG environment variable to the full
9633 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9634 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9635 See the pkg-config man page for more details.
9637 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9638 See \`config.log' for more details." >&2;}
9639 { (exit 1); exit 1; }; }
9641 SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
9642 SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
9643 { echo "$as_me:$LINENO: result: yes" >&5
9644 echo "${ECHO_T}yes" >&6; }
9647 SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
9650 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
9651 ( cd $SYNTHESIS_SRC && ( test -f configure || sh autogen.sh ) ) || { { echo "$as_me:$LINENO: error: --with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" >&5
9652 echo "$as_me: error: --with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" >&2;}
9653 { (exit 1); exit 1; }; }
9655 SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
9656 chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
9658 # use local copy of the sources, with dependencies
9659 # to trigger building the synthesis library
9660 SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
9661 SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
9662 SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la"
9664 if test "$enable_shared" = "no"; then
9665 # link against the engines that were enabled
9666 case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la";; esac
9668 cat >>confdefs.h <<\_ACEOF
9669 #define ENABLE_SYNCML_LINKED 1
9673 # It would be nice if we could avoid linking against libsynthesis.la here.
9674 # This doesn't work at the moment because sysync::SySyncDebugPuts()
9675 # is called directly by the libsynthesissdk instead of going through
9676 # the normal C function pointer lookup.
9677 SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la"
9679 SYNTHESIS_DEP=$SYNTHESIS_LIBS
9681 # for linking client-test
9682 SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
9684 { echo "$as_me:$LINENO: configuring the Synthesis library " >&5
9685 echo "$as_me: configuring the Synthesis library " >&6;}
9686 if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
9687 { { echo "$as_me:$LINENO: error: configuring Synthesis library failed " >&5
9688 echo "$as_me: error: configuring Synthesis library failed " >&2;}
9689 { (exit 1); exit 1; }; }
9704 # AC_ARG_ENABLE_BACKEND(BACKEND, DIR, HELP-STRING, [ACTION-IF-GIVEN],
9705 # [ACTION-IF-NOT-GIVEN])
9707 # Same as AC_ARG_ENABLE(), but also tells configure that the
9710 # BACKEND = name of modules built in that dir as .la files without the
9711 # obligatory sync prefix, e.g. "ebook"
9712 # DIR = name of the directory inside src/backends, e.g., "evolution"
9717 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
9720 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
9724 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
9727 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
9730 # Check whether --enable-addressbook was given.
9731 if test "${enable_addressbook+set}" = set; then
9732 enableval=$enable_addressbook; enable_addressbook="$enableval"
9734 enable_addressbook="no"
9737 BACKENDS="$BACKENDS addressbook"
9738 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo addressbook | tr a-z A-Z`"
9739 for source in addressbook; do
9740 SYNCSOURCES="$SYNCSOURCES backends/addressbook/syncaddressbook.la"
9744 if test "$enable_addressbook" = "yes"; then
9746 cat >>confdefs.h <<\_ACEOF
9747 #define ENABLE_ADDRESSBOOK 1
9756 ac_config_files="$ac_config_files src/backends/addressbook/Makefile"
9758 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
9760 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
9762 pkg_emodules_10="libedataserver-1.0"
9763 pkg_emodules_11="libedataserver-1.1"
9764 pkg_emodules_12="libedataserver-1.2"
9765 pkg_ebook_10="libebook-1.0"
9766 pkg_ebook_11="libebook-1.1"
9767 pkg_ebook_12="libebook-1.2"
9768 pkg_ecal_10="libecal-1.0"
9769 pkg_ecal_11="libecal-1.1"
9770 pkg_ecal_12="libecal-1.2"
9773 Please install the development packages of Evolution and/or
9774 set the PKG_CONFIG_PATH variable so that it points towards
9775 the .pc files of libedataserver, libecal and libebook (the
9776 latter two are optional).
9778 You can check that these packages are available by running
9779 pkg-config --list-all."
9781 evomissing="No compatible evolution-data-server was found.
9786 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
9787 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
9789 if test -n "$PKG_CONFIG"; then
9790 if test -n "$EPACKAGE_CFLAGS"; then
9791 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
9793 if test -n "$PKG_CONFIG" && \
9794 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
9795 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; then
9799 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_12" 2>/dev/null`
9807 if test -n "$PKG_CONFIG"; then
9808 if test -n "$EPACKAGE_LIBS"; then
9809 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
9811 if test -n "$PKG_CONFIG" && \
9812 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
9813 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; then
9817 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_12" 2>/dev/null`
9828 if test $pkg_failed = yes; then
9830 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9831 _pkg_short_errors_supported=yes
9833 _pkg_short_errors_supported=no
9835 if test $_pkg_short_errors_supported = yes; then
9836 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_12"`
9838 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_12"`
9840 # Put the nasty error message in config.log where it belongs
9841 echo "$EPACKAGE_PKG_ERRORS" >&5
9843 { echo "$as_me:$LINENO: result: no" >&5
9844 echo "${ECHO_T}no" >&6; }
9846 elif test $pkg_failed = untried; then
9849 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
9850 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
9851 { echo "$as_me:$LINENO: result: yes" >&5
9852 echo "${ECHO_T}yes" >&6; }
9855 if test "x${EDSFOUND}" = "xno"; then
9858 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
9859 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
9861 if test -n "$PKG_CONFIG"; then
9862 if test -n "$EPACKAGE_CFLAGS"; then
9863 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
9865 if test -n "$PKG_CONFIG" && \
9866 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
9867 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; then
9871 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_11" 2>/dev/null`
9879 if test -n "$PKG_CONFIG"; then
9880 if test -n "$EPACKAGE_LIBS"; then
9881 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
9883 if test -n "$PKG_CONFIG" && \
9884 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
9885 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; then
9889 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_11" 2>/dev/null`
9900 if test $pkg_failed = yes; then
9902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9903 _pkg_short_errors_supported=yes
9905 _pkg_short_errors_supported=no
9907 if test $_pkg_short_errors_supported = yes; then
9908 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_11"`
9910 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_11"`
9912 # Put the nasty error message in config.log where it belongs
9913 echo "$EPACKAGE_PKG_ERRORS" >&5
9915 { echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6; }
9918 elif test $pkg_failed = untried; then
9921 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
9922 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
9923 { echo "$as_me:$LINENO: result: yes" >&5
9924 echo "${ECHO_T}yes" >&6; }
9927 if test "x${EDSFOUND}" = "xno"; then
9930 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
9931 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
9933 if test -n "$PKG_CONFIG"; then
9934 if test -n "$EPACKAGE_CFLAGS"; then
9935 pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
9937 if test -n "$PKG_CONFIG" && \
9938 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
9939 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; then
9943 pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_10" 2>/dev/null`
9951 if test -n "$PKG_CONFIG"; then
9952 if test -n "$EPACKAGE_LIBS"; then
9953 pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
9955 if test -n "$PKG_CONFIG" && \
9956 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
9957 ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; then
9961 pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_10" 2>/dev/null`
9972 if test $pkg_failed = yes; then
9974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9975 _pkg_short_errors_supported=yes
9977 _pkg_short_errors_supported=no
9979 if test $_pkg_short_errors_supported = yes; then
9980 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_10"`
9982 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_10"`
9984 # Put the nasty error message in config.log where it belongs
9985 echo "$EPACKAGE_PKG_ERRORS" >&5
9987 { echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6; }
9990 elif test $pkg_failed = untried; then
9993 EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
9994 EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
9995 { echo "$as_me:$LINENO: result: yes" >&5
9996 echo "${ECHO_T}yes" >&6; }
10003 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS"
10007 { echo "$as_me:$LINENO: checking for ECAL" >&5
10008 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10010 if test -n "$PKG_CONFIG"; then
10011 if test -n "$ECAL_CFLAGS"; then
10012 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10014 if test -n "$PKG_CONFIG" && \
10015 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10016 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; then
10020 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_12" 2>/dev/null`
10028 if test -n "$PKG_CONFIG"; then
10029 if test -n "$ECAL_LIBS"; then
10030 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10032 if test -n "$PKG_CONFIG" && \
10033 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10034 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; then
10038 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_12" 2>/dev/null`
10049 if test $pkg_failed = yes; then
10051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10052 _pkg_short_errors_supported=yes
10054 _pkg_short_errors_supported=no
10056 if test $_pkg_short_errors_supported = yes; then
10057 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_12"`
10059 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_12"`
10061 # Put the nasty error message in config.log where it belongs
10062 echo "$ECAL_PKG_ERRORS" >&5
10064 { echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6; }
10067 elif test $pkg_failed = untried; then
10070 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10071 ECAL_LIBS=$pkg_cv_ECAL_LIBS
10072 { echo "$as_me:$LINENO: result: yes" >&5
10073 echo "${ECHO_T}yes" >&6; }
10076 if test "x${ECALFOUND}" = "xno"; then
10079 { echo "$as_me:$LINENO: checking for ECAL" >&5
10080 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10082 if test -n "$PKG_CONFIG"; then
10083 if test -n "$ECAL_CFLAGS"; then
10084 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10086 if test -n "$PKG_CONFIG" && \
10087 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
10088 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; then
10092 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_11" 2>/dev/null`
10100 if test -n "$PKG_CONFIG"; then
10101 if test -n "$ECAL_LIBS"; then
10102 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10104 if test -n "$PKG_CONFIG" && \
10105 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
10106 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; then
10110 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_11" 2>/dev/null`
10121 if test $pkg_failed = yes; then
10123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10124 _pkg_short_errors_supported=yes
10126 _pkg_short_errors_supported=no
10128 if test $_pkg_short_errors_supported = yes; then
10129 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_11"`
10131 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_11"`
10133 # Put the nasty error message in config.log where it belongs
10134 echo "$ECAL_PKG_ERRORS" >&5
10136 { echo "$as_me:$LINENO: result: no" >&5
10137 echo "${ECHO_T}no" >&6; }
10139 elif test $pkg_failed = untried; then
10142 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10143 ECAL_LIBS=$pkg_cv_ECAL_LIBS
10144 { echo "$as_me:$LINENO: result: yes" >&5
10145 echo "${ECHO_T}yes" >&6; }
10148 if test "x${ECALFOUND}" = "xno"; then
10151 { echo "$as_me:$LINENO: checking for ECAL" >&5
10152 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10154 if test -n "$PKG_CONFIG"; then
10155 if test -n "$ECAL_CFLAGS"; then
10156 pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10158 if test -n "$PKG_CONFIG" && \
10159 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
10160 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; then
10164 pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_10" 2>/dev/null`
10172 if test -n "$PKG_CONFIG"; then
10173 if test -n "$ECAL_LIBS"; then
10174 pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10176 if test -n "$PKG_CONFIG" && \
10177 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
10178 ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; then
10182 pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_10" 2>/dev/null`
10193 if test $pkg_failed = yes; then
10195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10196 _pkg_short_errors_supported=yes
10198 _pkg_short_errors_supported=no
10200 if test $_pkg_short_errors_supported = yes; then
10201 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_10"`
10203 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_10"`
10205 # Put the nasty error message in config.log where it belongs
10206 echo "$ECAL_PKG_ERRORS" >&5
10208 { echo "$as_me:$LINENO: result: no" >&5
10209 echo "${ECHO_T}no" >&6; }
10211 elif test $pkg_failed = untried; then
10214 ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10215 ECAL_LIBS=$pkg_cv_ECAL_LIBS
10216 { echo "$as_me:$LINENO: result: yes" >&5
10217 echo "${ECHO_T}yes" >&6; }
10224 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ECAL_CFLAGS"
10228 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10229 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10231 if test -n "$PKG_CONFIG"; then
10232 if test -n "$EBOOK_CFLAGS"; then
10233 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10235 if test -n "$PKG_CONFIG" && \
10236 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
10237 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; then
10241 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_12" 2>/dev/null`
10249 if test -n "$PKG_CONFIG"; then
10250 if test -n "$EBOOK_LIBS"; then
10251 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
10253 if test -n "$PKG_CONFIG" && \
10254 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
10255 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; then
10259 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_12" 2>/dev/null`
10270 if test $pkg_failed = yes; then
10272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10273 _pkg_short_errors_supported=yes
10275 _pkg_short_errors_supported=no
10277 if test $_pkg_short_errors_supported = yes; then
10278 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_12"`
10280 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_12"`
10282 # Put the nasty error message in config.log where it belongs
10283 echo "$EBOOK_PKG_ERRORS" >&5
10285 { echo "$as_me:$LINENO: result: no" >&5
10286 echo "${ECHO_T}no" >&6; }
10288 elif test $pkg_failed = untried; then
10291 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
10292 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
10293 { echo "$as_me:$LINENO: result: yes" >&5
10294 echo "${ECHO_T}yes" >&6; }
10297 if test "x${EBOOKFOUND}" = "xno"; then
10300 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10301 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10303 if test -n "$PKG_CONFIG"; then
10304 if test -n "$EBOOK_CFLAGS"; then
10305 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10307 if test -n "$PKG_CONFIG" && \
10308 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
10309 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; then
10313 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_11" 2>/dev/null`
10321 if test -n "$PKG_CONFIG"; then
10322 if test -n "$EBOOK_LIBS"; then
10323 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
10325 if test -n "$PKG_CONFIG" && \
10326 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
10327 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; then
10331 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_11" 2>/dev/null`
10342 if test $pkg_failed = yes; then
10344 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10345 _pkg_short_errors_supported=yes
10347 _pkg_short_errors_supported=no
10349 if test $_pkg_short_errors_supported = yes; then
10350 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_11"`
10352 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_11"`
10354 # Put the nasty error message in config.log where it belongs
10355 echo "$EBOOK_PKG_ERRORS" >&5
10357 { echo "$as_me:$LINENO: result: no" >&5
10358 echo "${ECHO_T}no" >&6; }
10360 elif test $pkg_failed = untried; then
10363 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
10364 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
10365 { echo "$as_me:$LINENO: result: yes" >&5
10366 echo "${ECHO_T}yes" >&6; }
10369 if test "x${EBOOKFOUND}" = "xno"; then
10372 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10373 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10375 if test -n "$PKG_CONFIG"; then
10376 if test -n "$EBOOK_CFLAGS"; then
10377 pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10379 if test -n "$PKG_CONFIG" && \
10380 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
10381 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; then
10385 pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_10" 2>/dev/null`
10393 if test -n "$PKG_CONFIG"; then
10394 if test -n "$EBOOK_LIBS"; then
10395 pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
10397 if test -n "$PKG_CONFIG" && \
10398 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
10399 ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; then
10403 pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_10" 2>/dev/null`
10414 if test $pkg_failed = yes; then
10416 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10417 _pkg_short_errors_supported=yes
10419 _pkg_short_errors_supported=no
10421 if test $_pkg_short_errors_supported = yes; then
10422 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_10"`
10424 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_10"`
10426 # Put the nasty error message in config.log where it belongs
10427 echo "$EBOOK_PKG_ERRORS" >&5
10429 { echo "$as_me:$LINENO: result: no" >&5
10430 echo "${ECHO_T}no" >&6; }
10432 elif test $pkg_failed = untried; then
10435 EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
10436 EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
10437 { echo "$as_me:$LINENO: result: yes" >&5
10438 echo "${ECHO_T}yes" >&6; }
10445 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EBOOK_CFLAGS"
10448 # Check whether --enable-ebook was given.
10449 if test "${enable_ebook+set}" = set; then
10450 enableval=$enable_ebook; enable_ebook="$enableval"
10452 test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
10453 { { echo "$as_me:$LINENO: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&5
10454 echo "$as_me: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&2;}
10455 { (exit 1); exit 1; }; }
10458 BACKENDS="$BACKENDS ebook"
10459 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ebook | tr a-z A-Z`"
10460 for source in evolution; do
10461 SYNCSOURCES="$SYNCSOURCES backends/evolution/syncebook.la"
10465 # Check whether --enable-ecal was given.
10466 if test "${enable_ecal+set}" = set; then
10467 enableval=$enable_ecal; enable_ecal="$enableval"
10469 test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
10470 { { echo "$as_me:$LINENO: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&5
10471 echo "$as_me: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&2;}
10472 { (exit 1); exit 1; }; }
10475 BACKENDS="$BACKENDS ecal"
10476 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ecal | tr a-z A-Z`"
10477 for source in evolution; do
10478 SYNCSOURCES="$SYNCSOURCES backends/evolution/syncecal.la"
10483 if test "$enable_ebook" = "yes"; then
10484 test "x${EBOOKFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&5
10485 echo "$as_me: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&2;}
10486 { (exit 1); exit 1; }; }
10488 cat >>confdefs.h <<\_ACEOF
10489 #define ENABLE_EBOOK 1
10495 if test "$enable_ecal" == "yes"; then
10497 ENABLE_ECAL_FALSE='#'
10499 ENABLE_ECAL_TRUE='#'
10503 if test "$enable_ecal" = "yes"; then
10504 test "x${ECALFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&5
10505 echo "$as_me: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&2;}
10506 { (exit 1); exit 1; }; }
10508 cat >>confdefs.h <<\_ACEOF
10509 #define ENABLE_ECAL 1
10517 if test "$enable_evo" = "yes"; then
10518 if test "$EDSFOUND" = "yes"; then
10520 cat >>confdefs.h <<\_ACEOF
10525 { { echo "$as_me:$LINENO: error: $evomissing" >&5
10526 echo "$as_me: error: $evomissing" >&2;}
10527 { (exit 1); exit 1; }; }
10533 ac_config_files="$ac_config_files src/backends/evolution/Makefile"
10535 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
10537 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
10545 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
10548 # Check whether --enable-file was given.
10549 if test "${enable_file+set}" = set; then
10550 enableval=$enable_file; enable_file="$enableval"
10556 BACKENDS="$BACKENDS file"
10557 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo file | tr a-z A-Z`"
10558 for source in file; do
10559 SYNCSOURCES="$SYNCSOURCES backends/file/syncfile.la"
10563 if test "$enable_file" = "yes"; then
10565 cat >>confdefs.h <<\_ACEOF
10566 #define ENABLE_FILE 1
10570 ac_config_files="$ac_config_files src/backends/file/Makefile"
10572 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
10574 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
10578 { echo "$as_me:$LINENO: checking for SQLITE" >&5
10579 echo $ECHO_N "checking for SQLITE... $ECHO_C" >&6; }
10581 if test -n "$PKG_CONFIG"; then
10582 if test -n "$SQLITE_CFLAGS"; then
10583 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
10585 if test -n "$PKG_CONFIG" && \
10586 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
10587 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; then
10591 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
10599 if test -n "$PKG_CONFIG"; then
10600 if test -n "$SQLITE_LIBS"; then
10601 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
10603 if test -n "$PKG_CONFIG" && \
10604 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
10605 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; then
10609 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
10620 if test $pkg_failed = yes; then
10622 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10623 _pkg_short_errors_supported=yes
10625 _pkg_short_errors_supported=no
10627 if test $_pkg_short_errors_supported = yes; then
10628 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
10630 SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
10632 # Put the nasty error message in config.log where it belongs
10633 echo "$SQLITE_PKG_ERRORS" >&5
10635 { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10638 elif test $pkg_failed = untried; then
10641 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
10642 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
10643 { echo "$as_me:$LINENO: result: yes" >&5
10644 echo "${ECHO_T}yes" >&6; }
10649 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
10652 # Check whether --enable-sqlite was given.
10653 if test "${enable_sqlite+set}" = set; then
10654 enableval=$enable_sqlite; enable_sqlite="$enableval"
10659 BACKENDS="$BACKENDS sqlite"
10660 BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo sqlite | tr a-z A-Z`"
10661 for source in sqlite; do
10662 SYNCSOURCES="$SYNCSOURCES backends/sqlite/syncsqlite.la"
10666 if test "$enable_sqlite" = "yes"; then
10667 test "x${SQLITEFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&5
10668 echo "$as_me: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&2;}
10669 { (exit 1); exit 1; }; }
10671 cat >>confdefs.h <<\_ACEOF
10672 #define ENABLE_SQLITE 1
10676 # avoid linking against it if not needed
10680 ac_config_files="$ac_config_files src/backends/sqlite/Makefile"
10682 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
10688 backend_is_enabled () {
10689 eval echo \${enable_${1}}
10691 for backend in $BACKENDS; do
10692 if test `backend_is_enabled $backend` == "yes"; then
10694 SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
10698 if test "$enable_any" = "no"; then
10699 { { echo "$as_me:$LINENO: error: no backend enabled - refusing to continue: $anymissing" >&5
10700 echo "$as_me: error: no backend enabled - refusing to continue: $anymissing" >&2;}
10701 { (exit 1); exit 1; }; }
10706 { echo "$as_me:$LINENO: checking for GLIB" >&5
10707 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10709 if test -n "$PKG_CONFIG"; then
10710 if test -n "$GLIB_CFLAGS"; then
10711 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10713 if test -n "$PKG_CONFIG" && \
10714 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
10715 ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; then
10719 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
10727 if test -n "$PKG_CONFIG"; then
10728 if test -n "$GLIB_LIBS"; then
10729 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10731 if test -n "$PKG_CONFIG" && \
10732 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
10733 ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; then
10737 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
10748 if test $pkg_failed = yes; then
10750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10751 _pkg_short_errors_supported=yes
10753 _pkg_short_errors_supported=no
10755 if test $_pkg_short_errors_supported = yes; then
10756 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib-2.0""`
10758 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib-2.0""`
10760 # Put the nasty error message in config.log where it belongs
10761 echo "$GLIB_PKG_ERRORS" >&5
10763 { echo "$as_me:$LINENO: result: no" >&5
10764 echo "${ECHO_T}no" >&6; }
10766 elif test $pkg_failed = untried; then
10769 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10770 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10771 { echo "$as_me:$LINENO: result: yes" >&5
10772 echo "${ECHO_T}yes" >&6; }
10775 # This check here is broken on Ubuntu 8.04: it calls glib-config,
10776 # which isn't found, but the error is not detected by configure.
10777 #if test "x${GLIBFOUND}" = "xno"; then
10778 # PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
10784 ac_cpp='$CXXCPP $CPPFLAGS'
10785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10788 if test -z "$CXX"; then
10789 if test -n "$CCC"; then
10792 if test -n "$ac_tool_prefix"; then
10793 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10799 if test "${ac_cv_prog_CXX+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 if test -n "$CXX"; then
10803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 CXX=$ac_cv_prog_CXX
10823 if test -n "$CXX"; then
10824 { echo "$as_me:$LINENO: result: $CXX" >&5
10825 echo "${ECHO_T}$CXX" >&6; }
10827 { echo "$as_me:$LINENO: result: no" >&5
10828 echo "${ECHO_T}no" >&6; }
10832 test -n "$CXX" && break
10835 if test -z "$CXX"; then
10837 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10839 # Extract the first word of "$ac_prog", so it can be a program name with args.
10840 set dummy $ac_prog; ac_word=$2
10841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10843 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 if test -n "$ac_ct_CXX"; then
10847 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10856 ac_cv_prog_ac_ct_CXX="$ac_prog"
10857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10867 if test -n "$ac_ct_CXX"; then
10868 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10869 echo "${ECHO_T}$ac_ct_CXX" >&6; }
10871 { echo "$as_me:$LINENO: result: no" >&5
10872 echo "${ECHO_T}no" >&6; }
10876 test -n "$ac_ct_CXX" && break
10879 if test "x$ac_ct_CXX" = x; then
10882 case $cross_compiling:$ac_tool_warned in
10884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10885 whose name does not start with the host triplet. If you think this
10886 configuration is useful to you, please write to autoconf@gnu.org." >&5
10887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10888 whose name does not start with the host triplet. If you think this
10889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10890 ac_tool_warned=yes ;;
10898 # Provide some information about the compiler.
10899 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
10900 ac_compiler=`set X $ac_compile; echo $2`
10901 { (ac_try="$ac_compiler --version >&5"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_compiler --version >&5") 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }
10911 { (ac_try="$ac_compiler -v >&5"
10912 case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_compiler -v >&5") 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }
10921 { (ac_try="$ac_compiler -V >&5"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_compiler -V >&5") 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }
10932 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10933 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
10934 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10955 rm -f conftest.$ac_objext
10956 if { (ac_try="$ac_compile"
10957 case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_compile") 2>conftest.er1
10964 grep -v '^ *+' conftest.er1 >conftest.err
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } && {
10969 test -z "$ac_cxx_werror_flag" ||
10970 test ! -s conftest.err
10971 } && test -s conftest.$ac_objext; then
10972 ac_compiler_gnu=yes
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
10986 GXX=`test $ac_compiler_gnu = yes && echo yes`
10987 ac_test_CXXFLAGS=${CXXFLAGS+set}
10988 ac_save_CXXFLAGS=$CXXFLAGS
10989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
10991 if test "${ac_cv_prog_cxx_g+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10995 ac_cxx_werror_flag=yes
10996 ac_cv_prog_cxx_g=no
10998 cat >conftest.$ac_ext <<_ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11013 rm -f conftest.$ac_objext
11014 if { (ac_try="$ac_compile"
11015 case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_compile") 2>conftest.er1
11022 grep -v '^ *+' conftest.er1 >conftest.err
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_cxx_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest.$ac_objext; then
11030 ac_cv_prog_cxx_g=yes
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11036 cat >conftest.$ac_ext <<_ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11051 rm -f conftest.$ac_objext
11052 if { (ac_try="$ac_compile"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_cxx_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest.$ac_objext; then
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11090 rm -f conftest.$ac_objext
11091 if { (ac_try="$ac_compile"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_compile") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_cxx_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest.$ac_objext; then
11107 ac_cv_prog_cxx_g=yes
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11124 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11125 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
11126 if test "$ac_test_CXXFLAGS" = set; then
11127 CXXFLAGS=$ac_save_CXXFLAGS
11128 elif test $ac_cv_prog_cxx_g = yes; then
11129 if test "$GXX" = yes; then
11135 if test "$GXX" = yes; then
11142 ac_cpp='$CPP $CPPFLAGS'
11143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147 depcc="$CXX" am_compiler_list=
11149 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11150 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11151 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11155 # We make a subdir and do the tests there. Otherwise we can end up
11156 # making bogus files that we don't know about and never remove. For
11157 # instance it was reported that on HP-UX the gcc test will end up
11158 # making a dummy file named `D' -- because `-MD' means `put the output
11161 # Copy depcomp to subdir because otherwise we won't find it if we're
11162 # using a relative directory.
11163 cp "$am_depcomp" conftest.dir
11165 # We will build objects and dependencies in a subdirectory because
11166 # it helps to detect inapplicable dependency modes. For instance
11167 # both Tru64's cc and ICC support -MD to output dependencies as a
11168 # side effect of compilation, but ICC will put the dependencies in
11169 # the current directory while Tru64 will put them in the object
11173 am_cv_CXX_dependencies_compiler_type=none
11174 if test "$am_compiler_list" = ""; then
11175 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11177 for depmode in $am_compiler_list; do
11178 # Setup a source with many dependencies, because some compilers
11179 # like to wrap large dependency lists on column 80 (with \), and
11180 # we should not choose a depcomp mode which is confused by this.
11182 # We need to recreate these files for each test, as the compiler may
11183 # overwrite some of them when testing with obscure command lines.
11184 # This happens at least with the AIX C compiler.
11186 for i in 1 2 3 4 5 6; do
11187 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11188 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11189 # Solaris 8's {/usr,}/bin/sh.
11190 touch sub/conftst$i.h
11192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11196 # after this tag, mechanisms are not by side-effect, so they'll
11197 # only be used when explicitly requested
11198 if test "x$enable_dependency_tracking" = xyes; then
11206 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11207 # mode. It turns out that the SunPro C++ compiler does not properly
11208 # handle `-M -o', and we need to detect this.
11209 if depmode=$depmode \
11210 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11212 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11213 >/dev/null 2>conftest.err &&
11214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11216 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11218 # icc doesn't choke on unknown options, it will just issue warnings
11219 # or remarks (even with -Werror). So we grep stderr for any message
11220 # that says an option was ignored or not supported.
11221 # When given -MP, icc 7.0 and 7.1 complain thusly:
11222 # icc: Command line warning: ignoring option '-M'; no argument required
11223 # The diagnosis changed in icc 8.0:
11224 # icc: Command line remark: option '-MP' not supported
11225 if (grep 'ignoring option' conftest.err ||
11226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11227 am_cv_CXX_dependencies_compiler_type=$depmode
11234 rm -rf conftest.dir
11236 am_cv_CXX_dependencies_compiler_type=none
11240 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11241 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
11242 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11245 test "x$enable_dependency_tracking" != xno \
11246 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11247 am__fastdepCXX_TRUE=
11248 am__fastdepCXX_FALSE='#'
11250 am__fastdepCXX_TRUE='#'
11251 am__fastdepCXX_FALSE=
11255 # Check whether --enable-shared was given.
11256 if test "${enable_shared+set}" = set; then
11257 enableval=$enable_shared; p=${PACKAGE-default}
11259 yes) enable_shared=yes ;;
11260 no) enable_shared=no ;;
11263 # Look at the argument we got. We use all the common list separators.
11264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11265 for pkg in $enableval; do
11267 if test "X$pkg" = "X$p"; then
11279 # Check whether --enable-static was given.
11280 if test "${enable_static+set}" = set; then
11281 enableval=$enable_static; p=${PACKAGE-default}
11283 yes) enable_static=yes ;;
11284 no) enable_static=no ;;
11287 # Look at the argument we got. We use all the common list separators.
11288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11289 for pkg in $enableval; do
11291 if test "X$pkg" = "X$p"; then
11303 # Check whether --enable-fast-install was given.
11304 if test "${enable_fast_install+set}" = set; then
11305 enableval=$enable_fast_install; p=${PACKAGE-default}
11307 yes) enable_fast_install=yes ;;
11308 no) enable_fast_install=no ;;
11310 enable_fast_install=no
11311 # Look at the argument we got. We use all the common list separators.
11312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11313 for pkg in $enableval; do
11315 if test "X$pkg" = "X$p"; then
11316 enable_fast_install=yes
11323 enable_fast_install=yes
11327 # Make sure we can run config.sub.
11328 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11329 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11330 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11331 { (exit 1); exit 1; }; }
11333 { echo "$as_me:$LINENO: checking build system type" >&5
11334 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
11335 if test "${ac_cv_build+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 ac_build_alias=$build_alias
11339 test "x$ac_build_alias" = x &&
11340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11341 test "x$ac_build_alias" = x &&
11342 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11343 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11344 { (exit 1); exit 1; }; }
11345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11346 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11347 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11348 { (exit 1); exit 1; }; }
11351 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11352 echo "${ECHO_T}$ac_cv_build" >&6; }
11353 case $ac_cv_build in
11355 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11356 echo "$as_me: error: invalid value of canonical build" >&2;}
11357 { (exit 1); exit 1; }; };;
11360 ac_save_IFS=$IFS; IFS='-'
11366 # Remember, the first character of IFS is used to create $*,
11367 # except with old shells:
11370 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11373 { echo "$as_me:$LINENO: checking host system type" >&5
11374 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
11375 if test "${ac_cv_host+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 if test "x$host_alias" = x; then
11379 ac_cv_host=$ac_cv_build
11381 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11382 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11383 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11384 { (exit 1); exit 1; }; }
11388 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11389 echo "${ECHO_T}$ac_cv_host" >&6; }
11390 case $ac_cv_host in
11392 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11393 echo "$as_me: error: invalid value of canonical host" >&2;}
11394 { (exit 1); exit 1; }; };;
11397 ac_save_IFS=$IFS; IFS='-'
11403 # Remember, the first character of IFS is used to create $*,
11404 # except with old shells:
11407 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11410 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11411 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11412 if test "${lt_cv_path_SED+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 # Loop through the user's path and test for sed and gsed.
11416 # Then use that list of sed's as ones to test for truncation.
11417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11421 test -z "$as_dir" && as_dir=.
11422 for lt_ac_prog in sed gsed; do
11423 for ac_exec_ext in '' $ac_executable_extensions; do
11424 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
11425 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11433 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11434 # along with /bin/sed that truncates output.
11435 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11436 test ! -f $lt_ac_sed && continue
11437 cat /dev/null > conftest.in
11439 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11440 # Check for GNU sed and select it if it is found.
11441 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11442 lt_cv_path_SED=$lt_ac_sed
11446 cat conftest.in conftest.in >conftest.tmp
11447 mv conftest.tmp conftest.in
11448 cp conftest.in conftest.nl
11450 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11451 cmp -s conftest.out conftest.nl || break
11452 # 10000 chars as input seems more than enough
11453 test $lt_ac_count -gt 10 && break
11454 lt_ac_count=`expr $lt_ac_count + 1`
11455 if test $lt_ac_count -gt $lt_ac_max; then
11456 lt_ac_max=$lt_ac_count
11457 lt_cv_path_SED=$lt_ac_sed
11464 SED=$lt_cv_path_SED
11466 { echo "$as_me:$LINENO: result: $SED" >&5
11467 echo "${ECHO_T}$SED" >&6; }
11470 # Check whether --with-gnu-ld was given.
11471 if test "${with_gnu_ld+set}" = set; then
11472 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11478 if test "$GCC" = yes; then
11479 # Check if gcc -print-prog-name=ld gives a path.
11480 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11481 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11484 # gcc leaves a trailing carriage return which upsets mingw
11485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11490 # Accept absolute paths.
11492 re_direlt='/[^/][^/]*/\.\./'
11493 # Canonicalize the pathname of ld
11494 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11495 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11496 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11498 test -z "$LD" && LD="$ac_prog"
11501 # If it fails, then pretend we aren't using GCC.
11505 # If it is relative, then search for the first ld in PATH.
11506 with_gnu_ld=unknown
11509 elif test "$with_gnu_ld" = yes; then
11510 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11511 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11513 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11514 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11516 if test "${lt_cv_path_LD+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 if test -z "$LD"; then
11520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11521 for ac_dir in $PATH; do
11523 test -z "$ac_dir" && ac_dir=.
11524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11525 lt_cv_path_LD="$ac_dir/$ac_prog"
11526 # Check to see if the program is GNU ld. I'd rather use --version,
11527 # but apparently some variants of GNU ld only accept -v.
11528 # Break only if it was the GNU/non-GNU ld that we prefer.
11529 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11530 *GNU* | *'with BFD'*)
11531 test "$with_gnu_ld" != no && break
11534 test "$with_gnu_ld" != yes && break
11541 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11545 LD="$lt_cv_path_LD"
11546 if test -n "$LD"; then
11547 { echo "$as_me:$LINENO: result: $LD" >&5
11548 echo "${ECHO_T}$LD" >&6; }
11550 { echo "$as_me:$LINENO: result: no" >&5
11551 echo "${ECHO_T}no" >&6; }
11553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11555 { (exit 1); exit 1; }; }
11556 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11558 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11562 case `$LD -v 2>&1 </dev/null` in
11563 *GNU* | *'with BFD'*)
11564 lt_cv_prog_gnu_ld=yes
11567 lt_cv_prog_gnu_ld=no
11571 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11572 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11573 with_gnu_ld=$lt_cv_prog_gnu_ld
11576 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11577 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11578 if test "${lt_cv_ld_reload_flag+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 lt_cv_ld_reload_flag='-r'
11583 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11584 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11585 reload_flag=$lt_cv_ld_reload_flag
11586 case $reload_flag in
11588 *) reload_flag=" $reload_flag" ;;
11590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11593 if test "$GCC" = yes; then
11594 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11596 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11601 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
11602 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
11603 if test "${lt_cv_path_NM+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 if test -n "$NM"; then
11607 # Let the user override the test.
11608 lt_cv_path_NM="$NM"
11610 lt_nm_to_check="${ac_tool_prefix}nm"
11611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11612 lt_nm_to_check="$lt_nm_to_check nm"
11614 for lt_tmp_nm in $lt_nm_to_check; do
11615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11618 test -z "$ac_dir" && ac_dir=.
11619 tmp_nm="$ac_dir/$lt_tmp_nm"
11620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11621 # Check to see if the nm accepts a BSD-compat flag.
11622 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11623 # nm: unknown option "B" ignored
11624 # Tru64's nm complains that /dev/null is an invalid object file
11625 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11626 */dev/null* | *'Invalid file or object type'*)
11627 lt_cv_path_NM="$tmp_nm -B"
11631 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11633 lt_cv_path_NM="$tmp_nm -p"
11637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11638 continue # so that we can try to find one that supports BSD flags
11647 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
11650 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11651 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
11652 NM="$lt_cv_path_NM"
11654 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
11655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
11657 if test "$LN_S" = "ln -s"; then
11658 { echo "$as_me:$LINENO: result: yes" >&5
11659 echo "${ECHO_T}yes" >&6; }
11661 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11662 echo "${ECHO_T}no, using $LN_S" >&6; }
11665 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
11666 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
11667 if test "${lt_cv_deplibs_check_method+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 lt_cv_file_magic_cmd='$MAGIC_CMD'
11671 lt_cv_file_magic_test_file=
11672 lt_cv_deplibs_check_method='unknown'
11673 # Need to set the preceding variable on all platforms that support
11674 # interlibrary dependencies.
11675 # 'none' -- dependencies not supported.
11676 # `unknown' -- same as none, but documents that we really don't know.
11677 # 'pass_all' -- all dependencies passed with no checks.
11678 # 'test_compile' -- check by making test program.
11679 # 'file_magic [[regex]]' -- check by looking for files in library path
11680 # which responds to the $file_magic_cmd with a given extended regex.
11681 # If you have `file' or equivalent on your system and you're not sure
11682 # whether `pass_all' will *always* work, you probably want this one.
11686 lt_cv_deplibs_check_method=pass_all
11690 lt_cv_deplibs_check_method=pass_all
11694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11695 lt_cv_file_magic_cmd='/usr/bin/file -L'
11696 lt_cv_file_magic_test_file=/shlib/libc.so
11700 # func_win32_libid is a shell function defined in ltmain.sh
11701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11702 lt_cv_file_magic_cmd='func_win32_libid'
11706 # Base MSYS/MinGW do not provide the 'file' command needed by
11707 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11708 # unless we find 'file', for example because we are cross-compiling.
11709 if ( file / ) >/dev/null 2>&1; then
11710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11711 lt_cv_file_magic_cmd='func_win32_libid'
11713 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11714 lt_cv_file_magic_cmd='$OBJDUMP -f'
11718 darwin* | rhapsody*)
11719 lt_cv_deplibs_check_method=pass_all
11722 freebsd* | dragonfly*)
11723 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11726 # Not sure whether the presence of OpenBSD here was a mistake.
11727 # Let's accept both of them until this is cleared up.
11728 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11729 lt_cv_file_magic_cmd=/usr/bin/file
11730 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11734 lt_cv_deplibs_check_method=pass_all
11739 lt_cv_deplibs_check_method=pass_all
11742 hpux10.20* | hpux11*)
11743 lt_cv_file_magic_cmd=/usr/bin/file
11746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11747 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11750 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]'
11751 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11755 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11761 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11765 irix5* | irix6* | nonstopux*)
11767 *-32|*"-32 ") libmagic=32-bit;;
11768 *-n32|*"-n32 ") libmagic=N32;;
11769 *-64|*"-64 ") libmagic=64-bit;;
11770 *) libmagic=never-match;;
11772 lt_cv_deplibs_check_method=pass_all
11775 # This must be Linux ELF.
11776 linux* | k*bsd*-gnu)
11777 lt_cv_deplibs_check_method=pass_all
11780 netbsd* | netbsdelf*-gnu)
11781 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11790 lt_cv_file_magic_cmd=/usr/bin/file
11791 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11795 lt_cv_deplibs_check_method=unknown
11799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11806 osf3* | osf4* | osf5*)
11807 lt_cv_deplibs_check_method=pass_all
11811 lt_cv_deplibs_check_method=pass_all
11815 lt_cv_deplibs_check_method=pass_all
11819 case $host_vendor in
11821 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]'
11822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11825 lt_cv_deplibs_check_method=pass_all
11828 lt_cv_file_magic_cmd='/bin/file'
11829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11832 lt_cv_file_magic_cmd='/bin/file'
11833 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11834 lt_cv_file_magic_test_file=/lib/libc.so
11837 lt_cv_deplibs_check_method=pass_all
11840 lt_cv_deplibs_check_method=pass_all
11845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11846 lt_cv_deplibs_check_method=pass_all
11851 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11852 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11853 file_magic_cmd=$lt_cv_file_magic_cmd
11854 deplibs_check_method=$lt_cv_deplibs_check_method
11855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11860 # If no C compiler was specified, use CC.
11863 # If no C compiler flags were specified, use CFLAGS.
11864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11866 # Allow CC to be a program name with arguments.
11869 # Check whether --enable-libtool-lock was given.
11870 if test "${enable_libtool_lock+set}" = set; then
11871 enableval=$enable_libtool_lock;
11874 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11876 # Some flags need to be propagated to the compiler or linker for good
11880 # Find out which ABI we are using.
11881 echo 'int i;' > conftest.$ac_ext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883 (eval $ac_compile) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; then
11887 case `/usr/bin/file conftest.$ac_objext` in
11889 HPUX_IA64_MODE="32"
11892 HPUX_IA64_MODE="64"
11899 # Find out which ABI we are using.
11900 echo '#line 11900 "configure"' > conftest.$ac_ext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; then
11906 if test "$lt_cv_prog_gnu_ld" = yes; then
11907 case `/usr/bin/file conftest.$ac_objext` in
11909 LD="${LD-ld} -melf32bsmip"
11912 LD="${LD-ld} -melf32bmipn32"
11915 LD="${LD-ld} -melf64bmip"
11919 case `/usr/bin/file conftest.$ac_objext` in
11935 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11936 s390*-*linux*|sparc*-*linux*)
11937 # Find out which ABI we are using.
11938 echo 'int i;' > conftest.$ac_ext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; then
11944 case `/usr/bin/file conftest.o` in
11947 x86_64-*kfreebsd*-gnu)
11948 LD="${LD-ld} -m elf_i386_fbsd"
11951 LD="${LD-ld} -m elf_i386"
11953 ppc64-*linux*|powerpc64-*linux*)
11954 LD="${LD-ld} -m elf32ppclinux"
11957 LD="${LD-ld} -m elf_s390"
11960 LD="${LD-ld} -m elf32_sparc"
11966 x86_64-*kfreebsd*-gnu)
11967 LD="${LD-ld} -m elf_x86_64_fbsd"
11970 LD="${LD-ld} -m elf_x86_64"
11972 ppc*-*linux*|powerpc*-*linux*)
11973 LD="${LD-ld} -m elf64ppc"
11976 LD="${LD-ld} -m elf64_s390"
11979 LD="${LD-ld} -m elf64_sparc"
11989 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11990 SAVE_CFLAGS="$CFLAGS"
11991 CFLAGS="$CFLAGS -belf"
11992 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11993 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11994 if test "${lt_cv_cc_needs_belf+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 ac_cpp='$CPP $CPPFLAGS'
11999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (ac_try="$ac_link"
12020 case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_link") 2>conftest.er1
12027 grep -v '^ *+' conftest.er1 >conftest.err
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } && {
12032 test -z "$ac_c_werror_flag" ||
12033 test ! -s conftest.err
12034 } && test -s conftest$ac_exeext &&
12035 $as_test_x conftest$ac_exeext; then
12036 lt_cv_cc_needs_belf=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 lt_cv_cc_needs_belf=no
12044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12045 conftest$ac_exeext conftest.$ac_ext
12047 ac_cpp='$CPP $CPPFLAGS'
12048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12053 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12054 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12055 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12056 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12057 CFLAGS="$SAVE_CFLAGS"
12061 # Find out which ABI we are using.
12062 echo 'int i;' > conftest.$ac_ext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; then
12068 case `/usr/bin/file conftest.o` in
12070 case $lt_cv_prog_gnu_ld in
12071 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12073 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12087 need_locks="$enable_libtool_lock"
12091 for ac_header in dlfcn.h
12093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 ac_res=`eval echo '${'$as_ac_Header'}'`
12101 { echo "$as_me:$LINENO: result: $ac_res" >&5
12102 echo "${ECHO_T}$ac_res" >&6; }
12104 # Is the header compilable?
12105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12107 cat >conftest.$ac_ext <<_ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 $ac_includes_default
12114 #include <$ac_header>
12116 rm -f conftest.$ac_objext
12117 if { (ac_try="$ac_compile"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_compile") 2>conftest.er1
12125 grep -v '^ *+' conftest.er1 >conftest.err
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && {
12130 test -z "$ac_c_werror_flag" ||
12131 test ! -s conftest.err
12132 } && test -s conftest.$ac_objext; then
12133 ac_header_compiler=yes
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 ac_header_compiler=no
12141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12143 echo "${ECHO_T}$ac_header_compiler" >&6; }
12145 # Is the header present?
12146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 #include <$ac_header>
12156 if { (ac_try="$ac_cpp conftest.$ac_ext"
12157 case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } >/dev/null && {
12169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12172 ac_header_preproc=yes
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 ac_header_preproc=no
12180 rm -f conftest.err conftest.$ac_ext
12181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12182 echo "${ECHO_T}$ac_header_preproc" >&6; }
12184 # So? What about this header?
12185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12191 ac_header_preproc=yes
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 eval "$as_ac_Header=\$ac_header_preproc"
12216 ac_res=`eval echo '${'$as_ac_Header'}'`
12217 { echo "$as_me:$LINENO: result: $ac_res" >&5
12218 echo "${ECHO_T}$ac_res" >&6; }
12221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12222 cat >>confdefs.h <<_ACEOF
12223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12232 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12233 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12234 (test "X$CXX" != "Xg++"))) ; then
12236 ac_cpp='$CXXCPP $CPPFLAGS'
12237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12240 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12241 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12242 if test -z "$CXXCPP"; then
12243 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 # Double quotes because CXXCPP needs to be expanded
12247 for CXXCPP in "$CXX -E" "/lib/cpp"
12249 ac_preproc_ok=false
12250 for ac_cxx_preproc_warn_flag in '' yes
12252 # Use a header file that comes with gcc, so configuring glibc
12253 # with a fresh cross-compiler works.
12254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12255 # <limits.h> exists even on freestanding compilers.
12256 # On the NeXT, cc -E runs the code through the compiler's parser,
12257 # not just through cpp. "Syntax error" is here to catch this case.
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 # include <limits.h>
12267 # include <assert.h>
12271 if { (ac_try="$ac_cpp conftest.$ac_ext"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } >/dev/null && {
12284 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12285 test ! -s conftest.err
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 # Broken: fails on valid input.
12296 rm -f conftest.err conftest.$ac_ext
12298 # OK, works on sane cases. Now check whether nonexistent headers
12299 # can be detected and how.
12300 cat >conftest.$ac_ext <<_ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306 #include <ac_nonexistent.h>
12308 if { (ac_try="$ac_cpp conftest.$ac_ext"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12316 grep -v '^ *+' conftest.er1 >conftest.err
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } >/dev/null && {
12321 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12322 test ! -s conftest.err
12324 # Broken: success on invalid input.
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12330 # Passes both tests.
12335 rm -f conftest.err conftest.$ac_ext
12338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12339 rm -f conftest.err conftest.$ac_ext
12340 if $ac_preproc_ok; then
12345 ac_cv_prog_CXXCPP=$CXXCPP
12348 CXXCPP=$ac_cv_prog_CXXCPP
12350 ac_cv_prog_CXXCPP=$CXXCPP
12352 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12353 echo "${ECHO_T}$CXXCPP" >&6; }
12354 ac_preproc_ok=false
12355 for ac_cxx_preproc_warn_flag in '' yes
12357 # Use a header file that comes with gcc, so configuring glibc
12358 # with a fresh cross-compiler works.
12359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360 # <limits.h> exists even on freestanding compilers.
12361 # On the NeXT, cc -E runs the code through the compiler's parser,
12362 # not just through cpp. "Syntax error" is here to catch this case.
12363 cat >conftest.$ac_ext <<_ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12370 # include <limits.h>
12372 # include <assert.h>
12376 if { (ac_try="$ac_cpp conftest.$ac_ext"
12377 case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12384 grep -v '^ *+' conftest.er1 >conftest.err
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } >/dev/null && {
12389 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12390 test ! -s conftest.err
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 # Broken: fails on valid input.
12401 rm -f conftest.err conftest.$ac_ext
12403 # OK, works on sane cases. Now check whether nonexistent headers
12404 # can be detected and how.
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 #include <ac_nonexistent.h>
12413 if { (ac_try="$ac_cpp conftest.$ac_ext"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12421 grep -v '^ *+' conftest.er1 >conftest.err
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } >/dev/null && {
12426 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12427 test ! -s conftest.err
12429 # Broken: success on invalid input.
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 # Passes both tests.
12440 rm -f conftest.err conftest.$ac_ext
12443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12444 rm -f conftest.err conftest.$ac_ext
12445 if $ac_preproc_ok; then
12448 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12449 See \`config.log' for more details." >&5
12450 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12451 See \`config.log' for more details." >&2;}
12452 { (exit 1); exit 1; }; }
12456 ac_cpp='$CXXCPP $CPPFLAGS'
12457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12464 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12465 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12466 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12467 if test -n "$ac_tool_prefix"; then
12468 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
12470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12474 if test "${ac_cv_prog_F77+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 if test -n "$F77"; then
12478 ac_cv_prog_F77="$F77" # Let the user override the test.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 F77=$ac_cv_prog_F77
12498 if test -n "$F77"; then
12499 { echo "$as_me:$LINENO: result: $F77" >&5
12500 echo "${ECHO_T}$F77" >&6; }
12502 { echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6; }
12507 test -n "$F77" && break
12510 if test -z "$F77"; then
12512 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
12514 # Extract the first word of "$ac_prog", so it can be a program name with args.
12515 set dummy $ac_prog; ac_word=$2
12516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12518 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 if test -n "$ac_ct_F77"; then
12522 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12531 ac_cv_prog_ac_ct_F77="$ac_prog"
12532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12542 if test -n "$ac_ct_F77"; then
12543 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12544 echo "${ECHO_T}$ac_ct_F77" >&6; }
12546 { echo "$as_me:$LINENO: result: no" >&5
12547 echo "${ECHO_T}no" >&6; }
12551 test -n "$ac_ct_F77" && break
12554 if test "x$ac_ct_F77" = x; then
12557 case $cross_compiling:$ac_tool_warned in
12559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12560 whose name does not start with the host triplet. If you think this
12561 configuration is useful to you, please write to autoconf@gnu.org." >&5
12562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12563 whose name does not start with the host triplet. If you think this
12564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12565 ac_tool_warned=yes ;;
12572 # Provide some information about the compiler.
12573 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12574 ac_compiler=`set X $ac_compile; echo $2`
12575 { (ac_try="$ac_compiler --version >&5"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_compiler --version >&5") 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }
12585 { (ac_try="$ac_compiler -v >&5"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compiler -v >&5") 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }
12595 { (ac_try="$ac_compiler -V >&5"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_compiler -V >&5") 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }
12607 # If we don't use `.F' as extension, the preprocessor is not run on the
12608 # input file. (Note that this only needs to work for GNU compilers.)
12609 ac_save_ext=$ac_ext
12611 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12612 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12613 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 cat >conftest.$ac_ext <<_ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (ac_try="$ac_compile"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_compile") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_f77_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest.$ac_objext; then
12641 ac_compiler_gnu=yes
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12653 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12654 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12655 ac_ext=$ac_save_ext
12656 ac_test_FFLAGS=${FFLAGS+set}
12657 ac_save_FFLAGS=$FFLAGS
12659 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12660 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12661 if test "${ac_cv_prog_f77_g+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 cat >conftest.$ac_ext <<_ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (ac_try="$ac_compile"
12672 case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_compile") 2>conftest.er1
12679 grep -v '^ *+' conftest.er1 >conftest.err
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_f77_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest.$ac_objext; then
12687 ac_cv_prog_f77_g=yes
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 ac_cv_prog_f77_g=no
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12699 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12700 if test "$ac_test_FFLAGS" = set; then
12701 FFLAGS=$ac_save_FFLAGS
12702 elif test $ac_cv_prog_f77_g = yes; then
12703 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12709 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12716 G77=`test $ac_compiler_gnu = yes && echo yes`
12718 ac_cpp='$CPP $CPPFLAGS'
12719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12725 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12726 # find the maximum length of command line arguments
12727 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12728 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12729 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 # On DJGPP, this test can blow up pretty badly due to problems in libc
12738 # (any single argument exceeding 2000 bytes causes a buffer overrun
12739 # during glob expansion). Even if it were fixed, the result of this
12740 # check would be larger than it should be.
12741 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12745 # Under GNU Hurd, this test is not required because there is
12746 # no limit to the length of command line arguments.
12747 # Libtool will interpret -1 as no limit whatsoever
12748 lt_cv_sys_max_cmd_len=-1;
12752 # On Win9x/ME, this test blows up -- it succeeds, but takes
12753 # about 5 minutes as the teststring grows exponentially.
12754 # Worse, since 9x/ME are not pre-emptively multitasking,
12755 # you end up with a "frozen" computer, even though with patience
12756 # the test eventually succeeds (with a max line length of 256k).
12757 # Instead, let's just punt: use the minimum linelength reported by
12758 # all of the supported platforms: 8192 (on NT/2K/XP).
12759 lt_cv_sys_max_cmd_len=8192;
12763 # On AmigaOS with pdksh, this test takes hours, literally.
12764 # So we just punt and use a minimum line length of 8192.
12765 lt_cv_sys_max_cmd_len=8192;
12768 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12769 # This has been around since 386BSD, at least. Likely further.
12770 if test -x /sbin/sysctl; then
12771 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12772 elif test -x /usr/sbin/sysctl; then
12773 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12775 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12777 # And add a safety zone
12778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12783 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12784 lt_cv_sys_max_cmd_len=196608
12788 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12789 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12790 # nice to cause kernel panics so lets avoid the loop below.
12791 # First set a reasonable default.
12792 lt_cv_sys_max_cmd_len=16384
12794 if test -x /sbin/sysconfig; then
12795 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12796 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12801 lt_cv_sys_max_cmd_len=102400
12803 sysv5* | sco5v6* | sysv4.2uw2*)
12804 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12805 if test -n "$kargmax"; then
12806 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12808 lt_cv_sys_max_cmd_len=32768
12812 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12813 if test -n "$lt_cv_sys_max_cmd_len"; then
12814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12817 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12818 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12819 = "XX$teststring") >/dev/null 2>&1 &&
12820 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12821 lt_cv_sys_max_cmd_len=$new_result &&
12822 test $i != 17 # 1/2 MB should be enough
12825 teststring=$teststring$teststring
12828 # Add a significant safety factor because C++ compilers can tack on massive
12829 # amounts of additional arguments before passing them to the linker.
12830 # It appears as though 1/2 is a usable value.
12831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12838 if test -n $lt_cv_sys_max_cmd_len ; then
12839 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12842 { echo "$as_me:$LINENO: result: none" >&5
12843 echo "${ECHO_T}none" >&6; }
12850 # Check for command to grab the raw symbol name followed by C symbol from nm.
12851 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12852 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12853 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 # These are sane defaults that work on at least a few old systems.
12858 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12860 # Character class describing NM global symbol codes.
12861 symcode='[BCDEGRST]'
12863 # Regexp to match symbols that can be accessed directly from C.
12864 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12866 # Transform an extracted symbol line into a proper C declaration
12867 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12869 # Transform an extracted symbol line into symbol name and symbol address
12870 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'"
12872 # Define system-specific variables.
12877 cygwin* | mingw* | pw32*)
12878 symcode='[ABCDGISTW]'
12880 hpux*) # Its linker distinguishes data from code symbols
12881 if test "$host_cpu" = ia64; then
12882 symcode='[ABCDEGRST]'
12884 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12885 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'"
12887 linux* | k*bsd*-gnu)
12888 if test "$host_cpu" = ia64; then
12889 symcode='[ABCDGIRSTW]'
12890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12891 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'"
12894 irix* | nonstopux*)
12895 symcode='[BCDEGRST]'
12898 symcode='[BCDEGQRST]'
12909 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12917 # Handle CRLF in mingw tool chain
12921 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12925 # If we're using GNU nm, then use its standard symbol codes.
12926 case `$NM -V 2>&1` in
12927 *GNU* | *'with BFD'*)
12928 symcode='[ABCDGIRSTW]' ;;
12931 # Try without a prefix undercore, then with it.
12932 for ac_symprfx in "" "_"; do
12934 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12935 symxfrm="\\1 $ac_symprfx\\2 \\2"
12937 # Write the raw and C identifiers.
12938 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12940 # Check to see that the pipe works correctly.
12944 cat > conftest.$ac_ext <<EOF
12949 void nm_test_func(){}
12953 int main(){nm_test_var='a';nm_test_func();return(0);}
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; then
12961 # Now try to grab the symbols.
12963 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12964 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } && test -s "$nlist"; then
12968 # Try sorting and uniquifying the output.
12969 if sort "$nlist" | uniq > "$nlist"T; then
12970 mv -f "$nlist"T "$nlist"
12975 # Make sure that we snagged all the symbols we need.
12976 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12977 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12978 cat <<EOF > conftest.$ac_ext
12984 # Now generate the symbol file.
12985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12987 cat <<EOF >> conftest.$ac_ext
12988 #if defined (__STDC__) && __STDC__
12989 # define lt_ptr_t void *
12991 # define lt_ptr_t char *
12995 /* The mapping between symbol names and symbols. */
13000 lt_preloaded_symbols[] =
13003 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13004 cat <<\EOF >> conftest.$ac_ext
13012 # Now try linking the two files.
13013 mv conftest.$ac_objext conftstm.$ac_objext
13014 lt_save_LIBS="$LIBS"
13015 lt_save_CFLAGS="$CFLAGS"
13016 LIBS="conftstm.$ac_objext"
13017 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13025 LIBS="$lt_save_LIBS"
13026 CFLAGS="$lt_save_CFLAGS"
13028 echo "cannot find nm_test_func in $nlist" >&5
13031 echo "cannot find nm_test_var in $nlist" >&5
13034 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13037 echo "$progname: failed program was:" >&5
13038 cat conftest.$ac_ext >&5
13040 rm -rf conftest* conftst*
13042 # Do not use the global_symbol_pipe unless it works.
13043 if test "$pipe_works" = yes; then
13046 lt_cv_sys_global_symbol_pipe=
13052 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13053 lt_cv_sys_global_symbol_to_cdecl=
13055 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13056 { echo "$as_me:$LINENO: result: failed" >&5
13057 echo "${ECHO_T}failed" >&6; }
13059 { echo "$as_me:$LINENO: result: ok" >&5
13060 echo "${ECHO_T}ok" >&6; }
13063 { echo "$as_me:$LINENO: checking for objdir" >&5
13064 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13065 if test "${lt_cv_objdir+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 rm -f .libs 2>/dev/null
13069 mkdir .libs 2>/dev/null
13070 if test -d .libs; then
13073 # MS-DOS does not allow filenames that begin with a dot.
13076 rmdir .libs 2>/dev/null
13078 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13079 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13080 objdir=$lt_cv_objdir
13088 # AIX sometimes has problems with the GCC collect2 program. For some
13089 # reason, if we set the COLLECT_NAMES environment variable, the problems
13090 # vanish in a puff of smoke.
13091 if test "X${COLLECT_NAMES+set}" != Xset; then
13093 export COLLECT_NAMES
13098 # Sed substitution that helps us do robust quoting. It backslashifies
13099 # metacharacters that are still active within double-quoted strings.
13100 Xsed='sed -e 1s/^X//'
13101 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13103 # Same as above, but do not quote variable references.
13104 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13106 # Sed substitution to delay expansion of an escaped shell variable in a
13107 # double_quote_subst'ed string.
13108 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13110 # Sed substitution to avoid accidental globbing in evaled expressions
13111 no_glob_subst='s/\*/\\\*/g'
13116 # Global variables:
13117 default_ofile=libtool
13118 can_build_shared=yes
13120 # All known linkers require a `.a' archive for static linking (except MSVC,
13121 # which needs '.lib').
13123 ltmain="$ac_aux_dir/ltmain.sh"
13124 ofile="$default_ofile"
13125 with_gnu_ld="$lt_cv_prog_gnu_ld"
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 if test -n "$AR"; then
13157 { echo "$as_me:$LINENO: result: $AR" >&5
13158 echo "${ECHO_T}$AR" >&6; }
13160 { echo "$as_me:$LINENO: result: no" >&5
13161 echo "${ECHO_T}no" >&6; }
13166 if test -z "$ac_cv_prog_AR"; then
13168 # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_ac_ct_AR="ar"
13186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13198 echo "${ECHO_T}$ac_ct_AR" >&6; }
13200 { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13204 if test "x$ac_ct_AR" = x; then
13207 case $cross_compiling:$ac_tool_warned in
13209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13210 whose name does not start with the host triplet. If you think this
13211 configuration is useful to you, please write to autoconf@gnu.org." >&5
13212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13213 whose name does not start with the host triplet. If you think this
13214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13215 ac_tool_warned=yes ;;
13220 AR="$ac_cv_prog_AR"
13223 if test -n "$ac_tool_prefix"; then
13224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13228 if test "${ac_cv_prog_RANLIB+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 if test -n "$RANLIB"; then
13232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 RANLIB=$ac_cv_prog_RANLIB
13252 if test -n "$RANLIB"; then
13253 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13254 echo "${ECHO_T}$RANLIB" >&6; }
13256 { echo "$as_me:$LINENO: result: no" >&5
13257 echo "${ECHO_T}no" >&6; }
13262 if test -z "$ac_cv_prog_RANLIB"; then
13263 ac_ct_RANLIB=$RANLIB
13264 # Extract the first word of "ranlib", so it can be a program name with args.
13265 set dummy ranlib; ac_word=$2
13266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 if test -n "$ac_ct_RANLIB"; then
13272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_prog_ac_ct_RANLIB="ranlib"
13282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13292 if test -n "$ac_ct_RANLIB"; then
13293 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13294 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13296 { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13300 if test "x$ac_ct_RANLIB" = x; then
13303 case $cross_compiling:$ac_tool_warned in
13305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13306 whose name does not start with the host triplet. If you think this
13307 configuration is useful to you, please write to autoconf@gnu.org." >&5
13308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13309 whose name does not start with the host triplet. If you think this
13310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13311 ac_tool_warned=yes ;;
13313 RANLIB=$ac_ct_RANLIB
13316 RANLIB="$ac_cv_prog_RANLIB"
13319 if test -n "$ac_tool_prefix"; then
13320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13321 set dummy ${ac_tool_prefix}strip; ac_word=$2
13322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13324 if test "${ac_cv_prog_STRIP+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 if test -n "$STRIP"; then
13328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 STRIP=$ac_cv_prog_STRIP
13348 if test -n "$STRIP"; then
13349 { echo "$as_me:$LINENO: result: $STRIP" >&5
13350 echo "${ECHO_T}$STRIP" >&6; }
13352 { echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6; }
13358 if test -z "$ac_cv_prog_STRIP"; then
13360 # Extract the first word of "strip", so it can be a program name with args.
13361 set dummy strip; ac_word=$2
13362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 if test -n "$ac_ct_STRIP"; then
13368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377 ac_cv_prog_ac_ct_STRIP="strip"
13378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13388 if test -n "$ac_ct_STRIP"; then
13389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13392 { echo "$as_me:$LINENO: result: no" >&5
13393 echo "${ECHO_T}no" >&6; }
13396 if test "x$ac_ct_STRIP" = x; then
13399 case $cross_compiling:$ac_tool_warned in
13401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13402 whose name does not start with the host triplet. If you think this
13403 configuration is useful to you, please write to autoconf@gnu.org." >&5
13404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13405 whose name does not start with the host triplet. If you think this
13406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13407 ac_tool_warned=yes ;;
13412 STRIP="$ac_cv_prog_STRIP"
13417 old_CFLAGS="$CFLAGS"
13419 # Set sane defaults for various variables
13420 test -z "$AR" && AR=ar
13421 test -z "$AR_FLAGS" && AR_FLAGS=cru
13422 test -z "$AS" && AS=as
13423 test -z "$CC" && CC=cc
13424 test -z "$LTCC" && LTCC=$CC
13425 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13426 test -z "$DLLTOOL" && DLLTOOL=dlltool
13427 test -z "$LD" && LD=ld
13428 test -z "$LN_S" && LN_S="ln -s"
13429 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13430 test -z "$NM" && NM=nm
13431 test -z "$SED" && SED=sed
13432 test -z "$OBJDUMP" && OBJDUMP=objdump
13433 test -z "$RANLIB" && RANLIB=:
13434 test -z "$STRIP" && STRIP=:
13435 test -z "$ac_objext" && ac_objext=o
13437 # Determine commands to create old-style static archives.
13438 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13439 old_postinstall_cmds='chmod 644 $oldlib'
13440 old_postuninstall_cmds=
13442 if test -n "$RANLIB"; then
13445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13454 for cc_temp in $compiler""; do
13456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13462 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13465 # Only perform the check for file, if the check method requires it
13466 case $deplibs_check_method in
13468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13469 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13470 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13479 lt_save_MAGIC_CMD="$MAGIC_CMD"
13480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13482 for ac_dir in $ac_dummy; do
13484 test -z "$ac_dir" && ac_dir=.
13485 if test -f $ac_dir/${ac_tool_prefix}file; then
13486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13487 if test -n "$file_magic_test_file"; then
13488 case $deplibs_check_method in
13490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13493 $EGREP "$file_magic_regex" > /dev/null; then
13498 *** Warning: the command libtool uses to detect shared libraries,
13499 *** $file_magic_cmd, produces output that libtool cannot recognize.
13500 *** The result is that libtool may fail to recognize shared libraries
13501 *** as such. This will affect the creation of libtool libraries that
13502 *** depend on shared libraries, but programs linked with such libtool
13503 *** libraries will work regardless of this problem. Nevertheless, you
13504 *** may want to report the problem to your system manager and/or to
13505 *** bug-libtool@gnu.org
13515 MAGIC_CMD="$lt_save_MAGIC_CMD"
13520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13521 if test -n "$MAGIC_CMD"; then
13522 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13523 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13525 { echo "$as_me:$LINENO: result: no" >&5
13526 echo "${ECHO_T}no" >&6; }
13529 if test -z "$lt_cv_path_MAGIC_CMD"; then
13530 if test -n "$ac_tool_prefix"; then
13531 { echo "$as_me:$LINENO: checking for file" >&5
13532 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13541 lt_save_MAGIC_CMD="$MAGIC_CMD"
13542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13544 for ac_dir in $ac_dummy; do
13546 test -z "$ac_dir" && ac_dir=.
13547 if test -f $ac_dir/file; then
13548 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13549 if test -n "$file_magic_test_file"; then
13550 case $deplibs_check_method in
13552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13555 $EGREP "$file_magic_regex" > /dev/null; then
13560 *** Warning: the command libtool uses to detect shared libraries,
13561 *** $file_magic_cmd, produces output that libtool cannot recognize.
13562 *** The result is that libtool may fail to recognize shared libraries
13563 *** as such. This will affect the creation of libtool libraries that
13564 *** depend on shared libraries, but programs linked with such libtool
13565 *** libraries will work regardless of this problem. Nevertheless, you
13566 *** may want to report the problem to your system manager and/or to
13567 *** bug-libtool@gnu.org
13577 MAGIC_CMD="$lt_save_MAGIC_CMD"
13582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13583 if test -n "$MAGIC_CMD"; then
13584 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13585 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13587 { echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6; }
13602 rhapsody* | darwin*)
13603 if test -n "$ac_tool_prefix"; then
13604 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13605 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13608 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 if test -n "$DSYMUTIL"; then
13612 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
13620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13621 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13631 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13632 if test -n "$DSYMUTIL"; then
13633 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
13634 echo "${ECHO_T}$DSYMUTIL" >&6; }
13636 { echo "$as_me:$LINENO: result: no" >&5
13637 echo "${ECHO_T}no" >&6; }
13642 if test -z "$ac_cv_prog_DSYMUTIL"; then
13643 ac_ct_DSYMUTIL=$DSYMUTIL
13644 # Extract the first word of "dsymutil", so it can be a program name with args.
13645 set dummy dsymutil; ac_word=$2
13646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13648 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 if test -n "$ac_ct_DSYMUTIL"; then
13652 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655 for as_dir in $PATH
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13661 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13671 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13672 if test -n "$ac_ct_DSYMUTIL"; then
13673 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
13674 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
13676 { echo "$as_me:$LINENO: result: no" >&5
13677 echo "${ECHO_T}no" >&6; }
13680 if test "x$ac_ct_DSYMUTIL" = x; then
13683 case $cross_compiling:$ac_tool_warned in
13685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13686 whose name does not start with the host triplet. If you think this
13687 configuration is useful to you, please write to autoconf@gnu.org." >&5
13688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13689 whose name does not start with the host triplet. If you think this
13690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13691 ac_tool_warned=yes ;;
13693 DSYMUTIL=$ac_ct_DSYMUTIL
13696 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13699 if test -n "$ac_tool_prefix"; then
13700 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13701 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13704 if test "${ac_cv_prog_NMEDIT+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 if test -n "$NMEDIT"; then
13708 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13714 test -z "$as_dir" && as_dir=.
13715 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13717 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13727 NMEDIT=$ac_cv_prog_NMEDIT
13728 if test -n "$NMEDIT"; then
13729 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
13730 echo "${ECHO_T}$NMEDIT" >&6; }
13732 { echo "$as_me:$LINENO: result: no" >&5
13733 echo "${ECHO_T}no" >&6; }
13738 if test -z "$ac_cv_prog_NMEDIT"; then
13739 ac_ct_NMEDIT=$NMEDIT
13740 # Extract the first word of "nmedit", so it can be a program name with args.
13741 set dummy nmedit; ac_word=$2
13742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13744 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 if test -n "$ac_ct_NMEDIT"; then
13748 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751 for as_dir in $PATH
13754 test -z "$as_dir" && as_dir=.
13755 for ac_exec_ext in '' $ac_executable_extensions; do
13756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13757 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13768 if test -n "$ac_ct_NMEDIT"; then
13769 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
13770 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
13772 { echo "$as_me:$LINENO: result: no" >&5
13773 echo "${ECHO_T}no" >&6; }
13776 if test "x$ac_ct_NMEDIT" = x; then
13779 case $cross_compiling:$ac_tool_warned in
13781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13782 whose name does not start with the host triplet. If you think this
13783 configuration is useful to you, please write to autoconf@gnu.org." >&5
13784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13785 whose name does not start with the host triplet. If you think this
13786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13787 ac_tool_warned=yes ;;
13789 NMEDIT=$ac_ct_NMEDIT
13792 NMEDIT="$ac_cv_prog_NMEDIT"
13796 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
13797 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
13798 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 lt_cv_apple_cc_single_mod=no
13802 if test -z "${LT_MULTI_MODULE}"; then
13803 # By default we will add the -single_module flag. You can override
13804 # by either setting the environment variable LT_MULTI_MODULE
13805 # non-empty at configure time, or by adding -multi_module to the
13807 echo "int foo(void){return 1;}" > conftest.c
13808 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13809 -dynamiclib ${wl}-single_module conftest.c
13810 if test -f libconftest.dylib; then
13811 lt_cv_apple_cc_single_mod=yes
13812 rm -rf libconftest.dylib*
13817 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
13818 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
13819 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
13820 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
13821 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 lt_cv_ld_exported_symbols_list=no
13825 save_LDFLAGS=$LDFLAGS
13826 echo "_main" > conftest.sym
13827 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13828 cat >conftest.$ac_ext <<_ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (ac_try="$ac_link"
13845 case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_link") 2>conftest.er1
13852 grep -v '^ *+' conftest.er1 >conftest.err
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } && {
13857 test -z "$ac_c_werror_flag" ||
13858 test ! -s conftest.err
13859 } && test -s conftest$ac_exeext &&
13860 $as_test_x conftest$ac_exeext; then
13861 lt_cv_ld_exported_symbols_list=yes
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 lt_cv_ld_exported_symbols_list=no
13869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13870 conftest$ac_exeext conftest.$ac_ext
13871 LDFLAGS="$save_LDFLAGS"
13874 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
13875 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
13877 rhapsody* | darwin1.[0123])
13878 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13880 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13882 # if running on 10.5 or later, the deployment target defaults
13883 # to the OS version, if on x86, and 10.4, the deployment
13884 # target defaults to 10.4. Don't you love it?
13885 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13886 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13889 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13891 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13895 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13896 _lt_dar_single_mod='$single_module'
13898 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13899 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13901 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
13903 if test "$DSYMUTIL" != ":"; then
13904 _lt_dsymutil="~$DSYMUTIL \$lib || :"
13913 enable_win32_dll=no
13915 # Check whether --enable-libtool-lock was given.
13916 if test "${enable_libtool_lock+set}" = set; then
13917 enableval=$enable_libtool_lock;
13920 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13923 # Check whether --with-pic was given.
13924 if test "${with_pic+set}" = set; then
13925 withval=$with_pic; pic_mode="$withval"
13930 test -z "$pic_mode" && pic_mode=default
13932 # Use C for the default configuration in the libtool script
13936 ac_cpp='$CPP $CPPFLAGS'
13937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13942 # Source file extension for C test sources.
13945 # Object file extension for compiled C test sources.
13949 # Code to be used in simple compile tests
13950 lt_simple_compile_test_code="int some_variable = 0;"
13952 # Code to be used in simple link tests
13953 lt_simple_link_test_code='int main(){return(0);}'
13956 # If no C compiler was specified, use CC.
13959 # If no C compiler flags were specified, use CFLAGS.
13960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13962 # Allow CC to be a program name with arguments.
13966 # save warnings/boilerplate of simple test code
13967 ac_outfile=conftest.$ac_objext
13968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13970 _lt_compiler_boilerplate=`cat conftest.err`
13973 ac_outfile=conftest.$ac_objext
13974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13976 _lt_linker_boilerplate=`cat conftest.err`
13981 lt_prog_compiler_no_builtin_flag=
13983 if test "$GCC" = yes; then
13984 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13987 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13988 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13989 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 lt_cv_prog_compiler_rtti_exceptions=no
13993 ac_outfile=conftest.$ac_objext
13994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13995 lt_compiler_flag="-fno-rtti -fno-exceptions"
13996 # Insert the option either (1) after the last *FLAGS variable, or
13997 # (2) before a word containing "conftest.", or (3) at the end.
13998 # Note that $ac_compile itself does not contain backslashes and begins
13999 # with a dollar sign (not a hyphen), so the echo should work correctly.
14000 # The option is referenced via a variable to avoid confusing sed.
14001 lt_compile=`echo "$ac_compile" | $SED \
14002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14004 -e 's:$: $lt_compiler_flag:'`
14005 (eval echo "\"\$as_me:14005: $lt_compile\"" >&5)
14006 (eval "$lt_compile" 2>conftest.err)
14008 cat conftest.err >&5
14009 echo "$as_me:14009: \$? = $ac_status" >&5
14010 if (exit $ac_status) && test -s "$ac_outfile"; then
14011 # The compiler can only warn and ignore the option if not recognized
14012 # So say no if there are warnings other than the usual output.
14013 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14016 lt_cv_prog_compiler_rtti_exceptions=yes
14022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14023 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14025 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14026 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14033 lt_prog_compiler_wl=
14034 lt_prog_compiler_pic=
14035 lt_prog_compiler_static=
14037 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14038 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14040 if test "$GCC" = yes; then
14041 lt_prog_compiler_wl='-Wl,'
14042 lt_prog_compiler_static='-static'
14046 # All AIX code is PIC.
14047 if test "$host_cpu" = ia64; then
14048 # AIX 5 now supports IA64 processor
14049 lt_prog_compiler_static='-Bstatic'
14054 # FIXME: we need at least 68020 code to build shared libraries, but
14055 # adding the `-m68020' flag to GCC prevents building anything better,
14057 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14060 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14061 # PIC is the default for these OSes.
14064 mingw* | cygwin* | pw32* | os2*)
14065 # This hack is so that the source file can tell whether it is being
14066 # built for inclusion in a dll (and should export symbols for example).
14067 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14068 # (--disable-auto-import) libraries
14069 lt_prog_compiler_pic='-DDLL_EXPORT'
14072 darwin* | rhapsody*)
14073 # PIC is the default on this platform
14074 # Common symbols not allowed in MH_DYLIB files
14075 lt_prog_compiler_pic='-fno-common'
14079 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14080 # Instead, we relocate shared libraries at runtime.
14084 # Just because we use GCC doesn't mean we suddenly get shared libraries
14085 # on systems that don't support them.
14086 lt_prog_compiler_can_build_shared=no
14091 if test -d /usr/nec; then
14092 lt_prog_compiler_pic=-Kconform_pic
14097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14098 # not for PA HP-UX.
14104 lt_prog_compiler_pic='-fPIC'
14110 lt_prog_compiler_pic='-fPIC'
14114 # PORTME Check for flag to pass linker flags through the system compiler.
14117 lt_prog_compiler_wl='-Wl,'
14118 if test "$host_cpu" = ia64; then
14119 # AIX 5 now supports IA64 processor
14120 lt_prog_compiler_static='-Bstatic'
14122 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14126 # PIC is the default on this platform
14127 # Common symbols not allowed in MH_DYLIB files
14128 case $cc_basename in
14130 lt_prog_compiler_pic='-qnocommon'
14131 lt_prog_compiler_wl='-Wl,'
14136 mingw* | cygwin* | pw32* | os2*)
14137 # This hack is so that the source file can tell whether it is being
14138 # built for inclusion in a dll (and should export symbols for example).
14139 lt_prog_compiler_pic='-DDLL_EXPORT'
14142 hpux9* | hpux10* | hpux11*)
14143 lt_prog_compiler_wl='-Wl,'
14144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14145 # not for PA HP-UX.
14151 lt_prog_compiler_pic='+Z'
14154 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14155 lt_prog_compiler_static='${wl}-a ${wl}archive'
14158 irix5* | irix6* | nonstopux*)
14159 lt_prog_compiler_wl='-Wl,'
14160 # PIC (with -KPIC) is the default.
14161 lt_prog_compiler_static='-non_shared'
14165 lt_prog_compiler_pic='-KPIC'
14166 lt_prog_compiler_static='-Bstatic'
14169 linux* | k*bsd*-gnu)
14170 case $cc_basename in
14172 lt_prog_compiler_wl='-Wl,'
14173 lt_prog_compiler_pic='-KPIC'
14174 lt_prog_compiler_static='-static'
14176 pgcc* | pgf77* | pgf90* | pgf95*)
14177 # Portland Group compilers (*not* the Pentium gcc compiler,
14178 # which looks to be a dead project)
14179 lt_prog_compiler_wl='-Wl,'
14180 lt_prog_compiler_pic='-fpic'
14181 lt_prog_compiler_static='-Bstatic'
14184 lt_prog_compiler_wl='-Wl,'
14185 # All Alpha code is PIC.
14186 lt_prog_compiler_static='-non_shared'
14189 case `$CC -V 2>&1 | sed 5q` in
14192 lt_prog_compiler_pic='-KPIC'
14193 lt_prog_compiler_static='-Bstatic'
14194 lt_prog_compiler_wl='-Wl,'
14197 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14198 lt_prog_compiler_pic='-KPIC'
14199 lt_prog_compiler_static='-Bstatic'
14200 lt_prog_compiler_wl=''
14207 osf3* | osf4* | osf5*)
14208 lt_prog_compiler_wl='-Wl,'
14209 # All OSF/1 code is PIC.
14210 lt_prog_compiler_static='-non_shared'
14214 lt_prog_compiler_static='-non_shared'
14218 lt_prog_compiler_pic='-KPIC'
14219 lt_prog_compiler_static='-Bstatic'
14220 case $cc_basename in
14221 f77* | f90* | f95*)
14222 lt_prog_compiler_wl='-Qoption ld ';;
14224 lt_prog_compiler_wl='-Wl,';;
14229 lt_prog_compiler_wl='-Qoption ld '
14230 lt_prog_compiler_pic='-PIC'
14231 lt_prog_compiler_static='-Bstatic'
14234 sysv4 | sysv4.2uw2* | sysv4.3*)
14235 lt_prog_compiler_wl='-Wl,'
14236 lt_prog_compiler_pic='-KPIC'
14237 lt_prog_compiler_static='-Bstatic'
14241 if test -d /usr/nec ;then
14242 lt_prog_compiler_pic='-Kconform_pic'
14243 lt_prog_compiler_static='-Bstatic'
14247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14248 lt_prog_compiler_wl='-Wl,'
14249 lt_prog_compiler_pic='-KPIC'
14250 lt_prog_compiler_static='-Bstatic'
14254 lt_prog_compiler_wl='-Wl,'
14255 lt_prog_compiler_can_build_shared=no
14259 lt_prog_compiler_pic='-pic'
14260 lt_prog_compiler_static='-Bstatic'
14264 lt_prog_compiler_can_build_shared=no
14269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14270 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14273 # Check to make sure the PIC flag actually works.
14275 if test -n "$lt_prog_compiler_pic"; then
14277 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14278 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14279 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 lt_cv_prog_compiler_pic_works=no
14283 ac_outfile=conftest.$ac_objext
14284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14285 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14286 # Insert the option either (1) after the last *FLAGS variable, or
14287 # (2) before a word containing "conftest.", or (3) at the end.
14288 # Note that $ac_compile itself does not contain backslashes and begins
14289 # with a dollar sign (not a hyphen), so the echo should work correctly.
14290 # The option is referenced via a variable to avoid confusing sed.
14291 lt_compile=`echo "$ac_compile" | $SED \
14292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14294 -e 's:$: $lt_compiler_flag:'`
14295 (eval echo "\"\$as_me:14295: $lt_compile\"" >&5)
14296 (eval "$lt_compile" 2>conftest.err)
14298 cat conftest.err >&5
14299 echo "$as_me:14299: \$? = $ac_status" >&5
14300 if (exit $ac_status) && test -s "$ac_outfile"; then
14301 # The compiler can only warn and ignore the option if not recognized
14302 # So say no if there are warnings other than the usual output.
14303 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14306 lt_cv_prog_compiler_pic_works=yes
14312 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
14313 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
14315 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14316 case $lt_prog_compiler_pic in
14318 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14321 lt_prog_compiler_pic=
14322 lt_prog_compiler_can_build_shared=no
14327 # For platforms which do not support PIC, -DPIC is meaningless:
14329 lt_prog_compiler_pic=
14332 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14337 # Check to make sure the static flag actually works.
14339 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14340 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14341 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14342 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 lt_cv_prog_compiler_static_works=no
14346 save_LDFLAGS="$LDFLAGS"
14347 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14348 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14350 # The linker can only warn and ignore the option if not recognized
14351 # So say no if there are warnings
14352 if test -s conftest.err; then
14353 # Append any errors to the config.log.
14354 cat conftest.err 1>&5
14355 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14357 if diff conftest.exp conftest.er2 >/dev/null; then
14358 lt_cv_prog_compiler_static_works=yes
14361 lt_cv_prog_compiler_static_works=yes
14365 LDFLAGS="$save_LDFLAGS"
14368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
14369 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
14371 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14374 lt_prog_compiler_static=
14378 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14379 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14380 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 lt_cv_prog_compiler_c_o=no
14384 $rm -r conftest 2>/dev/null
14388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14390 lt_compiler_flag="-o out/conftest2.$ac_objext"
14391 # Insert the option either (1) after the last *FLAGS variable, or
14392 # (2) before a word containing "conftest.", or (3) at the end.
14393 # Note that $ac_compile itself does not contain backslashes and begins
14394 # with a dollar sign (not a hyphen), so the echo should work correctly.
14395 lt_compile=`echo "$ac_compile" | $SED \
14396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14398 -e 's:$: $lt_compiler_flag:'`
14399 (eval echo "\"\$as_me:14399: $lt_compile\"" >&5)
14400 (eval "$lt_compile" 2>out/conftest.err)
14402 cat out/conftest.err >&5
14403 echo "$as_me:14403: \$? = $ac_status" >&5
14404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14406 # The compiler can only warn and ignore the option if not recognized
14407 # So say no if there are warnings
14408 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14411 lt_cv_prog_compiler_c_o=yes
14416 # SGI C++ compiler will create directory out/ii_files/ for
14417 # template instantiation
14418 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14419 $rm out/* && rmdir out
14425 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14426 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14429 hard_links="nottested"
14430 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14431 # do not overwrite the value of need_locks provided by the user
14432 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14433 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14438 ln conftest.a conftest.b 2>&5 || hard_links=no
14439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14440 { echo "$as_me:$LINENO: result: $hard_links" >&5
14441 echo "${ECHO_T}$hard_links" >&6; }
14442 if test "$hard_links" = no; then
14443 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14444 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14451 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14452 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14455 allow_undefined_flag=
14456 enable_shared_with_static_runtimes=no
14458 archive_expsym_cmds=
14459 old_archive_From_new_cmds=
14460 old_archive_from_expsyms_cmds=
14461 export_dynamic_flag_spec=
14462 whole_archive_flag_spec=
14463 thread_safe_flag_spec=
14464 hardcode_libdir_flag_spec=
14465 hardcode_libdir_flag_spec_ld=
14466 hardcode_libdir_separator=
14468 hardcode_minus_L=no
14469 hardcode_shlibpath_var=unsupported
14470 link_all_deplibs=unknown
14471 hardcode_automatic=no
14473 module_expsym_cmds=
14474 always_export_symbols=no
14475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14476 # include_expsyms should be a list of space-separated symbols to be *always*
14477 # included in the symbol list
14479 # exclude_expsyms can be an extended regexp of symbols to exclude
14480 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14481 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14482 # as well as any symbol that contains `d'.
14483 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14484 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14485 # platforms (ab)use it in PIC code, but their linkers get confused if
14486 # the symbol is explicitly referenced. Since portable code cannot
14487 # rely on this symbol name, it's probably fine to never include it in
14488 # preloaded symbol tables.
14489 # Exclude shared library initialization/finalization symbols.
14490 extract_expsyms_cmds=
14491 # Just being paranoid about ensuring that cc_basename is set.
14492 for cc_temp in $compiler""; do
14494 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14495 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14500 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14503 cygwin* | mingw* | pw32*)
14504 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14505 # When not using gcc, we currently assume that we are using
14506 # Microsoft Visual C++.
14507 if test "$GCC" != yes; then
14512 # we just hope/assume this is gcc and not c89 (= MSVC++)
14521 if test "$with_gnu_ld" = yes; then
14522 # If archive_cmds runs LD, not CC, wlarc should be empty
14525 # Set some defaults for GNU ld with shared library support. These
14526 # are reset later if shared libraries are not supported. Putting them
14527 # here allows them to be overridden if necessary.
14528 runpath_var=LD_RUN_PATH
14529 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14530 export_dynamic_flag_spec='${wl}--export-dynamic'
14531 # ancient GNU ld didn't support --whole-archive et. al.
14532 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14533 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14535 whole_archive_flag_spec=
14537 supports_anon_versioning=no
14538 case `$LD -v 2>/dev/null` in
14539 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14540 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14541 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14542 *\ 2.11.*) ;; # other 2.11 versions
14543 *) supports_anon_versioning=yes ;;
14546 # See if GNU ld supports shared libraries.
14549 # On AIX/PPC, the GNU linker is very broken
14550 if test "$host_cpu" != ia64; then
14554 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14555 *** to be unable to reliably create shared libraries on AIX.
14556 *** Therefore, libtool is disabling shared libraries support. If you
14557 *** really care for shared libraries, you may want to modify your PATH
14558 *** so that a non-GNU linker is found, and then restart.
14565 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)'
14566 hardcode_libdir_flag_spec='-L$libdir'
14567 hardcode_minus_L=yes
14569 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14570 # that the semantics of dynamic libraries on AmigaOS, at least up
14571 # to version 4, is to share data among multiple programs linked
14572 # with the same dynamic library. Since this doesn't match the
14573 # behavior of shared libraries on other platforms, we can't use
14579 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14580 allow_undefined_flag=unsupported
14581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14582 # support --undefined. This deserves some investigation. FIXME
14583 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14589 cygwin* | mingw* | pw32*)
14590 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14591 # as there is no search path for DLLs.
14592 hardcode_libdir_flag_spec='-L$libdir'
14593 allow_undefined_flag=unsupported
14594 always_export_symbols=no
14595 enable_shared_with_static_runtimes=yes
14596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14598 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14600 # If the export-symbols file already is a .def file (1st line
14601 # is EXPORTS), use it as is; otherwise, prepend...
14602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14603 cp $export_symbols $output_objdir/$soname.def;
14605 echo EXPORTS > $output_objdir/$soname.def;
14606 cat $export_symbols >> $output_objdir/$soname.def;
14608 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14616 hardcode_shlibpath_var=no
14617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14618 export_dynamic_flag_spec='${wl}-E'
14619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14620 # Instead, shared libraries are loaded at an image base (0x10000000 by
14621 # default) and relocated if they conflict, which is a slow very memory
14622 # consuming and fragmenting process. To avoid this, we pick a random,
14623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14624 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14626 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14629 gnu* | linux* | k*bsd*-gnu)
14630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14632 case $cc_basename,$host_cpu in
14633 pgcc*) # Portland Group C compiler
14634 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'
14635 tmp_addflag=' $pic_flag'
14637 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14638 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'
14639 tmp_addflag=' $pic_flag -Mnomain' ;;
14640 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14641 tmp_addflag=' -i_dynamic' ;;
14642 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14643 tmp_addflag=' -i_dynamic -nofor_main' ;;
14644 ifc* | ifort*) # Intel Fortran compiler
14645 tmp_addflag=' -nofor_main' ;;
14647 case `$CC -V 2>&1 | sed 5q` in
14648 *Sun\ C*) # Sun C 5.9
14649 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14650 tmp_sharedflag='-G' ;;
14651 *Sun\ F*) # Sun Fortran 8.3
14652 tmp_sharedflag='-G' ;;
14654 tmp_sharedflag='-shared' ;;
14656 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14658 if test $supports_anon_versioning = yes; then
14659 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14660 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14661 $echo "local: *; };" >> $output_objdir/$libname.ver~
14662 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14664 link_all_deplibs=no
14670 netbsd* | netbsdelf*-gnu)
14671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14672 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14681 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14685 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14686 *** create shared libraries on Solaris systems. Therefore, libtool
14687 *** is disabling shared libraries support. We urge you to upgrade GNU
14688 *** binutils to release 2.9.1 or newer. Another option is to modify
14689 *** your PATH or compiler configuration so that the native linker is
14690 *** used, and then restart.
14693 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14702 case `$LD -v 2>&1` in
14703 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14707 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14708 *** reliably create shared libraries on SCO systems. Therefore, libtool
14709 *** is disabling shared libraries support. We urge you to upgrade GNU
14710 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14711 *** your PATH or compiler configuration so that the native linker is
14712 *** used, and then restart.
14717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14718 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14729 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14731 hardcode_direct=yes
14732 hardcode_shlibpath_var=no
14736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14745 if test "$ld_shlibs" = no; then
14747 hardcode_libdir_flag_spec=
14748 export_dynamic_flag_spec=
14749 whole_archive_flag_spec=
14752 # PORTME fill in a description of your system's linker (not GNU ld)
14755 allow_undefined_flag=unsupported
14756 always_export_symbols=yes
14757 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'
14758 # Note: this linker hardcodes the directories in LIBPATH if there
14759 # are no directories specified by -L.
14760 hardcode_minus_L=yes
14761 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14762 # Neither direct hardcoding nor static linking is supported with a
14764 hardcode_direct=unsupported
14769 if test "$host_cpu" = ia64; then
14770 # On IA64, the linker does run time linking by default, so we don't
14771 # have to do anything special.
14772 aix_use_runtimelinking=no
14773 exp_sym_flag='-Bexport'
14776 # If we're using GNU nm, then we don't want the "-C" option.
14777 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14778 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14779 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'
14781 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'
14783 aix_use_runtimelinking=no
14785 # Test if we are trying to use run time linking or normal
14786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14787 # need to do runtime linking.
14788 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14789 for ld_flag in $LDFLAGS; do
14790 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14791 aix_use_runtimelinking=yes
14798 exp_sym_flag='-bexport'
14799 no_entry_flag='-bnoentry'
14802 # When large executables or shared objects are built, AIX ld can
14803 # have problems creating the table of contents. If linking a library
14804 # or program results in "error TOC overflow" add -mminimal-toc to
14805 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14806 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14809 hardcode_direct=yes
14810 hardcode_libdir_separator=':'
14811 link_all_deplibs=yes
14813 if test "$GCC" = yes; then
14814 case $host_os in aix4.[012]|aix4.[012].*)
14815 # We only want to do this on AIX 4.2 and lower, the check
14816 # below for broken collect2 doesn't work under 4.3+
14817 collect2name=`${CC} -print-prog-name=collect2`
14818 if test -f "$collect2name" && \
14819 strings "$collect2name" | grep resolve_lib_name >/dev/null
14821 # We have reworked collect2
14824 # We have old collect2
14825 hardcode_direct=unsupported
14826 # It fails to find uninstalled libraries when the uninstalled
14827 # path is not listed in the libpath. Setting hardcode_minus_L
14828 # to unsupported forces relinking
14829 hardcode_minus_L=yes
14830 hardcode_libdir_flag_spec='-L$libdir'
14831 hardcode_libdir_separator=
14835 shared_flag='-shared'
14836 if test "$aix_use_runtimelinking" = yes; then
14837 shared_flag="$shared_flag "'${wl}-G'
14841 if test "$host_cpu" = ia64; then
14842 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14843 # chokes on -Wl,-G. The following line is correct:
14846 if test "$aix_use_runtimelinking" = yes; then
14847 shared_flag='${wl}-G'
14849 shared_flag='${wl}-bM:SRE'
14854 # It seems that -bexpall does not export symbols beginning with
14855 # underscore (_), so it is better to generate a list of symbols to export.
14856 always_export_symbols=yes
14857 if test "$aix_use_runtimelinking" = yes; then
14858 # Warning - without using the other runtime loading flags (-brtl),
14859 # -berok will link without error, but may produce a broken library.
14860 allow_undefined_flag='-berok'
14861 # Determine the default libpath from the value encoded in an empty executable.
14862 cat >conftest.$ac_ext <<_ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (ac_try="$ac_link"
14879 case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_link") 2>conftest.er1
14886 grep -v '^ *+' conftest.er1 >conftest.err
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } && {
14891 test -z "$ac_c_werror_flag" ||
14892 test ! -s conftest.err
14893 } && test -s conftest$ac_exeext &&
14894 $as_test_x conftest$ac_exeext; then
14896 lt_aix_libpath_sed='
14897 /Import File Strings/,/^$/ {
14903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14904 # Check for a 64-bit object if we didn't find anything.
14905 if test -z "$aix_libpath"; then
14906 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916 conftest$ac_exeext conftest.$ac_ext
14917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14920 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14922 if test "$host_cpu" = ia64; then
14923 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14924 allow_undefined_flag="-z nodefs"
14925 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14927 # Determine the default libpath from the value encoded in an empty executable.
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_link") 2>conftest.er1
14952 grep -v '^ *+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest$ac_exeext &&
14960 $as_test_x conftest$ac_exeext; then
14962 lt_aix_libpath_sed='
14963 /Import File Strings/,/^$/ {
14969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14970 # Check for a 64-bit object if we didn't find anything.
14971 if test -z "$aix_libpath"; then
14972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14982 conftest$ac_exeext conftest.$ac_ext
14983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14986 # Warning - without using the other run time loading flags,
14987 # -berok will link without error, but may produce a broken library.
14988 no_undefined_flag=' ${wl}-bernotok'
14989 allow_undefined_flag=' ${wl}-berok'
14990 # Exported symbols can be pulled into shared objects from archives
14991 whole_archive_flag_spec='$convenience'
14992 archive_cmds_need_lc=yes
14993 # This is similar to how AIX traditionally builds its shared libraries.
14994 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15000 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)'
15001 hardcode_libdir_flag_spec='-L$libdir'
15002 hardcode_minus_L=yes
15003 # see comment about different semantics on the GNU ld section
15008 export_dynamic_flag_spec=-rdynamic
15011 cygwin* | mingw* | pw32*)
15012 # When not using gcc, we currently assume that we are using
15013 # Microsoft Visual C++.
15014 # hardcode_libdir_flag_spec is actually meaningless, as there is
15015 # no search path for DLLs.
15016 hardcode_libdir_flag_spec=' '
15017 allow_undefined_flag=unsupported
15018 # Tell ltmain to make .lib files, not .a files.
15020 # Tell ltmain to make .dll files, not .so files.
15022 # FIXME: Setting linknames here is a bad hack.
15023 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15024 # The linker will automatically build a .lib file if we build a DLL.
15025 old_archive_From_new_cmds='true'
15026 # FIXME: Should let the user specify the lib program.
15027 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15028 fix_srcfile_path='`cygpath -w "$srcfile"`'
15029 enable_shared_with_static_runtimes=yes
15032 darwin* | rhapsody*)
15034 rhapsody* | darwin1.[012])
15035 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15038 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15039 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15041 case ${MACOSX_DEPLOYMENT_TARGET} in
15043 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15046 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15052 archive_cmds_need_lc=no
15054 hardcode_automatic=yes
15055 hardcode_shlibpath_var=unsupported
15056 whole_archive_flag_spec=''
15057 link_all_deplibs=yes
15058 if test "$GCC" = yes ; then
15059 output_verbose_link_cmd='echo'
15060 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15061 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15062 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15063 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15065 case $cc_basename in
15067 output_verbose_link_cmd='echo'
15068 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15069 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15071 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15072 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}'
15082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083 hardcode_libdir_flag_spec='-L$libdir'
15084 hardcode_shlibpath_var=no
15091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15092 # support. Future versions do this automatically, but an explicit c++rt0.o
15093 # does not break anything, and helps significantly (at the cost of a little
15096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15097 hardcode_libdir_flag_spec='-R$libdir'
15098 hardcode_direct=yes
15099 hardcode_shlibpath_var=no
15102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15105 hardcode_direct=yes
15106 hardcode_minus_L=yes
15107 hardcode_shlibpath_var=no
15110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15111 freebsd* | dragonfly*)
15112 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15113 hardcode_libdir_flag_spec='-R$libdir'
15114 hardcode_direct=yes
15115 hardcode_shlibpath_var=no
15119 if test "$GCC" = yes; then
15120 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'
15122 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'
15124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15125 hardcode_libdir_separator=:
15126 hardcode_direct=yes
15128 # hardcode_minus_L: Not really in the search PATH,
15129 # but as the default location of the library.
15130 hardcode_minus_L=yes
15131 export_dynamic_flag_spec='${wl}-E'
15135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15136 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15138 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15140 if test "$with_gnu_ld" = no; then
15141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15142 hardcode_libdir_separator=:
15144 hardcode_direct=yes
15145 export_dynamic_flag_spec='${wl}-E'
15147 # hardcode_minus_L: Not really in the search PATH,
15148 # but as the default location of the library.
15149 hardcode_minus_L=yes
15154 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15157 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15163 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15172 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15175 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15179 if test "$with_gnu_ld" = no; then
15180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15181 hardcode_libdir_separator=:
15185 hardcode_libdir_flag_spec_ld='+b $libdir'
15187 hardcode_shlibpath_var=no
15190 hardcode_direct=yes
15191 export_dynamic_flag_spec='${wl}-E'
15193 # hardcode_minus_L: Not really in the search PATH,
15194 # but as the default location of the library.
15195 hardcode_minus_L=yes
15201 irix5* | irix6* | nonstopux*)
15202 if test "$GCC" = yes; then
15203 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'
15205 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'
15206 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15209 hardcode_libdir_separator=:
15210 link_all_deplibs=yes
15213 netbsd* | netbsdelf*-gnu)
15214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15219 hardcode_libdir_flag_spec='-R$libdir'
15220 hardcode_direct=yes
15221 hardcode_shlibpath_var=no
15225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15226 hardcode_direct=yes
15227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15228 hardcode_libdir_separator=:
15229 hardcode_shlibpath_var=no
15233 if test -f /usr/libexec/ld.so; then
15234 hardcode_direct=yes
15235 hardcode_shlibpath_var=no
15236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15238 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15239 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15240 export_dynamic_flag_spec='${wl}-E'
15243 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15245 hardcode_libdir_flag_spec='-R$libdir'
15248 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15249 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15259 hardcode_libdir_flag_spec='-L$libdir'
15260 hardcode_minus_L=yes
15261 allow_undefined_flag=unsupported
15262 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'
15263 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15267 if test "$GCC" = yes; then
15268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15269 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'
15271 allow_undefined_flag=' -expect_unresolved \*'
15272 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'
15274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15275 hardcode_libdir_separator=:
15278 osf4* | osf5*) # as osf3* with the addition of -msym flag
15279 if test "$GCC" = yes; then
15280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15281 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'
15282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15284 allow_undefined_flag=' -expect_unresolved \*'
15285 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'
15286 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15287 $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'
15289 # Both c and cxx compiler support -rpath directly
15290 hardcode_libdir_flag_spec='-rpath $libdir'
15292 hardcode_libdir_separator=:
15296 no_undefined_flag=' -z text'
15297 if test "$GCC" = yes; then
15299 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15300 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15301 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15304 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15308 hardcode_libdir_flag_spec='-R$libdir'
15309 hardcode_shlibpath_var=no
15311 solaris2.[0-5] | solaris2.[0-5].*) ;;
15313 # The compiler driver will combine and reorder linker options,
15314 # but understands `-z linker_flag'. GCC discards it without `$wl',
15315 # but is careful enough not to reorder.
15316 # Supported since Solaris 2.6 (maybe 2.5.1?)
15317 if test "$GCC" = yes; then
15318 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15320 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15324 link_all_deplibs=yes
15328 if test "x$host_vendor" = xsequent; then
15329 # Use $CC to link under sequent, because it throws in some extra .o
15330 # files that make .init and .fini sections work.
15331 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15333 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15335 hardcode_libdir_flag_spec='-L$libdir'
15336 hardcode_direct=yes
15337 hardcode_minus_L=yes
15338 hardcode_shlibpath_var=no
15342 case $host_vendor in
15344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15345 hardcode_direct=yes # is this really true???
15348 ## LD is ld it makes a PLAMLIB
15349 ## CC just makes a GrossModule.
15350 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15351 reload_cmds='$CC -r -o $output$reload_objs'
15355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15356 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15359 runpath_var='LD_RUN_PATH'
15360 hardcode_shlibpath_var=no
15364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15365 hardcode_shlibpath_var=no
15366 export_dynamic_flag_spec='-Bexport'
15370 if test -d /usr/nec; then
15371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15372 hardcode_shlibpath_var=no
15373 runpath_var=LD_RUN_PATH
15374 hardcode_runpath_var=yes
15379 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15380 no_undefined_flag='${wl}-z,text'
15381 archive_cmds_need_lc=no
15382 hardcode_shlibpath_var=no
15383 runpath_var='LD_RUN_PATH'
15385 if test "$GCC" = yes; then
15386 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15387 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15389 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15390 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15394 sysv5* | sco3.2v5* | sco5v6*)
15395 # Note: We can NOT use -z defs as we might desire, because we do not
15396 # link with -lc, and that would cause any symbols used from libc to
15397 # always be unresolved, which means just about no library would
15398 # ever link correctly. If we're not using GNU ld we use -z text
15399 # though, which does catch some bad symbols but isn't as heavy-handed
15401 no_undefined_flag='${wl}-z,text'
15402 allow_undefined_flag='${wl}-z,nodefs'
15403 archive_cmds_need_lc=no
15404 hardcode_shlibpath_var=no
15405 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15406 hardcode_libdir_separator=':'
15407 link_all_deplibs=yes
15408 export_dynamic_flag_spec='${wl}-Bexport'
15409 runpath_var='LD_RUN_PATH'
15411 if test "$GCC" = yes; then
15412 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15413 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15415 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15416 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15422 hardcode_libdir_flag_spec='-L$libdir'
15423 hardcode_shlibpath_var=no
15432 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15433 echo "${ECHO_T}$ld_shlibs" >&6; }
15434 test "$ld_shlibs" = no && can_build_shared=no
15437 # Do we need to explicitly link libc?
15439 case "x$archive_cmds_need_lc" in
15441 # Assume -lc should be added
15442 archive_cmds_need_lc=yes
15444 if test "$enable_shared" = yes && test "$GCC" = yes; then
15445 case $archive_cmds in
15447 # FIXME: we may have to deal with multi-command sequences.
15450 # Test whether the compiler implicitly links with -lc since on some
15451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15452 # to ld, don't add -lc before -lgcc.
15453 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15454 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15459 (eval $ac_compile) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } 2>conftest.err; then
15465 libobjs=conftest.$ac_objext
15467 wl=$lt_prog_compiler_wl
15468 pic_flag=$lt_prog_compiler_pic
15474 lt_save_allow_undefined_flag=$allow_undefined_flag
15475 allow_undefined_flag=
15476 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15477 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }
15482 archive_cmds_need_lc=no
15484 archive_cmds_need_lc=yes
15486 allow_undefined_flag=$lt_save_allow_undefined_flag
15488 cat conftest.err 1>&5
15491 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15492 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15499 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15500 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15501 library_names_spec=
15502 libname_spec='lib$name'
15506 postuninstall_cmds=
15510 shlibpath_overrides_runpath=unknown
15512 dynamic_linker="$host_os ld.so"
15513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15515 if test "$GCC" = yes; then
15517 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15518 *) lt_awk_arg="/^libraries:/" ;;
15520 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15521 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
15522 # if the path contains ";" then we assume it to be the separator
15523 # otherwise default to the standard path separator (i.e. ":") - it is
15524 # assumed that no part of a normal pathname contains ";" but that should
15525 # okay in the real world where ";" in dirpaths is itself problematic.
15526 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15528 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15530 # Ok, now we have the path, separated by spaces, we can step through it
15531 # and add multilib dir if necessary.
15532 lt_tmp_lt_search_path_spec=
15533 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15534 for lt_sys_path in $lt_search_path_spec; do
15535 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15536 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15538 test -d "$lt_sys_path" && \
15539 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15542 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
15543 BEGIN {RS=" "; FS="/|\n";} {
15546 for (lt_i = NF; lt_i > 0; lt_i--) {
15547 if ($lt_i != "" && $lt_i != ".") {
15548 if ($lt_i == "..") {
15551 if (lt_count == 0) {
15552 lt_foo="/" $lt_i lt_foo;
15559 if (lt_foo != "") { lt_freq[lt_foo]++; }
15560 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15562 sys_lib_search_path_spec=`echo $lt_search_path_spec`
15564 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15566 need_lib_prefix=unknown
15567 hardcode_into_libs=no
15569 # when you set need_version to no, make sure it does not cause -set_version
15570 # flags to be left without arguments
15571 need_version=unknown
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15577 shlibpath_var=LIBPATH
15579 # AIX 3 has no versioning support, so we append a major version to the name.
15580 soname_spec='${libname}${release}${shared_ext}$major'
15587 hardcode_into_libs=yes
15588 if test "$host_cpu" = ia64; then
15589 # AIX 5 supports IA64
15590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15591 shlibpath_var=LD_LIBRARY_PATH
15593 # With GCC up to 2.95.x, collect2 would create an import file
15594 # for dependence libraries. The import file would start with
15595 # the line `#! .'. This would cause the generated library to
15596 # depend on `.', always an invalid library. This was fixed in
15597 # development snapshots of GCC prior to 3.0.
15599 aix4 | aix4.[01] | aix4.[01].*)
15600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15602 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15605 can_build_shared=no
15609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15610 # soname into executable. Probably we can add versioning support to
15611 # collect2, so additional links can be useful in future.
15612 if test "$aix_use_runtimelinking" = yes; then
15613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15614 # instead of lib<name>.a to let people know that these are not
15615 # typical AIX shared libraries.
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 # We preserve .a as extension for shared libraries through AIX4.2
15619 # and later when we are not doing run time linking.
15620 library_names_spec='${libname}${release}.a $libname.a'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15623 shlibpath_var=LIBPATH
15628 library_names_spec='$libname.ixlibrary $libname.a'
15629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15630 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'
15634 library_names_spec='${libname}${shared_ext}'
15635 dynamic_linker="$host_os ld.so"
15636 shlibpath_var=LIBRARY_PATH
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 soname_spec='${libname}${release}${shared_ext}$major'
15644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15648 # the default ld.so.conf also contains /usr/contrib/lib and
15649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15650 # libtool to hard-code these into programs
15653 cygwin* | mingw* | pw32*)
15654 version_type=windows
15659 case $GCC,$host_os in
15660 yes,cygwin* | yes,mingw* | yes,pw32*)
15661 library_names_spec='$libname.dll.a'
15662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15663 postinstall_cmds='base_file=`basename \${file}`~
15664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15665 dldir=$destdir/`dirname \$dlpath`~
15666 test -d \$dldir || mkdir -p \$dldir~
15667 $install_prog $dir/$dlname \$dldir/$dlname~
15668 chmod a+x \$dldir/$dlname'
15669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15670 dlpath=$dir/\$dldll~
15672 shlibpath_overrides_runpath=yes
15676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15681 # MinGW DLLs use traditional 'lib' prefix
15682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15685 # It is most probably a Windows format PATH printed by
15686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15687 # path with ; separators, and with drive letters. We can handle the
15688 # drive letters (cygwin fileutils understands them), so leave them,
15689 # especially as we might pass files found there to a mingw objdump,
15690 # which wouldn't understand a cygwinified path. Ahh.
15691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15697 # pw32 DLLs use 'pw' prefix rather than 'lib'
15698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15707 dynamic_linker='Win32 ld.exe'
15708 # FIXME: first we should search . and the directory the executable is in
15712 darwin* | rhapsody*)
15713 dynamic_linker="$host_os dyld"
15714 version_type=darwin
15717 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15718 soname_spec='${libname}${release}${major}$shared_ext'
15719 shlibpath_overrides_runpath=yes
15720 shlibpath_var=DYLD_LIBRARY_PATH
15721 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15723 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LD_LIBRARY_PATH
15740 freebsd* | dragonfly*)
15741 # DragonFly does not have aout. When/if they implement a new
15742 # versioning mechanism, adjust this.
15743 if test -x /usr/bin/objformat; then
15744 objformat=`/usr/bin/objformat`
15747 freebsd[123]*) objformat=aout ;;
15748 *) objformat=elf ;;
15751 version_type=freebsd-$objformat
15752 case $version_type in
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15763 shlibpath_var=LD_LIBRARY_PATH
15766 shlibpath_overrides_runpath=yes
15768 freebsd3.[01]* | freebsdelf3.[01]*)
15769 shlibpath_overrides_runpath=yes
15770 hardcode_into_libs=yes
15772 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15773 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15774 shlibpath_overrides_runpath=no
15775 hardcode_into_libs=yes
15777 *) # from 4.6 on, and DragonFly
15778 shlibpath_overrides_runpath=yes
15779 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
15791 hardcode_into_libs=yes
15794 hpux9* | hpux10* | hpux11*)
15795 # Give a soname corresponding to the major version so that dld.sl refuses to
15796 # link against other versions.
15803 hardcode_into_libs=yes
15804 dynamic_linker="$host_os dld.so"
15805 shlibpath_var=LD_LIBRARY_PATH
15806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 soname_spec='${libname}${release}${shared_ext}$major'
15809 if test "X$HPUX_IA64_MODE" = X32; then
15810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15818 hardcode_into_libs=yes
15819 dynamic_linker="$host_os dld.sl"
15820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15829 dynamic_linker="$host_os dld.sl"
15830 shlibpath_var=SHLIB_PATH
15831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15836 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15837 postinstall_cmds='chmod 555 $lib'
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15847 shlibpath_var=LD_LIBRARY_PATH
15848 shlibpath_overrides_runpath=no
15849 hardcode_into_libs=yes
15852 irix5* | irix6* | nonstopux*)
15854 nonstopux*) version_type=nonstopux ;;
15856 if test "$lt_cv_prog_gnu_ld" = yes; then
15864 soname_spec='${libname}${release}${shared_ext}$major'
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15867 irix5* | nonstopux*)
15868 libsuff= shlibsuff=
15871 case $LD in # libtool.m4 will add one of these switches to LD
15872 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15873 libsuff= shlibsuff= libmagic=32-bit;;
15874 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15875 libsuff=32 shlibsuff=N32 libmagic=N32;;
15876 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15877 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15878 *) libsuff= shlibsuff= libmagic=never-match;;
15882 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15883 shlibpath_overrides_runpath=no
15884 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15885 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15886 hardcode_into_libs=yes
15889 # No shared lib support for Linux oldld, aout, or coff.
15890 linux*oldld* | linux*aout* | linux*coff*)
15894 # This must be Linux ELF.
15895 linux* | k*bsd*-gnu)
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900 soname_spec='${libname}${release}${shared_ext}$major'
15901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15902 shlibpath_var=LD_LIBRARY_PATH
15903 shlibpath_overrides_runpath=no
15904 # This implies no fast_install, which is unacceptable.
15905 # Some rework will be needed to allow for fast_install
15906 # before this can be enabled.
15907 hardcode_into_libs=yes
15909 # Append ld.so.conf contents to the search path
15910 if test -f /etc/ld.so.conf; then
15911 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15912 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15915 # We used to test for /lib/ld.so.1 and disable shared libraries on
15916 # powerpc, because MkLinux only supported shared libraries with the
15917 # GNU dynamic linker. Since this was broken with cross compilers,
15918 # most powerpc-linux boxes support dynamic linking these days and
15919 # people can always --disable-shared, the test was removed, and we
15920 # assume the GNU/Linux dynamic linker is in use.
15921 dynamic_linker='GNU/Linux ld.so'
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 shlibpath_overrides_runpath=no
15932 hardcode_into_libs=yes
15933 dynamic_linker='NetBSD ld.elf_so'
15940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15943 dynamic_linker='NetBSD (a.out) ld.so'
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15946 soname_spec='${libname}${release}${shared_ext}$major'
15947 dynamic_linker='NetBSD ld.elf_so'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=yes
15951 hardcode_into_libs=yes
15956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15957 shlibpath_var=LD_LIBRARY_PATH
15958 shlibpath_overrides_runpath=yes
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=yes
15973 sys_lib_dlsearch_path_spec="/usr/lib"
15975 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15977 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15978 *) need_version=no ;;
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15982 shlibpath_var=LD_LIBRARY_PATH
15983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15985 openbsd2.[89] | openbsd2.[89].*)
15986 shlibpath_overrides_runpath=no
15989 shlibpath_overrides_runpath=yes
15993 shlibpath_overrides_runpath=yes
15998 libname_spec='$name'
16001 library_names_spec='$libname${shared_ext} $libname.a'
16002 dynamic_linker='OS/2 ld.exe'
16003 shlibpath_var=LIBPATH
16006 osf3* | osf4* | osf5*)
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012 shlibpath_var=LD_LIBRARY_PATH
16013 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16014 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 soname_spec='${libname}${release}${shared_ext}$major'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 shlibpath_overrides_runpath=yes
16029 hardcode_into_libs=yes
16030 # ldd complains unless libraries are executable
16031 postinstall_cmds='chmod +x $lib'
16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16038 shlibpath_var=LD_LIBRARY_PATH
16039 shlibpath_overrides_runpath=yes
16040 if test "$with_gnu_ld" = yes; then
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 case $host_vendor in
16053 shlibpath_overrides_runpath=no
16055 export_dynamic_flag_spec='${wl}-Blargedynsym'
16056 runpath_var=LD_RUN_PATH
16064 shlibpath_overrides_runpath=no
16065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16071 if test -d /usr/nec ;then
16073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16074 soname_spec='$libname${shared_ext}.$major'
16075 shlibpath_var=LD_LIBRARY_PATH
16079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16080 version_type=freebsd-elf
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 shlibpath_var=LD_LIBRARY_PATH
16086 hardcode_into_libs=yes
16087 if test "$with_gnu_ld" = yes; then
16088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16089 shlibpath_overrides_runpath=no
16091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16092 shlibpath_overrides_runpath=yes
16095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16099 sys_lib_dlsearch_path_spec='/usr/lib'
16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 soname_spec='${libname}${release}${shared_ext}$major'
16106 shlibpath_var=LD_LIBRARY_PATH
16113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16114 echo "${ECHO_T}$dynamic_linker" >&6; }
16115 test "$dynamic_linker" = no && can_build_shared=no
16117 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16123 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16124 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16130 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16133 if test "$GCC" = yes; then
16134 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16137 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16140 if test -n "$hardcode_libdir_flag_spec" || \
16141 test -n "$runpath_var" || \
16142 test "X$hardcode_automatic" = "Xyes" ; then
16144 # We can hardcode non-existant directories.
16145 if test "$hardcode_direct" != no &&
16146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16147 # have to relink, otherwise we might link with an installed library
16148 # when we should be linking with a yet-to-be-installed one
16149 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16150 test "$hardcode_minus_L" != no; then
16151 # Linking always hardcodes the temporary library directory.
16152 hardcode_action=relink
16154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16155 hardcode_action=immediate
16158 # We cannot hardcode anything, or else we can only hardcode existing
16160 hardcode_action=unsupported
16162 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16163 echo "${ECHO_T}$hardcode_action" >&6; }
16165 if test "$hardcode_action" = relink; then
16166 # Fast installation is not supported
16167 enable_fast_install=no
16168 elif test "$shlibpath_overrides_runpath" = yes ||
16169 test "$enable_shared" = no; then
16170 # Fast installation is not necessary
16171 enable_fast_install=needless
16176 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16177 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16178 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16181 { echo "$as_me:$LINENO: result: yes" >&5
16182 echo "${ECHO_T}yes" >&6; }
16184 # FIXME - insert some real tests, host_os isn't really good enough
16187 if test -n "$STRIP" ; then
16188 striplib="$STRIP -x"
16189 old_striplib="$STRIP -S"
16190 { echo "$as_me:$LINENO: result: yes" >&5
16191 echo "${ECHO_T}yes" >&6; }
16193 { echo "$as_me:$LINENO: result: no" >&5
16194 echo "${ECHO_T}no" >&6; }
16198 { echo "$as_me:$LINENO: result: no" >&5
16199 echo "${ECHO_T}no" >&6; }
16204 if test "x$enable_dlopen" != xyes; then
16205 enable_dlopen=unknown
16206 enable_dlopen_self=unknown
16207 enable_dlopen_self_static=unknown
16214 lt_cv_dlopen="load_add_on"
16216 lt_cv_dlopen_self=yes
16220 lt_cv_dlopen="LoadLibrary"
16225 lt_cv_dlopen="dlopen"
16230 # if libdl is installed we need to link against it
16231 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 ac_check_lib_save_LIBS=$LIBS
16238 cat >conftest.$ac_ext <<_ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16245 /* Override any GCC internal prototype to avoid an error.
16246 Use char because int might match the return type of a GCC
16247 builtin and then its argument prototype would still apply. */
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (ac_try="$ac_link"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_link") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && {
16274 test -z "$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16276 } && test -s conftest$ac_exeext &&
16277 $as_test_x conftest$ac_exeext; then
16278 ac_cv_lib_dl_dlopen=yes
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 ac_cv_lib_dl_dlopen=no
16286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16287 conftest$ac_exeext conftest.$ac_ext
16288 LIBS=$ac_check_lib_save_LIBS
16290 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16291 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16292 if test $ac_cv_lib_dl_dlopen = yes; then
16293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16296 lt_cv_dlopen="dyld"
16298 lt_cv_dlopen_self=yes
16305 { echo "$as_me:$LINENO: checking for shl_load" >&5
16306 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16307 if test "${ac_cv_func_shl_load+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 cat >conftest.$ac_ext <<_ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16318 #define shl_load innocuous_shl_load
16320 /* System header to define __stub macros and hopefully few prototypes,
16321 which can conflict with char shl_load (); below.
16322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16323 <limits.h> exists even on freestanding compilers. */
16326 # include <limits.h>
16328 # include <assert.h>
16333 /* Override any GCC internal prototype to avoid an error.
16334 Use char because int might match the return type of a GCC
16335 builtin and then its argument prototype would still apply. */
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined __stub_shl_load || defined __stub___shl_load
16350 return shl_load ();
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_link") 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest$ac_exeext &&
16372 $as_test_x conftest$ac_exeext; then
16373 ac_cv_func_shl_load=yes
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ac_cv_func_shl_load=no
16381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16382 conftest$ac_exeext conftest.$ac_ext
16384 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16385 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16386 if test $ac_cv_func_shl_load = yes; then
16387 lt_cv_dlopen="shl_load"
16389 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16390 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16391 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16394 ac_check_lib_save_LIBS=$LIBS
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16413 return shl_load ();
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (ac_try="$ac_link"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_link") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest$ac_exeext &&
16435 $as_test_x conftest$ac_exeext; then
16436 ac_cv_lib_dld_shl_load=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_cv_lib_dld_shl_load=no
16444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16445 conftest$ac_exeext conftest.$ac_ext
16446 LIBS=$ac_check_lib_save_LIBS
16448 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16449 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16450 if test $ac_cv_lib_dld_shl_load = yes; then
16451 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16453 { echo "$as_me:$LINENO: checking for dlopen" >&5
16454 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16455 if test "${ac_cv_func_dlopen+set}" = set; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 cat >conftest.$ac_ext <<_ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16464 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16466 #define dlopen innocuous_dlopen
16468 /* System header to define __stub macros and hopefully few prototypes,
16469 which can conflict with char dlopen (); below.
16470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16471 <limits.h> exists even on freestanding compilers. */
16474 # include <limits.h>
16476 # include <assert.h>
16481 /* Override any GCC internal prototype to avoid an error.
16482 Use char because int might match the return type of a GCC
16483 builtin and then its argument prototype would still apply. */
16488 /* The GNU C library defines this for functions which it implements
16489 to always fail with ENOSYS. Some functions are actually named
16490 something starting with __ and the normal name is an alias. */
16491 #if defined __stub_dlopen || defined __stub___dlopen
16503 rm -f conftest.$ac_objext conftest$ac_exeext
16504 if { (ac_try="$ac_link"
16505 case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_link") 2>conftest.er1
16512 grep -v '^ *+' conftest.er1 >conftest.err
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } && {
16517 test -z "$ac_c_werror_flag" ||
16518 test ! -s conftest.err
16519 } && test -s conftest$ac_exeext &&
16520 $as_test_x conftest$ac_exeext; then
16521 ac_cv_func_dlopen=yes
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16526 ac_cv_func_dlopen=no
16529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16530 conftest$ac_exeext conftest.$ac_ext
16532 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16533 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16534 if test $ac_cv_func_dlopen = yes; then
16535 lt_cv_dlopen="dlopen"
16537 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 ac_check_lib_save_LIBS=$LIBS
16544 cat >conftest.$ac_ext <<_ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h. */
16551 /* Override any GCC internal prototype to avoid an error.
16552 Use char because int might match the return type of a GCC
16553 builtin and then its argument prototype would still apply. */
16566 rm -f conftest.$ac_objext conftest$ac_exeext
16567 if { (ac_try="$ac_link"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_link") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } && {
16580 test -z "$ac_c_werror_flag" ||
16581 test ! -s conftest.err
16582 } && test -s conftest$ac_exeext &&
16583 $as_test_x conftest$ac_exeext; then
16584 ac_cv_lib_dl_dlopen=yes
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ac_cv_lib_dl_dlopen=no
16592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16593 conftest$ac_exeext conftest.$ac_ext
16594 LIBS=$ac_check_lib_save_LIBS
16596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16598 if test $ac_cv_lib_dl_dlopen = yes; then
16599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16601 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 ac_check_lib_save_LIBS=$LIBS
16607 LIBS="-lsvld $LIBS"
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16615 /* Override any GCC internal prototype to avoid an error.
16616 Use char because int might match the return type of a GCC
16617 builtin and then its argument prototype would still apply. */
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_link") 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && {
16644 test -z "$ac_c_werror_flag" ||
16645 test ! -s conftest.err
16646 } && test -s conftest$ac_exeext &&
16647 $as_test_x conftest$ac_exeext; then
16648 ac_cv_lib_svld_dlopen=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_cv_lib_svld_dlopen=no
16656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16657 conftest$ac_exeext conftest.$ac_ext
16658 LIBS=$ac_check_lib_save_LIBS
16660 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16661 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16662 if test $ac_cv_lib_svld_dlopen = yes; then
16663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16665 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16666 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 ac_check_lib_save_LIBS=$LIBS
16672 cat >conftest.$ac_ext <<_ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16679 /* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16689 return dld_link ();
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_link") 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } && {
16708 test -z "$ac_c_werror_flag" ||
16709 test ! -s conftest.err
16710 } && test -s conftest$ac_exeext &&
16711 $as_test_x conftest$ac_exeext; then
16712 ac_cv_lib_dld_dld_link=yes
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 ac_cv_lib_dld_dld_link=no
16720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16721 conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16724 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16725 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16726 if test $ac_cv_lib_dld_dld_link = yes; then
16727 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16748 if test "x$lt_cv_dlopen" != xno; then
16754 case $lt_cv_dlopen in
16756 save_CPPFLAGS="$CPPFLAGS"
16757 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16759 save_LDFLAGS="$LDFLAGS"
16760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16763 LIBS="$lt_cv_dlopen_libs $LIBS"
16765 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16766 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16767 if test "${lt_cv_dlopen_self+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 if test "$cross_compiling" = yes; then :
16771 lt_cv_dlopen_self=cross
16773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16774 lt_status=$lt_dlunknown
16775 cat > conftest.$ac_ext <<EOF
16776 #line 16776 "configure"
16777 #include "confdefs.h"
16786 # define LT_DLGLOBAL RTLD_GLOBAL
16789 # define LT_DLGLOBAL DL_GLOBAL
16791 # define LT_DLGLOBAL 0
16795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16796 find out it does not work in some platform. */
16797 #ifndef LT_DLLAZY_OR_NOW
16799 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16802 # define LT_DLLAZY_OR_NOW DL_LAZY
16805 # define LT_DLLAZY_OR_NOW RTLD_NOW
16808 # define LT_DLLAZY_OR_NOW DL_NOW
16810 # define LT_DLLAZY_OR_NOW 0
16818 extern "C" void exit (int);
16821 void fnord() { int i=42;}
16824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16825 int status = $lt_dlunknown;
16829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16830 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16831 /* dlclose (self); */
16839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16840 (eval $ac_link) 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16844 (./conftest; exit; ) >&5 2>/dev/null
16846 case x$lt_status in
16847 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16848 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16849 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16852 # compilation failed
16853 lt_cv_dlopen_self=no
16860 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16861 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16863 if test "x$lt_cv_dlopen_self" = xyes; then
16864 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16865 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16866 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16867 if test "${lt_cv_dlopen_self_static+set}" = set; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 if test "$cross_compiling" = yes; then :
16871 lt_cv_dlopen_self_static=cross
16873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16874 lt_status=$lt_dlunknown
16875 cat > conftest.$ac_ext <<EOF
16876 #line 16876 "configure"
16877 #include "confdefs.h"
16886 # define LT_DLGLOBAL RTLD_GLOBAL
16889 # define LT_DLGLOBAL DL_GLOBAL
16891 # define LT_DLGLOBAL 0
16895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16896 find out it does not work in some platform. */
16897 #ifndef LT_DLLAZY_OR_NOW
16899 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16902 # define LT_DLLAZY_OR_NOW DL_LAZY
16905 # define LT_DLLAZY_OR_NOW RTLD_NOW
16908 # define LT_DLLAZY_OR_NOW DL_NOW
16910 # define LT_DLLAZY_OR_NOW 0
16918 extern "C" void exit (int);
16921 void fnord() { int i=42;}
16924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16925 int status = $lt_dlunknown;
16929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16930 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16931 /* dlclose (self); */
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940 (eval $ac_link) 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16944 (./conftest; exit; ) >&5 2>/dev/null
16946 case x$lt_status in
16947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16949 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16952 # compilation failed
16953 lt_cv_dlopen_self_static=no
16960 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16961 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16964 CPPFLAGS="$save_CPPFLAGS"
16965 LDFLAGS="$save_LDFLAGS"
16970 case $lt_cv_dlopen_self in
16971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16972 *) enable_dlopen_self=unknown ;;
16975 case $lt_cv_dlopen_self_static in
16976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16977 *) enable_dlopen_self_static=unknown ;;
16982 # Report which library types will actually be built
16983 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16984 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16985 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16986 echo "${ECHO_T}$can_build_shared" >&6; }
16988 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16989 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16990 test "$can_build_shared" = "no" && enable_shared=no
16992 # On AIX, shared libraries and static libraries use the same namespace, and
16993 # are all built from PIC.
16996 test "$enable_shared" = yes && enable_static=no
16997 if test -n "$RANLIB"; then
16998 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16999 postinstall_cmds='$RANLIB $lib'
17004 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17005 test "$enable_shared" = yes && enable_static=no
17009 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17010 echo "${ECHO_T}$enable_shared" >&6; }
17012 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17013 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17014 # Make sure either enable_shared or enable_static is yes.
17015 test "$enable_shared" = yes || enable_static=yes
17016 { echo "$as_me:$LINENO: result: $enable_static" >&5
17017 echo "${ECHO_T}$enable_static" >&6; }
17019 # The else clause should only fire when bootstrapping the
17020 # libtool distribution, otherwise you forgot to ship ltmain.sh
17021 # with your package, and you will get complaints that there are
17022 # no rules to generate ltmain.sh.
17023 if test -f "$ltmain"; then
17024 # See if we are running on zsh, and set the options which allow our commands through
17025 # without removal of \ escapes.
17026 if test -n "${ZSH_VERSION+set}" ; then
17027 setopt NO_GLOB_SUBST
17029 # Now quote all the things that may contain metacharacters while being
17030 # careful not to overquote the AC_SUBSTed values. We take copies of the
17031 # variables and quote the copies for generation of the libtool script.
17032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17036 deplibs_check_method reload_flag reload_cmds need_locks \
17037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17038 lt_cv_sys_global_symbol_to_c_name_address \
17039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17040 old_postinstall_cmds old_postuninstall_cmds \
17044 lt_prog_compiler_wl \
17045 lt_prog_compiler_pic \
17046 lt_prog_compiler_static \
17047 lt_prog_compiler_no_builtin_flag \
17048 export_dynamic_flag_spec \
17049 thread_safe_flag_spec \
17050 whole_archive_flag_spec \
17051 enable_shared_with_static_runtimes \
17053 old_archive_from_new_cmds \
17058 compiler_lib_search_path \
17059 compiler_lib_search_dirs \
17061 archive_expsym_cmds \
17063 postuninstall_cmds \
17064 old_archive_from_expsyms_cmds \
17065 allow_undefined_flag \
17066 no_undefined_flag \
17067 export_symbols_cmds \
17068 hardcode_libdir_flag_spec \
17069 hardcode_libdir_flag_spec_ld \
17070 hardcode_libdir_separator \
17071 hardcode_automatic \
17073 module_expsym_cmds \
17074 lt_cv_prog_compiler_c_o \
17077 include_expsyms; do
17080 old_archive_cmds | \
17081 old_archive_from_new_cmds | \
17083 archive_expsym_cmds | \
17085 module_expsym_cmds | \
17086 old_archive_from_expsyms_cmds | \
17087 export_symbols_cmds | \
17088 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17089 postinstall_cmds | postuninstall_cmds | \
17090 old_postinstall_cmds | old_postuninstall_cmds | \
17091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17092 # Double-quote double-evaled strings.
17093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17102 *'\$0 --fallback-echo"')
17103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17107 cfgfile="${ofile}T"
17108 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17110 { echo "$as_me:$LINENO: creating $ofile" >&5
17111 echo "$as_me: creating $ofile" >&6;}
17113 cat <<__EOF__ >> "$cfgfile"
17116 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17117 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17118 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17120 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
17121 # Free Software Foundation, Inc.
17123 # This file is part of GNU Libtool:
17124 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17126 # This program is free software; you can redistribute it and/or modify
17127 # it under the terms of the GNU General Public License as published by
17128 # the Free Software Foundation; either version 2 of the License, or
17129 # (at your option) any later version.
17131 # This program is distributed in the hope that it will be useful, but
17132 # WITHOUT ANY WARRANTY; without even the implied warranty of
17133 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17134 # General Public License for more details.
17136 # You should have received a copy of the GNU General Public License
17137 # along with this program; if not, write to the Free Software
17138 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17140 # As a special exception to the GNU General Public License, if you
17141 # distribute this file as part of a program that contains a
17142 # configuration script generated by Autoconf, you may include it under
17143 # the same distribution terms that you use for the rest of that program.
17145 # A sed program that does not truncate output.
17148 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17149 Xsed="$SED -e 1s/^X//"
17151 # The HP-UX ksh and POSIX shell print the target directory to stdout
17152 # if CDPATH is set.
17153 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17155 # The names of the tagged configurations supported by this script.
17158 # ### BEGIN LIBTOOL CONFIG
17160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17162 # Shell to use when invoking shell scripts.
17165 # Whether or not to build shared libraries.
17166 build_libtool_libs=$enable_shared
17168 # Whether or not to build static libraries.
17169 build_old_libs=$enable_static
17171 # Whether or not to add -lc for building shared libraries.
17172 build_libtool_need_lc=$archive_cmds_need_lc
17174 # Whether or not to disallow shared libs when runtime libs are static
17175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17177 # Whether or not to optimize for fast installation.
17178 fast_install=$enable_fast_install
17181 host_alias=$host_alias
17185 # The build system.
17186 build_alias=$build_alias
17190 # An echo program that does not interpret backslashes.
17195 AR_FLAGS=$lt_AR_FLAGS
17200 # LTCC compiler flags.
17201 LTCFLAGS=$lt_LTCFLAGS
17203 # A language-specific compiler.
17206 # Is the compiler the GNU C compiler?
17212 # The linker used to build libraries.
17215 # Whether we need hard or soft links.
17218 # A BSD-compatible nm program.
17221 # A symbol stripping program
17224 # Used to examine libraries when file_magic_cmd begins "file"
17225 MAGIC_CMD=$MAGIC_CMD
17227 # Used on cygwin: DLL creation program.
17230 # Used on cygwin: object dumper.
17233 # Used on cygwin: assembler.
17236 # The name of the directory that contains temporary libtool files.
17239 # How to create reloadable object files.
17240 reload_flag=$lt_reload_flag
17241 reload_cmds=$lt_reload_cmds
17243 # How to pass a linker flag through the compiler.
17244 wl=$lt_lt_prog_compiler_wl
17246 # Object file suffix (normally "o").
17247 objext="$ac_objext"
17249 # Old archive suffix (normally "a").
17252 # Shared library suffix (normally ".so").
17253 shrext_cmds='$shrext_cmds'
17255 # Executable file suffix (normally "").
17258 # Additional compiler flags for building library objects.
17259 pic_flag=$lt_lt_prog_compiler_pic
17262 # What is the maximum length of a command?
17263 max_cmd_len=$lt_cv_sys_max_cmd_len
17265 # Does compiler simultaneously support -c and -o options?
17266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17268 # Must we lock files when doing compilation?
17269 need_locks=$lt_need_locks
17271 # Do we need the lib prefix for modules?
17272 need_lib_prefix=$need_lib_prefix
17274 # Do we need a version for libraries?
17275 need_version=$need_version
17277 # Whether dlopen is supported.
17278 dlopen_support=$enable_dlopen
17280 # Whether dlopen of programs is supported.
17281 dlopen_self=$enable_dlopen_self
17283 # Whether dlopen of statically linked programs is supported.
17284 dlopen_self_static=$enable_dlopen_self_static
17286 # Compiler flag to prevent dynamic linking.
17287 link_static_flag=$lt_lt_prog_compiler_static
17289 # Compiler flag to turn off builtin functions.
17290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17292 # Compiler flag to allow reflexive dlopens.
17293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17295 # Compiler flag to generate shared objects directly from archives.
17296 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17298 # Compiler flag to generate thread-safe objects.
17299 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17301 # Library versioning type.
17302 version_type=$version_type
17304 # Format of library name prefix.
17305 libname_spec=$lt_libname_spec
17307 # List of archive names. First name is the real one, the rest are links.
17308 # The last name is the one that the linker finds with -lNAME.
17309 library_names_spec=$lt_library_names_spec
17311 # The coded name of the library, if different from the real name.
17312 soname_spec=$lt_soname_spec
17314 # Commands used to build and install an old-style archive.
17316 old_archive_cmds=$lt_old_archive_cmds
17317 old_postinstall_cmds=$lt_old_postinstall_cmds
17318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17320 # Create an old-style archive from a shared archive.
17321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17323 # Create a temporary old-style archive to link instead of a shared archive.
17324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17326 # Commands used to build and install a shared archive.
17327 archive_cmds=$lt_archive_cmds
17328 archive_expsym_cmds=$lt_archive_expsym_cmds
17329 postinstall_cmds=$lt_postinstall_cmds
17330 postuninstall_cmds=$lt_postuninstall_cmds
17332 # Commands used to build a loadable module (assumed same as above if empty)
17333 module_cmds=$lt_module_cmds
17334 module_expsym_cmds=$lt_module_expsym_cmds
17336 # Commands to strip libraries.
17337 old_striplib=$lt_old_striplib
17338 striplib=$lt_striplib
17340 # Dependencies to place before the objects being linked to create a
17342 predep_objects=$lt_predep_objects
17344 # Dependencies to place after the objects being linked to create a
17346 postdep_objects=$lt_postdep_objects
17348 # Dependencies to place before the objects being linked to create a
17350 predeps=$lt_predeps
17352 # Dependencies to place after the objects being linked to create a
17354 postdeps=$lt_postdeps
17356 # The directories searched by this compiler when creating a shared
17358 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17360 # The library search path used internally by the compiler when linking
17361 # a shared library.
17362 compiler_lib_search_path=$lt_compiler_lib_search_path
17364 # Method to check whether dependent libraries are shared objects.
17365 deplibs_check_method=$lt_deplibs_check_method
17367 # Command to use when deplibs_check_method == file_magic.
17368 file_magic_cmd=$lt_file_magic_cmd
17370 # Flag that allows shared libraries with undefined symbols to be built.
17371 allow_undefined_flag=$lt_allow_undefined_flag
17373 # Flag that forces no undefined symbols.
17374 no_undefined_flag=$lt_no_undefined_flag
17376 # Commands used to finish a libtool library installation in a directory.
17377 finish_cmds=$lt_finish_cmds
17379 # Same as above, but a single script fragment to be evaled but not shown.
17380 finish_eval=$lt_finish_eval
17382 # Take the output of nm and produce a listing of raw symbols and C names.
17383 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17385 # Transform the output of nm in a proper C declaration
17386 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17388 # Transform the output of nm in a C name address pair
17389 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17391 # This is the shared library runtime path variable.
17392 runpath_var=$runpath_var
17394 # This is the shared library path variable.
17395 shlibpath_var=$shlibpath_var
17397 # Is shlibpath searched before the hard-coded library search path?
17398 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17400 # How to hardcode a shared library path into an executable.
17401 hardcode_action=$hardcode_action
17403 # Whether we should hardcode library paths into libraries.
17404 hardcode_into_libs=$hardcode_into_libs
17406 # Flag to hardcode \$libdir into a binary during linking.
17407 # This must work even if \$libdir does not exist.
17408 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17410 # If ld is used when linking, flag to hardcode \$libdir into
17411 # a binary during linking. This must work even if \$libdir does
17413 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17415 # Whether we need a single -rpath flag with a separated argument.
17416 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17418 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17419 # resulting binary.
17420 hardcode_direct=$hardcode_direct
17422 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17423 # resulting binary.
17424 hardcode_minus_L=$hardcode_minus_L
17426 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17427 # the resulting binary.
17428 hardcode_shlibpath_var=$hardcode_shlibpath_var
17430 # Set to yes if building a shared library automatically hardcodes DIR into the library
17431 # and all subsequent libraries and executables linked against it.
17432 hardcode_automatic=$hardcode_automatic
17434 # Variables whose values should be saved in libtool wrapper scripts and
17435 # restored at relink time.
17436 variables_saved_for_relink="$variables_saved_for_relink"
17438 # Whether libtool must link a program against all its dependency libraries.
17439 link_all_deplibs=$link_all_deplibs
17441 # Compile-time system search path for libraries
17442 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17444 # Run-time system search path for libraries
17445 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17447 # Fix the shell variable \$srcfile for the compiler.
17448 fix_srcfile_path=$lt_fix_srcfile_path
17450 # Set to yes if exported symbols are required.
17451 always_export_symbols=$always_export_symbols
17453 # The commands to list exported symbols.
17454 export_symbols_cmds=$lt_export_symbols_cmds
17456 # The commands to extract the exported symbol list from a shared archive.
17457 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17459 # Symbols that should not be listed in the preloaded symbols.
17460 exclude_expsyms=$lt_exclude_expsyms
17462 # Symbols that must always be exported.
17463 include_expsyms=$lt_include_expsyms
17465 # ### END LIBTOOL CONFIG
17472 cat <<\EOF >> "$cfgfile"
17474 # AIX sometimes has problems with the GCC collect2 program. For some
17475 # reason, if we set the COLLECT_NAMES environment variable, the problems
17476 # vanish in a puff of smoke.
17477 if test "X${COLLECT_NAMES+set}" != Xset; then
17479 export COLLECT_NAMES
17485 # We use sed instead of cat because bash on DJGPP gets confused if
17486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17487 # text mode, it properly converts lines to CR/LF. This bash problem
17488 # is reportedly fixed, but why not run on old versions too?
17489 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17491 mv -f "$cfgfile" "$ofile" || \
17492 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17496 # If there is no Makefile yet, we rely on a make rule to execute
17497 # `config.status --recheck' to rerun these tests and create the
17498 # libtool script then.
17499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17500 if test -f "$ltmain_in"; then
17501 test -f Makefile && make "$ltmain"
17507 ac_cpp='$CPP $CPPFLAGS'
17508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17515 # Check whether --with-tags was given.
17516 if test "${with_tags+set}" = set; then
17517 withval=$with_tags; tagnames="$withval"
17521 if test -f "$ltmain" && test -n "$tagnames"; then
17522 if test ! -f "${ofile}"; then
17523 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17524 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17527 if test -z "$LTCC"; then
17528 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17529 if test -z "$LTCC"; then
17530 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17531 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17533 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17534 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17537 if test -z "$LTCFLAGS"; then
17538 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17541 # Extract list of available tagged configurations in $ofile.
17542 # Note that this assumes the entire list is on one line.
17543 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17546 for tagname in $tagnames; do
17548 # Check whether tagname contains only valid characters
17549 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17551 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17552 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17553 { (exit 1); exit 1; }; }
17557 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17559 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17560 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17561 { (exit 1); exit 1; }; }
17564 # Update the list of available tags.
17565 if test -n "$tagname"; then
17566 echo appending configuration tag \"$tagname\" to $ofile
17570 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17571 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17572 (test "X$CXX" != "Xg++"))) ; then
17574 ac_cpp='$CXXCPP $CPPFLAGS'
17575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17582 archive_cmds_need_lc_CXX=no
17583 allow_undefined_flag_CXX=
17584 always_export_symbols_CXX=no
17585 archive_expsym_cmds_CXX=
17586 export_dynamic_flag_spec_CXX=
17587 hardcode_direct_CXX=no
17588 hardcode_libdir_flag_spec_CXX=
17589 hardcode_libdir_flag_spec_ld_CXX=
17590 hardcode_libdir_separator_CXX=
17591 hardcode_minus_L_CXX=no
17592 hardcode_shlibpath_var_CXX=unsupported
17593 hardcode_automatic_CXX=no
17595 module_expsym_cmds_CXX=
17596 link_all_deplibs_CXX=unknown
17597 old_archive_cmds_CXX=$old_archive_cmds
17598 no_undefined_flag_CXX=
17599 whole_archive_flag_spec_CXX=
17600 enable_shared_with_static_runtimes_CXX=no
17602 # Dependencies to place before and after the object being linked:
17603 predep_objects_CXX=
17604 postdep_objects_CXX=
17607 compiler_lib_search_path_CXX=
17608 compiler_lib_search_dirs_CXX=
17610 # Source file extension for C++ test sources.
17613 # Object file extension for compiled C++ test sources.
17617 # Code to be used in simple compile tests
17618 lt_simple_compile_test_code="int some_variable = 0;"
17620 # Code to be used in simple link tests
17621 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17623 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17625 # If no C compiler was specified, use CC.
17628 # If no C compiler flags were specified, use CFLAGS.
17629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17631 # Allow CC to be a program name with arguments.
17635 # save warnings/boilerplate of simple test code
17636 ac_outfile=conftest.$ac_objext
17637 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17638 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17639 _lt_compiler_boilerplate=`cat conftest.err`
17642 ac_outfile=conftest.$ac_objext
17643 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17644 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17645 _lt_linker_boilerplate=`cat conftest.err`
17649 # Allow CC to be a program name with arguments.
17654 lt_save_with_gnu_ld=$with_gnu_ld
17655 lt_save_path_LD=$lt_cv_path_LD
17656 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17657 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17659 $as_unset lt_cv_prog_gnu_ld
17661 if test -n "${lt_cv_path_LDCXX+set}"; then
17662 lt_cv_path_LD=$lt_cv_path_LDCXX
17664 $as_unset lt_cv_path_LD
17666 test -z "${LDCXX+set}" || LD=$LDCXX
17670 for cc_temp in $compiler""; do
17672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17678 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17681 # We don't want -fno-exception wen compiling C++ code, so set the
17682 # no_builtin_flag separately
17683 if test "$GXX" = yes; then
17684 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17686 lt_prog_compiler_no_builtin_flag_CXX=
17689 if test "$GXX" = yes; then
17690 # Set up default GNU C++ configuration
17693 # Check whether --with-gnu-ld was given.
17694 if test "${with_gnu_ld+set}" = set; then
17695 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17701 if test "$GCC" = yes; then
17702 # Check if gcc -print-prog-name=ld gives a path.
17703 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17704 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17707 # gcc leaves a trailing carriage return which upsets mingw
17708 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17710 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17713 # Accept absolute paths.
17715 re_direlt='/[^/][^/]*/\.\./'
17716 # Canonicalize the pathname of ld
17717 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17718 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17719 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17721 test -z "$LD" && LD="$ac_prog"
17724 # If it fails, then pretend we aren't using GCC.
17728 # If it is relative, then search for the first ld in PATH.
17729 with_gnu_ld=unknown
17732 elif test "$with_gnu_ld" = yes; then
17733 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17734 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17736 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17737 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17739 if test "${lt_cv_path_LD+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 if test -z "$LD"; then
17743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17744 for ac_dir in $PATH; do
17746 test -z "$ac_dir" && ac_dir=.
17747 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17748 lt_cv_path_LD="$ac_dir/$ac_prog"
17749 # Check to see if the program is GNU ld. I'd rather use --version,
17750 # but apparently some variants of GNU ld only accept -v.
17751 # Break only if it was the GNU/non-GNU ld that we prefer.
17752 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17753 *GNU* | *'with BFD'*)
17754 test "$with_gnu_ld" != no && break
17757 test "$with_gnu_ld" != yes && break
17764 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17768 LD="$lt_cv_path_LD"
17769 if test -n "$LD"; then
17770 { echo "$as_me:$LINENO: result: $LD" >&5
17771 echo "${ECHO_T}$LD" >&6; }
17773 { echo "$as_me:$LINENO: result: no" >&5
17774 echo "${ECHO_T}no" >&6; }
17776 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17777 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17778 { (exit 1); exit 1; }; }
17779 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17780 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17781 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17785 case `$LD -v 2>&1 </dev/null` in
17786 *GNU* | *'with BFD'*)
17787 lt_cv_prog_gnu_ld=yes
17790 lt_cv_prog_gnu_ld=no
17794 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17795 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17796 with_gnu_ld=$lt_cv_prog_gnu_ld
17800 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17801 # archiving commands below assume that GNU ld is being used.
17802 if test "$with_gnu_ld" = yes; then
17803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17804 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'
17806 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17809 # If archive_cmds runs LD, not CC, wlarc should be empty
17810 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17811 # investigate it a little bit more. (MM)
17814 # ancient GNU ld didn't support --whole-archive et. al.
17815 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17816 grep 'no-whole-archive' > /dev/null; then
17817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17819 whole_archive_flag_spec_CXX=
17825 # A generic and very simple default shared library creation
17826 # command for GNU C++ for the case where it uses the native
17827 # linker, instead of GNU ld. If possible, this setting should
17828 # overridden to take advantage of the native linker features on
17829 # the platform it is being used on.
17830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17833 # Commands to make compiler produce verbose output that lists
17834 # what "hidden" libraries, object files and flags are used when
17835 # linking a shared library.
17836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17844 # PORTME: fill in a description of your system's C++ link characteristics
17845 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17846 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17850 # FIXME: insert proper C++ library support
17854 if test "$host_cpu" = ia64; then
17855 # On IA64, the linker does run time linking by default, so we don't
17856 # have to do anything special.
17857 aix_use_runtimelinking=no
17858 exp_sym_flag='-Bexport'
17861 aix_use_runtimelinking=no
17863 # Test if we are trying to use run time linking or normal
17864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17865 # need to do runtime linking.
17866 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17867 for ld_flag in $LDFLAGS; do
17870 aix_use_runtimelinking=yes
17878 exp_sym_flag='-bexport'
17879 no_entry_flag='-bnoentry'
17882 # When large executables or shared objects are built, AIX ld can
17883 # have problems creating the table of contents. If linking a library
17884 # or program results in "error TOC overflow" add -mminimal-toc to
17885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17888 archive_cmds_CXX=''
17889 hardcode_direct_CXX=yes
17890 hardcode_libdir_separator_CXX=':'
17891 link_all_deplibs_CXX=yes
17893 if test "$GXX" = yes; then
17894 case $host_os in aix4.[012]|aix4.[012].*)
17895 # We only want to do this on AIX 4.2 and lower, the check
17896 # below for broken collect2 doesn't work under 4.3+
17897 collect2name=`${CC} -print-prog-name=collect2`
17898 if test -f "$collect2name" && \
17899 strings "$collect2name" | grep resolve_lib_name >/dev/null
17901 # We have reworked collect2
17904 # We have old collect2
17905 hardcode_direct_CXX=unsupported
17906 # It fails to find uninstalled libraries when the uninstalled
17907 # path is not listed in the libpath. Setting hardcode_minus_L
17908 # to unsupported forces relinking
17909 hardcode_minus_L_CXX=yes
17910 hardcode_libdir_flag_spec_CXX='-L$libdir'
17911 hardcode_libdir_separator_CXX=
17915 shared_flag='-shared'
17916 if test "$aix_use_runtimelinking" = yes; then
17917 shared_flag="$shared_flag "'${wl}-G'
17921 if test "$host_cpu" = ia64; then
17922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17923 # chokes on -Wl,-G. The following line is correct:
17926 if test "$aix_use_runtimelinking" = yes; then
17927 shared_flag='${wl}-G'
17929 shared_flag='${wl}-bM:SRE'
17934 # It seems that -bexpall does not export symbols beginning with
17935 # underscore (_), so it is better to generate a list of symbols to export.
17936 always_export_symbols_CXX=yes
17937 if test "$aix_use_runtimelinking" = yes; then
17938 # Warning - without using the other runtime loading flags (-brtl),
17939 # -berok will link without error, but may produce a broken library.
17940 allow_undefined_flag_CXX='-berok'
17941 # Determine the default libpath from the value encoded in an empty executable.
17942 cat >conftest.$ac_ext <<_ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (ac_try="$ac_link"
17959 case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_link") 2>conftest.er1
17966 grep -v '^ *+' conftest.er1 >conftest.err
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } && {
17971 test -z "$ac_cxx_werror_flag" ||
17972 test ! -s conftest.err
17973 } && test -s conftest$ac_exeext &&
17974 $as_test_x conftest$ac_exeext; then
17976 lt_aix_libpath_sed='
17977 /Import File Strings/,/^$/ {
17983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17984 # Check for a 64-bit object if we didn't find anything.
17985 if test -z "$aix_libpath"; then
17986 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17996 conftest$ac_exeext conftest.$ac_ext
17997 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17999 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18001 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18003 if test "$host_cpu" = ia64; then
18004 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18005 allow_undefined_flag_CXX="-z nodefs"
18006 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18008 # Determine the default libpath from the value encoded in an empty executable.
18009 cat >conftest.$ac_ext <<_ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (ac_try="$ac_link"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_link") 2>conftest.er1
18033 grep -v '^ *+' conftest.er1 >conftest.err
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && {
18038 test -z "$ac_cxx_werror_flag" ||
18039 test ! -s conftest.err
18040 } && test -s conftest$ac_exeext &&
18041 $as_test_x conftest$ac_exeext; then
18043 lt_aix_libpath_sed='
18044 /Import File Strings/,/^$/ {
18050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18051 # Check for a 64-bit object if we didn't find anything.
18052 if test -z "$aix_libpath"; then
18053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18063 conftest$ac_exeext conftest.$ac_ext
18064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18066 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18067 # Warning - without using the other run time loading flags,
18068 # -berok will link without error, but may produce a broken library.
18069 no_undefined_flag_CXX=' ${wl}-bernotok'
18070 allow_undefined_flag_CXX=' ${wl}-berok'
18071 # Exported symbols can be pulled into shared objects from archives
18072 whole_archive_flag_spec_CXX='$convenience'
18073 archive_cmds_need_lc_CXX=yes
18074 # This is similar to how AIX traditionally builds its shared libraries.
18075 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18082 allow_undefined_flag_CXX=unsupported
18083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18084 # support --undefined. This deserves some investigation. FIXME
18085 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18092 case $cc_basename in
18094 # FIXME: insert proper C++ library support
18100 cygwin* | mingw* | pw32*)
18101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18102 # as there is no search path for DLLs.
18103 hardcode_libdir_flag_spec_CXX='-L$libdir'
18104 allow_undefined_flag_CXX=unsupported
18105 always_export_symbols_CXX=no
18106 enable_shared_with_static_runtimes_CXX=yes
18108 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18109 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18110 # If the export-symbols file already is a .def file (1st line
18111 # is EXPORTS), use it as is; otherwise, prepend...
18112 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18113 cp $export_symbols $output_objdir/$soname.def;
18115 echo EXPORTS > $output_objdir/$soname.def;
18116 cat $export_symbols >> $output_objdir/$soname.def;
18118 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18123 darwin* | rhapsody*)
18124 archive_cmds_need_lc_CXX=no
18125 hardcode_direct_CXX=no
18126 hardcode_automatic_CXX=yes
18127 hardcode_shlibpath_var_CXX=unsupported
18128 whole_archive_flag_spec_CXX=''
18129 link_all_deplibs_CXX=yes
18130 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18131 if test "$GXX" = yes ; then
18132 output_verbose_link_cmd='echo'
18133 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18134 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18135 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18136 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18137 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18138 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18139 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18142 case $cc_basename in
18144 output_verbose_link_cmd='echo'
18145 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18146 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18148 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18149 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}'
18159 case $cc_basename in
18161 # FIXME: insert proper C++ library support
18165 # Green Hills C++ Compiler
18166 # FIXME: insert proper C++ library support
18170 # FIXME: insert proper C++ library support
18176 # C++ shared libraries reported to be fairly broken before switch to ELF
18180 archive_cmds_need_lc_CXX=no
18182 freebsd* | dragonfly*)
18183 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18191 hardcode_libdir_separator_CXX=:
18192 export_dynamic_flag_spec_CXX='${wl}-E'
18193 hardcode_direct_CXX=yes
18194 hardcode_minus_L_CXX=yes # Not in the search PATH,
18195 # but as the default
18196 # location of the library.
18198 case $cc_basename in
18200 # FIXME: insert proper C++ library support
18204 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'
18205 # Commands to make compiler produce verbose output that lists
18206 # what "hidden" libraries, object files and flags are used when
18207 # linking a shared library.
18209 # There doesn't appear to be a way to prevent this compiler from
18210 # explicitly linking system object files so we need to strip them
18211 # from the output so that they don't get included in the library
18213 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'
18216 if test "$GXX" = yes; then
18217 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'
18219 # FIXME: insert proper C++ library support
18226 if test $with_gnu_ld = no; then
18227 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18228 hardcode_libdir_separator_CXX=:
18233 export_dynamic_flag_spec_CXX='${wl}-E'
18239 hardcode_direct_CXX=no
18240 hardcode_shlibpath_var_CXX=no
18243 hardcode_direct_CXX=yes
18244 hardcode_minus_L_CXX=yes # Not in the search PATH,
18245 # but as the default
18246 # location of the library.
18250 case $cc_basename in
18252 # FIXME: insert proper C++ library support
18258 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18267 # Commands to make compiler produce verbose output that lists
18268 # what "hidden" libraries, object files and flags are used when
18269 # linking a shared library.
18271 # There doesn't appear to be a way to prevent this compiler from
18272 # explicitly linking system object files so we need to strip them
18273 # from the output so that they don't get included in the library
18275 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'
18278 if test "$GXX" = yes; then
18279 if test $with_gnu_ld = no; then
18282 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18288 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'
18293 # FIXME: insert proper C++ library support
18300 hardcode_direct_CXX=no
18301 hardcode_shlibpath_var_CXX=no
18302 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18303 export_dynamic_flag_spec_CXX='${wl}-E'
18304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18305 # Instead, shared libraries are loaded at an image base (0x10000000 by
18306 # default) and relocated if they conflict, which is a slow very memory
18307 # consuming and fragmenting process. To avoid this, we pick a random,
18308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18310 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18311 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18314 case $cc_basename in
18317 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'
18319 # Archives containing C++ object files must be created using
18320 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18321 # necessary to make sure instantiated templates are included
18323 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18326 if test "$GXX" = yes; then
18327 if test "$with_gnu_ld" = no; then
18328 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'
18330 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'
18333 link_all_deplibs_CXX=yes
18336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18337 hardcode_libdir_separator_CXX=:
18339 linux* | k*bsd*-gnu)
18340 case $cc_basename in
18342 # Kuck and Associates, Inc. (KAI) C++ Compiler
18344 # KCC will only create a shared library if the output file
18345 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18346 # to its proper name (with version) after linking.
18347 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'
18348 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'
18349 # Commands to make compiler produce verbose output that lists
18350 # what "hidden" libraries, object files and flags are used when
18351 # linking a shared library.
18353 # There doesn't appear to be a way to prevent this compiler from
18354 # explicitly linking system object files so we need to strip them
18355 # from the output so that they don't get included in the library
18357 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'
18359 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18362 # Archives containing C++ object files must be created using
18363 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18364 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18369 # version 8.0 and above of icpc choke on multiply defined symbols
18370 # if we add $predep_objects and $postdep_objects, however 7.1 and
18371 # earlier do not add the objects themselves.
18372 case `$CC -V 2>&1` in
18374 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18375 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'
18377 *) # Version 8.0 or newer
18380 ia64*) tmp_idyn=' -i_dynamic';;
18382 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18383 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'
18386 archive_cmds_need_lc_CXX=no
18387 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18389 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18392 # Portland Group C++ compiler
18393 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18394 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'
18396 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18398 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'
18402 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18403 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'
18405 runpath_var=LD_RUN_PATH
18406 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18407 hardcode_libdir_separator_CXX=:
18409 # Commands to make compiler produce verbose output that lists
18410 # what "hidden" libraries, object files and flags are used when
18411 # linking a shared library.
18413 # There doesn't appear to be a way to prevent this compiler from
18414 # explicitly linking system object files so we need to strip them
18415 # from the output so that they don't get included in the library
18417 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'
18420 case `$CC -V 2>&1 | sed 5q` in
18423 no_undefined_flag_CXX=' -zdefs'
18424 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18425 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
18426 hardcode_libdir_flag_spec_CXX='-R$libdir'
18427 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18429 # Not sure whether something based on
18430 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18432 output_verbose_link_cmd='echo'
18434 # Archives containing C++ object files must be created using
18435 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18436 # necessary to make sure instantiated templates are included
18438 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18445 # FIXME: insert proper C++ library support
18449 # FIXME: insert proper C++ library support
18453 case $cc_basename in
18455 # FIXME: insert proper C++ library support
18459 # FIXME: insert proper C++ library support
18464 netbsd* | netbsdelf*-gnu)
18465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18466 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18468 hardcode_libdir_flag_spec_CXX='-R$libdir'
18469 hardcode_direct_CXX=yes
18470 hardcode_shlibpath_var_CXX=no
18472 # Workaround some broken pre-1.5 toolchains
18473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18476 # C++ shared libraries are fairly broken
18480 if test -f /usr/libexec/ld.so; then
18481 hardcode_direct_CXX=yes
18482 hardcode_shlibpath_var_CXX=no
18483 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18486 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18487 export_dynamic_flag_spec_CXX='${wl}-E'
18488 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18490 output_verbose_link_cmd='echo'
18496 case $cc_basename in
18498 # Kuck and Associates, Inc. (KAI) C++ Compiler
18500 # KCC will only create a shared library if the output file
18501 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18502 # to its proper name (with version) after linking.
18503 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'
18505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18506 hardcode_libdir_separator_CXX=:
18508 # Archives containing C++ object files must be created using
18509 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18510 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18514 # Rational C++ 2.4.1
18515 # FIXME: insert proper C++ library support
18519 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18520 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'
18522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18523 hardcode_libdir_separator_CXX=:
18525 # Commands to make compiler produce verbose output that lists
18526 # what "hidden" libraries, object files and flags are used when
18527 # linking a shared library.
18529 # There doesn't appear to be a way to prevent this compiler from
18530 # explicitly linking system object files so we need to strip them
18531 # from the output so that they don't get included in the library
18533 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'
18536 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18538 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'
18540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18541 hardcode_libdir_separator_CXX=:
18543 # Commands to make compiler produce verbose output that lists
18544 # what "hidden" libraries, object files and flags are used when
18545 # linking a shared library.
18546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18549 # FIXME: insert proper C++ library support
18556 case $cc_basename in
18558 # Kuck and Associates, Inc. (KAI) C++ Compiler
18560 # KCC will only create a shared library if the output file
18561 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18562 # to its proper name (with version) after linking.
18563 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'
18565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18566 hardcode_libdir_separator_CXX=:
18568 # Archives containing C++ object files must be created using
18569 # the KAI C++ compiler.
18570 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18573 # Rational C++ 2.4.1
18574 # FIXME: insert proper C++ library support
18578 allow_undefined_flag_CXX=' -expect_unresolved \*'
18579 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'
18580 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18581 echo "-hidden">> $lib.exp~
18582 $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~
18585 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18586 hardcode_libdir_separator_CXX=:
18588 # Commands to make compiler produce verbose output that lists
18589 # what "hidden" libraries, object files and flags are used when
18590 # linking a shared library.
18592 # There doesn't appear to be a way to prevent this compiler from
18593 # explicitly linking system object files so we need to strip them
18594 # from the output so that they don't get included in the library
18596 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'
18599 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18600 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18601 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'
18603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18604 hardcode_libdir_separator_CXX=:
18606 # Commands to make compiler produce verbose output that lists
18607 # what "hidden" libraries, object files and flags are used when
18608 # linking a shared library.
18609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18612 # FIXME: insert proper C++ library support
18619 # FIXME: insert proper C++ library support
18623 case $cc_basename in
18626 # FIXME: insert proper C++ library support
18631 # FIXME: insert proper C++ library support
18635 # FIXME: insert proper C++ library support
18641 case $cc_basename in
18643 # Sun C++ 4.2, 5.x and Centerline C++
18644 archive_cmds_need_lc_CXX=yes
18645 no_undefined_flag_CXX=' -zdefs'
18646 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18647 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18648 $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'
18650 hardcode_libdir_flag_spec_CXX='-R$libdir'
18651 hardcode_shlibpath_var_CXX=no
18653 solaris2.[0-5] | solaris2.[0-5].*) ;;
18655 # The compiler driver will combine and reorder linker options,
18656 # but understands `-z linker_flag'.
18657 # Supported since Solaris 2.6 (maybe 2.5.1?)
18658 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18661 link_all_deplibs_CXX=yes
18663 output_verbose_link_cmd='echo'
18665 # Archives containing C++ object files must be created using
18666 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18667 # necessary to make sure instantiated templates are included
18669 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18672 # Green Hills C++ Compiler
18673 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18675 # The C++ compiler must be used to create the archive.
18676 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18679 # GNU C++ compiler with Solaris linker
18680 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18681 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18682 if $CC --version | grep -v '^2\.7' > /dev/null; then
18683 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18684 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18685 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18687 # Commands to make compiler produce verbose output that lists
18688 # what "hidden" libraries, object files and flags are used when
18689 # linking a shared library.
18690 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18692 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18694 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18695 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18696 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18698 # Commands to make compiler produce verbose output that lists
18699 # what "hidden" libraries, object files and flags are used when
18700 # linking a shared library.
18701 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18704 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18706 solaris2.[0-5] | solaris2.[0-5].*) ;;
18708 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18716 no_undefined_flag_CXX='${wl}-z,text'
18717 archive_cmds_need_lc_CXX=no
18718 hardcode_shlibpath_var_CXX=no
18719 runpath_var='LD_RUN_PATH'
18721 case $cc_basename in
18723 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18724 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18727 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18728 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18732 sysv5* | sco3.2v5* | sco5v6*)
18733 # Note: We can NOT use -z defs as we might desire, because we do not
18734 # link with -lc, and that would cause any symbols used from libc to
18735 # always be unresolved, which means just about no library would
18736 # ever link correctly. If we're not using GNU ld we use -z text
18737 # though, which does catch some bad symbols but isn't as heavy-handed
18739 # For security reasons, it is highly recommended that you always
18740 # use absolute paths for naming shared libraries, and exclude the
18741 # DT_RUNPATH tag from executables and libraries. But doing so
18742 # requires that you compile everything twice, which is a pain.
18743 # So that behaviour is only enabled if SCOABSPATH is set to a
18744 # non-empty value in the environment. Most likely only useful for
18745 # creating official distributions of packages.
18746 # This is a hack until libtool officially supports absolute path
18747 # names for shared libraries.
18748 no_undefined_flag_CXX='${wl}-z,text'
18749 allow_undefined_flag_CXX='${wl}-z,nodefs'
18750 archive_cmds_need_lc_CXX=no
18751 hardcode_shlibpath_var_CXX=no
18752 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18753 hardcode_libdir_separator_CXX=':'
18754 link_all_deplibs_CXX=yes
18755 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18756 runpath_var='LD_RUN_PATH'
18758 case $cc_basename in
18760 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18761 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18764 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18765 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18770 case $cc_basename in
18772 # NonStop-UX NCC 3.20
18773 # FIXME: insert proper C++ library support
18777 # FIXME: insert proper C++ library support
18783 # FIXME: insert proper C++ library support
18787 # FIXME: insert proper C++ library support
18791 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18792 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18793 test "$ld_shlibs_CXX" = no && can_build_shared=no
18798 cat > conftest.$ac_ext <<EOF
18802 Foo (void) { a = 0; }
18808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18809 (eval $ac_compile) 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; then
18813 # Parse the compiler output and extract the necessary
18814 # objects, libraries and library flags.
18816 # Sentinel used to keep track of whether or not we are before
18817 # the conftest object file.
18818 pre_test_object_deps_done=no
18820 # The `*' in the case matches for architectures that use `case' in
18821 # $output_verbose_cmd can trigger glob expansion during the loop
18822 # eval without this substitution.
18823 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18825 for p in `eval $output_verbose_link_cmd`; do
18829 # Some compilers place space between "-{L,R}" and the path.
18830 # Remove the space.
18831 if test $p = "-L" \
18832 || test $p = "-R"; then
18839 if test "$pre_test_object_deps_done" = no; then
18842 # Internal compiler library paths should come after those
18843 # provided the user. The postdeps already come after the
18844 # user supplied libs so there is no need to process them.
18845 if test -z "$compiler_lib_search_path_CXX"; then
18846 compiler_lib_search_path_CXX="${prev}${p}"
18848 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18851 # The "-l" case would never come before the object being
18852 # linked, so don't bother handling this case.
18855 if test -z "$postdeps_CXX"; then
18856 postdeps_CXX="${prev}${p}"
18858 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18864 # This assumes that the test object file only shows up
18865 # once in the compiler output.
18866 if test "$p" = "conftest.$objext"; then
18867 pre_test_object_deps_done=yes
18871 if test "$pre_test_object_deps_done" = no; then
18872 if test -z "$predep_objects_CXX"; then
18873 predep_objects_CXX="$p"
18875 predep_objects_CXX="$predep_objects_CXX $p"
18878 if test -z "$postdep_objects_CXX"; then
18879 postdep_objects_CXX="$p"
18881 postdep_objects_CXX="$postdep_objects_CXX $p"
18886 *) ;; # Ignore the rest.
18894 echo "libtool.m4: error: problem compiling CXX test program"
18897 $rm -f confest.$objext
18899 compiler_lib_search_dirs_CXX=
18900 if test -n "$compiler_lib_search_path_CXX"; then
18901 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18904 # PORTME: override above test on systems where it is broken
18907 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18908 # hack all around it, let's just trust "g++" to DTRT.
18909 predep_objects_CXX=
18910 postdep_objects_CXX=
18915 case `$CC -V 2>&1 | sed 5q` in
18919 # The more standards-conforming stlport4 library is
18920 # incompatible with the Cstd library. Avoid specifying
18921 # it if it's in CXXFLAGS. Ignore libCrun as
18922 # -library=stlport4 depends on it.
18923 case " $CXX $CXXFLAGS " in
18924 *" -library=stlport4 "*)
18925 solaris_use_stlport4=yes
18928 if test "$solaris_use_stlport4" != yes; then
18929 postdeps_CXX='-library=Cstd -library=Crun'
18936 case $cc_basename in
18938 # The more standards-conforming stlport4 library is
18939 # incompatible with the Cstd library. Avoid specifying
18940 # it if it's in CXXFLAGS. Ignore libCrun as
18941 # -library=stlport4 depends on it.
18942 case " $CXX $CXXFLAGS " in
18943 *" -library=stlport4 "*)
18944 solaris_use_stlport4=yes
18948 # Adding this requires a known-good setup of shared libraries for
18949 # Sun compiler versions before 5.6, else PIC objects from an old
18950 # archive will be linked into the output, leading to subtle bugs.
18951 if test "$solaris_use_stlport4" != yes; then
18952 postdeps_CXX='-library=Cstd -library=Crun'
18959 case " $postdeps_CXX " in
18960 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18963 lt_prog_compiler_wl_CXX=
18964 lt_prog_compiler_pic_CXX=
18965 lt_prog_compiler_static_CXX=
18967 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18968 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18970 # C++ specific cases for pic, static, wl, etc.
18971 if test "$GXX" = yes; then
18972 lt_prog_compiler_wl_CXX='-Wl,'
18973 lt_prog_compiler_static_CXX='-static'
18977 # All AIX code is PIC.
18978 if test "$host_cpu" = ia64; then
18979 # AIX 5 now supports IA64 processor
18980 lt_prog_compiler_static_CXX='-Bstatic'
18984 # FIXME: we need at least 68020 code to build shared libraries, but
18985 # adding the `-m68020' flag to GCC prevents building anything better,
18987 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18989 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18990 # PIC is the default for these OSes.
18992 mingw* | cygwin* | os2* | pw32*)
18993 # This hack is so that the source file can tell whether it is being
18994 # built for inclusion in a dll (and should export symbols for example).
18995 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18996 # (--disable-auto-import) libraries
18997 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18999 darwin* | rhapsody*)
19000 # PIC is the default on this platform
19001 # Common symbols not allowed in MH_DYLIB files
19002 lt_prog_compiler_pic_CXX='-fno-common'
19005 # DJGPP does not support shared libraries at all
19006 lt_prog_compiler_pic_CXX=
19009 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19010 # Instead, we relocate shared libraries at runtime.
19013 if test -d /usr/nec; then
19014 lt_prog_compiler_pic_CXX=-Kconform_pic
19018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19019 # not for PA HP-UX.
19024 lt_prog_compiler_pic_CXX='-fPIC'
19029 lt_prog_compiler_pic_CXX='-fPIC'
19035 # All AIX code is PIC.
19036 if test "$host_cpu" = ia64; then
19037 # AIX 5 now supports IA64 processor
19038 lt_prog_compiler_static_CXX='-Bstatic'
19040 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19044 case $cc_basename in
19046 # Green Hills C++ Compiler
19047 # _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"
19052 # PIC is the default on this platform
19053 # Common symbols not allowed in MH_DYLIB files
19054 case $cc_basename in
19056 lt_prog_compiler_pic_CXX='-qnocommon'
19057 lt_prog_compiler_wl_CXX='-Wl,'
19062 case $cc_basename in
19064 lt_prog_compiler_pic_CXX='-KPIC'
19067 # Green Hills C++ Compiler
19068 lt_prog_compiler_pic_CXX='-pic'
19074 freebsd* | dragonfly*)
19075 # FreeBSD uses GNU C++
19077 hpux9* | hpux10* | hpux11*)
19078 case $cc_basename in
19080 lt_prog_compiler_wl_CXX='-Wl,'
19081 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19082 if test "$host_cpu" != ia64; then
19083 lt_prog_compiler_pic_CXX='+Z'
19087 lt_prog_compiler_wl_CXX='-Wl,'
19088 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19094 lt_prog_compiler_pic_CXX='+Z'
19103 # This is c89, which is MS Visual C++ (no shared libs)
19104 # Anyone wants to do a port?
19106 irix5* | irix6* | nonstopux*)
19107 case $cc_basename in
19109 lt_prog_compiler_wl_CXX='-Wl,'
19110 lt_prog_compiler_static_CXX='-non_shared'
19111 # CC pic flag -KPIC is the default.
19117 linux* | k*bsd*-gnu)
19118 case $cc_basename in
19121 lt_prog_compiler_wl_CXX='--backend -Wl,'
19122 lt_prog_compiler_pic_CXX='-fPIC'
19126 lt_prog_compiler_wl_CXX='-Wl,'
19127 lt_prog_compiler_pic_CXX='-KPIC'
19128 lt_prog_compiler_static_CXX='-static'
19131 # Portland Group C++ compiler.
19132 lt_prog_compiler_wl_CXX='-Wl,'
19133 lt_prog_compiler_pic_CXX='-fpic'
19134 lt_prog_compiler_static_CXX='-Bstatic'
19138 # Make sure the PIC flag is empty. It appears that all Alpha
19139 # Linux and Compaq Tru64 Unix objects are PIC.
19140 lt_prog_compiler_pic_CXX=
19141 lt_prog_compiler_static_CXX='-non_shared'
19144 case `$CC -V 2>&1 | sed 5q` in
19147 lt_prog_compiler_pic_CXX='-KPIC'
19148 lt_prog_compiler_static_CXX='-Bstatic'
19149 lt_prog_compiler_wl_CXX='-Qoption ld '
19160 case $cc_basename in
19162 lt_prog_compiler_pic_CXX='-W c,exportall'
19168 netbsd* | netbsdelf*-gnu)
19170 osf3* | osf4* | osf5*)
19171 case $cc_basename in
19173 lt_prog_compiler_wl_CXX='--backend -Wl,'
19176 # Rational C++ 2.4.1
19177 lt_prog_compiler_pic_CXX='-pic'
19180 # Digital/Compaq C++
19181 lt_prog_compiler_wl_CXX='-Wl,'
19182 # Make sure the PIC flag is empty. It appears that all Alpha
19183 # Linux and Compaq Tru64 Unix objects are PIC.
19184 lt_prog_compiler_pic_CXX=
19185 lt_prog_compiler_static_CXX='-non_shared'
19194 case $cc_basename in
19196 # Sun C++ 4.2, 5.x and Centerline C++
19197 lt_prog_compiler_pic_CXX='-KPIC'
19198 lt_prog_compiler_static_CXX='-Bstatic'
19199 lt_prog_compiler_wl_CXX='-Qoption ld '
19202 # Green Hills C++ Compiler
19203 lt_prog_compiler_pic_CXX='-PIC'
19210 case $cc_basename in
19213 lt_prog_compiler_pic_CXX='-pic'
19214 lt_prog_compiler_static_CXX='-Bstatic'
19218 lt_prog_compiler_pic_CXX='-pic'
19225 case $cc_basename in
19227 # NonStop-UX NCC 3.20
19228 lt_prog_compiler_pic_CXX='-KPIC'
19234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19235 case $cc_basename in
19237 lt_prog_compiler_wl_CXX='-Wl,'
19238 lt_prog_compiler_pic_CXX='-KPIC'
19239 lt_prog_compiler_static_CXX='-Bstatic'
19246 lt_prog_compiler_can_build_shared_CXX=no
19251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19252 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19255 # Check to make sure the PIC flag actually works.
19257 if test -n "$lt_prog_compiler_pic_CXX"; then
19259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19261 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 lt_cv_prog_compiler_pic_works_CXX=no
19265 ac_outfile=conftest.$ac_objext
19266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19267 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19268 # Insert the option either (1) after the last *FLAGS variable, or
19269 # (2) before a word containing "conftest.", or (3) at the end.
19270 # Note that $ac_compile itself does not contain backslashes and begins
19271 # with a dollar sign (not a hyphen), so the echo should work correctly.
19272 # The option is referenced via a variable to avoid confusing sed.
19273 lt_compile=`echo "$ac_compile" | $SED \
19274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19276 -e 's:$: $lt_compiler_flag:'`
19277 (eval echo "\"\$as_me:19277: $lt_compile\"" >&5)
19278 (eval "$lt_compile" 2>conftest.err)
19280 cat conftest.err >&5
19281 echo "$as_me:19281: \$? = $ac_status" >&5
19282 if (exit $ac_status) && test -s "$ac_outfile"; then
19283 # The compiler can only warn and ignore the option if not recognized
19284 # So say no if there are warnings other than the usual output.
19285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19288 lt_cv_prog_compiler_pic_works_CXX=yes
19294 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19295 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19297 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19298 case $lt_prog_compiler_pic_CXX in
19300 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19303 lt_prog_compiler_pic_CXX=
19304 lt_prog_compiler_can_build_shared_CXX=no
19309 # For platforms which do not support PIC, -DPIC is meaningless:
19311 lt_prog_compiler_pic_CXX=
19314 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19319 # Check to make sure the static flag actually works.
19321 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19322 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19323 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19324 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 lt_cv_prog_compiler_static_works_CXX=no
19328 save_LDFLAGS="$LDFLAGS"
19329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19332 # The linker can only warn and ignore the option if not recognized
19333 # So say no if there are warnings
19334 if test -s conftest.err; then
19335 # Append any errors to the config.log.
19336 cat conftest.err 1>&5
19337 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19339 if diff conftest.exp conftest.er2 >/dev/null; then
19340 lt_cv_prog_compiler_static_works_CXX=yes
19343 lt_cv_prog_compiler_static_works_CXX=yes
19347 LDFLAGS="$save_LDFLAGS"
19350 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19351 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
19353 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19356 lt_prog_compiler_static_CXX=
19360 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19361 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19362 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 lt_cv_prog_compiler_c_o_CXX=no
19366 $rm -r conftest 2>/dev/null
19370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19372 lt_compiler_flag="-o out/conftest2.$ac_objext"
19373 # Insert the option either (1) after the last *FLAGS variable, or
19374 # (2) before a word containing "conftest.", or (3) at the end.
19375 # Note that $ac_compile itself does not contain backslashes and begins
19376 # with a dollar sign (not a hyphen), so the echo should work correctly.
19377 lt_compile=`echo "$ac_compile" | $SED \
19378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19380 -e 's:$: $lt_compiler_flag:'`
19381 (eval echo "\"\$as_me:19381: $lt_compile\"" >&5)
19382 (eval "$lt_compile" 2>out/conftest.err)
19384 cat out/conftest.err >&5
19385 echo "$as_me:19385: \$? = $ac_status" >&5
19386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19388 # The compiler can only warn and ignore the option if not recognized
19389 # So say no if there are warnings
19390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19393 lt_cv_prog_compiler_c_o_CXX=yes
19398 # SGI C++ compiler will create directory out/ii_files/ for
19399 # template instantiation
19400 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19401 $rm out/* && rmdir out
19407 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19408 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19411 hard_links="nottested"
19412 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19413 # do not overwrite the value of need_locks provided by the user
19414 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19415 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19420 ln conftest.a conftest.b 2>&5 || hard_links=no
19421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19422 { echo "$as_me:$LINENO: result: $hard_links" >&5
19423 echo "${ECHO_T}$hard_links" >&6; }
19424 if test "$hard_links" = no; then
19425 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19426 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19439 # If we're using GNU nm, then we don't want the "-C" option.
19440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19441 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19442 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'
19444 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'
19448 export_symbols_cmds_CXX="$ltdll_cmds"
19451 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'
19453 linux* | k*bsd*-gnu)
19454 link_all_deplibs_CXX=no
19457 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19460 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19462 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19463 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19464 test "$ld_shlibs_CXX" = no && can_build_shared=no
19467 # Do we need to explicitly link libc?
19469 case "x$archive_cmds_need_lc_CXX" in
19471 # Assume -lc should be added
19472 archive_cmds_need_lc_CXX=yes
19474 if test "$enable_shared" = yes && test "$GCC" = yes; then
19475 case $archive_cmds_CXX in
19477 # FIXME: we may have to deal with multi-command sequences.
19480 # Test whether the compiler implicitly links with -lc since on some
19481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19482 # to ld, don't add -lc before -lgcc.
19483 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19489 (eval $ac_compile) 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } 2>conftest.err; then
19495 libobjs=conftest.$ac_objext
19497 wl=$lt_prog_compiler_wl_CXX
19498 pic_flag=$lt_prog_compiler_pic_CXX
19504 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19505 allow_undefined_flag_CXX=
19506 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19507 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }
19512 archive_cmds_need_lc_CXX=no
19514 archive_cmds_need_lc_CXX=yes
19516 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19518 cat conftest.err 1>&5
19521 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19522 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19529 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19530 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19531 library_names_spec=
19532 libname_spec='lib$name'
19536 postuninstall_cmds=
19540 shlibpath_overrides_runpath=unknown
19542 dynamic_linker="$host_os ld.so"
19543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19545 need_lib_prefix=unknown
19546 hardcode_into_libs=no
19548 # when you set need_version to no, make sure it does not cause -set_version
19549 # flags to be left without arguments
19550 need_version=unknown
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19556 shlibpath_var=LIBPATH
19558 # AIX 3 has no versioning support, so we append a major version to the name.
19559 soname_spec='${libname}${release}${shared_ext}$major'
19566 hardcode_into_libs=yes
19567 if test "$host_cpu" = ia64; then
19568 # AIX 5 supports IA64
19569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19570 shlibpath_var=LD_LIBRARY_PATH
19572 # With GCC up to 2.95.x, collect2 would create an import file
19573 # for dependence libraries. The import file would start with
19574 # the line `#! .'. This would cause the generated library to
19575 # depend on `.', always an invalid library. This was fixed in
19576 # development snapshots of GCC prior to 3.0.
19578 aix4 | aix4.[01] | aix4.[01].*)
19579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19581 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19584 can_build_shared=no
19588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19589 # soname into executable. Probably we can add versioning support to
19590 # collect2, so additional links can be useful in future.
19591 if test "$aix_use_runtimelinking" = yes; then
19592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19593 # instead of lib<name>.a to let people know that these are not
19594 # typical AIX shared libraries.
19595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19597 # We preserve .a as extension for shared libraries through AIX4.2
19598 # and later when we are not doing run time linking.
19599 library_names_spec='${libname}${release}.a $libname.a'
19600 soname_spec='${libname}${release}${shared_ext}$major'
19602 shlibpath_var=LIBPATH
19607 library_names_spec='$libname.ixlibrary $libname.a'
19608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19609 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'
19613 library_names_spec='${libname}${shared_ext}'
19614 dynamic_linker="$host_os ld.so"
19615 shlibpath_var=LIBRARY_PATH
19621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19622 soname_spec='${libname}${release}${shared_ext}$major'
19623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19624 shlibpath_var=LD_LIBRARY_PATH
19625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19627 # the default ld.so.conf also contains /usr/contrib/lib and
19628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19629 # libtool to hard-code these into programs
19632 cygwin* | mingw* | pw32*)
19633 version_type=windows
19638 case $GCC,$host_os in
19639 yes,cygwin* | yes,mingw* | yes,pw32*)
19640 library_names_spec='$libname.dll.a'
19641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19642 postinstall_cmds='base_file=`basename \${file}`~
19643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19644 dldir=$destdir/`dirname \$dlpath`~
19645 test -d \$dldir || mkdir -p \$dldir~
19646 $install_prog $dir/$dlname \$dldir/$dlname~
19647 chmod a+x \$dldir/$dlname'
19648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19649 dlpath=$dir/\$dldll~
19651 shlibpath_overrides_runpath=yes
19655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19657 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19660 # MinGW DLLs use traditional 'lib' prefix
19661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19663 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19664 # It is most probably a Windows format PATH printed by
19665 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19666 # path with ; separators, and with drive letters. We can handle the
19667 # drive letters (cygwin fileutils understands them), so leave them,
19668 # especially as we might pass files found there to a mingw objdump,
19669 # which wouldn't understand a cygwinified path. Ahh.
19670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19676 # pw32 DLLs use 'pw' prefix rather than 'lib'
19677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19686 dynamic_linker='Win32 ld.exe'
19687 # FIXME: first we should search . and the directory the executable is in
19691 darwin* | rhapsody*)
19692 dynamic_linker="$host_os dyld"
19693 version_type=darwin
19696 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19697 soname_spec='${libname}${release}${major}$shared_ext'
19698 shlibpath_overrides_runpath=yes
19699 shlibpath_var=DYLD_LIBRARY_PATH
19700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19702 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19710 soname_spec='${libname}${release}${shared_ext}$major'
19711 shlibpath_var=LD_LIBRARY_PATH
19718 freebsd* | dragonfly*)
19719 # DragonFly does not have aout. When/if they implement a new
19720 # versioning mechanism, adjust this.
19721 if test -x /usr/bin/objformat; then
19722 objformat=`/usr/bin/objformat`
19725 freebsd[123]*) objformat=aout ;;
19726 *) objformat=elf ;;
19729 version_type=freebsd-$objformat
19730 case $version_type in
19732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19741 shlibpath_var=LD_LIBRARY_PATH
19744 shlibpath_overrides_runpath=yes
19746 freebsd3.[01]* | freebsdelf3.[01]*)
19747 shlibpath_overrides_runpath=yes
19748 hardcode_into_libs=yes
19750 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19751 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19752 shlibpath_overrides_runpath=no
19753 hardcode_into_libs=yes
19755 *) # from 4.6 on, and DragonFly
19756 shlibpath_overrides_runpath=yes
19757 hardcode_into_libs=yes
19766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19767 soname_spec='${libname}${release}${shared_ext}$major'
19768 shlibpath_var=LD_LIBRARY_PATH
19769 hardcode_into_libs=yes
19772 hpux9* | hpux10* | hpux11*)
19773 # Give a soname corresponding to the major version so that dld.sl refuses to
19774 # link against other versions.
19781 hardcode_into_libs=yes
19782 dynamic_linker="$host_os dld.so"
19783 shlibpath_var=LD_LIBRARY_PATH
19784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19786 soname_spec='${libname}${release}${shared_ext}$major'
19787 if test "X$HPUX_IA64_MODE" = X32; then
19788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19796 hardcode_into_libs=yes
19797 dynamic_linker="$host_os dld.sl"
19798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801 soname_spec='${libname}${release}${shared_ext}$major'
19802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19807 dynamic_linker="$host_os dld.sl"
19808 shlibpath_var=SHLIB_PATH
19809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811 soname_spec='${libname}${release}${shared_ext}$major'
19814 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19815 postinstall_cmds='chmod 555 $lib'
19822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19823 soname_spec='${libname}${release}${shared_ext}$major'
19824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19825 shlibpath_var=LD_LIBRARY_PATH
19826 shlibpath_overrides_runpath=no
19827 hardcode_into_libs=yes
19830 irix5* | irix6* | nonstopux*)
19832 nonstopux*) version_type=nonstopux ;;
19834 if test "$lt_cv_prog_gnu_ld" = yes; then
19842 soname_spec='${libname}${release}${shared_ext}$major'
19843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19845 irix5* | nonstopux*)
19846 libsuff= shlibsuff=
19849 case $LD in # libtool.m4 will add one of these switches to LD
19850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19851 libsuff= shlibsuff= libmagic=32-bit;;
19852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19853 libsuff=32 shlibsuff=N32 libmagic=N32;;
19854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19855 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19856 *) libsuff= shlibsuff= libmagic=never-match;;
19860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19861 shlibpath_overrides_runpath=no
19862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19864 hardcode_into_libs=yes
19867 # No shared lib support for Linux oldld, aout, or coff.
19868 linux*oldld* | linux*aout* | linux*coff*)
19872 # This must be Linux ELF.
19873 linux* | k*bsd*-gnu)
19877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19878 soname_spec='${libname}${release}${shared_ext}$major'
19879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19880 shlibpath_var=LD_LIBRARY_PATH
19881 shlibpath_overrides_runpath=no
19882 # This implies no fast_install, which is unacceptable.
19883 # Some rework will be needed to allow for fast_install
19884 # before this can be enabled.
19885 hardcode_into_libs=yes
19887 # Append ld.so.conf contents to the search path
19888 if test -f /etc/ld.so.conf; then
19889 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19893 # We used to test for /lib/ld.so.1 and disable shared libraries on
19894 # powerpc, because MkLinux only supported shared libraries with the
19895 # GNU dynamic linker. Since this was broken with cross compilers,
19896 # most powerpc-linux boxes support dynamic linking these days and
19897 # people can always --disable-shared, the test was removed, and we
19898 # assume the GNU/Linux dynamic linker is in use.
19899 dynamic_linker='GNU/Linux ld.so'
19906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19907 soname_spec='${libname}${release}${shared_ext}$major'
19908 shlibpath_var=LD_LIBRARY_PATH
19909 shlibpath_overrides_runpath=no
19910 hardcode_into_libs=yes
19911 dynamic_linker='NetBSD ld.elf_so'
19918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19921 dynamic_linker='NetBSD (a.out) ld.so'
19923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19924 soname_spec='${libname}${release}${shared_ext}$major'
19925 dynamic_linker='NetBSD ld.elf_so'
19927 shlibpath_var=LD_LIBRARY_PATH
19928 shlibpath_overrides_runpath=yes
19929 hardcode_into_libs=yes
19934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19935 shlibpath_var=LD_LIBRARY_PATH
19936 shlibpath_overrides_runpath=yes
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19944 soname_spec='${libname}${release}${shared_ext}$major'
19945 shlibpath_var=LD_LIBRARY_PATH
19946 shlibpath_overrides_runpath=yes
19951 sys_lib_dlsearch_path_spec="/usr/lib"
19953 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19955 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19956 *) need_version=no ;;
19958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19960 shlibpath_var=LD_LIBRARY_PATH
19961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19963 openbsd2.[89] | openbsd2.[89].*)
19964 shlibpath_overrides_runpath=no
19967 shlibpath_overrides_runpath=yes
19971 shlibpath_overrides_runpath=yes
19976 libname_spec='$name'
19979 library_names_spec='$libname${shared_ext} $libname.a'
19980 dynamic_linker='OS/2 ld.exe'
19981 shlibpath_var=LIBPATH
19984 osf3* | osf4* | osf5*)
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990 shlibpath_var=LD_LIBRARY_PATH
19991 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19992 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004 soname_spec='${libname}${release}${shared_ext}$major'
20005 shlibpath_var=LD_LIBRARY_PATH
20006 shlibpath_overrides_runpath=yes
20007 hardcode_into_libs=yes
20008 # ldd complains unless libraries are executable
20009 postinstall_cmds='chmod +x $lib'
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20015 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20016 shlibpath_var=LD_LIBRARY_PATH
20017 shlibpath_overrides_runpath=yes
20018 if test "$with_gnu_ld" = yes; then
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027 soname_spec='${libname}${release}${shared_ext}$major'
20028 shlibpath_var=LD_LIBRARY_PATH
20029 case $host_vendor in
20031 shlibpath_overrides_runpath=no
20033 export_dynamic_flag_spec='${wl}-Blargedynsym'
20034 runpath_var=LD_RUN_PATH
20042 shlibpath_overrides_runpath=no
20043 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20049 if test -d /usr/nec ;then
20051 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20052 soname_spec='$libname${shared_ext}.$major'
20053 shlibpath_var=LD_LIBRARY_PATH
20057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20058 version_type=freebsd-elf
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20062 soname_spec='${libname}${release}${shared_ext}$major'
20063 shlibpath_var=LD_LIBRARY_PATH
20064 hardcode_into_libs=yes
20065 if test "$with_gnu_ld" = yes; then
20066 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20067 shlibpath_overrides_runpath=no
20069 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20070 shlibpath_overrides_runpath=yes
20073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20077 sys_lib_dlsearch_path_spec='/usr/lib'
20082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083 soname_spec='${libname}${release}${shared_ext}$major'
20084 shlibpath_var=LD_LIBRARY_PATH
20091 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20092 echo "${ECHO_T}$dynamic_linker" >&6; }
20093 test "$dynamic_linker" = no && can_build_shared=no
20095 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20101 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20102 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20111 if test "$GCC" = yes; then
20112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20115 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20116 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20117 hardcode_action_CXX=
20118 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20119 test -n "$runpath_var_CXX" || \
20120 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20122 # We can hardcode non-existant directories.
20123 if test "$hardcode_direct_CXX" != no &&
20124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20125 # have to relink, otherwise we might link with an installed library
20126 # when we should be linking with a yet-to-be-installed one
20127 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20128 test "$hardcode_minus_L_CXX" != no; then
20129 # Linking always hardcodes the temporary library directory.
20130 hardcode_action_CXX=relink
20132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20133 hardcode_action_CXX=immediate
20136 # We cannot hardcode anything, or else we can only hardcode existing
20138 hardcode_action_CXX=unsupported
20140 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20141 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20143 if test "$hardcode_action_CXX" = relink; then
20144 # Fast installation is not supported
20145 enable_fast_install=no
20146 elif test "$shlibpath_overrides_runpath" = yes ||
20147 test "$enable_shared" = no; then
20148 # Fast installation is not necessary
20149 enable_fast_install=needless
20153 # The else clause should only fire when bootstrapping the
20154 # libtool distribution, otherwise you forgot to ship ltmain.sh
20155 # with your package, and you will get complaints that there are
20156 # no rules to generate ltmain.sh.
20157 if test -f "$ltmain"; then
20158 # See if we are running on zsh, and set the options which allow our commands through
20159 # without removal of \ escapes.
20160 if test -n "${ZSH_VERSION+set}" ; then
20161 setopt NO_GLOB_SUBST
20163 # Now quote all the things that may contain metacharacters while being
20164 # careful not to overquote the AC_SUBSTed values. We take copies of the
20165 # variables and quote the copies for generation of the libtool script.
20166 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20168 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20169 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20170 deplibs_check_method reload_flag reload_cmds need_locks \
20171 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20172 lt_cv_sys_global_symbol_to_c_name_address \
20173 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20174 old_postinstall_cmds old_postuninstall_cmds \
20178 lt_prog_compiler_wl_CXX \
20179 lt_prog_compiler_pic_CXX \
20180 lt_prog_compiler_static_CXX \
20181 lt_prog_compiler_no_builtin_flag_CXX \
20182 export_dynamic_flag_spec_CXX \
20183 thread_safe_flag_spec_CXX \
20184 whole_archive_flag_spec_CXX \
20185 enable_shared_with_static_runtimes_CXX \
20186 old_archive_cmds_CXX \
20187 old_archive_from_new_cmds_CXX \
20188 predep_objects_CXX \
20189 postdep_objects_CXX \
20192 compiler_lib_search_path_CXX \
20193 compiler_lib_search_dirs_CXX \
20195 archive_expsym_cmds_CXX \
20196 postinstall_cmds_CXX \
20197 postuninstall_cmds_CXX \
20198 old_archive_from_expsyms_cmds_CXX \
20199 allow_undefined_flag_CXX \
20200 no_undefined_flag_CXX \
20201 export_symbols_cmds_CXX \
20202 hardcode_libdir_flag_spec_CXX \
20203 hardcode_libdir_flag_spec_ld_CXX \
20204 hardcode_libdir_separator_CXX \
20205 hardcode_automatic_CXX \
20207 module_expsym_cmds_CXX \
20208 lt_cv_prog_compiler_c_o_CXX \
20209 fix_srcfile_path_CXX \
20210 exclude_expsyms_CXX \
20211 include_expsyms_CXX; do
20214 old_archive_cmds_CXX | \
20215 old_archive_from_new_cmds_CXX | \
20216 archive_cmds_CXX | \
20217 archive_expsym_cmds_CXX | \
20218 module_cmds_CXX | \
20219 module_expsym_cmds_CXX | \
20220 old_archive_from_expsyms_cmds_CXX | \
20221 export_symbols_cmds_CXX | \
20222 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20223 postinstall_cmds | postuninstall_cmds | \
20224 old_postinstall_cmds | old_postuninstall_cmds | \
20225 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20226 # Double-quote double-evaled strings.
20227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20236 *'\$0 --fallback-echo"')
20237 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20243 cat <<__EOF__ >> "$cfgfile"
20244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20248 # Shell to use when invoking shell scripts.
20251 # Whether or not to build shared libraries.
20252 build_libtool_libs=$enable_shared
20254 # Whether or not to build static libraries.
20255 build_old_libs=$enable_static
20257 # Whether or not to add -lc for building shared libraries.
20258 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20260 # Whether or not to disallow shared libs when runtime libs are static
20261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20263 # Whether or not to optimize for fast installation.
20264 fast_install=$enable_fast_install
20267 host_alias=$host_alias
20271 # The build system.
20272 build_alias=$build_alias
20276 # An echo program that does not interpret backslashes.
20281 AR_FLAGS=$lt_AR_FLAGS
20286 # LTCC compiler flags.
20287 LTCFLAGS=$lt_LTCFLAGS
20289 # A language-specific compiler.
20290 CC=$lt_compiler_CXX
20292 # Is the compiler the GNU C compiler?
20298 # The linker used to build libraries.
20301 # Whether we need hard or soft links.
20304 # A BSD-compatible nm program.
20307 # A symbol stripping program
20310 # Used to examine libraries when file_magic_cmd begins "file"
20311 MAGIC_CMD=$MAGIC_CMD
20313 # Used on cygwin: DLL creation program.
20316 # Used on cygwin: object dumper.
20319 # Used on cygwin: assembler.
20322 # The name of the directory that contains temporary libtool files.
20325 # How to create reloadable object files.
20326 reload_flag=$lt_reload_flag
20327 reload_cmds=$lt_reload_cmds
20329 # How to pass a linker flag through the compiler.
20330 wl=$lt_lt_prog_compiler_wl_CXX
20332 # Object file suffix (normally "o").
20333 objext="$ac_objext"
20335 # Old archive suffix (normally "a").
20338 # Shared library suffix (normally ".so").
20339 shrext_cmds='$shrext_cmds'
20341 # Executable file suffix (normally "").
20344 # Additional compiler flags for building library objects.
20345 pic_flag=$lt_lt_prog_compiler_pic_CXX
20348 # What is the maximum length of a command?
20349 max_cmd_len=$lt_cv_sys_max_cmd_len
20351 # Does compiler simultaneously support -c and -o options?
20352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20354 # Must we lock files when doing compilation?
20355 need_locks=$lt_need_locks
20357 # Do we need the lib prefix for modules?
20358 need_lib_prefix=$need_lib_prefix
20360 # Do we need a version for libraries?
20361 need_version=$need_version
20363 # Whether dlopen is supported.
20364 dlopen_support=$enable_dlopen
20366 # Whether dlopen of programs is supported.
20367 dlopen_self=$enable_dlopen_self
20369 # Whether dlopen of statically linked programs is supported.
20370 dlopen_self_static=$enable_dlopen_self_static
20372 # Compiler flag to prevent dynamic linking.
20373 link_static_flag=$lt_lt_prog_compiler_static_CXX
20375 # Compiler flag to turn off builtin functions.
20376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20378 # Compiler flag to allow reflexive dlopens.
20379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20381 # Compiler flag to generate shared objects directly from archives.
20382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20384 # Compiler flag to generate thread-safe objects.
20385 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20387 # Library versioning type.
20388 version_type=$version_type
20390 # Format of library name prefix.
20391 libname_spec=$lt_libname_spec
20393 # List of archive names. First name is the real one, the rest are links.
20394 # The last name is the one that the linker finds with -lNAME.
20395 library_names_spec=$lt_library_names_spec
20397 # The coded name of the library, if different from the real name.
20398 soname_spec=$lt_soname_spec
20400 # Commands used to build and install an old-style archive.
20402 old_archive_cmds=$lt_old_archive_cmds_CXX
20403 old_postinstall_cmds=$lt_old_postinstall_cmds
20404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20406 # Create an old-style archive from a shared archive.
20407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20409 # Create a temporary old-style archive to link instead of a shared archive.
20410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20412 # Commands used to build and install a shared archive.
20413 archive_cmds=$lt_archive_cmds_CXX
20414 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20415 postinstall_cmds=$lt_postinstall_cmds
20416 postuninstall_cmds=$lt_postuninstall_cmds
20418 # Commands used to build a loadable module (assumed same as above if empty)
20419 module_cmds=$lt_module_cmds_CXX
20420 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20422 # Commands to strip libraries.
20423 old_striplib=$lt_old_striplib
20424 striplib=$lt_striplib
20426 # Dependencies to place before the objects being linked to create a
20428 predep_objects=$lt_predep_objects_CXX
20430 # Dependencies to place after the objects being linked to create a
20432 postdep_objects=$lt_postdep_objects_CXX
20434 # Dependencies to place before the objects being linked to create a
20436 predeps=$lt_predeps_CXX
20438 # Dependencies to place after the objects being linked to create a
20440 postdeps=$lt_postdeps_CXX
20442 # The directories searched by this compiler when creating a shared
20444 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20446 # The library search path used internally by the compiler when linking
20447 # a shared library.
20448 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20450 # Method to check whether dependent libraries are shared objects.
20451 deplibs_check_method=$lt_deplibs_check_method
20453 # Command to use when deplibs_check_method == file_magic.
20454 file_magic_cmd=$lt_file_magic_cmd
20456 # Flag that allows shared libraries with undefined symbols to be built.
20457 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20459 # Flag that forces no undefined symbols.
20460 no_undefined_flag=$lt_no_undefined_flag_CXX
20462 # Commands used to finish a libtool library installation in a directory.
20463 finish_cmds=$lt_finish_cmds
20465 # Same as above, but a single script fragment to be evaled but not shown.
20466 finish_eval=$lt_finish_eval
20468 # Take the output of nm and produce a listing of raw symbols and C names.
20469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20471 # Transform the output of nm in a proper C declaration
20472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20474 # Transform the output of nm in a C name address pair
20475 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20477 # This is the shared library runtime path variable.
20478 runpath_var=$runpath_var
20480 # This is the shared library path variable.
20481 shlibpath_var=$shlibpath_var
20483 # Is shlibpath searched before the hard-coded library search path?
20484 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20486 # How to hardcode a shared library path into an executable.
20487 hardcode_action=$hardcode_action_CXX
20489 # Whether we should hardcode library paths into libraries.
20490 hardcode_into_libs=$hardcode_into_libs
20492 # Flag to hardcode \$libdir into a binary during linking.
20493 # This must work even if \$libdir does not exist.
20494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20496 # If ld is used when linking, flag to hardcode \$libdir into
20497 # a binary during linking. This must work even if \$libdir does
20499 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20501 # Whether we need a single -rpath flag with a separated argument.
20502 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20504 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20505 # resulting binary.
20506 hardcode_direct=$hardcode_direct_CXX
20508 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20509 # resulting binary.
20510 hardcode_minus_L=$hardcode_minus_L_CXX
20512 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20513 # the resulting binary.
20514 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20516 # Set to yes if building a shared library automatically hardcodes DIR into the library
20517 # and all subsequent libraries and executables linked against it.
20518 hardcode_automatic=$hardcode_automatic_CXX
20520 # Variables whose values should be saved in libtool wrapper scripts and
20521 # restored at relink time.
20522 variables_saved_for_relink="$variables_saved_for_relink"
20524 # Whether libtool must link a program against all its dependency libraries.
20525 link_all_deplibs=$link_all_deplibs_CXX
20527 # Compile-time system search path for libraries
20528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20530 # Run-time system search path for libraries
20531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20533 # Fix the shell variable \$srcfile for the compiler.
20534 fix_srcfile_path=$lt_fix_srcfile_path
20536 # Set to yes if exported symbols are required.
20537 always_export_symbols=$always_export_symbols_CXX
20539 # The commands to list exported symbols.
20540 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20542 # The commands to extract the exported symbol list from a shared archive.
20543 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20545 # Symbols that should not be listed in the preloaded symbols.
20546 exclude_expsyms=$lt_exclude_expsyms_CXX
20548 # Symbols that must always be exported.
20549 include_expsyms=$lt_include_expsyms_CXX
20551 # ### END LIBTOOL TAG CONFIG: $tagname
20557 # If there is no Makefile yet, we rely on a make rule to execute
20558 # `config.status --recheck' to rerun these tests and create the
20559 # libtool script then.
20560 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20561 if test -f "$ltmain_in"; then
20562 test -f Makefile && make "$ltmain"
20568 ac_cpp='$CPP $CPPFLAGS'
20569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20577 with_gnu_ldcxx=$with_gnu_ld
20578 with_gnu_ld=$lt_save_with_gnu_ld
20579 lt_cv_path_LDCXX=$lt_cv_path_LD
20580 lt_cv_path_LD=$lt_save_path_LD
20581 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20582 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20590 if test -n "$F77" && test "X$F77" != "Xno"; then
20593 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20594 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20598 archive_cmds_need_lc_F77=no
20599 allow_undefined_flag_F77=
20600 always_export_symbols_F77=no
20601 archive_expsym_cmds_F77=
20602 export_dynamic_flag_spec_F77=
20603 hardcode_direct_F77=no
20604 hardcode_libdir_flag_spec_F77=
20605 hardcode_libdir_flag_spec_ld_F77=
20606 hardcode_libdir_separator_F77=
20607 hardcode_minus_L_F77=no
20608 hardcode_automatic_F77=no
20610 module_expsym_cmds_F77=
20611 link_all_deplibs_F77=unknown
20612 old_archive_cmds_F77=$old_archive_cmds
20613 no_undefined_flag_F77=
20614 whole_archive_flag_spec_F77=
20615 enable_shared_with_static_runtimes_F77=no
20617 # Source file extension for f77 test sources.
20620 # Object file extension for compiled f77 test sources.
20624 # Code to be used in simple compile tests
20625 lt_simple_compile_test_code="\
20631 # Code to be used in simple link tests
20632 lt_simple_link_test_code="\
20637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20639 # If no C compiler was specified, use CC.
20642 # If no C compiler flags were specified, use CFLAGS.
20643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20645 # Allow CC to be a program name with arguments.
20649 # save warnings/boilerplate of simple test code
20650 ac_outfile=conftest.$ac_objext
20651 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20653 _lt_compiler_boilerplate=`cat conftest.err`
20656 ac_outfile=conftest.$ac_objext
20657 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20659 _lt_linker_boilerplate=`cat conftest.err`
20663 # Allow CC to be a program name with arguments.
20668 for cc_temp in $compiler""; do
20670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20679 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20680 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20681 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20682 echo "${ECHO_T}$can_build_shared" >&6; }
20684 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20685 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20686 test "$can_build_shared" = "no" && enable_shared=no
20688 # On AIX, shared libraries and static libraries use the same namespace, and
20689 # are all built from PIC.
20692 test "$enable_shared" = yes && enable_static=no
20693 if test -n "$RANLIB"; then
20694 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20695 postinstall_cmds='$RANLIB $lib'
20699 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20700 test "$enable_shared" = yes && enable_static=no
20704 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20705 echo "${ECHO_T}$enable_shared" >&6; }
20707 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20708 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20709 # Make sure either enable_shared or enable_static is yes.
20710 test "$enable_shared" = yes || enable_static=yes
20711 { echo "$as_me:$LINENO: result: $enable_static" >&5
20712 echo "${ECHO_T}$enable_static" >&6; }
20717 lt_prog_compiler_wl_F77=
20718 lt_prog_compiler_pic_F77=
20719 lt_prog_compiler_static_F77=
20721 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20722 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20724 if test "$GCC" = yes; then
20725 lt_prog_compiler_wl_F77='-Wl,'
20726 lt_prog_compiler_static_F77='-static'
20730 # All AIX code is PIC.
20731 if test "$host_cpu" = ia64; then
20732 # AIX 5 now supports IA64 processor
20733 lt_prog_compiler_static_F77='-Bstatic'
20738 # FIXME: we need at least 68020 code to build shared libraries, but
20739 # adding the `-m68020' flag to GCC prevents building anything better,
20741 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20744 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20745 # PIC is the default for these OSes.
20748 mingw* | cygwin* | pw32* | os2*)
20749 # This hack is so that the source file can tell whether it is being
20750 # built for inclusion in a dll (and should export symbols for example).
20751 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20752 # (--disable-auto-import) libraries
20753 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20756 darwin* | rhapsody*)
20757 # PIC is the default on this platform
20758 # Common symbols not allowed in MH_DYLIB files
20759 lt_prog_compiler_pic_F77='-fno-common'
20763 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20764 # Instead, we relocate shared libraries at runtime.
20768 # Just because we use GCC doesn't mean we suddenly get shared libraries
20769 # on systems that don't support them.
20770 lt_prog_compiler_can_build_shared_F77=no
20775 if test -d /usr/nec; then
20776 lt_prog_compiler_pic_F77=-Kconform_pic
20781 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20782 # not for PA HP-UX.
20788 lt_prog_compiler_pic_F77='-fPIC'
20794 lt_prog_compiler_pic_F77='-fPIC'
20798 # PORTME Check for flag to pass linker flags through the system compiler.
20801 lt_prog_compiler_wl_F77='-Wl,'
20802 if test "$host_cpu" = ia64; then
20803 # AIX 5 now supports IA64 processor
20804 lt_prog_compiler_static_F77='-Bstatic'
20806 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20810 # PIC is the default on this platform
20811 # Common symbols not allowed in MH_DYLIB files
20812 case $cc_basename in
20814 lt_prog_compiler_pic_F77='-qnocommon'
20815 lt_prog_compiler_wl_F77='-Wl,'
20820 mingw* | cygwin* | pw32* | os2*)
20821 # This hack is so that the source file can tell whether it is being
20822 # built for inclusion in a dll (and should export symbols for example).
20823 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20826 hpux9* | hpux10* | hpux11*)
20827 lt_prog_compiler_wl_F77='-Wl,'
20828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20829 # not for PA HP-UX.
20835 lt_prog_compiler_pic_F77='+Z'
20838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20839 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20842 irix5* | irix6* | nonstopux*)
20843 lt_prog_compiler_wl_F77='-Wl,'
20844 # PIC (with -KPIC) is the default.
20845 lt_prog_compiler_static_F77='-non_shared'
20849 lt_prog_compiler_pic_F77='-KPIC'
20850 lt_prog_compiler_static_F77='-Bstatic'
20853 linux* | k*bsd*-gnu)
20854 case $cc_basename in
20856 lt_prog_compiler_wl_F77='-Wl,'
20857 lt_prog_compiler_pic_F77='-KPIC'
20858 lt_prog_compiler_static_F77='-static'
20860 pgcc* | pgf77* | pgf90* | pgf95*)
20861 # Portland Group compilers (*not* the Pentium gcc compiler,
20862 # which looks to be a dead project)
20863 lt_prog_compiler_wl_F77='-Wl,'
20864 lt_prog_compiler_pic_F77='-fpic'
20865 lt_prog_compiler_static_F77='-Bstatic'
20868 lt_prog_compiler_wl_F77='-Wl,'
20869 # All Alpha code is PIC.
20870 lt_prog_compiler_static_F77='-non_shared'
20873 case `$CC -V 2>&1 | sed 5q` in
20876 lt_prog_compiler_pic_F77='-KPIC'
20877 lt_prog_compiler_static_F77='-Bstatic'
20878 lt_prog_compiler_wl_F77='-Wl,'
20881 # Sun Fortran 8.3 passes all unrecognized flags to the linker
20882 lt_prog_compiler_pic_F77='-KPIC'
20883 lt_prog_compiler_static_F77='-Bstatic'
20884 lt_prog_compiler_wl_F77=''
20891 osf3* | osf4* | osf5*)
20892 lt_prog_compiler_wl_F77='-Wl,'
20893 # All OSF/1 code is PIC.
20894 lt_prog_compiler_static_F77='-non_shared'
20898 lt_prog_compiler_static_F77='-non_shared'
20902 lt_prog_compiler_pic_F77='-KPIC'
20903 lt_prog_compiler_static_F77='-Bstatic'
20904 case $cc_basename in
20905 f77* | f90* | f95*)
20906 lt_prog_compiler_wl_F77='-Qoption ld ';;
20908 lt_prog_compiler_wl_F77='-Wl,';;
20913 lt_prog_compiler_wl_F77='-Qoption ld '
20914 lt_prog_compiler_pic_F77='-PIC'
20915 lt_prog_compiler_static_F77='-Bstatic'
20918 sysv4 | sysv4.2uw2* | sysv4.3*)
20919 lt_prog_compiler_wl_F77='-Wl,'
20920 lt_prog_compiler_pic_F77='-KPIC'
20921 lt_prog_compiler_static_F77='-Bstatic'
20925 if test -d /usr/nec ;then
20926 lt_prog_compiler_pic_F77='-Kconform_pic'
20927 lt_prog_compiler_static_F77='-Bstatic'
20931 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20932 lt_prog_compiler_wl_F77='-Wl,'
20933 lt_prog_compiler_pic_F77='-KPIC'
20934 lt_prog_compiler_static_F77='-Bstatic'
20938 lt_prog_compiler_wl_F77='-Wl,'
20939 lt_prog_compiler_can_build_shared_F77=no
20943 lt_prog_compiler_pic_F77='-pic'
20944 lt_prog_compiler_static_F77='-Bstatic'
20948 lt_prog_compiler_can_build_shared_F77=no
20953 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20954 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20957 # Check to make sure the PIC flag actually works.
20959 if test -n "$lt_prog_compiler_pic_F77"; then
20961 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20962 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20963 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20966 lt_cv_prog_compiler_pic_works_F77=no
20967 ac_outfile=conftest.$ac_objext
20968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20969 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20970 # Insert the option either (1) after the last *FLAGS variable, or
20971 # (2) before a word containing "conftest.", or (3) at the end.
20972 # Note that $ac_compile itself does not contain backslashes and begins
20973 # with a dollar sign (not a hyphen), so the echo should work correctly.
20974 # The option is referenced via a variable to avoid confusing sed.
20975 lt_compile=`echo "$ac_compile" | $SED \
20976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20978 -e 's:$: $lt_compiler_flag:'`
20979 (eval echo "\"\$as_me:20979: $lt_compile\"" >&5)
20980 (eval "$lt_compile" 2>conftest.err)
20982 cat conftest.err >&5
20983 echo "$as_me:20983: \$? = $ac_status" >&5
20984 if (exit $ac_status) && test -s "$ac_outfile"; then
20985 # The compiler can only warn and ignore the option if not recognized
20986 # So say no if there are warnings other than the usual output.
20987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20990 lt_cv_prog_compiler_pic_works_F77=yes
20996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
20997 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
20999 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21000 case $lt_prog_compiler_pic_F77 in
21002 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21005 lt_prog_compiler_pic_F77=
21006 lt_prog_compiler_can_build_shared_F77=no
21011 # For platforms which do not support PIC, -DPIC is meaningless:
21013 lt_prog_compiler_pic_F77=
21016 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21021 # Check to make sure the static flag actually works.
21023 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21024 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21025 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21026 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 lt_cv_prog_compiler_static_works_F77=no
21030 save_LDFLAGS="$LDFLAGS"
21031 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21034 # The linker can only warn and ignore the option if not recognized
21035 # So say no if there are warnings
21036 if test -s conftest.err; then
21037 # Append any errors to the config.log.
21038 cat conftest.err 1>&5
21039 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21041 if diff conftest.exp conftest.er2 >/dev/null; then
21042 lt_cv_prog_compiler_static_works_F77=yes
21045 lt_cv_prog_compiler_static_works_F77=yes
21049 LDFLAGS="$save_LDFLAGS"
21052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
21053 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
21055 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21058 lt_prog_compiler_static_F77=
21062 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21063 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21064 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 lt_cv_prog_compiler_c_o_F77=no
21068 $rm -r conftest 2>/dev/null
21072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21074 lt_compiler_flag="-o out/conftest2.$ac_objext"
21075 # Insert the option either (1) after the last *FLAGS variable, or
21076 # (2) before a word containing "conftest.", or (3) at the end.
21077 # Note that $ac_compile itself does not contain backslashes and begins
21078 # with a dollar sign (not a hyphen), so the echo should work correctly.
21079 lt_compile=`echo "$ac_compile" | $SED \
21080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21082 -e 's:$: $lt_compiler_flag:'`
21083 (eval echo "\"\$as_me:21083: $lt_compile\"" >&5)
21084 (eval "$lt_compile" 2>out/conftest.err)
21086 cat out/conftest.err >&5
21087 echo "$as_me:21087: \$? = $ac_status" >&5
21088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21090 # The compiler can only warn and ignore the option if not recognized
21091 # So say no if there are warnings
21092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21095 lt_cv_prog_compiler_c_o_F77=yes
21100 # SGI C++ compiler will create directory out/ii_files/ for
21101 # template instantiation
21102 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21103 $rm out/* && rmdir out
21109 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21110 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21113 hard_links="nottested"
21114 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21115 # do not overwrite the value of need_locks provided by the user
21116 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21117 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21122 ln conftest.a conftest.b 2>&5 || hard_links=no
21123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21124 { echo "$as_me:$LINENO: result: $hard_links" >&5
21125 echo "${ECHO_T}$hard_links" >&6; }
21126 if test "$hard_links" = no; then
21127 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21128 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21135 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21136 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21139 allow_undefined_flag_F77=
21140 enable_shared_with_static_runtimes_F77=no
21142 archive_expsym_cmds_F77=
21143 old_archive_From_new_cmds_F77=
21144 old_archive_from_expsyms_cmds_F77=
21145 export_dynamic_flag_spec_F77=
21146 whole_archive_flag_spec_F77=
21147 thread_safe_flag_spec_F77=
21148 hardcode_libdir_flag_spec_F77=
21149 hardcode_libdir_flag_spec_ld_F77=
21150 hardcode_libdir_separator_F77=
21151 hardcode_direct_F77=no
21152 hardcode_minus_L_F77=no
21153 hardcode_shlibpath_var_F77=unsupported
21154 link_all_deplibs_F77=unknown
21155 hardcode_automatic_F77=no
21157 module_expsym_cmds_F77=
21158 always_export_symbols_F77=no
21159 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21160 # include_expsyms should be a list of space-separated symbols to be *always*
21161 # included in the symbol list
21162 include_expsyms_F77=
21163 # exclude_expsyms can be an extended regexp of symbols to exclude
21164 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21165 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21166 # as well as any symbol that contains `d'.
21167 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21168 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21169 # platforms (ab)use it in PIC code, but their linkers get confused if
21170 # the symbol is explicitly referenced. Since portable code cannot
21171 # rely on this symbol name, it's probably fine to never include it in
21172 # preloaded symbol tables.
21173 # Exclude shared library initialization/finalization symbols.
21174 extract_expsyms_cmds=
21175 # Just being paranoid about ensuring that cc_basename is set.
21176 for cc_temp in $compiler""; do
21178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21184 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21187 cygwin* | mingw* | pw32*)
21188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21189 # When not using gcc, we currently assume that we are using
21190 # Microsoft Visual C++.
21191 if test "$GCC" != yes; then
21196 # we just hope/assume this is gcc and not c89 (= MSVC++)
21205 if test "$with_gnu_ld" = yes; then
21206 # If archive_cmds runs LD, not CC, wlarc should be empty
21209 # Set some defaults for GNU ld with shared library support. These
21210 # are reset later if shared libraries are not supported. Putting them
21211 # here allows them to be overridden if necessary.
21212 runpath_var=LD_RUN_PATH
21213 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21214 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21215 # ancient GNU ld didn't support --whole-archive et. al.
21216 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21217 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21219 whole_archive_flag_spec_F77=
21221 supports_anon_versioning=no
21222 case `$LD -v 2>/dev/null` in
21223 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21224 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21225 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21226 *\ 2.11.*) ;; # other 2.11 versions
21227 *) supports_anon_versioning=yes ;;
21230 # See if GNU ld supports shared libraries.
21233 # On AIX/PPC, the GNU linker is very broken
21234 if test "$host_cpu" != ia64; then
21238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21239 *** to be unable to reliably create shared libraries on AIX.
21240 *** Therefore, libtool is disabling shared libraries support. If you
21241 *** really care for shared libraries, you may want to modify your PATH
21242 *** so that a non-GNU linker is found, and then restart.
21249 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)'
21250 hardcode_libdir_flag_spec_F77='-L$libdir'
21251 hardcode_minus_L_F77=yes
21253 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21254 # that the semantics of dynamic libraries on AmigaOS, at least up
21255 # to version 4, is to share data among multiple programs linked
21256 # with the same dynamic library. Since this doesn't match the
21257 # behavior of shared libraries on other platforms, we can't use
21263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21264 allow_undefined_flag_F77=unsupported
21265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21266 # support --undefined. This deserves some investigation. FIXME
21267 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21273 cygwin* | mingw* | pw32*)
21274 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21275 # as there is no search path for DLLs.
21276 hardcode_libdir_flag_spec_F77='-L$libdir'
21277 allow_undefined_flag_F77=unsupported
21278 always_export_symbols_F77=no
21279 enable_shared_with_static_runtimes_F77=yes
21280 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21282 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21284 # If the export-symbols file already is a .def file (1st line
21285 # is EXPORTS), use it as is; otherwise, prepend...
21286 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21287 cp $export_symbols $output_objdir/$soname.def;
21289 echo EXPORTS > $output_objdir/$soname.def;
21290 cat $export_symbols >> $output_objdir/$soname.def;
21292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21299 hardcode_direct_F77=no
21300 hardcode_shlibpath_var_F77=no
21301 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21302 export_dynamic_flag_spec_F77='${wl}-E'
21303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21304 # Instead, shared libraries are loaded at an image base (0x10000000 by
21305 # default) and relocated if they conflict, which is a slow very memory
21306 # consuming and fragmenting process. To avoid this, we pick a random,
21307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21309 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21310 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21313 gnu* | linux* | k*bsd*-gnu)
21314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21316 case $cc_basename,$host_cpu in
21317 pgcc*) # Portland Group C compiler
21318 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'
21319 tmp_addflag=' $pic_flag'
21321 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21322 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'
21323 tmp_addflag=' $pic_flag -Mnomain' ;;
21324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21325 tmp_addflag=' -i_dynamic' ;;
21326 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21327 tmp_addflag=' -i_dynamic -nofor_main' ;;
21328 ifc* | ifort*) # Intel Fortran compiler
21329 tmp_addflag=' -nofor_main' ;;
21331 case `$CC -V 2>&1 | sed 5q` in
21332 *Sun\ C*) # Sun C 5.9
21333 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21334 tmp_sharedflag='-G' ;;
21335 *Sun\ F*) # Sun Fortran 8.3
21336 tmp_sharedflag='-G' ;;
21338 tmp_sharedflag='-shared' ;;
21340 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21342 if test $supports_anon_versioning = yes; then
21343 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21345 $echo "local: *; };" >> $output_objdir/$libname.ver~
21346 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21348 link_all_deplibs_F77=no
21354 netbsd* | netbsdelf*-gnu)
21355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21356 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21360 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21365 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21369 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21370 *** create shared libraries on Solaris systems. Therefore, libtool
21371 *** is disabling shared libraries support. We urge you to upgrade GNU
21372 *** binutils to release 2.9.1 or newer. Another option is to modify
21373 *** your PATH or compiler configuration so that the native linker is
21374 *** used, and then restart.
21377 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21386 case `$LD -v 2>&1` in
21387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21391 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21392 *** reliably create shared libraries on SCO systems. Therefore, libtool
21393 *** is disabling shared libraries support. We urge you to upgrade GNU
21394 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21395 *** your PATH or compiler configuration so that the native linker is
21396 *** used, and then restart.
21401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21402 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21413 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21415 hardcode_direct_F77=yes
21416 hardcode_shlibpath_var_F77=no
21420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21422 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21429 if test "$ld_shlibs_F77" = no; then
21431 hardcode_libdir_flag_spec_F77=
21432 export_dynamic_flag_spec_F77=
21433 whole_archive_flag_spec_F77=
21436 # PORTME fill in a description of your system's linker (not GNU ld)
21439 allow_undefined_flag_F77=unsupported
21440 always_export_symbols_F77=yes
21441 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'
21442 # Note: this linker hardcodes the directories in LIBPATH if there
21443 # are no directories specified by -L.
21444 hardcode_minus_L_F77=yes
21445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21446 # Neither direct hardcoding nor static linking is supported with a
21448 hardcode_direct_F77=unsupported
21453 if test "$host_cpu" = ia64; then
21454 # On IA64, the linker does run time linking by default, so we don't
21455 # have to do anything special.
21456 aix_use_runtimelinking=no
21457 exp_sym_flag='-Bexport'
21460 # If we're using GNU nm, then we don't want the "-C" option.
21461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21462 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21463 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'
21465 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'
21467 aix_use_runtimelinking=no
21469 # Test if we are trying to use run time linking or normal
21470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21471 # need to do runtime linking.
21472 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21473 for ld_flag in $LDFLAGS; do
21474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21475 aix_use_runtimelinking=yes
21482 exp_sym_flag='-bexport'
21483 no_entry_flag='-bnoentry'
21486 # When large executables or shared objects are built, AIX ld can
21487 # have problems creating the table of contents. If linking a library
21488 # or program results in "error TOC overflow" add -mminimal-toc to
21489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21492 archive_cmds_F77=''
21493 hardcode_direct_F77=yes
21494 hardcode_libdir_separator_F77=':'
21495 link_all_deplibs_F77=yes
21497 if test "$GCC" = yes; then
21498 case $host_os in aix4.[012]|aix4.[012].*)
21499 # We only want to do this on AIX 4.2 and lower, the check
21500 # below for broken collect2 doesn't work under 4.3+
21501 collect2name=`${CC} -print-prog-name=collect2`
21502 if test -f "$collect2name" && \
21503 strings "$collect2name" | grep resolve_lib_name >/dev/null
21505 # We have reworked collect2
21508 # We have old collect2
21509 hardcode_direct_F77=unsupported
21510 # It fails to find uninstalled libraries when the uninstalled
21511 # path is not listed in the libpath. Setting hardcode_minus_L
21512 # to unsupported forces relinking
21513 hardcode_minus_L_F77=yes
21514 hardcode_libdir_flag_spec_F77='-L$libdir'
21515 hardcode_libdir_separator_F77=
21519 shared_flag='-shared'
21520 if test "$aix_use_runtimelinking" = yes; then
21521 shared_flag="$shared_flag "'${wl}-G'
21525 if test "$host_cpu" = ia64; then
21526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21527 # chokes on -Wl,-G. The following line is correct:
21530 if test "$aix_use_runtimelinking" = yes; then
21531 shared_flag='${wl}-G'
21533 shared_flag='${wl}-bM:SRE'
21538 # It seems that -bexpall does not export symbols beginning with
21539 # underscore (_), so it is better to generate a list of symbols to export.
21540 always_export_symbols_F77=yes
21541 if test "$aix_use_runtimelinking" = yes; then
21542 # Warning - without using the other runtime loading flags (-brtl),
21543 # -berok will link without error, but may produce a broken library.
21544 allow_undefined_flag_F77='-berok'
21545 # Determine the default libpath from the value encoded in an empty executable.
21546 cat >conftest.$ac_ext <<_ACEOF
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_link") 2>conftest.er1
21560 grep -v '^ *+' conftest.er1 >conftest.err
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } && {
21565 test -z "$ac_f77_werror_flag" ||
21566 test ! -s conftest.err
21567 } && test -s conftest$ac_exeext &&
21568 $as_test_x conftest$ac_exeext; then
21570 lt_aix_libpath_sed='
21571 /Import File Strings/,/^$/ {
21577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21578 # Check for a 64-bit object if we didn't find anything.
21579 if test -z "$aix_libpath"; then
21580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21583 echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21590 conftest$ac_exeext conftest.$ac_ext
21591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21593 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21594 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21596 if test "$host_cpu" = ia64; then
21597 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21598 allow_undefined_flag_F77="-z nodefs"
21599 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
21601 # Determine the default libpath from the value encoded in an empty executable.
21602 cat >conftest.$ac_ext <<_ACEOF
21607 rm -f conftest.$ac_objext conftest$ac_exeext
21608 if { (ac_try="$ac_link"
21609 case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_link") 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_f77_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest$ac_exeext &&
21624 $as_test_x conftest$ac_exeext; then
21626 lt_aix_libpath_sed='
21627 /Import File Strings/,/^$/ {
21633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21634 # Check for a 64-bit object if we didn't find anything.
21635 if test -z "$aix_libpath"; then
21636 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646 conftest$ac_exeext conftest.$ac_ext
21647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21649 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21650 # Warning - without using the other run time loading flags,
21651 # -berok will link without error, but may produce a broken library.
21652 no_undefined_flag_F77=' ${wl}-bernotok'
21653 allow_undefined_flag_F77=' ${wl}-berok'
21654 # Exported symbols can be pulled into shared objects from archives
21655 whole_archive_flag_spec_F77='$convenience'
21656 archive_cmds_need_lc_F77=yes
21657 # This is similar to how AIX traditionally builds its shared libraries.
21658 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
21664 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)'
21665 hardcode_libdir_flag_spec_F77='-L$libdir'
21666 hardcode_minus_L_F77=yes
21667 # see comment about different semantics on the GNU ld section
21672 export_dynamic_flag_spec_F77=-rdynamic
21675 cygwin* | mingw* | pw32*)
21676 # When not using gcc, we currently assume that we are using
21677 # Microsoft Visual C++.
21678 # hardcode_libdir_flag_spec is actually meaningless, as there is
21679 # no search path for DLLs.
21680 hardcode_libdir_flag_spec_F77=' '
21681 allow_undefined_flag_F77=unsupported
21682 # Tell ltmain to make .lib files, not .a files.
21684 # Tell ltmain to make .dll files, not .so files.
21686 # FIXME: Setting linknames here is a bad hack.
21687 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21688 # The linker will automatically build a .lib file if we build a DLL.
21689 old_archive_From_new_cmds_F77='true'
21690 # FIXME: Should let the user specify the lib program.
21691 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
21692 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21693 enable_shared_with_static_runtimes_F77=yes
21696 darwin* | rhapsody*)
21698 rhapsody* | darwin1.[012])
21699 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21702 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21703 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21705 case ${MACOSX_DEPLOYMENT_TARGET} in
21707 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21710 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21716 archive_cmds_need_lc_F77=no
21717 hardcode_direct_F77=no
21718 hardcode_automatic_F77=yes
21719 hardcode_shlibpath_var_F77=unsupported
21720 whole_archive_flag_spec_F77=''
21721 link_all_deplibs_F77=yes
21722 if test "$GCC" = yes ; then
21723 output_verbose_link_cmd='echo'
21724 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
21725 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21726 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
21727 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
21729 case $cc_basename in
21731 output_verbose_link_cmd='echo'
21732 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
21733 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21734 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21735 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21736 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}'
21746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21747 hardcode_libdir_flag_spec_F77='-L$libdir'
21748 hardcode_shlibpath_var_F77=no
21755 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21756 # support. Future versions do this automatically, but an explicit c++rt0.o
21757 # does not break anything, and helps significantly (at the cost of a little
21760 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21761 hardcode_libdir_flag_spec_F77='-R$libdir'
21762 hardcode_direct_F77=yes
21763 hardcode_shlibpath_var_F77=no
21766 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21768 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21769 hardcode_direct_F77=yes
21770 hardcode_minus_L_F77=yes
21771 hardcode_shlibpath_var_F77=no
21774 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21775 freebsd* | dragonfly*)
21776 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21777 hardcode_libdir_flag_spec_F77='-R$libdir'
21778 hardcode_direct_F77=yes
21779 hardcode_shlibpath_var_F77=no
21783 if test "$GCC" = yes; then
21784 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'
21786 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'
21788 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21789 hardcode_libdir_separator_F77=:
21790 hardcode_direct_F77=yes
21792 # hardcode_minus_L: Not really in the search PATH,
21793 # but as the default location of the library.
21794 hardcode_minus_L_F77=yes
21795 export_dynamic_flag_spec_F77='${wl}-E'
21799 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21800 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21802 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21804 if test "$with_gnu_ld" = no; then
21805 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21806 hardcode_libdir_separator_F77=:
21808 hardcode_direct_F77=yes
21809 export_dynamic_flag_spec_F77='${wl}-E'
21811 # hardcode_minus_L: Not really in the search PATH,
21812 # but as the default location of the library.
21813 hardcode_minus_L_F77=yes
21818 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21821 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21824 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21827 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21833 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21836 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21839 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21843 if test "$with_gnu_ld" = no; then
21844 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21845 hardcode_libdir_separator_F77=:
21849 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21850 hardcode_direct_F77=no
21851 hardcode_shlibpath_var_F77=no
21854 hardcode_direct_F77=yes
21855 export_dynamic_flag_spec_F77='${wl}-E'
21857 # hardcode_minus_L: Not really in the search PATH,
21858 # but as the default location of the library.
21859 hardcode_minus_L_F77=yes
21865 irix5* | irix6* | nonstopux*)
21866 if test "$GCC" = yes; then
21867 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'
21869 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'
21870 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21872 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21873 hardcode_libdir_separator_F77=:
21874 link_all_deplibs_F77=yes
21877 netbsd* | netbsdelf*-gnu)
21878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21879 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21881 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21883 hardcode_libdir_flag_spec_F77='-R$libdir'
21884 hardcode_direct_F77=yes
21885 hardcode_shlibpath_var_F77=no
21889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21890 hardcode_direct_F77=yes
21891 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21892 hardcode_libdir_separator_F77=:
21893 hardcode_shlibpath_var_F77=no
21897 if test -f /usr/libexec/ld.so; then
21898 hardcode_direct_F77=yes
21899 hardcode_shlibpath_var_F77=no
21900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21901 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21902 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21903 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21904 export_dynamic_flag_spec_F77='${wl}-E'
21907 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21908 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21909 hardcode_libdir_flag_spec_F77='-R$libdir'
21912 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21913 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21923 hardcode_libdir_flag_spec_F77='-L$libdir'
21924 hardcode_minus_L_F77=yes
21925 allow_undefined_flag_F77=unsupported
21926 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'
21927 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21931 if test "$GCC" = yes; then
21932 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21933 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'
21935 allow_undefined_flag_F77=' -expect_unresolved \*'
21936 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'
21938 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21939 hardcode_libdir_separator_F77=:
21942 osf4* | osf5*) # as osf3* with the addition of -msym flag
21943 if test "$GCC" = yes; then
21944 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21945 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'
21946 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21948 allow_undefined_flag_F77=' -expect_unresolved \*'
21949 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'
21950 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~
21951 $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'
21953 # Both c and cxx compiler support -rpath directly
21954 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21956 hardcode_libdir_separator_F77=:
21960 no_undefined_flag_F77=' -z text'
21961 if test "$GCC" = yes; then
21963 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21964 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21965 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21968 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21969 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21972 hardcode_libdir_flag_spec_F77='-R$libdir'
21973 hardcode_shlibpath_var_F77=no
21975 solaris2.[0-5] | solaris2.[0-5].*) ;;
21977 # The compiler driver will combine and reorder linker options,
21978 # but understands `-z linker_flag'. GCC discards it without `$wl',
21979 # but is careful enough not to reorder.
21980 # Supported since Solaris 2.6 (maybe 2.5.1?)
21981 if test "$GCC" = yes; then
21982 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21984 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
21988 link_all_deplibs_F77=yes
21992 if test "x$host_vendor" = xsequent; then
21993 # Use $CC to link under sequent, because it throws in some extra .o
21994 # files that make .init and .fini sections work.
21995 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21997 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21999 hardcode_libdir_flag_spec_F77='-L$libdir'
22000 hardcode_direct_F77=yes
22001 hardcode_minus_L_F77=yes
22002 hardcode_shlibpath_var_F77=no
22006 case $host_vendor in
22008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22009 hardcode_direct_F77=yes # is this really true???
22012 ## LD is ld it makes a PLAMLIB
22013 ## CC just makes a GrossModule.
22014 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22015 reload_cmds_F77='$CC -r -o $output$reload_objs'
22016 hardcode_direct_F77=no
22019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22020 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22023 runpath_var='LD_RUN_PATH'
22024 hardcode_shlibpath_var_F77=no
22028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22029 hardcode_shlibpath_var_F77=no
22030 export_dynamic_flag_spec_F77='-Bexport'
22034 if test -d /usr/nec; then
22035 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22036 hardcode_shlibpath_var_F77=no
22037 runpath_var=LD_RUN_PATH
22038 hardcode_runpath_var=yes
22043 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22044 no_undefined_flag_F77='${wl}-z,text'
22045 archive_cmds_need_lc_F77=no
22046 hardcode_shlibpath_var_F77=no
22047 runpath_var='LD_RUN_PATH'
22049 if test "$GCC" = yes; then
22050 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22051 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22053 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22054 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22058 sysv5* | sco3.2v5* | sco5v6*)
22059 # Note: We can NOT use -z defs as we might desire, because we do not
22060 # link with -lc, and that would cause any symbols used from libc to
22061 # always be unresolved, which means just about no library would
22062 # ever link correctly. If we're not using GNU ld we use -z text
22063 # though, which does catch some bad symbols but isn't as heavy-handed
22065 no_undefined_flag_F77='${wl}-z,text'
22066 allow_undefined_flag_F77='${wl}-z,nodefs'
22067 archive_cmds_need_lc_F77=no
22068 hardcode_shlibpath_var_F77=no
22069 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22070 hardcode_libdir_separator_F77=':'
22071 link_all_deplibs_F77=yes
22072 export_dynamic_flag_spec_F77='${wl}-Bexport'
22073 runpath_var='LD_RUN_PATH'
22075 if test "$GCC" = yes; then
22076 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22077 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22079 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22080 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22085 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22086 hardcode_libdir_flag_spec_F77='-L$libdir'
22087 hardcode_shlibpath_var_F77=no
22096 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22097 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22098 test "$ld_shlibs_F77" = no && can_build_shared=no
22101 # Do we need to explicitly link libc?
22103 case "x$archive_cmds_need_lc_F77" in
22105 # Assume -lc should be added
22106 archive_cmds_need_lc_F77=yes
22108 if test "$enable_shared" = yes && test "$GCC" = yes; then
22109 case $archive_cmds_F77 in
22111 # FIXME: we may have to deal with multi-command sequences.
22114 # Test whether the compiler implicitly links with -lc since on some
22115 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22116 # to ld, don't add -lc before -lgcc.
22117 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22118 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22123 (eval $ac_compile) 2>&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } 2>conftest.err; then
22129 libobjs=conftest.$ac_objext
22131 wl=$lt_prog_compiler_wl_F77
22132 pic_flag=$lt_prog_compiler_pic_F77
22138 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22139 allow_undefined_flag_F77=
22140 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22141 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }
22146 archive_cmds_need_lc_F77=no
22148 archive_cmds_need_lc_F77=yes
22150 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22152 cat conftest.err 1>&5
22155 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22156 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22163 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22164 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22165 library_names_spec=
22166 libname_spec='lib$name'
22170 postuninstall_cmds=
22174 shlibpath_overrides_runpath=unknown
22176 dynamic_linker="$host_os ld.so"
22177 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22179 need_lib_prefix=unknown
22180 hardcode_into_libs=no
22182 # when you set need_version to no, make sure it does not cause -set_version
22183 # flags to be left without arguments
22184 need_version=unknown
22189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22190 shlibpath_var=LIBPATH
22192 # AIX 3 has no versioning support, so we append a major version to the name.
22193 soname_spec='${libname}${release}${shared_ext}$major'
22200 hardcode_into_libs=yes
22201 if test "$host_cpu" = ia64; then
22202 # AIX 5 supports IA64
22203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22204 shlibpath_var=LD_LIBRARY_PATH
22206 # With GCC up to 2.95.x, collect2 would create an import file
22207 # for dependence libraries. The import file would start with
22208 # the line `#! .'. This would cause the generated library to
22209 # depend on `.', always an invalid library. This was fixed in
22210 # development snapshots of GCC prior to 3.0.
22212 aix4 | aix4.[01] | aix4.[01].*)
22213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22215 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22218 can_build_shared=no
22222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22223 # soname into executable. Probably we can add versioning support to
22224 # collect2, so additional links can be useful in future.
22225 if test "$aix_use_runtimelinking" = yes; then
22226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22227 # instead of lib<name>.a to let people know that these are not
22228 # typical AIX shared libraries.
22229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22231 # We preserve .a as extension for shared libraries through AIX4.2
22232 # and later when we are not doing run time linking.
22233 library_names_spec='${libname}${release}.a $libname.a'
22234 soname_spec='${libname}${release}${shared_ext}$major'
22236 shlibpath_var=LIBPATH
22241 library_names_spec='$libname.ixlibrary $libname.a'
22242 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22243 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'
22247 library_names_spec='${libname}${shared_ext}'
22248 dynamic_linker="$host_os ld.so"
22249 shlibpath_var=LIBRARY_PATH
22255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22256 soname_spec='${libname}${release}${shared_ext}$major'
22257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22258 shlibpath_var=LD_LIBRARY_PATH
22259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22261 # the default ld.so.conf also contains /usr/contrib/lib and
22262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22263 # libtool to hard-code these into programs
22266 cygwin* | mingw* | pw32*)
22267 version_type=windows
22272 case $GCC,$host_os in
22273 yes,cygwin* | yes,mingw* | yes,pw32*)
22274 library_names_spec='$libname.dll.a'
22275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22276 postinstall_cmds='base_file=`basename \${file}`~
22277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22278 dldir=$destdir/`dirname \$dlpath`~
22279 test -d \$dldir || mkdir -p \$dldir~
22280 $install_prog $dir/$dlname \$dldir/$dlname~
22281 chmod a+x \$dldir/$dlname'
22282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22283 dlpath=$dir/\$dldll~
22285 shlibpath_overrides_runpath=yes
22289 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22290 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22291 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22294 # MinGW DLLs use traditional 'lib' prefix
22295 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22297 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22298 # It is most probably a Windows format PATH printed by
22299 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22300 # path with ; separators, and with drive letters. We can handle the
22301 # drive letters (cygwin fileutils understands them), so leave them,
22302 # especially as we might pass files found there to a mingw objdump,
22303 # which wouldn't understand a cygwinified path. Ahh.
22304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22310 # pw32 DLLs use 'pw' prefix rather than 'lib'
22311 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22317 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22320 dynamic_linker='Win32 ld.exe'
22321 # FIXME: first we should search . and the directory the executable is in
22325 darwin* | rhapsody*)
22326 dynamic_linker="$host_os dyld"
22327 version_type=darwin
22330 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22331 soname_spec='${libname}${release}${major}$shared_ext'
22332 shlibpath_overrides_runpath=yes
22333 shlibpath_var=DYLD_LIBRARY_PATH
22334 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22344 soname_spec='${libname}${release}${shared_ext}$major'
22345 shlibpath_var=LD_LIBRARY_PATH
22352 freebsd* | dragonfly*)
22353 # DragonFly does not have aout. When/if they implement a new
22354 # versioning mechanism, adjust this.
22355 if test -x /usr/bin/objformat; then
22356 objformat=`/usr/bin/objformat`
22359 freebsd[123]*) objformat=aout ;;
22360 *) objformat=elf ;;
22363 version_type=freebsd-$objformat
22364 case $version_type in
22366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22375 shlibpath_var=LD_LIBRARY_PATH
22378 shlibpath_overrides_runpath=yes
22380 freebsd3.[01]* | freebsdelf3.[01]*)
22381 shlibpath_overrides_runpath=yes
22382 hardcode_into_libs=yes
22384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22386 shlibpath_overrides_runpath=no
22387 hardcode_into_libs=yes
22389 *) # from 4.6 on, and DragonFly
22390 shlibpath_overrides_runpath=yes
22391 hardcode_into_libs=yes
22400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22401 soname_spec='${libname}${release}${shared_ext}$major'
22402 shlibpath_var=LD_LIBRARY_PATH
22403 hardcode_into_libs=yes
22406 hpux9* | hpux10* | hpux11*)
22407 # Give a soname corresponding to the major version so that dld.sl refuses to
22408 # link against other versions.
22415 hardcode_into_libs=yes
22416 dynamic_linker="$host_os dld.so"
22417 shlibpath_var=LD_LIBRARY_PATH
22418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22420 soname_spec='${libname}${release}${shared_ext}$major'
22421 if test "X$HPUX_IA64_MODE" = X32; then
22422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22430 hardcode_into_libs=yes
22431 dynamic_linker="$host_os dld.sl"
22432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22435 soname_spec='${libname}${release}${shared_ext}$major'
22436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22441 dynamic_linker="$host_os dld.sl"
22442 shlibpath_var=SHLIB_PATH
22443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22445 soname_spec='${libname}${release}${shared_ext}$major'
22448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22449 postinstall_cmds='chmod 555 $lib'
22456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22457 soname_spec='${libname}${release}${shared_ext}$major'
22458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22459 shlibpath_var=LD_LIBRARY_PATH
22460 shlibpath_overrides_runpath=no
22461 hardcode_into_libs=yes
22464 irix5* | irix6* | nonstopux*)
22466 nonstopux*) version_type=nonstopux ;;
22468 if test "$lt_cv_prog_gnu_ld" = yes; then
22476 soname_spec='${libname}${release}${shared_ext}$major'
22477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22479 irix5* | nonstopux*)
22480 libsuff= shlibsuff=
22483 case $LD in # libtool.m4 will add one of these switches to LD
22484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22485 libsuff= shlibsuff= libmagic=32-bit;;
22486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22487 libsuff=32 shlibsuff=N32 libmagic=N32;;
22488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22490 *) libsuff= shlibsuff= libmagic=never-match;;
22494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22495 shlibpath_overrides_runpath=no
22496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22498 hardcode_into_libs=yes
22501 # No shared lib support for Linux oldld, aout, or coff.
22502 linux*oldld* | linux*aout* | linux*coff*)
22506 # This must be Linux ELF.
22507 linux* | k*bsd*-gnu)
22511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22512 soname_spec='${libname}${release}${shared_ext}$major'
22513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22514 shlibpath_var=LD_LIBRARY_PATH
22515 shlibpath_overrides_runpath=no
22516 # This implies no fast_install, which is unacceptable.
22517 # Some rework will be needed to allow for fast_install
22518 # before this can be enabled.
22519 hardcode_into_libs=yes
22521 # Append ld.so.conf contents to the search path
22522 if test -f /etc/ld.so.conf; then
22523 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22524 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22527 # We used to test for /lib/ld.so.1 and disable shared libraries on
22528 # powerpc, because MkLinux only supported shared libraries with the
22529 # GNU dynamic linker. Since this was broken with cross compilers,
22530 # most powerpc-linux boxes support dynamic linking these days and
22531 # people can always --disable-shared, the test was removed, and we
22532 # assume the GNU/Linux dynamic linker is in use.
22533 dynamic_linker='GNU/Linux ld.so'
22540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22541 soname_spec='${libname}${release}${shared_ext}$major'
22542 shlibpath_var=LD_LIBRARY_PATH
22543 shlibpath_overrides_runpath=no
22544 hardcode_into_libs=yes
22545 dynamic_linker='NetBSD ld.elf_so'
22552 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22555 dynamic_linker='NetBSD (a.out) ld.so'
22557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22558 soname_spec='${libname}${release}${shared_ext}$major'
22559 dynamic_linker='NetBSD ld.elf_so'
22561 shlibpath_var=LD_LIBRARY_PATH
22562 shlibpath_overrides_runpath=yes
22563 hardcode_into_libs=yes
22568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22569 shlibpath_var=LD_LIBRARY_PATH
22570 shlibpath_overrides_runpath=yes
22577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22578 soname_spec='${libname}${release}${shared_ext}$major'
22579 shlibpath_var=LD_LIBRARY_PATH
22580 shlibpath_overrides_runpath=yes
22585 sys_lib_dlsearch_path_spec="/usr/lib"
22587 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22589 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22590 *) need_version=no ;;
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22594 shlibpath_var=LD_LIBRARY_PATH
22595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22597 openbsd2.[89] | openbsd2.[89].*)
22598 shlibpath_overrides_runpath=no
22601 shlibpath_overrides_runpath=yes
22605 shlibpath_overrides_runpath=yes
22610 libname_spec='$name'
22613 library_names_spec='$libname${shared_ext} $libname.a'
22614 dynamic_linker='OS/2 ld.exe'
22615 shlibpath_var=LIBPATH
22618 osf3* | osf4* | osf5*)
22622 soname_spec='${libname}${release}${shared_ext}$major'
22623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22624 shlibpath_var=LD_LIBRARY_PATH
22625 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22626 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22638 soname_spec='${libname}${release}${shared_ext}$major'
22639 shlibpath_var=LD_LIBRARY_PATH
22640 shlibpath_overrides_runpath=yes
22641 hardcode_into_libs=yes
22642 # ldd complains unless libraries are executable
22643 postinstall_cmds='chmod +x $lib'
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22649 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22650 shlibpath_var=LD_LIBRARY_PATH
22651 shlibpath_overrides_runpath=yes
22652 if test "$with_gnu_ld" = yes; then
22660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 shlibpath_var=LD_LIBRARY_PATH
22663 case $host_vendor in
22665 shlibpath_overrides_runpath=no
22667 export_dynamic_flag_spec='${wl}-Blargedynsym'
22668 runpath_var=LD_RUN_PATH
22676 shlibpath_overrides_runpath=no
22677 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22683 if test -d /usr/nec ;then
22685 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22686 soname_spec='$libname${shared_ext}.$major'
22687 shlibpath_var=LD_LIBRARY_PATH
22691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22692 version_type=freebsd-elf
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 hardcode_into_libs=yes
22699 if test "$with_gnu_ld" = yes; then
22700 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22701 shlibpath_overrides_runpath=no
22703 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22704 shlibpath_overrides_runpath=yes
22707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22711 sys_lib_dlsearch_path_spec='/usr/lib'
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717 soname_spec='${libname}${release}${shared_ext}$major'
22718 shlibpath_var=LD_LIBRARY_PATH
22725 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22726 echo "${ECHO_T}$dynamic_linker" >&6; }
22727 test "$dynamic_linker" = no && can_build_shared=no
22729 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22732 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22735 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6
22739 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22742 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22745 if test "$GCC" = yes; then
22746 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22749 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22750 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22751 hardcode_action_F77=
22752 if test -n "$hardcode_libdir_flag_spec_F77" || \
22753 test -n "$runpath_var_F77" || \
22754 test "X$hardcode_automatic_F77" = "Xyes" ; then
22756 # We can hardcode non-existant directories.
22757 if test "$hardcode_direct_F77" != no &&
22758 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22759 # have to relink, otherwise we might link with an installed library
22760 # when we should be linking with a yet-to-be-installed one
22761 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22762 test "$hardcode_minus_L_F77" != no; then
22763 # Linking always hardcodes the temporary library directory.
22764 hardcode_action_F77=relink
22766 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22767 hardcode_action_F77=immediate
22770 # We cannot hardcode anything, or else we can only hardcode existing
22772 hardcode_action_F77=unsupported
22774 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22775 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22777 if test "$hardcode_action_F77" = relink; then
22778 # Fast installation is not supported
22779 enable_fast_install=no
22780 elif test "$shlibpath_overrides_runpath" = yes ||
22781 test "$enable_shared" = no; then
22782 # Fast installation is not necessary
22783 enable_fast_install=needless
22787 # The else clause should only fire when bootstrapping the
22788 # libtool distribution, otherwise you forgot to ship ltmain.sh
22789 # with your package, and you will get complaints that there are
22790 # no rules to generate ltmain.sh.
22791 if test -f "$ltmain"; then
22792 # See if we are running on zsh, and set the options which allow our commands through
22793 # without removal of \ escapes.
22794 if test -n "${ZSH_VERSION+set}" ; then
22795 setopt NO_GLOB_SUBST
22797 # Now quote all the things that may contain metacharacters while being
22798 # careful not to overquote the AC_SUBSTed values. We take copies of the
22799 # variables and quote the copies for generation of the libtool script.
22800 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22802 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22803 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22804 deplibs_check_method reload_flag reload_cmds need_locks \
22805 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22806 lt_cv_sys_global_symbol_to_c_name_address \
22807 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22808 old_postinstall_cmds old_postuninstall_cmds \
22812 lt_prog_compiler_wl_F77 \
22813 lt_prog_compiler_pic_F77 \
22814 lt_prog_compiler_static_F77 \
22815 lt_prog_compiler_no_builtin_flag_F77 \
22816 export_dynamic_flag_spec_F77 \
22817 thread_safe_flag_spec_F77 \
22818 whole_archive_flag_spec_F77 \
22819 enable_shared_with_static_runtimes_F77 \
22820 old_archive_cmds_F77 \
22821 old_archive_from_new_cmds_F77 \
22822 predep_objects_F77 \
22823 postdep_objects_F77 \
22826 compiler_lib_search_path_F77 \
22827 compiler_lib_search_dirs_F77 \
22829 archive_expsym_cmds_F77 \
22830 postinstall_cmds_F77 \
22831 postuninstall_cmds_F77 \
22832 old_archive_from_expsyms_cmds_F77 \
22833 allow_undefined_flag_F77 \
22834 no_undefined_flag_F77 \
22835 export_symbols_cmds_F77 \
22836 hardcode_libdir_flag_spec_F77 \
22837 hardcode_libdir_flag_spec_ld_F77 \
22838 hardcode_libdir_separator_F77 \
22839 hardcode_automatic_F77 \
22841 module_expsym_cmds_F77 \
22842 lt_cv_prog_compiler_c_o_F77 \
22843 fix_srcfile_path_F77 \
22844 exclude_expsyms_F77 \
22845 include_expsyms_F77; do
22848 old_archive_cmds_F77 | \
22849 old_archive_from_new_cmds_F77 | \
22850 archive_cmds_F77 | \
22851 archive_expsym_cmds_F77 | \
22852 module_cmds_F77 | \
22853 module_expsym_cmds_F77 | \
22854 old_archive_from_expsyms_cmds_F77 | \
22855 export_symbols_cmds_F77 | \
22856 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22857 postinstall_cmds | postuninstall_cmds | \
22858 old_postinstall_cmds | old_postuninstall_cmds | \
22859 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22860 # Double-quote double-evaled strings.
22861 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22864 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22870 *'\$0 --fallback-echo"')
22871 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22877 cat <<__EOF__ >> "$cfgfile"
22878 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22880 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22882 # Shell to use when invoking shell scripts.
22885 # Whether or not to build shared libraries.
22886 build_libtool_libs=$enable_shared
22888 # Whether or not to build static libraries.
22889 build_old_libs=$enable_static
22891 # Whether or not to add -lc for building shared libraries.
22892 build_libtool_need_lc=$archive_cmds_need_lc_F77
22894 # Whether or not to disallow shared libs when runtime libs are static
22895 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22897 # Whether or not to optimize for fast installation.
22898 fast_install=$enable_fast_install
22901 host_alias=$host_alias
22905 # The build system.
22906 build_alias=$build_alias
22910 # An echo program that does not interpret backslashes.
22915 AR_FLAGS=$lt_AR_FLAGS
22920 # LTCC compiler flags.
22921 LTCFLAGS=$lt_LTCFLAGS
22923 # A language-specific compiler.
22924 CC=$lt_compiler_F77
22926 # Is the compiler the GNU C compiler?
22932 # The linker used to build libraries.
22935 # Whether we need hard or soft links.
22938 # A BSD-compatible nm program.
22941 # A symbol stripping program
22944 # Used to examine libraries when file_magic_cmd begins "file"
22945 MAGIC_CMD=$MAGIC_CMD
22947 # Used on cygwin: DLL creation program.
22950 # Used on cygwin: object dumper.
22953 # Used on cygwin: assembler.
22956 # The name of the directory that contains temporary libtool files.
22959 # How to create reloadable object files.
22960 reload_flag=$lt_reload_flag
22961 reload_cmds=$lt_reload_cmds
22963 # How to pass a linker flag through the compiler.
22964 wl=$lt_lt_prog_compiler_wl_F77
22966 # Object file suffix (normally "o").
22967 objext="$ac_objext"
22969 # Old archive suffix (normally "a").
22972 # Shared library suffix (normally ".so").
22973 shrext_cmds='$shrext_cmds'
22975 # Executable file suffix (normally "").
22978 # Additional compiler flags for building library objects.
22979 pic_flag=$lt_lt_prog_compiler_pic_F77
22982 # What is the maximum length of a command?
22983 max_cmd_len=$lt_cv_sys_max_cmd_len
22985 # Does compiler simultaneously support -c and -o options?
22986 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22988 # Must we lock files when doing compilation?
22989 need_locks=$lt_need_locks
22991 # Do we need the lib prefix for modules?
22992 need_lib_prefix=$need_lib_prefix
22994 # Do we need a version for libraries?
22995 need_version=$need_version
22997 # Whether dlopen is supported.
22998 dlopen_support=$enable_dlopen
23000 # Whether dlopen of programs is supported.
23001 dlopen_self=$enable_dlopen_self
23003 # Whether dlopen of statically linked programs is supported.
23004 dlopen_self_static=$enable_dlopen_self_static
23006 # Compiler flag to prevent dynamic linking.
23007 link_static_flag=$lt_lt_prog_compiler_static_F77
23009 # Compiler flag to turn off builtin functions.
23010 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23012 # Compiler flag to allow reflexive dlopens.
23013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23015 # Compiler flag to generate shared objects directly from archives.
23016 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23018 # Compiler flag to generate thread-safe objects.
23019 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23021 # Library versioning type.
23022 version_type=$version_type
23024 # Format of library name prefix.
23025 libname_spec=$lt_libname_spec
23027 # List of archive names. First name is the real one, the rest are links.
23028 # The last name is the one that the linker finds with -lNAME.
23029 library_names_spec=$lt_library_names_spec
23031 # The coded name of the library, if different from the real name.
23032 soname_spec=$lt_soname_spec
23034 # Commands used to build and install an old-style archive.
23036 old_archive_cmds=$lt_old_archive_cmds_F77
23037 old_postinstall_cmds=$lt_old_postinstall_cmds
23038 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23040 # Create an old-style archive from a shared archive.
23041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23043 # Create a temporary old-style archive to link instead of a shared archive.
23044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23046 # Commands used to build and install a shared archive.
23047 archive_cmds=$lt_archive_cmds_F77
23048 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23049 postinstall_cmds=$lt_postinstall_cmds
23050 postuninstall_cmds=$lt_postuninstall_cmds
23052 # Commands used to build a loadable module (assumed same as above if empty)
23053 module_cmds=$lt_module_cmds_F77
23054 module_expsym_cmds=$lt_module_expsym_cmds_F77
23056 # Commands to strip libraries.
23057 old_striplib=$lt_old_striplib
23058 striplib=$lt_striplib
23060 # Dependencies to place before the objects being linked to create a
23062 predep_objects=$lt_predep_objects_F77
23064 # Dependencies to place after the objects being linked to create a
23066 postdep_objects=$lt_postdep_objects_F77
23068 # Dependencies to place before the objects being linked to create a
23070 predeps=$lt_predeps_F77
23072 # Dependencies to place after the objects being linked to create a
23074 postdeps=$lt_postdeps_F77
23076 # The directories searched by this compiler when creating a shared
23078 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
23080 # The library search path used internally by the compiler when linking
23081 # a shared library.
23082 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23084 # Method to check whether dependent libraries are shared objects.
23085 deplibs_check_method=$lt_deplibs_check_method
23087 # Command to use when deplibs_check_method == file_magic.
23088 file_magic_cmd=$lt_file_magic_cmd
23090 # Flag that allows shared libraries with undefined symbols to be built.
23091 allow_undefined_flag=$lt_allow_undefined_flag_F77
23093 # Flag that forces no undefined symbols.
23094 no_undefined_flag=$lt_no_undefined_flag_F77
23096 # Commands used to finish a libtool library installation in a directory.
23097 finish_cmds=$lt_finish_cmds
23099 # Same as above, but a single script fragment to be evaled but not shown.
23100 finish_eval=$lt_finish_eval
23102 # Take the output of nm and produce a listing of raw symbols and C names.
23103 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23105 # Transform the output of nm in a proper C declaration
23106 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23108 # Transform the output of nm in a C name address pair
23109 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23111 # This is the shared library runtime path variable.
23112 runpath_var=$runpath_var
23114 # This is the shared library path variable.
23115 shlibpath_var=$shlibpath_var
23117 # Is shlibpath searched before the hard-coded library search path?
23118 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23120 # How to hardcode a shared library path into an executable.
23121 hardcode_action=$hardcode_action_F77
23123 # Whether we should hardcode library paths into libraries.
23124 hardcode_into_libs=$hardcode_into_libs
23126 # Flag to hardcode \$libdir into a binary during linking.
23127 # This must work even if \$libdir does not exist.
23128 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23130 # If ld is used when linking, flag to hardcode \$libdir into
23131 # a binary during linking. This must work even if \$libdir does
23133 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23135 # Whether we need a single -rpath flag with a separated argument.
23136 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23138 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23139 # resulting binary.
23140 hardcode_direct=$hardcode_direct_F77
23142 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23143 # resulting binary.
23144 hardcode_minus_L=$hardcode_minus_L_F77
23146 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23147 # the resulting binary.
23148 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23150 # Set to yes if building a shared library automatically hardcodes DIR into the library
23151 # and all subsequent libraries and executables linked against it.
23152 hardcode_automatic=$hardcode_automatic_F77
23154 # Variables whose values should be saved in libtool wrapper scripts and
23155 # restored at relink time.
23156 variables_saved_for_relink="$variables_saved_for_relink"
23158 # Whether libtool must link a program against all its dependency libraries.
23159 link_all_deplibs=$link_all_deplibs_F77
23161 # Compile-time system search path for libraries
23162 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23164 # Run-time system search path for libraries
23165 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23167 # Fix the shell variable \$srcfile for the compiler.
23168 fix_srcfile_path=$lt_fix_srcfile_path
23170 # Set to yes if exported symbols are required.
23171 always_export_symbols=$always_export_symbols_F77
23173 # The commands to list exported symbols.
23174 export_symbols_cmds=$lt_export_symbols_cmds_F77
23176 # The commands to extract the exported symbol list from a shared archive.
23177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23179 # Symbols that should not be listed in the preloaded symbols.
23180 exclude_expsyms=$lt_exclude_expsyms_F77
23182 # Symbols that must always be exported.
23183 include_expsyms=$lt_include_expsyms_F77
23185 # ### END LIBTOOL TAG CONFIG: $tagname
23191 # If there is no Makefile yet, we rely on a make rule to execute
23192 # `config.status --recheck' to rerun these tests and create the
23193 # libtool script then.
23194 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23195 if test -f "$ltmain_in"; then
23196 test -f Makefile && make "$ltmain"
23202 ac_cpp='$CPP $CPPFLAGS'
23203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23215 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23218 # Source file extension for Java test sources.
23221 # Object file extension for compiled Java test sources.
23225 # Code to be used in simple compile tests
23226 lt_simple_compile_test_code="class foo {}"
23228 # Code to be used in simple link tests
23229 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
23231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23233 # If no C compiler was specified, use CC.
23236 # If no C compiler flags were specified, use CFLAGS.
23237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23239 # Allow CC to be a program name with arguments.
23243 # save warnings/boilerplate of simple test code
23244 ac_outfile=conftest.$ac_objext
23245 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23247 _lt_compiler_boilerplate=`cat conftest.err`
23250 ac_outfile=conftest.$ac_objext
23251 echo "$lt_simple_link_test_code" >conftest.$ac_ext
23252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23253 _lt_linker_boilerplate=`cat conftest.err`
23257 # Allow CC to be a program name with arguments.
23262 for cc_temp in $compiler""; do
23264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23270 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23273 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23274 archive_cmds_need_lc_GCJ=no
23276 old_archive_cmds_GCJ=$old_archive_cmds
23279 lt_prog_compiler_no_builtin_flag_GCJ=
23281 if test "$GCC" = yes; then
23282 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23285 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23286 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23287 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 lt_cv_prog_compiler_rtti_exceptions=no
23291 ac_outfile=conftest.$ac_objext
23292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23293 lt_compiler_flag="-fno-rtti -fno-exceptions"
23294 # Insert the option either (1) after the last *FLAGS variable, or
23295 # (2) before a word containing "conftest.", or (3) at the end.
23296 # Note that $ac_compile itself does not contain backslashes and begins
23297 # with a dollar sign (not a hyphen), so the echo should work correctly.
23298 # The option is referenced via a variable to avoid confusing sed.
23299 lt_compile=`echo "$ac_compile" | $SED \
23300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23302 -e 's:$: $lt_compiler_flag:'`
23303 (eval echo "\"\$as_me:23303: $lt_compile\"" >&5)
23304 (eval "$lt_compile" 2>conftest.err)
23306 cat conftest.err >&5
23307 echo "$as_me:23307: \$? = $ac_status" >&5
23308 if (exit $ac_status) && test -s "$ac_outfile"; then
23309 # The compiler can only warn and ignore the option if not recognized
23310 # So say no if there are warnings other than the usual output.
23311 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23314 lt_cv_prog_compiler_rtti_exceptions=yes
23320 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23321 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23323 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23324 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23331 lt_prog_compiler_wl_GCJ=
23332 lt_prog_compiler_pic_GCJ=
23333 lt_prog_compiler_static_GCJ=
23335 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23336 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23338 if test "$GCC" = yes; then
23339 lt_prog_compiler_wl_GCJ='-Wl,'
23340 lt_prog_compiler_static_GCJ='-static'
23344 # All AIX code is PIC.
23345 if test "$host_cpu" = ia64; then
23346 # AIX 5 now supports IA64 processor
23347 lt_prog_compiler_static_GCJ='-Bstatic'
23352 # FIXME: we need at least 68020 code to build shared libraries, but
23353 # adding the `-m68020' flag to GCC prevents building anything better,
23355 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23358 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23359 # PIC is the default for these OSes.
23362 mingw* | cygwin* | pw32* | os2*)
23363 # This hack is so that the source file can tell whether it is being
23364 # built for inclusion in a dll (and should export symbols for example).
23365 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23366 # (--disable-auto-import) libraries
23370 darwin* | rhapsody*)
23371 # PIC is the default on this platform
23372 # Common symbols not allowed in MH_DYLIB files
23373 lt_prog_compiler_pic_GCJ='-fno-common'
23377 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23378 # Instead, we relocate shared libraries at runtime.
23382 # Just because we use GCC doesn't mean we suddenly get shared libraries
23383 # on systems that don't support them.
23384 lt_prog_compiler_can_build_shared_GCJ=no
23389 if test -d /usr/nec; then
23390 lt_prog_compiler_pic_GCJ=-Kconform_pic
23395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23396 # not for PA HP-UX.
23402 lt_prog_compiler_pic_GCJ='-fPIC'
23408 lt_prog_compiler_pic_GCJ='-fPIC'
23412 # PORTME Check for flag to pass linker flags through the system compiler.
23415 lt_prog_compiler_wl_GCJ='-Wl,'
23416 if test "$host_cpu" = ia64; then
23417 # AIX 5 now supports IA64 processor
23418 lt_prog_compiler_static_GCJ='-Bstatic'
23420 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23424 # PIC is the default on this platform
23425 # Common symbols not allowed in MH_DYLIB files
23426 case $cc_basename in
23428 lt_prog_compiler_pic_GCJ='-qnocommon'
23429 lt_prog_compiler_wl_GCJ='-Wl,'
23434 mingw* | cygwin* | pw32* | os2*)
23435 # This hack is so that the source file can tell whether it is being
23436 # built for inclusion in a dll (and should export symbols for example).
23440 hpux9* | hpux10* | hpux11*)
23441 lt_prog_compiler_wl_GCJ='-Wl,'
23442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23443 # not for PA HP-UX.
23449 lt_prog_compiler_pic_GCJ='+Z'
23452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23453 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23456 irix5* | irix6* | nonstopux*)
23457 lt_prog_compiler_wl_GCJ='-Wl,'
23458 # PIC (with -KPIC) is the default.
23459 lt_prog_compiler_static_GCJ='-non_shared'
23463 lt_prog_compiler_pic_GCJ='-KPIC'
23464 lt_prog_compiler_static_GCJ='-Bstatic'
23467 linux* | k*bsd*-gnu)
23468 case $cc_basename in
23470 lt_prog_compiler_wl_GCJ='-Wl,'
23471 lt_prog_compiler_pic_GCJ='-KPIC'
23472 lt_prog_compiler_static_GCJ='-static'
23474 pgcc* | pgf77* | pgf90* | pgf95*)
23475 # Portland Group compilers (*not* the Pentium gcc compiler,
23476 # which looks to be a dead project)
23477 lt_prog_compiler_wl_GCJ='-Wl,'
23478 lt_prog_compiler_pic_GCJ='-fpic'
23479 lt_prog_compiler_static_GCJ='-Bstatic'
23482 lt_prog_compiler_wl_GCJ='-Wl,'
23483 # All Alpha code is PIC.
23484 lt_prog_compiler_static_GCJ='-non_shared'
23487 case `$CC -V 2>&1 | sed 5q` in
23490 lt_prog_compiler_pic_GCJ='-KPIC'
23491 lt_prog_compiler_static_GCJ='-Bstatic'
23492 lt_prog_compiler_wl_GCJ='-Wl,'
23495 # Sun Fortran 8.3 passes all unrecognized flags to the linker
23496 lt_prog_compiler_pic_GCJ='-KPIC'
23497 lt_prog_compiler_static_GCJ='-Bstatic'
23498 lt_prog_compiler_wl_GCJ=''
23505 osf3* | osf4* | osf5*)
23506 lt_prog_compiler_wl_GCJ='-Wl,'
23507 # All OSF/1 code is PIC.
23508 lt_prog_compiler_static_GCJ='-non_shared'
23512 lt_prog_compiler_static_GCJ='-non_shared'
23516 lt_prog_compiler_pic_GCJ='-KPIC'
23517 lt_prog_compiler_static_GCJ='-Bstatic'
23518 case $cc_basename in
23519 f77* | f90* | f95*)
23520 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23522 lt_prog_compiler_wl_GCJ='-Wl,';;
23527 lt_prog_compiler_wl_GCJ='-Qoption ld '
23528 lt_prog_compiler_pic_GCJ='-PIC'
23529 lt_prog_compiler_static_GCJ='-Bstatic'
23532 sysv4 | sysv4.2uw2* | sysv4.3*)
23533 lt_prog_compiler_wl_GCJ='-Wl,'
23534 lt_prog_compiler_pic_GCJ='-KPIC'
23535 lt_prog_compiler_static_GCJ='-Bstatic'
23539 if test -d /usr/nec ;then
23540 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23541 lt_prog_compiler_static_GCJ='-Bstatic'
23545 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23546 lt_prog_compiler_wl_GCJ='-Wl,'
23547 lt_prog_compiler_pic_GCJ='-KPIC'
23548 lt_prog_compiler_static_GCJ='-Bstatic'
23552 lt_prog_compiler_wl_GCJ='-Wl,'
23553 lt_prog_compiler_can_build_shared_GCJ=no
23557 lt_prog_compiler_pic_GCJ='-pic'
23558 lt_prog_compiler_static_GCJ='-Bstatic'
23562 lt_prog_compiler_can_build_shared_GCJ=no
23567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23568 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23571 # Check to make sure the PIC flag actually works.
23573 if test -n "$lt_prog_compiler_pic_GCJ"; then
23575 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23576 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23577 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23580 lt_cv_prog_compiler_pic_works_GCJ=no
23581 ac_outfile=conftest.$ac_objext
23582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23583 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23584 # Insert the option either (1) after the last *FLAGS variable, or
23585 # (2) before a word containing "conftest.", or (3) at the end.
23586 # Note that $ac_compile itself does not contain backslashes and begins
23587 # with a dollar sign (not a hyphen), so the echo should work correctly.
23588 # The option is referenced via a variable to avoid confusing sed.
23589 lt_compile=`echo "$ac_compile" | $SED \
23590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23592 -e 's:$: $lt_compiler_flag:'`
23593 (eval echo "\"\$as_me:23593: $lt_compile\"" >&5)
23594 (eval "$lt_compile" 2>conftest.err)
23596 cat conftest.err >&5
23597 echo "$as_me:23597: \$? = $ac_status" >&5
23598 if (exit $ac_status) && test -s "$ac_outfile"; then
23599 # The compiler can only warn and ignore the option if not recognized
23600 # So say no if there are warnings other than the usual output.
23601 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23604 lt_cv_prog_compiler_pic_works_GCJ=yes
23610 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
23611 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
23613 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
23614 case $lt_prog_compiler_pic_GCJ in
23616 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23619 lt_prog_compiler_pic_GCJ=
23620 lt_prog_compiler_can_build_shared_GCJ=no
23625 # For platforms which do not support PIC, -DPIC is meaningless:
23627 lt_prog_compiler_pic_GCJ=
23630 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23635 # Check to make sure the static flag actually works.
23637 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23638 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23639 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23640 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
23641 echo $ECHO_N "(cached) $ECHO_C" >&6
23643 lt_cv_prog_compiler_static_works_GCJ=no
23644 save_LDFLAGS="$LDFLAGS"
23645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23648 # The linker can only warn and ignore the option if not recognized
23649 # So say no if there are warnings
23650 if test -s conftest.err; then
23651 # Append any errors to the config.log.
23652 cat conftest.err 1>&5
23653 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23655 if diff conftest.exp conftest.er2 >/dev/null; then
23656 lt_cv_prog_compiler_static_works_GCJ=yes
23659 lt_cv_prog_compiler_static_works_GCJ=yes
23663 LDFLAGS="$save_LDFLAGS"
23666 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
23667 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
23669 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
23672 lt_prog_compiler_static_GCJ=
23676 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23677 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23678 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 lt_cv_prog_compiler_c_o_GCJ=no
23682 $rm -r conftest 2>/dev/null
23686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23688 lt_compiler_flag="-o out/conftest2.$ac_objext"
23689 # Insert the option either (1) after the last *FLAGS variable, or
23690 # (2) before a word containing "conftest.", or (3) at the end.
23691 # Note that $ac_compile itself does not contain backslashes and begins
23692 # with a dollar sign (not a hyphen), so the echo should work correctly.
23693 lt_compile=`echo "$ac_compile" | $SED \
23694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23696 -e 's:$: $lt_compiler_flag:'`
23697 (eval echo "\"\$as_me:23697: $lt_compile\"" >&5)
23698 (eval "$lt_compile" 2>out/conftest.err)
23700 cat out/conftest.err >&5
23701 echo "$as_me:23701: \$? = $ac_status" >&5
23702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23704 # The compiler can only warn and ignore the option if not recognized
23705 # So say no if there are warnings
23706 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23709 lt_cv_prog_compiler_c_o_GCJ=yes
23714 # SGI C++ compiler will create directory out/ii_files/ for
23715 # template instantiation
23716 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23717 $rm out/* && rmdir out
23723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23724 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23727 hard_links="nottested"
23728 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23729 # do not overwrite the value of need_locks provided by the user
23730 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23731 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23736 ln conftest.a conftest.b 2>&5 || hard_links=no
23737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23738 { echo "$as_me:$LINENO: result: $hard_links" >&5
23739 echo "${ECHO_T}$hard_links" >&6; }
23740 if test "$hard_links" = no; then
23741 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23742 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23749 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23750 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23753 allow_undefined_flag_GCJ=
23754 enable_shared_with_static_runtimes_GCJ=no
23756 archive_expsym_cmds_GCJ=
23757 old_archive_From_new_cmds_GCJ=
23758 old_archive_from_expsyms_cmds_GCJ=
23759 export_dynamic_flag_spec_GCJ=
23760 whole_archive_flag_spec_GCJ=
23761 thread_safe_flag_spec_GCJ=
23762 hardcode_libdir_flag_spec_GCJ=
23763 hardcode_libdir_flag_spec_ld_GCJ=
23764 hardcode_libdir_separator_GCJ=
23765 hardcode_direct_GCJ=no
23766 hardcode_minus_L_GCJ=no
23767 hardcode_shlibpath_var_GCJ=unsupported
23768 link_all_deplibs_GCJ=unknown
23769 hardcode_automatic_GCJ=no
23771 module_expsym_cmds_GCJ=
23772 always_export_symbols_GCJ=no
23773 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23774 # include_expsyms should be a list of space-separated symbols to be *always*
23775 # included in the symbol list
23776 include_expsyms_GCJ=
23777 # exclude_expsyms can be an extended regexp of symbols to exclude
23778 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23779 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23780 # as well as any symbol that contains `d'.
23781 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23782 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23783 # platforms (ab)use it in PIC code, but their linkers get confused if
23784 # the symbol is explicitly referenced. Since portable code cannot
23785 # rely on this symbol name, it's probably fine to never include it in
23786 # preloaded symbol tables.
23787 # Exclude shared library initialization/finalization symbols.
23788 extract_expsyms_cmds=
23789 # Just being paranoid about ensuring that cc_basename is set.
23790 for cc_temp in $compiler""; do
23792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23798 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23801 cygwin* | mingw* | pw32*)
23802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23803 # When not using gcc, we currently assume that we are using
23804 # Microsoft Visual C++.
23805 if test "$GCC" != yes; then
23810 # we just hope/assume this is gcc and not c89 (= MSVC++)
23819 if test "$with_gnu_ld" = yes; then
23820 # If archive_cmds runs LD, not CC, wlarc should be empty
23823 # Set some defaults for GNU ld with shared library support. These
23824 # are reset later if shared libraries are not supported. Putting them
23825 # here allows them to be overridden if necessary.
23826 runpath_var=LD_RUN_PATH
23827 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23828 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23829 # ancient GNU ld didn't support --whole-archive et. al.
23830 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23831 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23833 whole_archive_flag_spec_GCJ=
23835 supports_anon_versioning=no
23836 case `$LD -v 2>/dev/null` in
23837 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23838 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23839 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23840 *\ 2.11.*) ;; # other 2.11 versions
23841 *) supports_anon_versioning=yes ;;
23844 # See if GNU ld supports shared libraries.
23847 # On AIX/PPC, the GNU linker is very broken
23848 if test "$host_cpu" != ia64; then
23852 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23853 *** to be unable to reliably create shared libraries on AIX.
23854 *** Therefore, libtool is disabling shared libraries support. If you
23855 *** really care for shared libraries, you may want to modify your PATH
23856 *** so that a non-GNU linker is found, and then restart.
23863 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)'
23864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23865 hardcode_minus_L_GCJ=yes
23867 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23868 # that the semantics of dynamic libraries on AmigaOS, at least up
23869 # to version 4, is to share data among multiple programs linked
23870 # with the same dynamic library. Since this doesn't match the
23871 # behavior of shared libraries on other platforms, we can't use
23877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23878 allow_undefined_flag_GCJ=unsupported
23879 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23880 # support --undefined. This deserves some investigation. FIXME
23881 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23887 cygwin* | mingw* | pw32*)
23888 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23889 # as there is no search path for DLLs.
23890 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23891 allow_undefined_flag_GCJ=unsupported
23892 always_export_symbols_GCJ=no
23893 enable_shared_with_static_runtimes_GCJ=yes
23894 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23896 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23897 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23898 # If the export-symbols file already is a .def file (1st line
23899 # is EXPORTS), use it as is; otherwise, prepend...
23900 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23901 cp $export_symbols $output_objdir/$soname.def;
23903 echo EXPORTS > $output_objdir/$soname.def;
23904 cat $export_symbols >> $output_objdir/$soname.def;
23906 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23913 hardcode_direct_GCJ=no
23914 hardcode_shlibpath_var_GCJ=no
23915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23916 export_dynamic_flag_spec_GCJ='${wl}-E'
23917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23918 # Instead, shared libraries are loaded at an image base (0x10000000 by
23919 # default) and relocated if they conflict, which is a slow very memory
23920 # consuming and fragmenting process. To avoid this, we pick a random,
23921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23923 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
23924 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
23927 gnu* | linux* | k*bsd*-gnu)
23928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23930 case $cc_basename,$host_cpu in
23931 pgcc*) # Portland Group C compiler
23932 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'
23933 tmp_addflag=' $pic_flag'
23935 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23936 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'
23937 tmp_addflag=' $pic_flag -Mnomain' ;;
23938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23939 tmp_addflag=' -i_dynamic' ;;
23940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23941 tmp_addflag=' -i_dynamic -nofor_main' ;;
23942 ifc* | ifort*) # Intel Fortran compiler
23943 tmp_addflag=' -nofor_main' ;;
23945 case `$CC -V 2>&1 | sed 5q` in
23946 *Sun\ C*) # Sun C 5.9
23947 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
23948 tmp_sharedflag='-G' ;;
23949 *Sun\ F*) # Sun Fortran 8.3
23950 tmp_sharedflag='-G' ;;
23952 tmp_sharedflag='-shared' ;;
23954 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23956 if test $supports_anon_versioning = yes; then
23957 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23959 $echo "local: *; };" >> $output_objdir/$libname.ver~
23960 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23962 link_all_deplibs_GCJ=no
23968 netbsd* | netbsdelf*-gnu)
23969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23970 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23973 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23974 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23979 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23983 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23984 *** create shared libraries on Solaris systems. Therefore, libtool
23985 *** is disabling shared libraries support. We urge you to upgrade GNU
23986 *** binutils to release 2.9.1 or newer. Another option is to modify
23987 *** your PATH or compiler configuration so that the native linker is
23988 *** used, and then restart.
23991 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23992 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23993 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24000 case `$LD -v 2>&1` in
24001 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24005 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24006 *** reliably create shared libraries on SCO systems. Therefore, libtool
24007 *** is disabling shared libraries support. We urge you to upgrade GNU
24008 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24009 *** your PATH or compiler configuration so that the native linker is
24010 *** used, and then restart.
24015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24016 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24018 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24027 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24029 hardcode_direct_GCJ=yes
24030 hardcode_shlibpath_var_GCJ=no
24034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24035 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24036 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24043 if test "$ld_shlibs_GCJ" = no; then
24045 hardcode_libdir_flag_spec_GCJ=
24046 export_dynamic_flag_spec_GCJ=
24047 whole_archive_flag_spec_GCJ=
24050 # PORTME fill in a description of your system's linker (not GNU ld)
24053 allow_undefined_flag_GCJ=unsupported
24054 always_export_symbols_GCJ=yes
24055 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'
24056 # Note: this linker hardcodes the directories in LIBPATH if there
24057 # are no directories specified by -L.
24058 hardcode_minus_L_GCJ=yes
24059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24060 # Neither direct hardcoding nor static linking is supported with a
24062 hardcode_direct_GCJ=unsupported
24067 if test "$host_cpu" = ia64; then
24068 # On IA64, the linker does run time linking by default, so we don't
24069 # have to do anything special.
24070 aix_use_runtimelinking=no
24071 exp_sym_flag='-Bexport'
24074 # If we're using GNU nm, then we don't want the "-C" option.
24075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24076 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24077 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'
24079 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'
24081 aix_use_runtimelinking=no
24083 # Test if we are trying to use run time linking or normal
24084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24085 # need to do runtime linking.
24086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
24087 for ld_flag in $LDFLAGS; do
24088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24089 aix_use_runtimelinking=yes
24096 exp_sym_flag='-bexport'
24097 no_entry_flag='-bnoentry'
24100 # When large executables or shared objects are built, AIX ld can
24101 # have problems creating the table of contents. If linking a library
24102 # or program results in "error TOC overflow" add -mminimal-toc to
24103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24106 archive_cmds_GCJ=''
24107 hardcode_direct_GCJ=yes
24108 hardcode_libdir_separator_GCJ=':'
24109 link_all_deplibs_GCJ=yes
24111 if test "$GCC" = yes; then
24112 case $host_os in aix4.[012]|aix4.[012].*)
24113 # We only want to do this on AIX 4.2 and lower, the check
24114 # below for broken collect2 doesn't work under 4.3+
24115 collect2name=`${CC} -print-prog-name=collect2`
24116 if test -f "$collect2name" && \
24117 strings "$collect2name" | grep resolve_lib_name >/dev/null
24119 # We have reworked collect2
24122 # We have old collect2
24123 hardcode_direct_GCJ=unsupported
24124 # It fails to find uninstalled libraries when the uninstalled
24125 # path is not listed in the libpath. Setting hardcode_minus_L
24126 # to unsupported forces relinking
24127 hardcode_minus_L_GCJ=yes
24128 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24129 hardcode_libdir_separator_GCJ=
24133 shared_flag='-shared'
24134 if test "$aix_use_runtimelinking" = yes; then
24135 shared_flag="$shared_flag "'${wl}-G'
24139 if test "$host_cpu" = ia64; then
24140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24141 # chokes on -Wl,-G. The following line is correct:
24144 if test "$aix_use_runtimelinking" = yes; then
24145 shared_flag='${wl}-G'
24147 shared_flag='${wl}-bM:SRE'
24152 # It seems that -bexpall does not export symbols beginning with
24153 # underscore (_), so it is better to generate a list of symbols to export.
24154 always_export_symbols_GCJ=yes
24155 if test "$aix_use_runtimelinking" = yes; then
24156 # Warning - without using the other runtime loading flags (-brtl),
24157 # -berok will link without error, but may produce a broken library.
24158 allow_undefined_flag_GCJ='-berok'
24159 # Determine the default libpath from the value encoded in an empty executable.
24160 cat >conftest.$ac_ext <<_ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h. */
24175 rm -f conftest.$ac_objext conftest$ac_exeext
24176 if { (ac_try="$ac_link"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182 (eval "$ac_link") 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && {
24189 test -z "$ac_c_werror_flag" ||
24190 test ! -s conftest.err
24191 } && test -s conftest$ac_exeext &&
24192 $as_test_x conftest$ac_exeext; then
24194 lt_aix_libpath_sed='
24195 /Import File Strings/,/^$/ {
24201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24202 # Check for a 64-bit object if we didn't find anything.
24203 if test -z "$aix_libpath"; then
24204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24207 echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24214 conftest$ac_exeext conftest.$ac_ext
24215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24217 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24218 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24220 if test "$host_cpu" = ia64; then
24221 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24222 allow_undefined_flag_GCJ="-z nodefs"
24223 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
24225 # Determine the default libpath from the value encoded in an empty executable.
24226 cat >conftest.$ac_ext <<_ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h. */
24241 rm -f conftest.$ac_objext conftest$ac_exeext
24242 if { (ac_try="$ac_link"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_link") 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && {
24255 test -z "$ac_c_werror_flag" ||
24256 test ! -s conftest.err
24257 } && test -s conftest$ac_exeext &&
24258 $as_test_x conftest$ac_exeext; then
24260 lt_aix_libpath_sed='
24261 /Import File Strings/,/^$/ {
24267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24268 # Check for a 64-bit object if we didn't find anything.
24269 if test -z "$aix_libpath"; then
24270 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24273 echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.$ac_ext >&5
24279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24280 conftest$ac_exeext conftest.$ac_ext
24281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24283 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24284 # Warning - without using the other run time loading flags,
24285 # -berok will link without error, but may produce a broken library.
24286 no_undefined_flag_GCJ=' ${wl}-bernotok'
24287 allow_undefined_flag_GCJ=' ${wl}-berok'
24288 # Exported symbols can be pulled into shared objects from archives
24289 whole_archive_flag_spec_GCJ='$convenience'
24290 archive_cmds_need_lc_GCJ=yes
24291 # This is similar to how AIX traditionally builds its shared libraries.
24292 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24298 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)'
24299 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24300 hardcode_minus_L_GCJ=yes
24301 # see comment about different semantics on the GNU ld section
24306 export_dynamic_flag_spec_GCJ=-rdynamic
24309 cygwin* | mingw* | pw32*)
24310 # When not using gcc, we currently assume that we are using
24311 # Microsoft Visual C++.
24312 # hardcode_libdir_flag_spec is actually meaningless, as there is
24313 # no search path for DLLs.
24314 hardcode_libdir_flag_spec_GCJ=' '
24315 allow_undefined_flag_GCJ=unsupported
24316 # Tell ltmain to make .lib files, not .a files.
24318 # Tell ltmain to make .dll files, not .so files.
24320 # FIXME: Setting linknames here is a bad hack.
24321 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24322 # The linker will automatically build a .lib file if we build a DLL.
24323 old_archive_From_new_cmds_GCJ='true'
24324 # FIXME: Should let the user specify the lib program.
24325 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
24326 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24327 enable_shared_with_static_runtimes_GCJ=yes
24330 darwin* | rhapsody*)
24332 rhapsody* | darwin1.[012])
24333 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24336 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24337 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24339 case ${MACOSX_DEPLOYMENT_TARGET} in
24341 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24344 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24350 archive_cmds_need_lc_GCJ=no
24351 hardcode_direct_GCJ=no
24352 hardcode_automatic_GCJ=yes
24353 hardcode_shlibpath_var_GCJ=unsupported
24354 whole_archive_flag_spec_GCJ=''
24355 link_all_deplibs_GCJ=yes
24356 if test "$GCC" = yes ; then
24357 output_verbose_link_cmd='echo'
24358 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
24359 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24360 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
24361 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
24363 case $cc_basename in
24365 output_verbose_link_cmd='echo'
24366 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
24367 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24368 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24369 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24370 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}'
24380 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24382 hardcode_shlibpath_var_GCJ=no
24389 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24390 # support. Future versions do this automatically, but an explicit c++rt0.o
24391 # does not break anything, and helps significantly (at the cost of a little
24394 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24395 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24396 hardcode_direct_GCJ=yes
24397 hardcode_shlibpath_var_GCJ=no
24400 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24403 hardcode_direct_GCJ=yes
24404 hardcode_minus_L_GCJ=yes
24405 hardcode_shlibpath_var_GCJ=no
24408 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24409 freebsd* | dragonfly*)
24410 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24411 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24412 hardcode_direct_GCJ=yes
24413 hardcode_shlibpath_var_GCJ=no
24417 if test "$GCC" = yes; then
24418 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'
24420 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'
24422 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24423 hardcode_libdir_separator_GCJ=:
24424 hardcode_direct_GCJ=yes
24426 # hardcode_minus_L: Not really in the search PATH,
24427 # but as the default location of the library.
24428 hardcode_minus_L_GCJ=yes
24429 export_dynamic_flag_spec_GCJ='${wl}-E'
24433 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24434 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24436 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24438 if test "$with_gnu_ld" = no; then
24439 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24440 hardcode_libdir_separator_GCJ=:
24442 hardcode_direct_GCJ=yes
24443 export_dynamic_flag_spec_GCJ='${wl}-E'
24445 # hardcode_minus_L: Not really in the search PATH,
24446 # but as the default location of the library.
24447 hardcode_minus_L_GCJ=yes
24452 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24455 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24458 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24461 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24467 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24470 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24473 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24477 if test "$with_gnu_ld" = no; then
24478 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24479 hardcode_libdir_separator_GCJ=:
24483 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24484 hardcode_direct_GCJ=no
24485 hardcode_shlibpath_var_GCJ=no
24488 hardcode_direct_GCJ=yes
24489 export_dynamic_flag_spec_GCJ='${wl}-E'
24491 # hardcode_minus_L: Not really in the search PATH,
24492 # but as the default location of the library.
24493 hardcode_minus_L_GCJ=yes
24499 irix5* | irix6* | nonstopux*)
24500 if test "$GCC" = yes; then
24501 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'
24503 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'
24504 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24506 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24507 hardcode_libdir_separator_GCJ=:
24508 link_all_deplibs_GCJ=yes
24511 netbsd* | netbsdelf*-gnu)
24512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24515 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24517 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24518 hardcode_direct_GCJ=yes
24519 hardcode_shlibpath_var_GCJ=no
24523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24524 hardcode_direct_GCJ=yes
24525 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24526 hardcode_libdir_separator_GCJ=:
24527 hardcode_shlibpath_var_GCJ=no
24531 if test -f /usr/libexec/ld.so; then
24532 hardcode_direct_GCJ=yes
24533 hardcode_shlibpath_var_GCJ=no
24534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24535 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24536 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24537 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24538 export_dynamic_flag_spec_GCJ='${wl}-E'
24541 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24542 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24543 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24546 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24547 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24558 hardcode_minus_L_GCJ=yes
24559 allow_undefined_flag_GCJ=unsupported
24560 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'
24561 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24565 if test "$GCC" = yes; then
24566 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24567 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'
24569 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24570 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'
24572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24573 hardcode_libdir_separator_GCJ=:
24576 osf4* | osf5*) # as osf3* with the addition of -msym flag
24577 if test "$GCC" = yes; then
24578 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24579 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'
24580 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24582 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24583 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'
24584 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~
24585 $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'
24587 # Both c and cxx compiler support -rpath directly
24588 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24590 hardcode_libdir_separator_GCJ=:
24594 no_undefined_flag_GCJ=' -z text'
24595 if test "$GCC" = yes; then
24597 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24598 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24599 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24602 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24603 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24604 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24606 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24607 hardcode_shlibpath_var_GCJ=no
24609 solaris2.[0-5] | solaris2.[0-5].*) ;;
24611 # The compiler driver will combine and reorder linker options,
24612 # but understands `-z linker_flag'. GCC discards it without `$wl',
24613 # but is careful enough not to reorder.
24614 # Supported since Solaris 2.6 (maybe 2.5.1?)
24615 if test "$GCC" = yes; then
24616 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24618 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
24622 link_all_deplibs_GCJ=yes
24626 if test "x$host_vendor" = xsequent; then
24627 # Use $CC to link under sequent, because it throws in some extra .o
24628 # files that make .init and .fini sections work.
24629 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24631 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24634 hardcode_direct_GCJ=yes
24635 hardcode_minus_L_GCJ=yes
24636 hardcode_shlibpath_var_GCJ=no
24640 case $host_vendor in
24642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24643 hardcode_direct_GCJ=yes # is this really true???
24646 ## LD is ld it makes a PLAMLIB
24647 ## CC just makes a GrossModule.
24648 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24649 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24650 hardcode_direct_GCJ=no
24653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24654 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24657 runpath_var='LD_RUN_PATH'
24658 hardcode_shlibpath_var_GCJ=no
24662 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24663 hardcode_shlibpath_var_GCJ=no
24664 export_dynamic_flag_spec_GCJ='-Bexport'
24668 if test -d /usr/nec; then
24669 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24670 hardcode_shlibpath_var_GCJ=no
24671 runpath_var=LD_RUN_PATH
24672 hardcode_runpath_var=yes
24677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
24678 no_undefined_flag_GCJ='${wl}-z,text'
24679 archive_cmds_need_lc_GCJ=no
24680 hardcode_shlibpath_var_GCJ=no
24681 runpath_var='LD_RUN_PATH'
24683 if test "$GCC" = yes; then
24684 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24685 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24687 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24688 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24692 sysv5* | sco3.2v5* | sco5v6*)
24693 # Note: We can NOT use -z defs as we might desire, because we do not
24694 # link with -lc, and that would cause any symbols used from libc to
24695 # always be unresolved, which means just about no library would
24696 # ever link correctly. If we're not using GNU ld we use -z text
24697 # though, which does catch some bad symbols but isn't as heavy-handed
24699 no_undefined_flag_GCJ='${wl}-z,text'
24700 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24701 archive_cmds_need_lc_GCJ=no
24702 hardcode_shlibpath_var_GCJ=no
24703 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24704 hardcode_libdir_separator_GCJ=':'
24705 link_all_deplibs_GCJ=yes
24706 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24707 runpath_var='LD_RUN_PATH'
24709 if test "$GCC" = yes; then
24710 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24711 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24713 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24714 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24719 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24721 hardcode_shlibpath_var_GCJ=no
24730 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24731 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24732 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24735 # Do we need to explicitly link libc?
24737 case "x$archive_cmds_need_lc_GCJ" in
24739 # Assume -lc should be added
24740 archive_cmds_need_lc_GCJ=yes
24742 if test "$enable_shared" = yes && test "$GCC" = yes; then
24743 case $archive_cmds_GCJ in
24745 # FIXME: we may have to deal with multi-command sequences.
24748 # Test whether the compiler implicitly links with -lc since on some
24749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24750 # to ld, don't add -lc before -lgcc.
24751 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24757 (eval $ac_compile) 2>&5
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); } 2>conftest.err; then
24763 libobjs=conftest.$ac_objext
24765 wl=$lt_prog_compiler_wl_GCJ
24766 pic_flag=$lt_prog_compiler_pic_GCJ
24772 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24773 allow_undefined_flag_GCJ=
24774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24775 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }
24780 archive_cmds_need_lc_GCJ=no
24782 archive_cmds_need_lc_GCJ=yes
24784 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24786 cat conftest.err 1>&5
24789 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24790 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24797 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24799 library_names_spec=
24800 libname_spec='lib$name'
24804 postuninstall_cmds=
24808 shlibpath_overrides_runpath=unknown
24810 dynamic_linker="$host_os ld.so"
24811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24813 need_lib_prefix=unknown
24814 hardcode_into_libs=no
24816 # when you set need_version to no, make sure it does not cause -set_version
24817 # flags to be left without arguments
24818 need_version=unknown
24823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24824 shlibpath_var=LIBPATH
24826 # AIX 3 has no versioning support, so we append a major version to the name.
24827 soname_spec='${libname}${release}${shared_ext}$major'
24834 hardcode_into_libs=yes
24835 if test "$host_cpu" = ia64; then
24836 # AIX 5 supports IA64
24837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24838 shlibpath_var=LD_LIBRARY_PATH
24840 # With GCC up to 2.95.x, collect2 would create an import file
24841 # for dependence libraries. The import file would start with
24842 # the line `#! .'. This would cause the generated library to
24843 # depend on `.', always an invalid library. This was fixed in
24844 # development snapshots of GCC prior to 3.0.
24846 aix4 | aix4.[01] | aix4.[01].*)
24847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24849 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24852 can_build_shared=no
24856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24857 # soname into executable. Probably we can add versioning support to
24858 # collect2, so additional links can be useful in future.
24859 if test "$aix_use_runtimelinking" = yes; then
24860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24861 # instead of lib<name>.a to let people know that these are not
24862 # typical AIX shared libraries.
24863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24865 # We preserve .a as extension for shared libraries through AIX4.2
24866 # and later when we are not doing run time linking.
24867 library_names_spec='${libname}${release}.a $libname.a'
24868 soname_spec='${libname}${release}${shared_ext}$major'
24870 shlibpath_var=LIBPATH
24875 library_names_spec='$libname.ixlibrary $libname.a'
24876 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24877 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'
24881 library_names_spec='${libname}${shared_ext}'
24882 dynamic_linker="$host_os ld.so"
24883 shlibpath_var=LIBRARY_PATH
24889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24890 soname_spec='${libname}${release}${shared_ext}$major'
24891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24892 shlibpath_var=LD_LIBRARY_PATH
24893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24895 # the default ld.so.conf also contains /usr/contrib/lib and
24896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24897 # libtool to hard-code these into programs
24900 cygwin* | mingw* | pw32*)
24901 version_type=windows
24906 case $GCC,$host_os in
24907 yes,cygwin* | yes,mingw* | yes,pw32*)
24908 library_names_spec='$libname.dll.a'
24909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24910 postinstall_cmds='base_file=`basename \${file}`~
24911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24912 dldir=$destdir/`dirname \$dlpath`~
24913 test -d \$dldir || mkdir -p \$dldir~
24914 $install_prog $dir/$dlname \$dldir/$dlname~
24915 chmod a+x \$dldir/$dlname'
24916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24917 dlpath=$dir/\$dldll~
24919 shlibpath_overrides_runpath=yes
24923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24925 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24928 # MinGW DLLs use traditional 'lib' prefix
24929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24930 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24931 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24932 # It is most probably a Windows format PATH printed by
24933 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24934 # path with ; separators, and with drive letters. We can handle the
24935 # drive letters (cygwin fileutils understands them), so leave them,
24936 # especially as we might pass files found there to a mingw objdump,
24937 # which wouldn't understand a cygwinified path. Ahh.
24938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24944 # pw32 DLLs use 'pw' prefix rather than 'lib'
24945 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24951 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24954 dynamic_linker='Win32 ld.exe'
24955 # FIXME: first we should search . and the directory the executable is in
24959 darwin* | rhapsody*)
24960 dynamic_linker="$host_os dyld"
24961 version_type=darwin
24964 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24965 soname_spec='${libname}${release}${major}$shared_ext'
24966 shlibpath_overrides_runpath=yes
24967 shlibpath_var=DYLD_LIBRARY_PATH
24968 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24978 soname_spec='${libname}${release}${shared_ext}$major'
24979 shlibpath_var=LD_LIBRARY_PATH
24986 freebsd* | dragonfly*)
24987 # DragonFly does not have aout. When/if they implement a new
24988 # versioning mechanism, adjust this.
24989 if test -x /usr/bin/objformat; then
24990 objformat=`/usr/bin/objformat`
24993 freebsd[123]*) objformat=aout ;;
24994 *) objformat=elf ;;
24997 version_type=freebsd-$objformat
24998 case $version_type in
25000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25009 shlibpath_var=LD_LIBRARY_PATH
25012 shlibpath_overrides_runpath=yes
25014 freebsd3.[01]* | freebsdelf3.[01]*)
25015 shlibpath_overrides_runpath=yes
25016 hardcode_into_libs=yes
25018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25020 shlibpath_overrides_runpath=no
25021 hardcode_into_libs=yes
25023 *) # from 4.6 on, and DragonFly
25024 shlibpath_overrides_runpath=yes
25025 hardcode_into_libs=yes
25034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25035 soname_spec='${libname}${release}${shared_ext}$major'
25036 shlibpath_var=LD_LIBRARY_PATH
25037 hardcode_into_libs=yes
25040 hpux9* | hpux10* | hpux11*)
25041 # Give a soname corresponding to the major version so that dld.sl refuses to
25042 # link against other versions.
25049 hardcode_into_libs=yes
25050 dynamic_linker="$host_os dld.so"
25051 shlibpath_var=LD_LIBRARY_PATH
25052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25054 soname_spec='${libname}${release}${shared_ext}$major'
25055 if test "X$HPUX_IA64_MODE" = X32; then
25056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25064 hardcode_into_libs=yes
25065 dynamic_linker="$host_os dld.sl"
25066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25069 soname_spec='${libname}${release}${shared_ext}$major'
25070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25075 dynamic_linker="$host_os dld.sl"
25076 shlibpath_var=SHLIB_PATH
25077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25079 soname_spec='${libname}${release}${shared_ext}$major'
25082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25083 postinstall_cmds='chmod 555 $lib'
25090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25091 soname_spec='${libname}${release}${shared_ext}$major'
25092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25093 shlibpath_var=LD_LIBRARY_PATH
25094 shlibpath_overrides_runpath=no
25095 hardcode_into_libs=yes
25098 irix5* | irix6* | nonstopux*)
25100 nonstopux*) version_type=nonstopux ;;
25102 if test "$lt_cv_prog_gnu_ld" = yes; then
25110 soname_spec='${libname}${release}${shared_ext}$major'
25111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25113 irix5* | nonstopux*)
25114 libsuff= shlibsuff=
25117 case $LD in # libtool.m4 will add one of these switches to LD
25118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25119 libsuff= shlibsuff= libmagic=32-bit;;
25120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25121 libsuff=32 shlibsuff=N32 libmagic=N32;;
25122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25124 *) libsuff= shlibsuff= libmagic=never-match;;
25128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25129 shlibpath_overrides_runpath=no
25130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25132 hardcode_into_libs=yes
25135 # No shared lib support for Linux oldld, aout, or coff.
25136 linux*oldld* | linux*aout* | linux*coff*)
25140 # This must be Linux ELF.
25141 linux* | k*bsd*-gnu)
25145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25146 soname_spec='${libname}${release}${shared_ext}$major'
25147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25148 shlibpath_var=LD_LIBRARY_PATH
25149 shlibpath_overrides_runpath=no
25150 # This implies no fast_install, which is unacceptable.
25151 # Some rework will be needed to allow for fast_install
25152 # before this can be enabled.
25153 hardcode_into_libs=yes
25155 # Append ld.so.conf contents to the search path
25156 if test -f /etc/ld.so.conf; then
25157 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25161 # We used to test for /lib/ld.so.1 and disable shared libraries on
25162 # powerpc, because MkLinux only supported shared libraries with the
25163 # GNU dynamic linker. Since this was broken with cross compilers,
25164 # most powerpc-linux boxes support dynamic linking these days and
25165 # people can always --disable-shared, the test was removed, and we
25166 # assume the GNU/Linux dynamic linker is in use.
25167 dynamic_linker='GNU/Linux ld.so'
25174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25175 soname_spec='${libname}${release}${shared_ext}$major'
25176 shlibpath_var=LD_LIBRARY_PATH
25177 shlibpath_overrides_runpath=no
25178 hardcode_into_libs=yes
25179 dynamic_linker='NetBSD ld.elf_so'
25186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25189 dynamic_linker='NetBSD (a.out) ld.so'
25191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25192 soname_spec='${libname}${release}${shared_ext}$major'
25193 dynamic_linker='NetBSD ld.elf_so'
25195 shlibpath_var=LD_LIBRARY_PATH
25196 shlibpath_overrides_runpath=yes
25197 hardcode_into_libs=yes
25202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25203 shlibpath_var=LD_LIBRARY_PATH
25204 shlibpath_overrides_runpath=yes
25211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25212 soname_spec='${libname}${release}${shared_ext}$major'
25213 shlibpath_var=LD_LIBRARY_PATH
25214 shlibpath_overrides_runpath=yes
25219 sys_lib_dlsearch_path_spec="/usr/lib"
25221 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25223 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25224 *) need_version=no ;;
25226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25228 shlibpath_var=LD_LIBRARY_PATH
25229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25231 openbsd2.[89] | openbsd2.[89].*)
25232 shlibpath_overrides_runpath=no
25235 shlibpath_overrides_runpath=yes
25239 shlibpath_overrides_runpath=yes
25244 libname_spec='$name'
25247 library_names_spec='$libname${shared_ext} $libname.a'
25248 dynamic_linker='OS/2 ld.exe'
25249 shlibpath_var=LIBPATH
25252 osf3* | osf4* | osf5*)
25256 soname_spec='${libname}${release}${shared_ext}$major'
25257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25258 shlibpath_var=LD_LIBRARY_PATH
25259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25260 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25272 soname_spec='${libname}${release}${shared_ext}$major'
25273 shlibpath_var=LD_LIBRARY_PATH
25274 shlibpath_overrides_runpath=yes
25275 hardcode_into_libs=yes
25276 # ldd complains unless libraries are executable
25277 postinstall_cmds='chmod +x $lib'
25282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25284 shlibpath_var=LD_LIBRARY_PATH
25285 shlibpath_overrides_runpath=yes
25286 if test "$with_gnu_ld" = yes; then
25294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25295 soname_spec='${libname}${release}${shared_ext}$major'
25296 shlibpath_var=LD_LIBRARY_PATH
25297 case $host_vendor in
25299 shlibpath_overrides_runpath=no
25301 export_dynamic_flag_spec='${wl}-Blargedynsym'
25302 runpath_var=LD_RUN_PATH
25310 shlibpath_overrides_runpath=no
25311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25317 if test -d /usr/nec ;then
25319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25320 soname_spec='$libname${shared_ext}.$major'
25321 shlibpath_var=LD_LIBRARY_PATH
25325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25326 version_type=freebsd-elf
25329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25330 soname_spec='${libname}${release}${shared_ext}$major'
25331 shlibpath_var=LD_LIBRARY_PATH
25332 hardcode_into_libs=yes
25333 if test "$with_gnu_ld" = yes; then
25334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25335 shlibpath_overrides_runpath=no
25337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25338 shlibpath_overrides_runpath=yes
25341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25345 sys_lib_dlsearch_path_spec='/usr/lib'
25350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25351 soname_spec='${libname}${release}${shared_ext}$major'
25352 shlibpath_var=LD_LIBRARY_PATH
25359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25360 echo "${ECHO_T}$dynamic_linker" >&6; }
25361 test "$dynamic_linker" = no && can_build_shared=no
25363 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
25364 echo $ECHO_N "(cached) $ECHO_C" >&6
25366 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
25369 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
25370 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
25376 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
25378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25379 if test "$GCC" = yes; then
25380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25383 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25384 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25385 hardcode_action_GCJ=
25386 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25387 test -n "$runpath_var_GCJ" || \
25388 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25390 # We can hardcode non-existant directories.
25391 if test "$hardcode_direct_GCJ" != no &&
25392 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25393 # have to relink, otherwise we might link with an installed library
25394 # when we should be linking with a yet-to-be-installed one
25395 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25396 test "$hardcode_minus_L_GCJ" != no; then
25397 # Linking always hardcodes the temporary library directory.
25398 hardcode_action_GCJ=relink
25400 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25401 hardcode_action_GCJ=immediate
25404 # We cannot hardcode anything, or else we can only hardcode existing
25406 hardcode_action_GCJ=unsupported
25408 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25409 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25411 if test "$hardcode_action_GCJ" = relink; then
25412 # Fast installation is not supported
25413 enable_fast_install=no
25414 elif test "$shlibpath_overrides_runpath" = yes ||
25415 test "$enable_shared" = no; then
25416 # Fast installation is not necessary
25417 enable_fast_install=needless
25421 # The else clause should only fire when bootstrapping the
25422 # libtool distribution, otherwise you forgot to ship ltmain.sh
25423 # with your package, and you will get complaints that there are
25424 # no rules to generate ltmain.sh.
25425 if test -f "$ltmain"; then
25426 # See if we are running on zsh, and set the options which allow our commands through
25427 # without removal of \ escapes.
25428 if test -n "${ZSH_VERSION+set}" ; then
25429 setopt NO_GLOB_SUBST
25431 # Now quote all the things that may contain metacharacters while being
25432 # careful not to overquote the AC_SUBSTed values. We take copies of the
25433 # variables and quote the copies for generation of the libtool script.
25434 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25436 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25437 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25438 deplibs_check_method reload_flag reload_cmds need_locks \
25439 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25440 lt_cv_sys_global_symbol_to_c_name_address \
25441 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25442 old_postinstall_cmds old_postuninstall_cmds \
25446 lt_prog_compiler_wl_GCJ \
25447 lt_prog_compiler_pic_GCJ \
25448 lt_prog_compiler_static_GCJ \
25449 lt_prog_compiler_no_builtin_flag_GCJ \
25450 export_dynamic_flag_spec_GCJ \
25451 thread_safe_flag_spec_GCJ \
25452 whole_archive_flag_spec_GCJ \
25453 enable_shared_with_static_runtimes_GCJ \
25454 old_archive_cmds_GCJ \
25455 old_archive_from_new_cmds_GCJ \
25456 predep_objects_GCJ \
25457 postdep_objects_GCJ \
25460 compiler_lib_search_path_GCJ \
25461 compiler_lib_search_dirs_GCJ \
25463 archive_expsym_cmds_GCJ \
25464 postinstall_cmds_GCJ \
25465 postuninstall_cmds_GCJ \
25466 old_archive_from_expsyms_cmds_GCJ \
25467 allow_undefined_flag_GCJ \
25468 no_undefined_flag_GCJ \
25469 export_symbols_cmds_GCJ \
25470 hardcode_libdir_flag_spec_GCJ \
25471 hardcode_libdir_flag_spec_ld_GCJ \
25472 hardcode_libdir_separator_GCJ \
25473 hardcode_automatic_GCJ \
25475 module_expsym_cmds_GCJ \
25476 lt_cv_prog_compiler_c_o_GCJ \
25477 fix_srcfile_path_GCJ \
25478 exclude_expsyms_GCJ \
25479 include_expsyms_GCJ; do
25482 old_archive_cmds_GCJ | \
25483 old_archive_from_new_cmds_GCJ | \
25484 archive_cmds_GCJ | \
25485 archive_expsym_cmds_GCJ | \
25486 module_cmds_GCJ | \
25487 module_expsym_cmds_GCJ | \
25488 old_archive_from_expsyms_cmds_GCJ | \
25489 export_symbols_cmds_GCJ | \
25490 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25491 postinstall_cmds | postuninstall_cmds | \
25492 old_postinstall_cmds | old_postuninstall_cmds | \
25493 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25494 # Double-quote double-evaled strings.
25495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25504 *'\$0 --fallback-echo"')
25505 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25511 cat <<__EOF__ >> "$cfgfile"
25512 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25514 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25516 # Shell to use when invoking shell scripts.
25519 # Whether or not to build shared libraries.
25520 build_libtool_libs=$enable_shared
25522 # Whether or not to build static libraries.
25523 build_old_libs=$enable_static
25525 # Whether or not to add -lc for building shared libraries.
25526 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25528 # Whether or not to disallow shared libs when runtime libs are static
25529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25531 # Whether or not to optimize for fast installation.
25532 fast_install=$enable_fast_install
25535 host_alias=$host_alias
25539 # The build system.
25540 build_alias=$build_alias
25544 # An echo program that does not interpret backslashes.
25549 AR_FLAGS=$lt_AR_FLAGS
25554 # LTCC compiler flags.
25555 LTCFLAGS=$lt_LTCFLAGS
25557 # A language-specific compiler.
25558 CC=$lt_compiler_GCJ
25560 # Is the compiler the GNU C compiler?
25566 # The linker used to build libraries.
25569 # Whether we need hard or soft links.
25572 # A BSD-compatible nm program.
25575 # A symbol stripping program
25578 # Used to examine libraries when file_magic_cmd begins "file"
25579 MAGIC_CMD=$MAGIC_CMD
25581 # Used on cygwin: DLL creation program.
25584 # Used on cygwin: object dumper.
25587 # Used on cygwin: assembler.
25590 # The name of the directory that contains temporary libtool files.
25593 # How to create reloadable object files.
25594 reload_flag=$lt_reload_flag
25595 reload_cmds=$lt_reload_cmds
25597 # How to pass a linker flag through the compiler.
25598 wl=$lt_lt_prog_compiler_wl_GCJ
25600 # Object file suffix (normally "o").
25601 objext="$ac_objext"
25603 # Old archive suffix (normally "a").
25606 # Shared library suffix (normally ".so").
25607 shrext_cmds='$shrext_cmds'
25609 # Executable file suffix (normally "").
25612 # Additional compiler flags for building library objects.
25613 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25616 # What is the maximum length of a command?
25617 max_cmd_len=$lt_cv_sys_max_cmd_len
25619 # Does compiler simultaneously support -c and -o options?
25620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25622 # Must we lock files when doing compilation?
25623 need_locks=$lt_need_locks
25625 # Do we need the lib prefix for modules?
25626 need_lib_prefix=$need_lib_prefix
25628 # Do we need a version for libraries?
25629 need_version=$need_version
25631 # Whether dlopen is supported.
25632 dlopen_support=$enable_dlopen
25634 # Whether dlopen of programs is supported.
25635 dlopen_self=$enable_dlopen_self
25637 # Whether dlopen of statically linked programs is supported.
25638 dlopen_self_static=$enable_dlopen_self_static
25640 # Compiler flag to prevent dynamic linking.
25641 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25643 # Compiler flag to turn off builtin functions.
25644 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25646 # Compiler flag to allow reflexive dlopens.
25647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25649 # Compiler flag to generate shared objects directly from archives.
25650 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25652 # Compiler flag to generate thread-safe objects.
25653 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25655 # Library versioning type.
25656 version_type=$version_type
25658 # Format of library name prefix.
25659 libname_spec=$lt_libname_spec
25661 # List of archive names. First name is the real one, the rest are links.
25662 # The last name is the one that the linker finds with -lNAME.
25663 library_names_spec=$lt_library_names_spec
25665 # The coded name of the library, if different from the real name.
25666 soname_spec=$lt_soname_spec
25668 # Commands used to build and install an old-style archive.
25670 old_archive_cmds=$lt_old_archive_cmds_GCJ
25671 old_postinstall_cmds=$lt_old_postinstall_cmds
25672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25674 # Create an old-style archive from a shared archive.
25675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25677 # Create a temporary old-style archive to link instead of a shared archive.
25678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25680 # Commands used to build and install a shared archive.
25681 archive_cmds=$lt_archive_cmds_GCJ
25682 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25683 postinstall_cmds=$lt_postinstall_cmds
25684 postuninstall_cmds=$lt_postuninstall_cmds
25686 # Commands used to build a loadable module (assumed same as above if empty)
25687 module_cmds=$lt_module_cmds_GCJ
25688 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25690 # Commands to strip libraries.
25691 old_striplib=$lt_old_striplib
25692 striplib=$lt_striplib
25694 # Dependencies to place before the objects being linked to create a
25696 predep_objects=$lt_predep_objects_GCJ
25698 # Dependencies to place after the objects being linked to create a
25700 postdep_objects=$lt_postdep_objects_GCJ
25702 # Dependencies to place before the objects being linked to create a
25704 predeps=$lt_predeps_GCJ
25706 # Dependencies to place after the objects being linked to create a
25708 postdeps=$lt_postdeps_GCJ
25710 # The directories searched by this compiler when creating a shared
25712 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
25714 # The library search path used internally by the compiler when linking
25715 # a shared library.
25716 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25718 # Method to check whether dependent libraries are shared objects.
25719 deplibs_check_method=$lt_deplibs_check_method
25721 # Command to use when deplibs_check_method == file_magic.
25722 file_magic_cmd=$lt_file_magic_cmd
25724 # Flag that allows shared libraries with undefined symbols to be built.
25725 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25727 # Flag that forces no undefined symbols.
25728 no_undefined_flag=$lt_no_undefined_flag_GCJ
25730 # Commands used to finish a libtool library installation in a directory.
25731 finish_cmds=$lt_finish_cmds
25733 # Same as above, but a single script fragment to be evaled but not shown.
25734 finish_eval=$lt_finish_eval
25736 # Take the output of nm and produce a listing of raw symbols and C names.
25737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25739 # Transform the output of nm in a proper C declaration
25740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25742 # Transform the output of nm in a C name address pair
25743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25745 # This is the shared library runtime path variable.
25746 runpath_var=$runpath_var
25748 # This is the shared library path variable.
25749 shlibpath_var=$shlibpath_var
25751 # Is shlibpath searched before the hard-coded library search path?
25752 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25754 # How to hardcode a shared library path into an executable.
25755 hardcode_action=$hardcode_action_GCJ
25757 # Whether we should hardcode library paths into libraries.
25758 hardcode_into_libs=$hardcode_into_libs
25760 # Flag to hardcode \$libdir into a binary during linking.
25761 # This must work even if \$libdir does not exist.
25762 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25764 # If ld is used when linking, flag to hardcode \$libdir into
25765 # a binary during linking. This must work even if \$libdir does
25767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25769 # Whether we need a single -rpath flag with a separated argument.
25770 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25772 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25773 # resulting binary.
25774 hardcode_direct=$hardcode_direct_GCJ
25776 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25777 # resulting binary.
25778 hardcode_minus_L=$hardcode_minus_L_GCJ
25780 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25781 # the resulting binary.
25782 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25784 # Set to yes if building a shared library automatically hardcodes DIR into the library
25785 # and all subsequent libraries and executables linked against it.
25786 hardcode_automatic=$hardcode_automatic_GCJ
25788 # Variables whose values should be saved in libtool wrapper scripts and
25789 # restored at relink time.
25790 variables_saved_for_relink="$variables_saved_for_relink"
25792 # Whether libtool must link a program against all its dependency libraries.
25793 link_all_deplibs=$link_all_deplibs_GCJ
25795 # Compile-time system search path for libraries
25796 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25798 # Run-time system search path for libraries
25799 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25801 # Fix the shell variable \$srcfile for the compiler.
25802 fix_srcfile_path=$lt_fix_srcfile_path
25804 # Set to yes if exported symbols are required.
25805 always_export_symbols=$always_export_symbols_GCJ
25807 # The commands to list exported symbols.
25808 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25810 # The commands to extract the exported symbol list from a shared archive.
25811 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25813 # Symbols that should not be listed in the preloaded symbols.
25814 exclude_expsyms=$lt_exclude_expsyms_GCJ
25816 # Symbols that must always be exported.
25817 include_expsyms=$lt_include_expsyms_GCJ
25819 # ### END LIBTOOL TAG CONFIG: $tagname
25825 # If there is no Makefile yet, we rely on a make rule to execute
25826 # `config.status --recheck' to rerun these tests and create the
25827 # libtool script then.
25828 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25829 if test -f "$ltmain_in"; then
25830 test -f Makefile && make "$ltmain"
25836 ac_cpp='$CPP $CPPFLAGS'
25837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25851 # Source file extension for RC test sources.
25854 # Object file extension for compiled RC test sources.
25858 # Code to be used in simple compile tests
25859 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
25861 # Code to be used in simple link tests
25862 lt_simple_link_test_code="$lt_simple_compile_test_code"
25864 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25866 # If no C compiler was specified, use CC.
25869 # If no C compiler flags were specified, use CFLAGS.
25870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25872 # Allow CC to be a program name with arguments.
25876 # save warnings/boilerplate of simple test code
25877 ac_outfile=conftest.$ac_objext
25878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25880 _lt_compiler_boilerplate=`cat conftest.err`
25883 ac_outfile=conftest.$ac_objext
25884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
25885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25886 _lt_linker_boilerplate=`cat conftest.err`
25890 # Allow CC to be a program name with arguments.
25895 for cc_temp in $compiler""; do
25897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25905 lt_cv_prog_compiler_c_o_RC=yes
25907 # The else clause should only fire when bootstrapping the
25908 # libtool distribution, otherwise you forgot to ship ltmain.sh
25909 # with your package, and you will get complaints that there are
25910 # no rules to generate ltmain.sh.
25911 if test -f "$ltmain"; then
25912 # See if we are running on zsh, and set the options which allow our commands through
25913 # without removal of \ escapes.
25914 if test -n "${ZSH_VERSION+set}" ; then
25915 setopt NO_GLOB_SUBST
25917 # Now quote all the things that may contain metacharacters while being
25918 # careful not to overquote the AC_SUBSTed values. We take copies of the
25919 # variables and quote the copies for generation of the libtool script.
25920 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25922 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25923 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25924 deplibs_check_method reload_flag reload_cmds need_locks \
25925 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25926 lt_cv_sys_global_symbol_to_c_name_address \
25927 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25928 old_postinstall_cmds old_postuninstall_cmds \
25932 lt_prog_compiler_wl_RC \
25933 lt_prog_compiler_pic_RC \
25934 lt_prog_compiler_static_RC \
25935 lt_prog_compiler_no_builtin_flag_RC \
25936 export_dynamic_flag_spec_RC \
25937 thread_safe_flag_spec_RC \
25938 whole_archive_flag_spec_RC \
25939 enable_shared_with_static_runtimes_RC \
25940 old_archive_cmds_RC \
25941 old_archive_from_new_cmds_RC \
25942 predep_objects_RC \
25943 postdep_objects_RC \
25946 compiler_lib_search_path_RC \
25947 compiler_lib_search_dirs_RC \
25949 archive_expsym_cmds_RC \
25950 postinstall_cmds_RC \
25951 postuninstall_cmds_RC \
25952 old_archive_from_expsyms_cmds_RC \
25953 allow_undefined_flag_RC \
25954 no_undefined_flag_RC \
25955 export_symbols_cmds_RC \
25956 hardcode_libdir_flag_spec_RC \
25957 hardcode_libdir_flag_spec_ld_RC \
25958 hardcode_libdir_separator_RC \
25959 hardcode_automatic_RC \
25961 module_expsym_cmds_RC \
25962 lt_cv_prog_compiler_c_o_RC \
25963 fix_srcfile_path_RC \
25964 exclude_expsyms_RC \
25965 include_expsyms_RC; do
25968 old_archive_cmds_RC | \
25969 old_archive_from_new_cmds_RC | \
25970 archive_cmds_RC | \
25971 archive_expsym_cmds_RC | \
25973 module_expsym_cmds_RC | \
25974 old_archive_from_expsyms_cmds_RC | \
25975 export_symbols_cmds_RC | \
25976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25977 postinstall_cmds | postuninstall_cmds | \
25978 old_postinstall_cmds | old_postuninstall_cmds | \
25979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25980 # Double-quote double-evaled strings.
25981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25990 *'\$0 --fallback-echo"')
25991 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25997 cat <<__EOF__ >> "$cfgfile"
25998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26002 # Shell to use when invoking shell scripts.
26005 # Whether or not to build shared libraries.
26006 build_libtool_libs=$enable_shared
26008 # Whether or not to build static libraries.
26009 build_old_libs=$enable_static
26011 # Whether or not to add -lc for building shared libraries.
26012 build_libtool_need_lc=$archive_cmds_need_lc_RC
26014 # Whether or not to disallow shared libs when runtime libs are static
26015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26017 # Whether or not to optimize for fast installation.
26018 fast_install=$enable_fast_install
26021 host_alias=$host_alias
26025 # The build system.
26026 build_alias=$build_alias
26030 # An echo program that does not interpret backslashes.
26035 AR_FLAGS=$lt_AR_FLAGS
26040 # LTCC compiler flags.
26041 LTCFLAGS=$lt_LTCFLAGS
26043 # A language-specific compiler.
26046 # Is the compiler the GNU C compiler?
26052 # The linker used to build libraries.
26055 # Whether we need hard or soft links.
26058 # A BSD-compatible nm program.
26061 # A symbol stripping program
26064 # Used to examine libraries when file_magic_cmd begins "file"
26065 MAGIC_CMD=$MAGIC_CMD
26067 # Used on cygwin: DLL creation program.
26070 # Used on cygwin: object dumper.
26073 # Used on cygwin: assembler.
26076 # The name of the directory that contains temporary libtool files.
26079 # How to create reloadable object files.
26080 reload_flag=$lt_reload_flag
26081 reload_cmds=$lt_reload_cmds
26083 # How to pass a linker flag through the compiler.
26084 wl=$lt_lt_prog_compiler_wl_RC
26086 # Object file suffix (normally "o").
26087 objext="$ac_objext"
26089 # Old archive suffix (normally "a").
26092 # Shared library suffix (normally ".so").
26093 shrext_cmds='$shrext_cmds'
26095 # Executable file suffix (normally "").
26098 # Additional compiler flags for building library objects.
26099 pic_flag=$lt_lt_prog_compiler_pic_RC
26102 # What is the maximum length of a command?
26103 max_cmd_len=$lt_cv_sys_max_cmd_len
26105 # Does compiler simultaneously support -c and -o options?
26106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26108 # Must we lock files when doing compilation?
26109 need_locks=$lt_need_locks
26111 # Do we need the lib prefix for modules?
26112 need_lib_prefix=$need_lib_prefix
26114 # Do we need a version for libraries?
26115 need_version=$need_version
26117 # Whether dlopen is supported.
26118 dlopen_support=$enable_dlopen
26120 # Whether dlopen of programs is supported.
26121 dlopen_self=$enable_dlopen_self
26123 # Whether dlopen of statically linked programs is supported.
26124 dlopen_self_static=$enable_dlopen_self_static
26126 # Compiler flag to prevent dynamic linking.
26127 link_static_flag=$lt_lt_prog_compiler_static_RC
26129 # Compiler flag to turn off builtin functions.
26130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26132 # Compiler flag to allow reflexive dlopens.
26133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26135 # Compiler flag to generate shared objects directly from archives.
26136 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26138 # Compiler flag to generate thread-safe objects.
26139 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26141 # Library versioning type.
26142 version_type=$version_type
26144 # Format of library name prefix.
26145 libname_spec=$lt_libname_spec
26147 # List of archive names. First name is the real one, the rest are links.
26148 # The last name is the one that the linker finds with -lNAME.
26149 library_names_spec=$lt_library_names_spec
26151 # The coded name of the library, if different from the real name.
26152 soname_spec=$lt_soname_spec
26154 # Commands used to build and install an old-style archive.
26156 old_archive_cmds=$lt_old_archive_cmds_RC
26157 old_postinstall_cmds=$lt_old_postinstall_cmds
26158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26160 # Create an old-style archive from a shared archive.
26161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26163 # Create a temporary old-style archive to link instead of a shared archive.
26164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26166 # Commands used to build and install a shared archive.
26167 archive_cmds=$lt_archive_cmds_RC
26168 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26169 postinstall_cmds=$lt_postinstall_cmds
26170 postuninstall_cmds=$lt_postuninstall_cmds
26172 # Commands used to build a loadable module (assumed same as above if empty)
26173 module_cmds=$lt_module_cmds_RC
26174 module_expsym_cmds=$lt_module_expsym_cmds_RC
26176 # Commands to strip libraries.
26177 old_striplib=$lt_old_striplib
26178 striplib=$lt_striplib
26180 # Dependencies to place before the objects being linked to create a
26182 predep_objects=$lt_predep_objects_RC
26184 # Dependencies to place after the objects being linked to create a
26186 postdep_objects=$lt_postdep_objects_RC
26188 # Dependencies to place before the objects being linked to create a
26190 predeps=$lt_predeps_RC
26192 # Dependencies to place after the objects being linked to create a
26194 postdeps=$lt_postdeps_RC
26196 # The directories searched by this compiler when creating a shared
26198 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
26200 # The library search path used internally by the compiler when linking
26201 # a shared library.
26202 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26204 # Method to check whether dependent libraries are shared objects.
26205 deplibs_check_method=$lt_deplibs_check_method
26207 # Command to use when deplibs_check_method == file_magic.
26208 file_magic_cmd=$lt_file_magic_cmd
26210 # Flag that allows shared libraries with undefined symbols to be built.
26211 allow_undefined_flag=$lt_allow_undefined_flag_RC
26213 # Flag that forces no undefined symbols.
26214 no_undefined_flag=$lt_no_undefined_flag_RC
26216 # Commands used to finish a libtool library installation in a directory.
26217 finish_cmds=$lt_finish_cmds
26219 # Same as above, but a single script fragment to be evaled but not shown.
26220 finish_eval=$lt_finish_eval
26222 # Take the output of nm and produce a listing of raw symbols and C names.
26223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26225 # Transform the output of nm in a proper C declaration
26226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26228 # Transform the output of nm in a C name address pair
26229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26231 # This is the shared library runtime path variable.
26232 runpath_var=$runpath_var
26234 # This is the shared library path variable.
26235 shlibpath_var=$shlibpath_var
26237 # Is shlibpath searched before the hard-coded library search path?
26238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26240 # How to hardcode a shared library path into an executable.
26241 hardcode_action=$hardcode_action_RC
26243 # Whether we should hardcode library paths into libraries.
26244 hardcode_into_libs=$hardcode_into_libs
26246 # Flag to hardcode \$libdir into a binary during linking.
26247 # This must work even if \$libdir does not exist.
26248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26250 # If ld is used when linking, flag to hardcode \$libdir into
26251 # a binary during linking. This must work even if \$libdir does
26253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26255 # Whether we need a single -rpath flag with a separated argument.
26256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26258 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26259 # resulting binary.
26260 hardcode_direct=$hardcode_direct_RC
26262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26263 # resulting binary.
26264 hardcode_minus_L=$hardcode_minus_L_RC
26266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26267 # the resulting binary.
26268 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26270 # Set to yes if building a shared library automatically hardcodes DIR into the library
26271 # and all subsequent libraries and executables linked against it.
26272 hardcode_automatic=$hardcode_automatic_RC
26274 # Variables whose values should be saved in libtool wrapper scripts and
26275 # restored at relink time.
26276 variables_saved_for_relink="$variables_saved_for_relink"
26278 # Whether libtool must link a program against all its dependency libraries.
26279 link_all_deplibs=$link_all_deplibs_RC
26281 # Compile-time system search path for libraries
26282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26284 # Run-time system search path for libraries
26285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26287 # Fix the shell variable \$srcfile for the compiler.
26288 fix_srcfile_path=$lt_fix_srcfile_path
26290 # Set to yes if exported symbols are required.
26291 always_export_symbols=$always_export_symbols_RC
26293 # The commands to list exported symbols.
26294 export_symbols_cmds=$lt_export_symbols_cmds_RC
26296 # The commands to extract the exported symbol list from a shared archive.
26297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26299 # Symbols that should not be listed in the preloaded symbols.
26300 exclude_expsyms=$lt_exclude_expsyms_RC
26302 # Symbols that must always be exported.
26303 include_expsyms=$lt_include_expsyms_RC
26305 # ### END LIBTOOL TAG CONFIG: $tagname
26311 # If there is no Makefile yet, we rely on a make rule to execute
26312 # `config.status --recheck' to rerun these tests and create the
26313 # libtool script then.
26314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26315 if test -f "$ltmain_in"; then
26316 test -f Makefile && make "$ltmain"
26322 ac_cpp='$CPP $CPPFLAGS'
26323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26332 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26333 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26334 { (exit 1); exit 1; }; }
26338 # Append the new tag name to the list of available tags.
26339 if test -n "$tagname" ; then
26340 available_tags="$available_tags $tagname"
26346 # Now substitute the updated list of available tags.
26347 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26348 mv "${ofile}T" "$ofile"
26352 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26353 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26354 { (exit 1); exit 1; }; }
26360 # This can be used to rebuild libtool when needed
26361 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26363 # Always use our own libtool.
26364 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26366 # Prevent multiple expansion
26387 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
26388 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
26389 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
26390 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26393 cat >conftest.make <<\_ACEOF
26396 @echo '@@@%%%=$(MAKE)=@@@%%%'
26398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26399 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26400 *@@@%%%=?*=@@@%%%*)
26401 eval ac_cv_prog_make_${ac_make}_set=yes;;
26403 eval ac_cv_prog_make_${ac_make}_set=no;;
26405 rm -f conftest.make
26407 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
26408 { echo "$as_me:$LINENO: result: yes" >&5
26409 echo "${ECHO_T}yes" >&6; }
26412 { echo "$as_me:$LINENO: result: no" >&5
26413 echo "${ECHO_T}no" >&6; }
26414 SET_MAKE="MAKE=${MAKE-make}"
26418 if test "$need_glib" != "yes"; then
26422 if test "x${GLIBFOUND}" = "xyes"; then
26424 cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_GLIB 1
26429 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS"
26432 if test "$enable_shared" == "yes"; then
26433 ENABLE_MODULES_TRUE=
26434 ENABLE_MODULES_FALSE='#'
26436 ENABLE_MODULES_TRUE='#'
26437 ENABLE_MODULES_FALSE=
26440 if test "$enable_shared" == "yes"; then
26442 cat >>confdefs.h <<\_ACEOF
26443 #define ENABLE_MODULES 1
26451 if test "$host" == "arm-apple-darwin"; then
26453 cat >>confdefs.h <<\_ACEOF
26460 if test "$enable_evolution_compatibility" == "yes"; then
26462 cat >>confdefs.h <<\_ACEOF
26463 #define EVOLUTION_COMPATIBILITY 1
26467 if test "$enable_evolution_compatibility" == "yes"; then
26468 ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
26469 ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
26471 ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
26472 ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
26476 if test "$enable_developer_mode" == "yes"; then
26477 backendsearchdir="`pwd`/src/backends/"
26479 backendsearchdir='$(libdir)'/syncevolution/backends/
26482 backenddir='$(libdir)'/syncevolution/backends
26487 cat >>confdefs.h <<_ACEOF
26488 #define DEVICE_TYPE "$DEVICE_TYPE"
26495 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
26497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26504 ac_res=`eval echo '${'$as_ac_Header'}'`
26505 { echo "$as_me:$LINENO: result: $ac_res" >&5
26506 echo "${ECHO_T}$ac_res" >&6; }
26508 # Is the header compilable?
26509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26511 cat >conftest.$ac_ext <<_ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h. */
26517 $ac_includes_default
26518 #include <$ac_header>
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
26522 case "(($ac_try" in
26523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524 *) ac_try_echo=$ac_try;;
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527 (eval "$ac_compile") 2>conftest.er1
26529 grep -v '^ *+' conftest.er1 >conftest.err
26531 cat conftest.err >&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } && {
26534 test -z "$ac_c_werror_flag" ||
26535 test ! -s conftest.err
26536 } && test -s conftest.$ac_objext; then
26537 ac_header_compiler=yes
26539 echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26542 ac_header_compiler=no
26545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26547 echo "${ECHO_T}$ac_header_compiler" >&6; }
26549 # Is the header present?
26550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26552 cat >conftest.$ac_ext <<_ACEOF
26555 cat confdefs.h >>conftest.$ac_ext
26556 cat >>conftest.$ac_ext <<_ACEOF
26557 /* end confdefs.h. */
26558 #include <$ac_header>
26560 if { (ac_try="$ac_cpp conftest.$ac_ext"
26561 case "(($ac_try" in
26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563 *) ac_try_echo=$ac_try;;
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26568 grep -v '^ *+' conftest.er1 >conftest.err
26570 cat conftest.err >&5
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } >/dev/null && {
26573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26574 test ! -s conftest.err
26576 ac_header_preproc=yes
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ac_header_preproc=no
26584 rm -f conftest.err conftest.$ac_ext
26585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26586 echo "${ECHO_T}$ac_header_preproc" >&6; }
26588 # So? What about this header?
26589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26595 ac_header_preproc=yes
26598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26618 eval "$as_ac_Header=\$ac_header_preproc"
26620 ac_res=`eval echo '${'$as_ac_Header'}'`
26621 { echo "$as_me:$LINENO: result: $ac_res" >&5
26622 echo "${ECHO_T}$ac_res" >&6; }
26625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26626 cat >>confdefs.h <<_ACEOF
26627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26636 cat >>confdefs.h <<\_ACEOF
26637 #define SYNTHESIS 1
26641 ac_config_files="$ac_config_files Makefile src/dbus/interfaces/Makefile src/gdbus/Makefile src/dbus/Makefile src/Makefile src/syncevo/Makefile src/syncevo/syncevolution.pc src/gtk-ui/Makefile po/Makefile.in test/Makefile src/dbus/syncevo-dbus.pc"
26643 cat >confcache <<\_ACEOF
26644 # This file is a shell script that caches the results of configure
26645 # tests run on this system so they can be shared between configure
26646 # scripts and configure runs, see configure's option --config-cache.
26647 # It is not useful on other systems. If it contains results you don't
26648 # want to keep, you may remove or edit it.
26650 # config.status only pays attention to the cache file if you give it
26651 # the --recheck option to rerun configure.
26653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26655 # following values.
26659 # The following way of writing the cache mishandles newlines in values,
26660 # but we know of no workaround that is simple, portable, and efficient.
26661 # So, we kill variables containing newlines.
26662 # Ultrix sh set writes to stderr and can't be redirected directly,
26663 # and sets the high bit in the cache file unless we assign to the vars.
26665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26666 eval ac_val=\$$ac_var
26670 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26671 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26674 _ | IFS | as_nl) ;; #(
26675 *) $as_unset $ac_var ;;
26681 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26682 *${as_nl}ac_space=\ *)
26683 # `set' does not quote correctly, so add quotes (double-quote
26684 # substitution turns \\\\ into \\, and sed turns \\ into \).
26687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26690 # `set' quotes correctly as required by POSIX, so do not add quotes.
26691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26702 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26704 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26705 if test -w "$cache_file"; then
26706 test "x$cache_file" != "x/dev/null" &&
26707 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26708 echo "$as_me: updating cache $cache_file" >&6;}
26709 cat confcache >$cache_file
26711 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26712 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26718 # Let make expand exec_prefix.
26719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26721 DEFS=-DHAVE_CONFIG_H
26725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26726 # 1. Remove the extension, and $U if already installed.
26727 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26728 ac_i=`echo "$ac_i" | sed "$ac_script"`
26729 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26730 # will be set to the directory where LIBOBJS objects are built.
26731 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26732 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26734 LIBOBJS=$ac_libobjs
26736 LTLIBOBJS=$ac_ltlibobjs
26739 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26740 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26741 Usually this means the macro was only invoked conditionally." >&5
26742 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26743 Usually this means the macro was only invoked conditionally." >&2;}
26744 { (exit 1); exit 1; }; }
26746 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26747 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26748 Usually this means the macro was only invoked conditionally." >&5
26749 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26750 Usually this means the macro was only invoked conditionally." >&2;}
26751 { (exit 1); exit 1; }; }
26753 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
26754 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
26755 Usually this means the macro was only invoked conditionally." >&5
26756 echo "$as_me: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
26757 Usually this means the macro was only invoked conditionally." >&2;}
26758 { (exit 1); exit 1; }; }
26760 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
26761 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TESTING\" was never defined.
26762 Usually this means the macro was only invoked conditionally." >&5
26763 echo "$as_me: error: conditional \"ENABLE_TESTING\" was never defined.
26764 Usually this means the macro was only invoked conditionally." >&2;}
26765 { (exit 1); exit 1; }; }
26767 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
26768 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_OBEX\" was never defined.
26769 Usually this means the macro was only invoked conditionally." >&5
26770 echo "$as_me: error: conditional \"ENABLE_OBEX\" was never defined.
26771 Usually this means the macro was only invoked conditionally." >&2;}
26772 { (exit 1); exit 1; }; }
26774 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
26775 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
26776 Usually this means the macro was only invoked conditionally." >&5
26777 echo "$as_me: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
26778 Usually this means the macro was only invoked conditionally." >&2;}
26779 { (exit 1); exit 1; }; }
26781 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
26782 { { echo "$as_me:$LINENO: error: conditional \"COND_GUI\" was never defined.
26783 Usually this means the macro was only invoked conditionally." >&5
26784 echo "$as_me: error: conditional \"COND_GUI\" was never defined.
26785 Usually this means the macro was only invoked conditionally." >&2;}
26786 { (exit 1); exit 1; }; }
26788 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
26789 { { echo "$as_me:$LINENO: error: conditional \"COND_DBUS\" was never defined.
26790 Usually this means the macro was only invoked conditionally." >&5
26791 echo "$as_me: error: conditional \"COND_DBUS\" was never defined.
26792 Usually this means the macro was only invoked conditionally." >&2;}
26793 { (exit 1); exit 1; }; }
26796 ac_config_commands="$ac_config_commands po/stamp-it"
26799 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26800 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26801 Usually this means the macro was only invoked conditionally." >&5
26802 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26803 Usually this means the macro was only invoked conditionally." >&2;}
26804 { (exit 1); exit 1; }; }
26806 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
26807 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ECAL\" was never defined.
26808 Usually this means the macro was only invoked conditionally." >&5
26809 echo "$as_me: error: conditional \"ENABLE_ECAL\" was never defined.
26810 Usually this means the macro was only invoked conditionally." >&2;}
26811 { (exit 1); exit 1; }; }
26813 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26814 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26815 Usually this means the macro was only invoked conditionally." >&5
26816 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26817 Usually this means the macro was only invoked conditionally." >&2;}
26818 { (exit 1); exit 1; }; }
26820 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
26821 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MODULES\" was never defined.
26822 Usually this means the macro was only invoked conditionally." >&5
26823 echo "$as_me: error: conditional \"ENABLE_MODULES\" was never defined.
26824 Usually this means the macro was only invoked conditionally." >&2;}
26825 { (exit 1); exit 1; }; }
26827 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
26828 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
26829 Usually this means the macro was only invoked conditionally." >&5
26830 echo "$as_me: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
26831 Usually this means the macro was only invoked conditionally." >&2;}
26832 { (exit 1); exit 1; }; }
26835 : ${CONFIG_STATUS=./config.status}
26836 ac_clean_files_save=$ac_clean_files
26837 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26838 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26839 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26840 cat >$CONFIG_STATUS <<_ACEOF
26842 # Generated by $as_me.
26843 # Run this file to recreate the current configuration.
26844 # Compiler output produced by configure, useful for debugging
26845 # configure, is in config.log if it exists.
26848 ac_cs_recheck=false
26850 SHELL=\${CONFIG_SHELL-$SHELL}
26853 cat >>$CONFIG_STATUS <<\_ACEOF
26854 ## --------------------- ##
26855 ## M4sh Initialization. ##
26856 ## --------------------- ##
26858 # Be more Bourne compatible
26859 DUALCASE=1; export DUALCASE # for MKS sh
26860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26863 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26864 # is contrary to our usage. Disable this feature.
26865 alias -g '${1+"$@"}'='"$@"'
26866 setopt NO_GLOB_SUBST
26868 case `(set -o) 2>/dev/null` in
26869 *posix*) set -o posix ;;
26878 # Avoid depending upon Character Ranges.
26879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26882 as_cr_digits='0123456789'
26883 as_cr_alnum=$as_cr_Letters$as_cr_digits
26885 # The user is always right.
26886 if test "${PATH_SEPARATOR+set}" != set; then
26887 echo "#! /bin/sh" >conf$$.sh
26888 echo "exit 0" >>conf$$.sh
26890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26898 # Support unset when possible.
26899 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26907 # We need space, tab and new line, in precisely that order. Quoting is
26908 # there to prevent editors from complaining about space-tab.
26909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26910 # splitting by setting IFS to empty value.)
26915 # Find who we are. Look in the path if we contain no directory separator.
26917 *[\\/]* ) as_myself=$0 ;;
26918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26919 for as_dir in $PATH
26922 test -z "$as_dir" && as_dir=.
26923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26929 # We did not find ourselves, most probably we were run as `sh COMMAND'
26930 # in which case we are not to be found in the path.
26931 if test "x$as_myself" = x; then
26934 if test ! -f "$as_myself"; then
26935 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26936 { (exit 1); exit 1; }
26939 # Work around bugs in pre-3.0 UWIN ksh.
26940 for as_var in ENV MAIL MAILPATH
26941 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26949 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26950 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26951 LC_TELEPHONE LC_TIME
26953 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26954 eval $as_var=C; export $as_var
26956 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26960 # Required to use basename.
26961 if expr a : '\(a\)' >/dev/null 2>&1 &&
26962 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26968 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26969 as_basename=basename
26975 # Name of the executable.
26976 as_me=`$as_basename -- "$0" ||
26977 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26978 X"$0" : 'X\(//\)$' \| \
26979 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26981 sed '/^.*\/\([^/][^/]*\)\/*$/{
27000 as_lineno_1=$LINENO
27001 as_lineno_2=$LINENO
27002 test "x$as_lineno_1" != "x$as_lineno_2" &&
27003 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27005 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27006 # uniformly replaced by the line number. The first 'sed' inserts a
27007 # line-number line after each line using $LINENO; the second 'sed'
27008 # does the real work. The second script uses 'N' to pair each
27009 # line-number line with the line containing $LINENO, and appends
27010 # trailing '-' during substitution so that $LINENO is not a special
27011 # case at line end.
27012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27013 # scripts with optimization help from Paolo Bonzini. Blame Lee
27014 # E. McMahon (1931-1989) for sed's syntax. :-)
27026 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27029 ' >$as_me.lineno &&
27030 chmod +x "$as_me.lineno" ||
27031 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27032 { (exit 1); exit 1; }; }
27034 # Don't try to exec as it changes $[0], causing all sort of problems
27035 # (the dirname of $[0] is not the place where we might find the
27036 # original and so on. Autoconf is especially sensitive to this).
27037 . "./$as_me.lineno"
27038 # Exit status is that of the last command.
27043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27049 ECHO_C= ECHO_N= ECHO_T=
27050 case `echo -n x` in
27052 case `echo 'x\c'` in
27053 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27060 if expr a : '\(a\)' >/dev/null 2>&1 &&
27061 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27067 rm -f conf$$ conf$$.exe conf$$.file
27068 if test -d conf$$.dir; then
27069 rm -f conf$$.dir/conf$$.file
27075 if ln -s conf$$.file conf$$ 2>/dev/null; then
27077 # ... but there are two gotchas:
27078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27080 # In both cases, we have to default to `cp -p'.
27081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27083 elif ln conf$$.file conf$$ 2>/dev/null; then
27088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27089 rmdir conf$$.dir 2>/dev/null
27091 if mkdir -p . 2>/dev/null; then
27094 test -d ./-p && rmdir ./-p
27098 if test -x / >/dev/null 2>&1; then
27099 as_test_x='test -x'
27101 if ls -dL / >/dev/null 2>&1; then
27108 if test -d "$1"; then
27114 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27115 ???[sx]*):;;*)false;;esac;fi
27119 as_executable_p=$as_test_x
27121 # Sed expression to map a string onto a valid CPP name.
27122 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27124 # Sed expression to map a string onto a valid variable name.
27125 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27130 # Save the log message, to keep $[0] and so on meaningful, and to
27131 # report actual input values of CONFIG_FILES etc. instead of their
27132 # values after options handling.
27134 This file was extended by syncevolution $as_me 0.9.2+1.0alpha1, which was
27135 generated by GNU Autoconf 2.61. Invocation command line was
27137 CONFIG_FILES = $CONFIG_FILES
27138 CONFIG_HEADERS = $CONFIG_HEADERS
27139 CONFIG_LINKS = $CONFIG_LINKS
27140 CONFIG_COMMANDS = $CONFIG_COMMANDS
27143 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27148 cat >>$CONFIG_STATUS <<_ACEOF
27149 # Files that config.status was made for.
27150 config_files="$ac_config_files"
27151 config_headers="$ac_config_headers"
27152 config_commands="$ac_config_commands"
27156 cat >>$CONFIG_STATUS <<\_ACEOF
27158 \`$as_me' instantiates files from templates according to the
27159 current configuration.
27161 Usage: $0 [OPTIONS] [FILE]...
27163 -h, --help print this help, then exit
27164 -V, --version print version number and configuration settings, then exit
27165 -q, --quiet do not print progress messages
27166 -d, --debug don't remove temporary files
27167 --recheck update $as_me by reconfiguring in the same conditions
27168 --file=FILE[:TEMPLATE]
27169 instantiate the configuration file FILE
27170 --header=FILE[:TEMPLATE]
27171 instantiate the configuration header FILE
27173 Configuration files:
27176 Configuration headers:
27179 Configuration commands:
27182 Report bugs to <bug-autoconf@gnu.org>."
27185 cat >>$CONFIG_STATUS <<_ACEOF
27187 syncevolution config.status 0.9.2+1.0alpha1
27188 configured by $0, generated by GNU Autoconf 2.61,
27189 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27191 Copyright (C) 2006 Free Software Foundation, Inc.
27192 This config.status script is free software; the Free Software Foundation
27193 gives unlimited permission to copy, distribute and modify it."
27201 cat >>$CONFIG_STATUS <<\_ACEOF
27202 # If no file are specified by the user, then we need to provide default
27203 # value. By we need to know if files were specified by the user.
27209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27210 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27221 # Handling of the options.
27222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27225 echo "$ac_cs_version"; exit ;;
27226 --debug | --debu | --deb | --de | --d | -d )
27228 --file | --fil | --fi | --f )
27230 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27231 ac_need_defaults=false;;
27232 --header | --heade | --head | --hea )
27234 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27235 ac_need_defaults=false;;
27237 # Conflict between --help and --header
27238 { echo "$as_me: error: ambiguous option: $1
27239 Try \`$0 --help' for more information." >&2
27240 { (exit 1); exit 1; }; };;
27241 --help | --hel | -h )
27242 echo "$ac_cs_usage"; exit ;;
27243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27247 # This is an error.
27248 -*) { echo "$as_me: error: unrecognized option: $1
27249 Try \`$0 --help' for more information." >&2
27250 { (exit 1); exit 1; }; } ;;
27252 *) ac_config_targets="$ac_config_targets $1"
27253 ac_need_defaults=false ;;
27259 ac_configure_extra_args=
27261 if $ac_cs_silent; then
27263 ac_configure_extra_args="$ac_configure_extra_args --silent"
27267 cat >>$CONFIG_STATUS <<_ACEOF
27268 if \$ac_cs_recheck; then
27269 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27270 CONFIG_SHELL=$SHELL
27271 export CONFIG_SHELL
27272 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27276 cat >>$CONFIG_STATUS <<\_ACEOF
27280 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27281 ## Running $as_me. ##
27287 cat >>$CONFIG_STATUS <<_ACEOF
27291 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27296 cat >>$CONFIG_STATUS <<\_ACEOF
27298 # Handling of arguments.
27299 for ac_config_target in $ac_config_targets
27301 case $ac_config_target in
27302 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27303 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27304 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27305 "src/backends/addressbook/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/addressbook/Makefile" ;;
27306 "src/backends/evolution/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/evolution/Makefile" ;;
27307 "src/backends/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/file/Makefile" ;;
27308 "src/backends/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/sqlite/Makefile" ;;
27309 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27310 "src/dbus/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/interfaces/Makefile" ;;
27311 "src/gdbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdbus/Makefile" ;;
27312 "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
27313 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27314 "src/syncevo/Makefile") CONFIG_FILES="$CONFIG_FILES src/syncevo/Makefile" ;;
27315 "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
27316 "src/gtk-ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk-ui/Makefile" ;;
27317 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27318 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
27319 "src/dbus/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/syncevo-dbus.pc" ;;
27320 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
27322 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27323 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27324 { (exit 1); exit 1; }; };;
27329 # If the user did not use the arguments to specify the items to instantiate,
27330 # then the envvar interface is used. Set only those that are not.
27331 # We use the long form for the default assignment because of an extremely
27332 # bizarre bug on SunOS 4.1.3.
27333 if $ac_need_defaults; then
27334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27339 # Have a temporary directory for convenience. Make it in the build tree
27340 # simply because there is no reason against having it here, and in addition,
27341 # creating and moving files from /tmp can sometimes cause problems.
27342 # Hook for its removal unless debugging.
27343 # Note that there is a small window in which the directory will not be cleaned:
27344 # after its creation but before its name has been assigned to `$tmp'.
27348 trap 'exit_status=$?
27349 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27351 trap '{ (exit 1); exit 1; }' 1 2 13 15
27353 # Create a (secure) tmp directory for tmp files.
27356 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27357 test -n "$tmp" && test -d "$tmp"
27360 tmp=./conf$$-$RANDOM
27361 (umask 077 && mkdir "$tmp")
27364 echo "$me: cannot create a temporary directory in ." >&2
27365 { (exit 1); exit 1; }
27369 # Set up the sed scripts for CONFIG_FILES section.
27372 # No need to generate the scripts if there are no CONFIG_FILES.
27373 # This happens for instance when ./config.status config.h
27374 if test -n "$CONFIG_FILES"; then
27381 for ac_last_try in false false false false false :; do
27382 cat >conf$$subs.sed <<_ACEOF
27383 SHELL!$SHELL$ac_delim
27384 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27385 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27386 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27387 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27388 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27389 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27390 exec_prefix!$exec_prefix$ac_delim
27391 prefix!$prefix$ac_delim
27392 program_transform_name!$program_transform_name$ac_delim
27393 bindir!$bindir$ac_delim
27394 sbindir!$sbindir$ac_delim
27395 libexecdir!$libexecdir$ac_delim
27396 datarootdir!$datarootdir$ac_delim
27397 datadir!$datadir$ac_delim
27398 sysconfdir!$sysconfdir$ac_delim
27399 sharedstatedir!$sharedstatedir$ac_delim
27400 localstatedir!$localstatedir$ac_delim
27401 includedir!$includedir$ac_delim
27402 oldincludedir!$oldincludedir$ac_delim
27403 docdir!$docdir$ac_delim
27404 infodir!$infodir$ac_delim
27405 htmldir!$htmldir$ac_delim
27406 dvidir!$dvidir$ac_delim
27407 pdfdir!$pdfdir$ac_delim
27408 psdir!$psdir$ac_delim
27409 libdir!$libdir$ac_delim
27410 localedir!$localedir$ac_delim
27411 mandir!$mandir$ac_delim
27412 DEFS!$DEFS$ac_delim
27413 ECHO_C!$ECHO_C$ac_delim
27414 ECHO_N!$ECHO_N$ac_delim
27415 ECHO_T!$ECHO_T$ac_delim
27416 LIBS!$LIBS$ac_delim
27417 build_alias!$build_alias$ac_delim
27418 host_alias!$host_alias$ac_delim
27419 target_alias!$target_alias$ac_delim
27420 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27421 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27422 INSTALL_DATA!$INSTALL_DATA$ac_delim
27423 am__isrc!$am__isrc$ac_delim
27424 CYGPATH_W!$CYGPATH_W$ac_delim
27425 PACKAGE!$PACKAGE$ac_delim
27426 VERSION!$VERSION$ac_delim
27427 ACLOCAL!$ACLOCAL$ac_delim
27428 AUTOCONF!$AUTOCONF$ac_delim
27429 AUTOMAKE!$AUTOMAKE$ac_delim
27430 AUTOHEADER!$AUTOHEADER$ac_delim
27431 MAKEINFO!$MAKEINFO$ac_delim
27432 install_sh!$install_sh$ac_delim
27433 STRIP!$STRIP$ac_delim
27434 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27435 mkdir_p!$mkdir_p$ac_delim
27437 SET_MAKE!$SET_MAKE$ac_delim
27438 am__leading_dot!$am__leading_dot$ac_delim
27439 AMTAR!$AMTAR$ac_delim
27440 am__tar!$am__tar$ac_delim
27441 am__untar!$am__untar$ac_delim
27442 MODIFY_SYNCCOMPARE!$MODIFY_SYNCCOMPARE$ac_delim
27444 CFLAGS!$CFLAGS$ac_delim
27445 LDFLAGS!$LDFLAGS$ac_delim
27446 CPPFLAGS!$CPPFLAGS$ac_delim
27447 ac_ct_CC!$ac_ct_CC$ac_delim
27448 EXEEXT!$EXEEXT$ac_delim
27449 OBJEXT!$OBJEXT$ac_delim
27450 DEPDIR!$DEPDIR$ac_delim
27451 am__include!$am__include$ac_delim
27452 am__quote!$am__quote$ac_delim
27453 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27454 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27455 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27456 CCDEPMODE!$CCDEPMODE$ac_delim
27457 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27458 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27460 GREP!$GREP$ac_delim
27461 EGREP!$EGREP$ac_delim
27462 CPPUNIT_CXXFLAGS!$CPPUNIT_CXXFLAGS$ac_delim
27463 CPPUNIT_LDFLAGS!$CPPUNIT_LDFLAGS$ac_delim
27464 ENABLE_UNIT_TESTS_TRUE!$ENABLE_UNIT_TESTS_TRUE$ac_delim
27465 ENABLE_UNIT_TESTS_FALSE!$ENABLE_UNIT_TESTS_FALSE$ac_delim
27466 ENABLE_TESTING_TRUE!$ENABLE_TESTING_TRUE$ac_delim
27467 ENABLE_TESTING_FALSE!$ENABLE_TESTING_FALSE$ac_delim
27468 CORE_LDADD_DEP!$CORE_LDADD_DEP$ac_delim
27469 PKG_CONFIG!$PKG_CONFIG$ac_delim
27470 LIBSOUP_CFLAGS!$LIBSOUP_CFLAGS$ac_delim
27471 LIBSOUP_LIBS!$LIBSOUP_LIBS$ac_delim
27472 LIBOPENOBEX_CFLAGS!$LIBOPENOBEX_CFLAGS$ac_delim
27473 LIBOPENOBEX_LIBS!$LIBOPENOBEX_LIBS$ac_delim
27474 BLUEZ_CFLAGS!$BLUEZ_CFLAGS$ac_delim
27475 BLUEZ_LIBS!$BLUEZ_LIBS$ac_delim
27476 ENABLE_OBEX_TRUE!$ENABLE_OBEX_TRUE$ac_delim
27477 ENABLE_OBEX_FALSE!$ENABLE_OBEX_FALSE$ac_delim
27478 ENABLE_BLUETOOTH_TRUE!$ENABLE_BLUETOOTH_TRUE$ac_delim
27479 ENABLE_BLUETOOTH_FALSE!$ENABLE_BLUETOOTH_FALSE$ac_delim
27482 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27484 elif $ac_last_try; then
27485 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27486 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27487 { (exit 1); exit 1; }; }
27489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27493 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27494 if test -n "$ac_eof"; then
27495 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27496 ac_eof=`expr $ac_eof + 1`
27499 cat >>$CONFIG_STATUS <<_ACEOF
27500 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27504 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27505 s/^/s,@/; s/!/@,|#_!!_#|/
27508 s/'"$ac_delim"'$/,g/; t
27510 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27511 ' >>$CONFIG_STATUS <conf$$subs.sed
27512 rm -f conf$$subs.sed
27513 cat >>$CONFIG_STATUS <<_ACEOF
27519 for ac_last_try in false false false false false :; do
27520 cat >conf$$subs.sed <<_ACEOF
27521 TRANSPORT_LIBS!$TRANSPORT_LIBS$ac_delim
27522 TRANSPORT_CFLAGS!$TRANSPORT_CFLAGS$ac_delim
27523 XSLT!$XSLT$ac_delim
27524 COND_GUI_TRUE!$COND_GUI_TRUE$ac_delim
27525 COND_GUI_FALSE!$COND_GUI_FALSE$ac_delim
27526 COND_DBUS_TRUE!$COND_DBUS_TRUE$ac_delim
27527 COND_DBUS_FALSE!$COND_DBUS_FALSE$ac_delim
27528 KEYRING_CFLAGS!$KEYRING_CFLAGS$ac_delim
27529 KEYRING_LIBS!$KEYRING_LIBS$ac_delim
27530 KEYRING_2_20_CFLAGS!$KEYRING_2_20_CFLAGS$ac_delim
27531 KEYRING_2_20_LIBS!$KEYRING_2_20_LIBS$ac_delim
27532 DBUS_GLIB_CFLAGS!$DBUS_GLIB_CFLAGS$ac_delim
27533 DBUS_GLIB_LIBS!$DBUS_GLIB_LIBS$ac_delim
27534 DBUS_BINDING_TOOL!$DBUS_BINDING_TOOL$ac_delim
27535 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
27536 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
27537 DBUS_LIBS!$DBUS_LIBS$ac_delim
27538 LIBEXECDIR!$LIBEXECDIR$ac_delim
27539 DBUS_SERVICES_DIR!$DBUS_SERVICES_DIR$ac_delim
27540 UNIQUE_CFLAGS!$UNIQUE_CFLAGS$ac_delim
27541 UNIQUE_LIBS!$UNIQUE_LIBS$ac_delim
27542 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
27543 GUI_LIBS!$GUI_LIBS$ac_delim
27544 GTK_BUILDER_CONV!$GTK_BUILDER_CONV$ac_delim
27545 USE_NLS!$USE_NLS$ac_delim
27546 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
27547 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
27548 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
27549 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
27550 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
27551 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
27552 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
27553 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
27554 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
27555 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
27556 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
27557 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
27558 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
27559 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
27560 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
27561 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
27562 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
27563 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
27564 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
27565 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
27566 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
27567 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
27568 XGETTEXT!$XGETTEXT$ac_delim
27569 MSGMERGE!$MSGMERGE$ac_delim
27570 MSGFMT!$MSGFMT$ac_delim
27571 GMSGFMT!$GMSGFMT$ac_delim
27572 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
27573 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
27574 DATADIRNAME!$DATADIRNAME$ac_delim
27575 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
27576 CATALOGS!$CATALOGS$ac_delim
27577 CATOBJEXT!$CATOBJEXT$ac_delim
27578 GMOFILES!$GMOFILES$ac_delim
27579 INSTOBJEXT!$INSTOBJEXT$ac_delim
27580 INTLLIBS!$INTLLIBS$ac_delim
27581 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
27582 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
27583 POFILES!$POFILES$ac_delim
27584 POSUB!$POSUB$ac_delim
27585 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
27586 SYNCEVOLUTION_LOCALEDIR!$SYNCEVOLUTION_LOCALEDIR$ac_delim
27587 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
27588 GUI_PROGRAMS!$GUI_PROGRAMS$ac_delim
27589 GUI_DESKTOP_FILES!$GUI_DESKTOP_FILES$ac_delim
27591 CXXFLAGS!$CXXFLAGS$ac_delim
27592 ac_ct_CXX!$ac_ct_CXX$ac_delim
27593 CXXDEPMODE!$CXXDEPMODE$ac_delim
27594 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27595 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27596 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
27597 BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
27598 SYNTHESIS_SRC!$SYNTHESIS_SRC$ac_delim
27599 SYNTHESIS_CFLAGS!$SYNTHESIS_CFLAGS$ac_delim
27600 SYNTHESIS_LIBS!$SYNTHESIS_LIBS$ac_delim
27601 SYNTHESIS!$SYNTHESIS$ac_delim
27602 SYNTHESIS_SUBDIR!$SYNTHESIS_SUBDIR$ac_delim
27603 SYNTHESIS_DEP!$SYNTHESIS_DEP$ac_delim
27604 SYNTHESIS_ENGINE!$SYNTHESIS_ENGINE$ac_delim
27605 SYNTHESIS_LIB!$SYNTHESIS_LIB$ac_delim
27606 SYNTHESISSRC!$SYNTHESISSRC$ac_delim
27607 SYNCSOURCES!$SYNCSOURCES$ac_delim
27608 BACKEND_DEFINES!$BACKEND_DEFINES$ac_delim
27609 BACKEND_CPPFLAGS!$BACKEND_CPPFLAGS$ac_delim
27610 ADDRESSBOOK_CFLAGS!$ADDRESSBOOK_CFLAGS$ac_delim
27611 ADDRESSBOOK_LIBS!$ADDRESSBOOK_LIBS$ac_delim
27612 EPACKAGE_CFLAGS!$EPACKAGE_CFLAGS$ac_delim
27613 EPACKAGE_LIBS!$EPACKAGE_LIBS$ac_delim
27614 ECAL_CFLAGS!$ECAL_CFLAGS$ac_delim
27615 ECAL_LIBS!$ECAL_LIBS$ac_delim
27616 EBOOK_CFLAGS!$EBOOK_CFLAGS$ac_delim
27617 EBOOK_LIBS!$EBOOK_LIBS$ac_delim
27620 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27622 elif $ac_last_try; then
27623 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27624 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27625 { (exit 1); exit 1; }; }
27627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27631 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27632 if test -n "$ac_eof"; then
27633 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27634 ac_eof=`expr $ac_eof + 1`
27637 cat >>$CONFIG_STATUS <<_ACEOF
27638 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27642 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27643 s/^/s,@/; s/!/@,|#_!!_#|/
27646 s/'"$ac_delim"'$/,g/; t
27648 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27649 ' >>$CONFIG_STATUS <conf$$subs.sed
27650 rm -f conf$$subs.sed
27651 cat >>$CONFIG_STATUS <<_ACEOF
27657 for ac_last_try in false false false false false :; do
27658 cat >conf$$subs.sed <<_ACEOF
27659 ENABLE_ECAL_TRUE!$ENABLE_ECAL_TRUE$ac_delim
27660 ENABLE_ECAL_FALSE!$ENABLE_ECAL_FALSE$ac_delim
27661 FILE_CFLAGS!$FILE_CFLAGS$ac_delim
27662 FILE_LIBS!$FILE_LIBS$ac_delim
27663 SQLITE_CFLAGS!$SQLITE_CFLAGS$ac_delim
27664 SQLITE_LIBS!$SQLITE_LIBS$ac_delim
27665 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
27666 GLIB_LIBS!$GLIB_LIBS$ac_delim
27667 build!$build$ac_delim
27668 build_cpu!$build_cpu$ac_delim
27669 build_vendor!$build_vendor$ac_delim
27670 build_os!$build_os$ac_delim
27671 host!$host$ac_delim
27672 host_cpu!$host_cpu$ac_delim
27673 host_vendor!$host_vendor$ac_delim
27674 host_os!$host_os$ac_delim
27676 LN_S!$LN_S$ac_delim
27677 ECHO!$ECHO$ac_delim
27679 RANLIB!$RANLIB$ac_delim
27680 DSYMUTIL!$DSYMUTIL$ac_delim
27681 NMEDIT!$NMEDIT$ac_delim
27682 CXXCPP!$CXXCPP$ac_delim
27684 FFLAGS!$FFLAGS$ac_delim
27685 ac_ct_F77!$ac_ct_F77$ac_delim
27686 LIBTOOL!$LIBTOOL$ac_delim
27687 ENABLE_MODULES_TRUE!$ENABLE_MODULES_TRUE$ac_delim
27688 ENABLE_MODULES_FALSE!$ENABLE_MODULES_FALSE$ac_delim
27689 SYNCEVOLUTION_LDADD!$SYNCEVOLUTION_LDADD$ac_delim
27690 SYNCEVOLUTION_CXXFLAGS!$SYNCEVOLUTION_CXXFLAGS$ac_delim
27691 ENABLE_EVOLUTION_COMPATIBILITY_TRUE!$ENABLE_EVOLUTION_COMPATIBILITY_TRUE$ac_delim
27692 ENABLE_EVOLUTION_COMPATIBILITY_FALSE!$ENABLE_EVOLUTION_COMPATIBILITY_FALSE$ac_delim
27693 backenddir!$backenddir$ac_delim
27694 backendsearchdir!$backendsearchdir$ac_delim
27695 LIBOBJS!$LIBOBJS$ac_delim
27696 LTLIBOBJS!$LTLIBOBJS$ac_delim
27699 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
27701 elif $ac_last_try; then
27702 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27703 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27704 { (exit 1); exit 1; }; }
27706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27710 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27711 if test -n "$ac_eof"; then
27712 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27713 ac_eof=`expr $ac_eof + 1`
27716 cat >>$CONFIG_STATUS <<_ACEOF
27717 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
27718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27721 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27722 s/^/s,@/; s/!/@,|#_!!_#|/
27725 s/'"$ac_delim"'$/,g/; t
27727 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27728 ' >>$CONFIG_STATUS <conf$$subs.sed
27729 rm -f conf$$subs.sed
27730 cat >>$CONFIG_STATUS <<_ACEOF
27737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27739 # trailing colons and then remove the whole line if VPATH becomes empty
27740 # (actually we leave an empty line to preserve line numbers).
27741 if test "x$srcdir" = x.; then
27742 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27743 s/:*\$(srcdir):*/:/
27744 s/:*\${srcdir}:*/:/
27746 s/^\([^=]*=[ ]*\):*/\1/
27752 cat >>$CONFIG_STATUS <<\_ACEOF
27753 fi # test -n "$CONFIG_FILES"
27756 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27759 :[FHLC]) ac_mode=$ac_tag; continue;;
27761 case $ac_mode$ac_tag in
27763 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27764 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27765 { (exit 1); exit 1; }; };;
27766 :[FH]-) ac_tag=-:-;;
27767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27784 -) ac_f="$tmp/stdin";;
27785 *) # Look for the file first in the build tree, then in the source tree
27786 # (if the path is not absolute). The absolute path cannot be DOS-style,
27787 # because $ac_f cannot contain `:'.
27791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27793 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27794 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27795 { (exit 1); exit 1; }; };;
27797 ac_file_inputs="$ac_file_inputs $ac_f"
27800 # Let's still pretend it is `configure' which instantiates (i.e., don't
27801 # use $as_me), people would be surprised to read:
27802 # /* config.h. Generated by config.status. */
27803 configure_input="Generated from "`IFS=:
27804 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27805 if test x"$ac_file" != x-; then
27806 configure_input="$ac_file. $configure_input"
27807 { echo "$as_me:$LINENO: creating $ac_file" >&5
27808 echo "$as_me: creating $ac_file" >&6;}
27812 *:-:* | *:-) cat >"$tmp/stdin";;
27817 ac_dir=`$as_dirname -- "$ac_file" ||
27818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27819 X"$ac_file" : 'X\(//\)[^/]' \| \
27820 X"$ac_file" : 'X\(//\)$' \| \
27821 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27827 /^X\(\/\/\)[^/].*/{
27842 -*) as_dir=./$as_dir;;
27844 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27848 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27849 *) as_qdir=$as_dir;;
27851 as_dirs="'$as_qdir' $as_dirs"
27852 as_dir=`$as_dirname -- "$as_dir" ||
27853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27854 X"$as_dir" : 'X\(//\)[^/]' \| \
27855 X"$as_dir" : 'X\(//\)$' \| \
27856 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27862 /^X\(\/\/\)[^/].*/{
27875 test -d "$as_dir" && break
27877 test -z "$as_dirs" || eval "mkdir $as_dirs"
27878 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27879 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27880 { (exit 1); exit 1; }; }; }
27884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27887 # A ".." for each directory in $ac_dir_suffix.
27888 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27889 case $ac_top_builddir_sub in
27890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27894 ac_abs_top_builddir=$ac_pwd
27895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27896 # for backward compatibility:
27897 ac_top_builddir=$ac_top_build_prefix
27900 .) # We are building in place.
27902 ac_top_srcdir=$ac_top_builddir_sub
27903 ac_abs_top_srcdir=$ac_pwd ;;
27904 [\\/]* | ?:[\\/]* ) # Absolute name.
27905 ac_srcdir=$srcdir$ac_dir_suffix;
27906 ac_top_srcdir=$srcdir
27907 ac_abs_top_srcdir=$srcdir ;;
27908 *) # Relative name.
27909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27910 ac_top_srcdir=$ac_top_build_prefix$srcdir
27911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27924 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27926 ac_MKDIR_P=$MKDIR_P
27928 [\\/$]* | ?:[\\/]* ) ;;
27929 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27933 cat >>$CONFIG_STATUS <<\_ACEOF
27934 # If the template does not know about datarootdir, expand it.
27935 # FIXME: This hack should be removed a few years after 2.60.
27936 ac_datarootdir_hack=; ac_datarootdir_seen=
27938 case `sed -n '/datarootdir/ {
27947 ' $ac_file_inputs` in
27948 *datarootdir*) ac_datarootdir_seen=yes;;
27949 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27950 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27951 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27953 cat >>$CONFIG_STATUS <<_ACEOF
27954 ac_datarootdir_hack='
27955 s&@datadir@&$datadir&g
27956 s&@docdir@&$docdir&g
27957 s&@infodir@&$infodir&g
27958 s&@localedir@&$localedir&g
27959 s&@mandir@&$mandir&g
27960 s&\\\${datarootdir}&$datarootdir&g' ;;
27964 # Neutralize VPATH when `$srcdir' = `.'.
27965 # Shell code in configure.ac might set extrasub.
27966 # FIXME: do we really want to maintain this feature?
27967 cat >>$CONFIG_STATUS <<_ACEOF
27971 cat >>$CONFIG_STATUS <<\_ACEOF
27973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27974 s&@configure_input@&$configure_input&;t t
27975 s&@top_builddir@&$ac_top_builddir_sub&;t t
27976 s&@srcdir@&$ac_srcdir&;t t
27977 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27978 s&@top_srcdir@&$ac_top_srcdir&;t t
27979 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27980 s&@builddir@&$ac_builddir&;t t
27981 s&@abs_builddir@&$ac_abs_builddir&;t t
27982 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27983 s&@INSTALL@&$ac_INSTALL&;t t
27984 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27985 $ac_datarootdir_hack
27986 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
27988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27989 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27991 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27992 which seems to be undefined. Please make sure it is defined." >&5
27993 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27994 which seems to be undefined. Please make sure it is defined." >&2;}
27998 -) cat "$tmp/out"; rm -f "$tmp/out";;
27999 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28008 # Transform confdefs.h into a sed script `conftest.defines', that
28009 # substitutes the proper values into config.h.in to produce config.h.
28010 rm -f conftest.defines conftest.tail
28011 # First, append a space to every undef/define line, to ease matching.
28012 echo 's/$/ /' >conftest.defines
28013 # Then, protect against being on the right side of a sed subst, or in
28014 # an unquoted here document, in config.status. If some macros were
28015 # called several times there might be several #defines for the same
28016 # symbol, which is useless. But do not sort them, since the last
28017 # AC_DEFINE must be honored.
28018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28019 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28020 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28021 # PARAMS is the parameter list in the macro definition--in most cases, it's
28022 # just an empty string.
28023 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28024 ac_dB='\\)[ (].*,\\1define\\2'
28032 s/^[ ]*#[ ]*define[ ][ ]*//
28037 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28038 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28039 ' >>conftest.defines
28041 # Remove the space that was appended to ease matching.
28042 # Then replace #undef with comments. This is necessary, for
28043 # example, in the case of _POSIX_SOURCE, which is predefined and required
28044 # on some systems where configure will not decide to define it.
28045 # (The regexp can be short, since the line contains either #define or #undef.)
28047 s,^[ #]*u.*,/* & */,' >>conftest.defines
28049 # Break up conftest.defines:
28050 ac_max_sed_lines=50
28052 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28053 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28054 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28056 ac_in='$ac_file_inputs'
28057 ac_out='"$tmp/out1"'
28058 ac_nxt='"$tmp/out2"'
28062 # Write a here document:
28063 cat >>$CONFIG_STATUS <<_ACEOF
28064 # First, check the format of the line:
28065 cat >"\$tmp/defines.sed" <<\\CEOF
28066 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28067 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28071 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28073 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28074 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28075 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28076 grep . conftest.tail >/dev/null || break
28077 rm -f conftest.defines
28078 mv conftest.tail conftest.defines
28080 rm -f conftest.defines conftest.tail
28082 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28083 cat >>$CONFIG_STATUS <<\_ACEOF
28084 if test x"$ac_file" != x-; then
28085 echo "/* $configure_input */" >"$tmp/config.h"
28086 cat "$ac_result" >>"$tmp/config.h"
28087 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28088 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28089 echo "$as_me: $ac_file is unchanged" >&6;}
28092 mv "$tmp/config.h" $ac_file
28095 echo "/* $configure_input */"
28099 # Compute $ac_file's index in $config_headers.
28102 for _am_header in $config_headers :; do
28103 case $_am_header in
28104 $_am_arg | $_am_arg:* )
28107 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28110 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28111 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28112 X"$_am_arg" : 'X\(//\)[^/]' \| \
28113 X"$_am_arg" : 'X\(//\)$' \| \
28114 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28120 /^X\(\/\/\)[^/].*/{
28132 s/.*/./; q'`/stamp-h$_am_stamp_count
28135 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28136 echo "$as_me: executing $ac_file commands" >&6;}
28141 case $ac_file$ac_mode in
28142 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28143 # Strip MF so we end up with the name of the file.
28144 mf=`echo "$mf" | sed -e 's/:.*$//'`
28145 # Check whether this is an Automake generated Makefile or not.
28146 # We used to match only the files named `Makefile.in', but
28147 # some people rename them; so instead we look at the file content.
28148 # Grep'ing the first line is not enough: some people post-process
28149 # each Makefile.in and add a new line on top of each file to say so.
28150 # Grep'ing the whole file is not good either: AIX grep has a line
28151 # limit of 2048, but all sed's we know have understand at least 4000.
28152 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28153 dirpart=`$as_dirname -- "$mf" ||
28154 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28155 X"$mf" : 'X\(//\)[^/]' \| \
28156 X"$mf" : 'X\(//\)$' \| \
28157 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28163 /^X\(\/\/\)[^/].*/{
28179 # Extract the definition of DEPDIR, am__include, and am__quote
28180 # from the Makefile without running `make'.
28181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28182 test -z "$DEPDIR" && continue
28183 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28184 test -z "am__include" && continue
28185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28186 # When using ansi2knr, U may be empty or an underscore; expand it
28187 U=`sed -n 's/^U = //p' < "$mf"`
28188 # Find all dependency output files, they are included files with
28189 # $(DEPDIR) in their names. We invoke sed twice because it is the
28190 # simplest approach to changing $(DEPDIR) to its actual value in the
28192 for file in `sed -n "
28193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28195 # Make sure the directory exists.
28196 test -f "$dirpart/$file" && continue
28197 fdir=`$as_dirname -- "$file" ||
28198 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28199 X"$file" : 'X\(//\)[^/]' \| \
28200 X"$file" : 'X\(//\)$' \| \
28201 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28207 /^X\(\/\/\)[^/].*/{
28220 { as_dir=$dirpart/$fdir
28222 -*) as_dir=./$as_dir;;
28224 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28228 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28229 *) as_qdir=$as_dir;;
28231 as_dirs="'$as_qdir' $as_dirs"
28232 as_dir=`$as_dirname -- "$as_dir" ||
28233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28234 X"$as_dir" : 'X\(//\)[^/]' \| \
28235 X"$as_dir" : 'X\(//\)$' \| \
28236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28242 /^X\(\/\/\)[^/].*/{
28255 test -d "$as_dir" && break
28257 test -z "$as_dirs" || eval "mkdir $as_dirs"
28258 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28259 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28260 { (exit 1); exit 1; }; }; }
28261 # echo "creating $dirpart/$file"
28262 echo '# dummy' > "$dirpart/$file"
28266 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
28267 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
28270 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
28271 { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
28272 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
28273 { (exit 1); exit 1; }; }
28275 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
28280 '"s|^| $ac_top_srcdir/|" \
28281 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
28283 sed '/^POTFILES =/,/[^\\]$/ {
28287 ' "po/Makefile.in" >"po/Makefile"
28288 rm -f "po/Makefile.tmp"
28289 mv "po/stamp-it.tmp" "po/stamp-it"
28296 { (exit 0); exit 0; }
28298 chmod +x $CONFIG_STATUS
28299 ac_clean_files=$ac_clean_files_save
28302 # configure is writing to config.log, and then calls config.status.
28303 # config.status does its own redirection, appending to config.log.
28304 # Unfortunately, on DOS this fails, as config.log is still kept open
28305 # by configure, so config.status won't be able to write to it; its
28306 # output is simply discarded. So we exec the FD to /dev/null,
28307 # effectively closing config.log, so it can be properly (re)opened and
28308 # appended to by config.status. When coming back to configure, we
28309 # need to make the FD available again.
28310 if test "$no_create" != yes; then
28312 ac_config_status_args=
28313 test "$silent" = yes &&
28314 ac_config_status_args="$ac_config_status_args --quiet"
28316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28319 # would make configure fail if this is the last instruction.
28320 $ac_cs_success || { (exit 1); exit 1; }
28325 echo CONFIGURATION SUMMARY
28326 for backend in $BACKENDS; do
28327 eval echo $backend: \${enable_${backend}}
28329 echo "DBus service: $enable_dbus_service"
28330 echo "UI (DBus client): $enable_gui"